zouyu
2025-03-18 bc44c8e3c9d85691ce3fa73ef1300a6fae46e365
src/components/Table/lims-table.vue
@@ -14,7 +14,7 @@
      :row-class-name="rowClassName"
      :row-style="rowStyle"
      :row-key="rowKey"
      :span-method="spanMethod"
      :span-method="finalSpanMethod"
      :stripe="stripe"
      style="width: 100%"
      tooltip-effect="dark"
@@ -319,6 +319,10 @@
    },
  },
  props: {
    parentSpanMethod: {
      type: Function,
      default: () => {},
    },
    isSelection: {
      type: Boolean,
      default: undefined,
@@ -418,6 +422,17 @@
    this.$nextTick(() => {
      this.$refs.multipleTable.doLayout();
    });
  },
  computed: {
    finalSpanMethod() {
      if(this.parentSpanMethod) {
        console.log('父组件的合并方法');
        return this.parentSpanMethod;
      }else{
        console.log('子组件的合并方法');
        return this.spanMethod;
      }
    },
  },
  mounted() {
    this.calculateSpanInfo();
@@ -611,7 +626,7 @@
}
>>> .el-table__body-wrapper::-webkit-scrollbar {
  height: 6px;
  height: 14px;
  /* 设置滚动条宽度 */
}
</style>