From 5c133dd7c3b9e1787dcd3be4f0f578a9d8bef540 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 15 三月 2023 15:53:27 +0800
Subject: [PATCH] 1.甘特图时间分割线改动

---
 src/lib/v-gantt-chart/lib/components/blocks/index.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/lib/v-gantt-chart/lib/components/blocks/index.vue b/src/lib/v-gantt-chart/lib/components/blocks/index.vue
index 0cc6c00..41ec69a 100644
--- a/src/lib/v-gantt-chart/lib/components/blocks/index.vue
+++ b/src/lib/v-gantt-chart/lib/components/blocks/index.vue
@@ -1,6 +1,8 @@
 <template>
   <div class="gantt-blocks"
-       :style="{height:blockHeight+'px'}">
+       :style="blocksStyle">
+<!--    {{blocksStyle}}-->
+<!--       :style="{height:blockHeight+'px'}">-->
     <div class="gantt-block gantt-block-top-space"
          :style="{height:calTopSpace()+'px'}">
     </div>
@@ -72,6 +74,12 @@
         return arrayKeys;
       }
       return ["gtArray"];
+    },
+    blocksStyle() {
+      return {
+        backgroundSize: `${this.cellWidth}px ${this.cellHeight}px`,
+        height: `${this.blockHeight}px`
+      };
     },
     blockStyle() {
       return {
@@ -153,4 +161,4 @@
     }
   }
 };
-</script>
\ No newline at end of file
+</script>

--
Gitblit v1.9.3