mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
chore: small fixes
This commit is contained in:
parent
bd0584f319
commit
4f52a25308
@ -143,8 +143,8 @@ export default {
|
|||||||
slotEl.style.top = `${offsetTop}px`
|
slotEl.style.top = `${offsetTop}px`
|
||||||
slotEl.style.height = `${offsetHeight}px`
|
slotEl.style.height = `${offsetHeight}px`
|
||||||
slotEl.style.maxWidth = `${offsetWidth + offsetLeft}px`
|
slotEl.style.maxWidth = `${offsetWidth + offsetLeft}px`
|
||||||
barEl.getBoundingClientRect()
|
void barEl.offsetHeight
|
||||||
slotEl.getBoundingClientRect()
|
void slotEl.offsetHeight
|
||||||
|
|
||||||
if (!transition) {
|
if (!transition) {
|
||||||
barEl.style.transition = null
|
barEl.style.transition = null
|
||||||
|
@ -168,7 +168,7 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
active (value) {
|
active (value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
if (this.listenersRegistered) {
|
if (!this.listenersRegistered) {
|
||||||
this.registerScrollListeners()
|
this.registerScrollListeners()
|
||||||
this.registerResizeListener()
|
this.registerResizeListener()
|
||||||
this.listenersRegistered = true
|
this.listenersRegistered = true
|
||||||
|
Loading…
Reference in New Issue
Block a user