Skip to content

Commit

Permalink
Merge pull request #2712 from ming4762/vxe-table-zhongming4762
Browse files Browse the repository at this point in the history
fix(custom-config): 修复默认fixed列,取消fix,custom-config.storage未能正常存储的问题
  • Loading branch information
xuliangzhan authored Dec 31, 2024
2 parents 21a1b07 + de2a4a9 commit 8e4841c
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 8e4841c

Please sign in to comment.