Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于表格隐藏和非隐藏列的bug #204

Open
PandaJu opened this issue Jul 22, 2024 · 1 comment
Open

关于表格隐藏和非隐藏列的bug #204

PandaJu opened this issue Jul 22, 2024 · 1 comment

Comments

@PandaJu
Copy link

PandaJu commented Jul 22, 2024

在表格的设置里,把某一列隐藏再取消隐藏后,这一列还是被隐藏着的

image

@westng
Copy link

westng commented Aug 12, 2024

src/components/ma-crud/components/setting.vue

//强制刷新下columns的内容
const changeColumn = (ev, type, name) => {
const column = columns.value.find(item => item.dataIndex === name)
switch (type) {
case 'order':
if (ev === 'page') {
column.sortable = { sortDirections: ['ascend', 'descend'], sorter: false }
} else if (ev === 'serve') {
column.sortable = { sortDirections: ['ascend', 'descend'], sorter: true }
} else {
column.sortable = undefined
}
break
}
// 强制刷新 columns
columns.value = [...columns.value];
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants