loulijun2021
2023-03-15 5c133dd7c3b9e1787dcd3be4f0f578a9d8bef540
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>