loulijun2021
2022-11-05 c4b49d08cef0805e17646eef03e1c1a62316c3b2
src/lib/v-gantt-chart/lib/components/left-bar/index.vue
@@ -1,12 +1,15 @@
<template>
  <div class="gantt-leftbar">
    <div class="gantt-leftbar-item "
         :style="{height:calTopSpace()+'px'}">
    </div>
    <div class="gantt-leftbar-item"
         :style="cellHeightStyle"
  <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">
      :key="dataKey?data[dataKey]:index"
      class="gantt-leftbar-item"
      :style="cellHeightStyle"
    >
      <slot :data="data">
        <div class="gantt-leftbar-defalutItem">need slot</div>
      </slot>
@@ -17,7 +20,7 @@
<script>
import dr from '../dynamic-render.js'
export default {
  name: "LeftBar",
  name: 'LeftBar',
  mixins:[dr],
  props:{
    dataKey:String,
@@ -33,5 +36,5 @@
      }
    }
  }
};
}
</script>