Demo:导入数据时隐藏搜索框
This commit is contained in:
parent
c95919a1a0
commit
24365a22c3
@ -125,6 +125,7 @@ export default {
|
|||||||
)
|
)
|
||||||
this.mindMap.keyCommand.addShortcut('Control+f', this.showSearch)
|
this.mindMap.keyCommand.addShortcut('Control+f', this.showSearch)
|
||||||
window.addEventListener('resize', this.setSearchResultListHeight)
|
window.addEventListener('resize', this.setSearchResultListHeight)
|
||||||
|
this.$bus.$on('setData', this.close)
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.setSearchResultListHeight()
|
this.setSearchResultListHeight()
|
||||||
@ -141,6 +142,7 @@ export default {
|
|||||||
)
|
)
|
||||||
this.mindMap.keyCommand.removeShortcut('Control+f', this.showSearch)
|
this.mindMap.keyCommand.removeShortcut('Control+f', this.showSearch)
|
||||||
window.removeEventListener('resize', this.setSearchResultListHeight)
|
window.removeEventListener('resize', this.setSearchResultListHeight)
|
||||||
|
this.$bus.$off('setData', this.close)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isUndef,
|
isUndef,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user