forked from github/dataease
Merge pull request #3621 from dataease/pr@dev@style_tree_select
style(仪表板): 树过滤器样式分离
This commit is contained in:
commit
3c4434af40
@ -262,12 +262,22 @@ export default {
|
||||
this._updateH()
|
||||
this.$nextTick(() => {
|
||||
on(document, 'mouseup', this._popoverHideFun)
|
||||
this.bindScroll()
|
||||
})
|
||||
},
|
||||
beforeDestroy() {
|
||||
off(document, 'mouseup', this._popoverHideFun)
|
||||
this.unbindScroll()
|
||||
},
|
||||
methods: {
|
||||
bindScroll() {
|
||||
window.onmousewheel = this._popoverHideFun
|
||||
on(document, 'DOMMouseScroll', this._popoverHideFun)
|
||||
},
|
||||
unbindScroll() {
|
||||
window.onmousewheel = null
|
||||
off(document, 'DOMMouseScroll', this._popoverHideFun)
|
||||
},
|
||||
showPopover() {
|
||||
this.$nextTick(() => {
|
||||
this.$refs.input.focus()
|
||||
|
Loading…
Reference in New Issue
Block a user