feat: support toggling file list columns#12099
feat: support toggling file list columns#12099A-Words wants to merge 4 commits into1Panel-dev:dev-v2from
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
感谢贡献,这里建议和 容器 / 文件 列表一样,统一使用 fu-table-column-select 组件 |
谢谢提醒,已改为使用 fu-table-column-select 组件 |
| </el-table-column> | ||
| <el-table-column :label="$t('file.mode')" prop="mode" width="80"> | ||
| <el-table-column | ||
| v-if="isColumnVisible('mode')" |
| <el-table-column :label="$t('file.size')" prop="size" width="80" :sortable="'custom'"> | ||
| <el-table-column | ||
| v-if="isColumnVisible('size')" | ||
| :label="$t('file.size')" |
|
|
||
| const pathRefs = ref<Record<string, any>>({}); | ||
| const columns = ref<FileColumnConfig[]>([ | ||
| { label: i18n.global.t('file.mode'), value: 'mode', show: true }, |
还有一些代码可以直接干掉,用 fix 限制一下某些不能隐藏的列 |
已完成修改 |
What this PR does / why we need it?
Summary of your change
Please indicate you've done the following: