fix: the events bug of AdvanceTable.vue;

修复:AdvanceTable.vue 组件的事件问题;
master
chenghongxing 4 years ago
parent 3619242076
commit 501bd23c20
  1. 6
      src/components/table/advance/AdvanceTable.vue

@ -160,7 +160,7 @@
} else if (document.mozCancelFullScreen) { } else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen() document.mozCancelFullScreen()
} else if (document.msExitFullscreen) { } else if (document.msExitFullscreen) {
document.msExiFullscreen() document.msExitFullscreen()
} }
this.$refs.table.classList.remove('beauty-scroll') this.$refs.table.classList.remove('beauty-scroll')
}, },
@ -171,10 +171,10 @@
this.$emit('expandedRowsChange', expandedRows) this.$emit('expandedRowsChange', expandedRows)
}, },
onChange(pagination, filters, sorter, options) { onChange(pagination, filters, sorter, options) {
this.$emit('expandedRowsChange', pagination, filters, sorter, options) this.$emit('change', pagination, filters, sorter, options)
}, },
onExpand(expanded, record) { onExpand(expanded, record) {
this.$emit('expandedRowsChange', expanded, record) this.$emit('expand', expanded, record)
}, },
addListener() { addListener() {
document.addEventListener('fullscreenchange', this.fullScreenListener) document.addEventListener('fullscreenchange', this.fullScreenListener)

Loading…
Cancel
Save