loulijun2021
2023-05-25 86b282043844a5c6d2624d9f18a465c08d8cfc11
src/lib/v-gantt-chart/lib/components/blocks/index.vue
文件名从 src/components/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>