From 86b282043844a5c6d2624d9f18a465c08d8cfc11 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 25 五月 2023 16:32:53 +0800
Subject: [PATCH] 1.MES工单补打生产入库条码
---
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