Update main.js

[bugfix]: add an additional options to control the tips if hide immediatly.
pull/22738/head
林水泉 2023-11-15 21:53:49 +08:00 committed by GitHub
parent 290e68ea6a
commit c539ca3d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -52,6 +52,10 @@ export default {
tabindex: { tabindex: {
type: Number, type: Number,
default: 0 default: 0
},
hideImmediatly: {
type: Boolean,
default: false
} }
}, },
@ -72,7 +76,7 @@ export default {
} }
}).$mount(); }).$mount();
this.debounceClose = debounce(200, () => this.handleClosePopper()); this.debounceClose = debounce(200, () => this.handleClosePopper(),{ atBegin: this.hideImmediatly });
}, },
render(h) { render(h) {