gaoluyang
2025-02-19 d9278399af79ff513af399f8976651f08276cc14
src/components/Table/lims-table.vue
@@ -48,7 +48,7 @@
        show-overflow-tooltip
        :sortable="item.sortable ? true : false"
        :type="item.type"
        :width="item.width"
        :width="item.dataType === 'action'? getWidth(item.operation) : item.width"
        align="center"
      >
        <!-- <div class="123" v-if="item.type == ''"> -->
@@ -358,6 +358,14 @@
  },
  methods: {
    getWidth(row) {
      let count = 0
      console.log('row---', row)
      row.forEach(a => {
        count += a.name.length
      })
      return count * 15 + 40 + 'px'
    },
    iconFn(row) {
      if (row.name === "编辑" || row.name === "修改") {
        return "el-icon-edit";
@@ -418,11 +426,14 @@
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
  padding-left: 10px;
  padding-right: 4px !important;
  padding-left: 10px !important;
}
.link {
  color: rgb(64, 158, 255);
  cursor: pointer;
}
>>> .el-table__body-wrapper::-webkit-scrollbar {
  height: 14px; /* 设置滚动条宽度 */
}
</style>