From 6bd005efa5bb1b9aa0bbb312378d57440c29366c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 05 一月 2023 16:47:22 +0800
Subject: [PATCH] 1.节拍工价  编辑行功能优化

---
 src/lib/v-gantt-chart/lib/components/left-bar/index.vue |   40 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 40 insertions(+), 0 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
new file mode 100644
index 0000000..21809cd
--- /dev/null
+++ b/src/lib/v-gantt-chart/lib/components/left-bar/index.vue
@@ -0,0 +1,40 @@
+<template>
+  <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,
+    datas: {
+      type: Array,
+      required: true
+    }
+  },
+  computed: {
+    cellHeightStyle() {
+      return {
+        'height': `${this.cellHeight}px`
+      }
+    }
+  }
+}
+</script>

--
Gitblit v1.9.3