Commit 7c7f7f99 by Joey

fix(@gms/gms-plugin-billexpand): 配合gms-view修改点击事件

parent 98b88c3f
......@@ -136,10 +136,10 @@ export default {
window.onresize = () => {
this.getModalHeight()
}
this.$refs.modal.$el.addEventListener('click', this.stopPropagation)
this.$refs.modal.$el.addEventListener('mousedown', this.stopPropagation)
},
beforeDestroy() {
this.$refs.modal.$el.removeeventlistener('click', this.stopPropagation)
this.$refs.modal.$el.removeEventListener('mousedown', this.stopPropagation)
},
methods: {
stopPropagation(event) {
......
......@@ -194,12 +194,17 @@ export default {
},
mounted () {
this.addDomListener()
this.$refs.searchList.addEventListener('mousedown', this.stopPropagation)
addResizeListener(this.$el, this.handleResize)
},
beforeDestroy() {
this.$refs.searchList.removeEventListener('mousedown', this.stopPropagation)
this.removeDomListener()
},
methods: {
stopPropagation(event) {
event.stopPropagation()
},
getLable(val) {
if (this.showtype === 'CODE' || this.showtype === '0') {
return val.code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment