移除列表选择框,新增键盘选择机制

This commit is contained in:
lyswhut
2020-04-26 22:06:13 +08:00
parent 3d52fa059e
commit cdbedf3d64
13 changed files with 608 additions and 129 deletions
+2
View File
@@ -85,6 +85,7 @@ export default {
},
mounted() {
document.body.classList.add(this.isNt ? 'noTransparent' : 'transparent')
window.eventHub.$emit('bindKey')
this.init()
},
watch: {
@@ -303,6 +304,7 @@ export default {
document.body.removeEventListener('mouseleave', this.enableIgnoreMouseEvents)
}
document.body.removeEventListener('click', this.handleBodyClick)
window.eventHub.$emit('unbindKey')
},
}
</script>