diff --git a/core/frontend/src/components/canvas/components/editor/Preview.vue b/core/frontend/src/components/canvas/components/editor/Preview.vue index b9cda64c1a..3501333161 100644 --- a/core/frontend/src/components/canvas/components/editor/Preview.vue +++ b/core/frontend/src/components/canvas/components/editor/Preview.vue @@ -508,24 +508,25 @@ export default { }, deep: true }, + mainHeight: { + handler(newVal, oldVla) { + this.$nextTick(() => { + this.reloadWatermark() + }) + }, + deep: true + }, canvasInfoTempStyle: { handler(newVal, oldVla) { - const _this = this - _this.$nextTick(() => { - if (_this.screenShotStatues) { - _this.initWatermark('preview-temp-canvas-main') - } else { - _this.initWatermark() - } + this.$nextTick(() => { + this.reloadWatermark() }) }, deep: true }, screenShotStatues: { handler(newVal, oldVla) { - if (this.screenShotStatues) { - this.initWatermark('preview-temp-canvas-main') - } + this.reloadWatermark() } } }, @@ -564,6 +565,13 @@ export default { bus.$off('trigger-reset-button', this.triggerResetButton) }, methods: { + reloadWatermark() { + if (this.screenShotStatues) { + this.initWatermark('preview-temp-canvas-main') + } else { + this.initWatermark() + } + }, filterLoaded(p) { buildAfterFilterLoaded(this.filterMap, p) this.filterMapCache = {} diff --git a/core/frontend/src/components/canvas/customComponent/UserView.vue b/core/frontend/src/components/canvas/customComponent/UserView.vue index c522a3565e..16dcf2f8fe 100644 --- a/core/frontend/src/components/canvas/customComponent/UserView.vue +++ b/core/frontend/src/components/canvas/customComponent/UserView.vue @@ -1111,9 +1111,9 @@ export default { tableChart.customAttr.color.tableFontColor = '#7c7e81' tableChart.customAttr.color.enableTableCrossBG = false tableChart.customAttr.size.showTableHeader = true - tableChart.customAttr.size.tableTitleFontSize = 14 - tableChart.customAttr.size.tableItemFontSize = 14 } + tableChart.customAttr.size.tableTitleFontSize = 14 + tableChart.customAttr.size.tableItemFontSize = 14 tableChart.customAttr.size.tableColumnFreezeHead = 0 tableChart.customAttr.size.tableRowFreezeHead = 0 tableChart.customAttr.color.tableStripe = true