From 789947d52420fc8a7f557cb2a007b39b86874c92 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 28 四月 2023 15:03:22 +0800
Subject: [PATCH] 1.提交

---
 src/lib/v-gantt-chart/lib/components/time-line/index.vue |   39 +++++++++++++++++++++++++--------------
 1 files changed, 25 insertions(+), 14 deletions(-)

diff --git a/src/lib/v-gantt-chart/lib/components/time-line/index.vue b/src/lib/v-gantt-chart/lib/components/time-line/index.vue
index 1c069e1..4998893 100644
--- a/src/lib/v-gantt-chart/lib/components/time-line/index.vue
+++ b/src/lib/v-gantt-chart/lib/components/time-line/index.vue
@@ -12,20 +12,26 @@
       <div
         class="gantt-timeline-day "
         :style="heightStyle"
+
       >
-        {{ day.format("YYYY-MM-DD") }}
-        {{ getDayMy(day.format("YYYY-MM-DD")) }}
+        {{ day.format('YYYY-MM-DD') }}
+        {{ getDayMy(day.format('YYYY-MM-DD')) }}
       </div>
       <div
         class="gantt-timeline-scale"
         :style="heightStyle"
-        style="border-right: 1px solid #eee"
+
+
       >
+<!--        style="border-right: 1px solid #eee"-->
         <div
-          v-for="(hour,index) in getTimeScales(day)"
-          :key="index"
+          v-for="(hour,ind) in getTimeScales(day)"
+          :key="ind"
           :style="cellWidthStyle"
+
+
         >
+<!--          style="border-right: 1px solid #eee;"-->
           {{ hour }}
           <!-- <span v-if="hour !='01' ">{{hour}}</span> -->
         </div>
@@ -85,7 +91,12 @@
     },
     cellWidthStyle() {
       return {
-        width: `${this.cellWidth}px`
+        width: `${this.cellWidth}px`,
+
+        // width: `${this.cellWidth/2}px`,
+
+
+        // marginLeft:`${this.cellWidth/2}px`
       }
     },
     heightStyle() {
@@ -150,22 +161,22 @@
           throw new TypeError('閿欒鐨勮绠楃被鍨�')
       }
       while (!a.isAfter(b)) {
-        if (scale >= 60) {
-          totalblock.push(a.format('HH'))
-        } else {
-          totalblock.push(a.format('HH:mm'))
-        }
+        // if (scale >= 60) {
+        //   totalblock.push(a.format('HH'))
+        // } else {
+        totalblock.push(a.format('HH:mm'))
+        // }
         a = a.add(scale, 'minute')
       }
-
+      // console.log(1, totalblock)
       return totalblock
     }
   }
 }
 </script>
 <style lang="scss" scoped>
-.gantt-timeline-day{
-  border-right: 1px solid #ebeef5;
+.gantt-timeline-day {
+  //border-right: 1px solid #ebeef5;
   border-bottom: 1px solid #ebeef5;
   //background: rgb(245, 245, 245);
   background: #fff;

--
Gitblit v1.9.3