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.height = `${offsetHeight}px`
|
||||
slotEl.style.maxWidth = `${offsetWidth + offsetLeft}px`
|
||||
barEl.getBoundingClientRect()
|
||||
slotEl.getBoundingClientRect()
|
||||
void barEl.offsetHeight
|
||||
void slotEl.offsetHeight
|
||||
|
||||
if (!transition) {
|
||||
barEl.style.transition = null
|
||||
|
@ -168,7 +168,7 @@ export default {
|
||||
watch: {
|
||||
active (value) {
|
||||
if (value) {
|
||||
if (this.listenersRegistered) {
|
||||
if (!this.listenersRegistered) {
|
||||
this.registerScrollListeners()
|
||||
this.registerResizeListener()
|
||||
this.listenersRegistered = true
|
||||
|
Loading…
Reference in New Issue
Block a user