From cc9c7b396f54ff893e40534d39acdca830ed03dd Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 03 二月 2023 10:54:38 +0800
Subject: [PATCH] 1.自动排程代码优化 2.新增忽略src/lib文件

---
 src/lib/v-gantt-chart/lib/components/left-bar/index.vue |   39 +++++++++++++++++++++------------------
 1 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/src/lib/v-gantt-chart/lib/components/left-bar/index.vue b/src/lib/v-gantt-chart/lib/components/left-bar/index.vue
index 5662465..21809cd 100644
--- a/src/lib/v-gantt-chart/lib/components/left-bar/index.vue
+++ b/src/lib/v-gantt-chart/lib/components/left-bar/index.vue
@@ -1,37 +1,40 @@
 <template>
-  <div class="gantt-leftbar">
-    <div class="gantt-leftbar-item "
-         :style="{height:calTopSpace()+'px'}">
-    </div>
-    <div class="gantt-leftbar-item"
-         :style="cellHeightStyle"
-         v-for="(data,index) in showDatas"
-         :key="dataKey?data[dataKey]:index">
+  <div class="gantt-leftbar" style="border-top: 1px solid #eee">
+    <div
+      class="gantt-leftbar-item "
+      :style="{height:calTopSpace()+'px'}"
+    />
+    <div
+      v-for="(data,index) in showDatas"
+      :key="dataKey?data[dataKey]:index"
+      class="gantt-leftbar-item"
+      :style="cellHeightStyle"
+    >
       <slot :data="data">
         <div class="gantt-leftbar-defalutItem">need slot</div>
       </slot>
     </div>
   </div>
 </template>
-  
+
 <script>
 import dr from '../dynamic-render.js'
 export default {
-  name: "LeftBar",
-  mixins:[dr],
-  props:{
-    dataKey:String,
+  name: 'LeftBar',
+  mixins: [dr],
+  props: {
+    dataKey: String,
     datas: {
       type: Array,
       required: true
     }
   },
-  computed:{
-    cellHeightStyle(){
+  computed: {
+    cellHeightStyle() {
       return {
-        'height':`${this.cellHeight}px`
+        'height': `${this.cellHeight}px`
       }
     }
   }
-};
-</script>
\ No newline at end of file
+}
+</script>

--
Gitblit v1.9.3