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._updateH()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
on(document, 'mouseup', this._popoverHideFun)
|
on(document, 'mouseup', this._popoverHideFun)
|
||||||
|
this.bindScroll()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
off(document, 'mouseup', this._popoverHideFun)
|
off(document, 'mouseup', this._popoverHideFun)
|
||||||
|
this.unbindScroll()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
bindScroll() {
|
||||||
|
window.onmousewheel = this._popoverHideFun
|
||||||
|
on(document, 'DOMMouseScroll', this._popoverHideFun)
|
||||||
|
},
|
||||||
|
unbindScroll() {
|
||||||
|
window.onmousewheel = null
|
||||||
|
off(document, 'DOMMouseScroll', this._popoverHideFun)
|
||||||
|
},
|
||||||
showPopover() {
|
showPopover() {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.input.focus()
|
this.$refs.input.focus()
|
||||||
|
Loading…
Reference in New Issue
Block a user