fix: 修复列宽记住上一次bugs
This commit is contained in:
parent
4e2e6a0c47
commit
6fd28f362b
|
@ -79,7 +79,7 @@ export default function useTableStore() {
|
|||
|
||||
if (!isEqual) {
|
||||
column.forEach((col) => {
|
||||
const storedCol = oldColumn.find((sc) => sc.dataIndex === col.dataIndex);
|
||||
const storedCol = tableColumnsMap.column.find((sc) => sc.dataIndex === col.dataIndex);
|
||||
if (storedCol) {
|
||||
col.width = storedCol.width; // 使用上一次拖拽存储的宽度,避免组件里边使用时候初始化到最初的列宽
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue