diff --git a/frontend/package.json b/frontend/package.json index eaf0b06ab4..863cd78bf1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -20,7 +20,7 @@ "axios": "^0.21.1", "core-js": "^2.6.5", "echarts": "^5.0.1", - "element-resize-detector": "^1.2.2", + "element-resize-detector": "^1.2.3", "element-ui": "2.13.0", "file-save": "^0.2.0", "file-saver": "^2.0.5", diff --git a/frontend/src/components/canvas/components/Editor/ComponentWrapper.vue b/frontend/src/components/canvas/components/Editor/ComponentWrapper.vue index fca7838e90..9955bc9af0 100644 --- a/frontend/src/components/canvas/components/Editor/ComponentWrapper.vue +++ b/frontend/src/components/canvas/components/Editor/ComponentWrapper.vue @@ -5,8 +5,7 @@ class="component" @click="handleClick" > - + + +
- {{ $t('panel.custom_scope') }} + + 显示标题 + +
+ +
- -
- - - - - {{ item.name }} - - - -
+ +
+
+ + {{ $t('panel.custom_scope') }} - - - + +
+ + + + + {{ item.name }} + + + +
+ + +
+
@@ -301,7 +317,8 @@ export default { keyWord: '', timer: null, expandedArray: [], - viewKeyWord: '' + viewKeyWord: '', + titlePopovervisible: false } }, computed: { @@ -610,6 +627,12 @@ export default { } // this.componentInfo.options.attrs.enableRange = value this.$emit('re-fresh-component', this.componentInfo) + }, + showTitleChange(value) { + if (!value) { + this.componentInfo.options.attrs.title = '' + } + this.$emit('re-fresh-component', this.componentInfo) } } }