openatc-components 0.5.79 → 0.5.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
**/
|
|
12
12
|
<template>
|
|
13
13
|
<div class="app-container" ref="pattern-container">
|
|
14
|
-
<el-table :data="newPatternList" :max-height="tableHeight" id="footerBtn" :show-header="isShowTableHeader">
|
|
14
|
+
<el-table :data="newPatternList" :max-height="tableHeight" id="footerBtn" :show-header="isShowTableHeader" :key="tableKey">
|
|
15
15
|
<el-table-column :type="isAllowedExpand ? 'expand' : ''" v-if="isAllowedExpand">
|
|
16
16
|
<template slot-scope="scope">
|
|
17
17
|
<div v-if="isAllowedExpand && isSingleCrossMode" class="optimizetype">
|
|
@@ -209,6 +209,12 @@ export default {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
return max
|
|
212
|
+
},
|
|
213
|
+
tableKey () {
|
|
214
|
+
// tableColums / isAllowedExpand 变化会动态增减列,element-ui 的列注册仅在
|
|
215
|
+
// mounted 时按 DOM 位置记录一次,实例复用会导致列顺序错乱,
|
|
216
|
+
// 因此列配置变化时通过 key 强制重建表格,保证列顺序与配置一致
|
|
217
|
+
return `${(this.tableColums || []).join(',')}#${this.isAllowedExpand}`
|
|
212
218
|
}
|
|
213
219
|
},
|
|
214
220
|
data () {
|