双机架轧辊管理

This commit is contained in:
2026-05-07 11:19:32 +08:00
parent d71b1c4959
commit a5280923e1
32 changed files with 3088 additions and 4 deletions

View File

@@ -8,8 +8,8 @@
<div class="el-table-container" ref="elTableWrapper" @mouseleave="handleTableLeave">
<!-- 原生 Table 核心透传 props/事件/插槽 -->
<el-table :ref="tableRef" v-bind="$attrs" v-on="$listeners" :class="['my-table', customClass]"
@cell-mouse-enter="handleCellEnter" @row-mouseleave="handleRowLeave" :height="height">
<el-table :ref="tableRef" v-bind="tableAttrs" v-on="$listeners" :class="['my-table', customClass]"
@cell-mouse-enter="handleCellEnter" @row-mouseleave="handleRowLeave">
<!-- 2. 透传原生内置插槽 empty 空数据插槽append 底部插槽等 -->
<template v-slot:empty="scope">
<slot name="empty" v-bind="scope"></slot>
@@ -102,6 +102,13 @@ export default {
};
},
computed: {
tableAttrs() {
const attrs = { ...this.$attrs }
if (this.height !== '' && this.height !== null && this.height !== undefined) {
attrs.height = this.height
}
return attrs
},
floatLayerColumns() {
if (this.floatLayerConfig?.columns?.length > 1) {
return this.floatLayerConfig.columns