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> @@ -72,6 +74,12 @@ return arrayKeys; } return ["gtArray"]; }, blocksStyle() { return { backgroundSize: `${this.cellWidth}px ${this.cellHeight}px`, height: `${this.blockHeight}px` }; }, blockStyle() { return { @@ -153,4 +161,4 @@ } } }; </script> </script>