Merge pull request #3285 from dataease/pr@dev@fix_panel-web-component

fix(仪表板): 修复网页组件在画布左上角时过滤组件和其他组件拖入仪表板事件被覆盖问题
This commit is contained in:
xuwei-fit2cloud 2022-09-30 18:06:37 +08:00 committed by GitHub
commit 2c4c5bd77f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@
<script>
import { mapState } from 'vuex'
import bus from '@/utils/bus'
import eventBus from '@/components/canvas/utils/eventBus'
export default {
name: 'DeFrame',
props: {
@ -68,6 +69,7 @@ export default {
},
mounted() {
bus.$on('frameLinksChange-' + this.element.id, this.frameLinksChange)
eventBus.$on('startMoveIn',this.frameLinksChange)
},
beforeDestroy() {
bus.$off('frameLinksChange-' + this.element.id, this.frameLinksChange)