fix: 点击编辑没反应 报错修复

This commit is contained in:
dataeaseShu 2022-10-26 17:20:55 +08:00
parent ea3ea4d47c
commit 4cfc07a10b
4 changed files with 5 additions and 5 deletions

View File

@ -44,7 +44,6 @@
@resizeView="resizeView"
@linkJumpSet="linkJumpSet"
@boardSet="boardSet"
@fieldSelect="fieldSelect"
/>
<mobile-check-bar
v-if="mobileCheckBarShow"

View File

@ -200,7 +200,7 @@ export default {
},
sourceElement: {
type: Object,
required: true
default: () => {}
},
element: {
type: Object,
@ -433,6 +433,7 @@ export default {
this.$emit('resizeView')
},
edit() {
console.log('this.curComponent.type', this.curComponent.type)
if (this.curComponent.type === 'custom') {
bus.$emit('component-dialog-edit', 'update')
} else if (this.curComponent.type === 'custom-button') {

View File

@ -811,8 +811,8 @@ export default {
},
initEvents() {
bus.$on('component-on-drag', this.componentOnDrag)
// bus.$on('component-dialog-edit', this.editDialog)
// bus.$on('button-dialog-edit', this.editButtonDialog)
bus.$on('component-dialog-edit', this.editDialog)
bus.$on('button-dialog-edit', this.editButtonDialog)
bus.$on('component-dialog-style', this.componentDialogStyle)
bus.$on('previewFullScreenClose', this.previewFullScreenClose)
bus.$on('change_panel_right_draw', this.changeRightDrawOpen)

View File

@ -199,7 +199,7 @@
:command="beforeClickEdit('folder', 'new', data, node)"
>
<svg-icon icon-class="scene" />
<span>{{ $t('panel.groupAdd') }}</span>
<span style="margin-left: 5px">{{ $t('panel.groupAdd') }}</span>
</el-dropdown-item>
<el-dropdown-item
:command="beforeClickEdit('panel', 'new', data, node)"