Skip to content

Commit

Permalink
fix(custom-config): 修复默认fixed列,取消fix,custom-config.storage未能正常存储的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ming4762 committed Dec 31, 2024
1 parent 21a1b07 commit de2a4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/table/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ export default defineComponent({
const colKey = column.getKey()
// 支持一级
if (!parent) {
if (fixedData && fixedData[colKey]) {
if (fixedData && fixedData[colKey] !== undefined) {
column.fixed = fixedData[colKey]
}
if (sortData && XEUtils.isNumber(sortData[colKey])) {
Expand Down Expand Up @@ -5395,7 +5395,7 @@ export default defineComponent({
sortData[colKey] = column.renderSortNumber
}
})
if (column.fixed && column.fixed !== column.defaultFixed) {
if (column.fixed !== column.defaultFixed) {
const colKey = column.getKey()
if (colKey) {
hasFixedt = 1
Expand Down

0 comments on commit de2a4a9

Please sign in to comment.