diff --git a/core/frontend/src/components/canvas/customComponent/UserViewDialog.vue b/core/frontend/src/components/canvas/customComponent/UserViewDialog.vue index d98f624c09..52fdbf2d85 100644 --- a/core/frontend/src/components/canvas/customComponent/UserViewDialog.vue +++ b/core/frontend/src/components/canvas/customComponent/UserViewDialog.vue @@ -5,10 +5,15 @@ >
@@ -119,7 +124,9 @@ export default { refId: null, element: {}, lastMapChart: null, - linkLoading: false + linkLoading: false, + exporting: false, + exportLoading: false } }, computed: { @@ -255,7 +262,19 @@ export default { } }, exportViewImg(callback) { - exportImg(this.chart.name, callback) + this.exportLoading = true + this.$nextTick(() => { + this.exporting = true + setTimeout(() => { + exportImg(this.chart.name, (params) => { + this.exporting = false + setTimeout(() => { + this.exportLoading = false + }, 500) + callback(params) + }) + }, 500) + }) }, setLastMapChart(data) { this.lastMapChart = JSON.parse(JSON.stringify(data)) @@ -300,6 +319,10 @@ export default { height: 100%; background-size: 100% 100% !important; } +.canvas-class-exporting { + width: 1080px!important; + height: 560px!important; +} .abs-container { position: absolute;