From de29dc841e562cd13a3bf45d8460bf38a9410940 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 04 一月 2023 16:53:10 +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