src/lib/v-gantt-chart/lib/components/blocks/index.vue
@@ -1,6 +1,8 @@ <template> <div class="gantt-blocks" :style="{height:blockHeight+'px'}"> :style="blocksStyle"> <!-- {{blocksStyle}}--> <!-- :style="{height:blockHeight+'px'}">--> <div class="gantt-block gantt-block-top-space" :style="{height:calTopSpace()+'px'}"> </div> @@ -73,6 +75,12 @@ } return ["gtArray"]; }, blocksStyle() { return { backgroundSize: `${this.cellWidth}px ${this.cellHeight}px`, height: `${this.blockHeight}px` }; }, blockStyle() { return { backgroundSize: `${this.cellWidth}px ${this.cellHeight}px`,