From 066ec67b7080f07a0e47dda9864ee6be2e4b9053 Mon Sep 17 00:00:00 2001
From: lxf <1371462558@qq.com>
Date: Fri, 13 Jun 2025 14:03:54 +0800
Subject: [PATCH] Merge branch 'master' of http://124.156.157.155:8060/r/~admin/aerospace-pc

---
 src/components/commonTrade/kline.vue |   23 ++++++++++++-----------
 1 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/src/components/commonTrade/kline.vue b/src/components/commonTrade/kline.vue
index 58f115d..2c6464c 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,24 +112,24 @@
   },
   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
         styles: {
           grid: {
-            show: false,
+            show: true,
             // 网格水平线
             horizontal: {
-              show: false,
+              show: true,
               size: 1,
               color: "#393939",
               style: "solid",
@@ -137,9 +137,9 @@
             },
             // 网格垂直线
             vertical: {
-              show: false,
+              show: true,
               size: 1,
-              color: "#000",
+              color: "#393939",
               style: "solid",
               dashValue: [2, 2],
             },
@@ -220,6 +220,7 @@
     //切换副线
     checkLineType(val) {
       this.lineValue = val;
+
       this.klineData?.createIndicator(val, false, { id: "pane_1" });
     },
   },

--
Gitblit v1.9.3