From f0ff93bd4b1636ed99f637b86cd4f0b8af63414d Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Tue, 03 Jun 2025 18:34:32 +0800
Subject: [PATCH] style
---
src/components/commonTrade/kline.vue | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/components/commonTrade/kline.vue b/src/components/commonTrade/kline.vue
index 58f115d..21f6ef7 100644
--- a/src/components/commonTrade/kline.vue
+++ b/src/components/commonTrade/kline.vue
@@ -30,7 +30,7 @@
data: {
type: Array,
default() {
- return [ ];
+ return [];
},
},
klineIndex: {
@@ -112,15 +112,15 @@
},
methods: {
klineInIt(newVal) {
- // if (this.klineData ) {
- // this.klineData.remove(); // 销毁旧的图表实例
- // }
- dispose("kline-BoxMain");
+ // if (this.klineData ) {
+ // this.klineData.remove(); // 销毁旧的图表实例
+ // }
+ dispose("kline-BoxMain");
if (this.klineData && newVal) {
- console.log('this.klineDatathis.klineData',this.klineData);
+ console.log("this.klineDatathis.klineData", this.klineData);
this.klineData = null;
this.isVisible = false;
- this.klineData.remove(); // 销毁旧的图表实例
+ this.klineData.remove(); // 销毁旧的图表实例
}
this.klineData = init("kline-BoxMain", {
locale: langStore.language, //https://klinecharts.com/guide/i18n.html
@@ -220,6 +220,7 @@
//切换副线
checkLineType(val) {
this.lineValue = val;
+
this.klineData?.createIndicator(val, false, { id: "pane_1" });
},
},
--
Gitblit v1.9.3