mirror of https://github.com/ElemeFE/element
Update main.js
[bugfix]: add an additional options to control the tips if hide immediatly.pull/22738/head
parent
290e68ea6a
commit
c539ca3d90
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue