From e19e03d413e787c159b73702dabe87096a18de5d Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Fri, 25 Mar 2022 14:32:51 +0800 Subject: [PATCH] update text --- src/views/dashboard/configuration/Text.vue | 40 ++++++++++++++++++---- src/views/dashboard/controls/Text.vue | 14 +++++--- 2 files changed, 43 insertions(+), 11 deletions(-) diff --git a/src/views/dashboard/configuration/Text.vue b/src/views/dashboard/configuration/Text.vue index 5733fb1d..268be91a 100644 --- a/src/views/dashboard/configuration/Text.vue +++ b/src/views/dashboard/configuration/Text.vue @@ -64,6 +64,14 @@ limitations under the License. --> @change="changeConfig({ fontColor: $event[0].value })" /> + diff --git a/src/views/dashboard/controls/Text.vue b/src/views/dashboard/controls/Text.vue index e0f78a3e..60f77ede 100644 --- a/src/views/dashboard/controls/Text.vue +++ b/src/views/dashboard/controls/Text.vue @@ -36,7 +36,6 @@ limitations under the License. -->
fontSize: data.graph.fontSize + 'px', }" > - + {{ data.graph.content }} - +
@@ -76,8 +75,13 @@ function editConfig() { dashboardStore.setConfigPanel(true); dashboardStore.selectWidget(props.data); } -function ViewText() { - dashboardStore.setTopology(true); +function viewText() { + const path = props.data.graph.url; + console.log(path); + if (!path) { + return; + } + window.open(path, "_blank"); }