Commit 5fa730c49ae46fa448d49d597dc7b2b6a019b268
Committed by
GitHub
1 parent
6cadcf08
fix(table): Solve the bug of setting ifshow to false in table column (#1166)
表格列设置ifshow为false,表格的列设置里依然会渲染该列的checkBox,实际应该不渲染。如果需要隐藏应该是设置defaultHidden。
Showing
1 changed file
with
1 additions
and
1 deletions
src/components/Table/src/components/settings/ColumnSetting.vue
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | <ScrollContainer> | 42 | <ScrollContainer> |
43 | <CheckboxGroup v-model:value="checkedList" @change="onChange" ref="columnListRef"> | 43 | <CheckboxGroup v-model:value="checkedList" @change="onChange" ref="columnListRef"> |
44 | <template v-for="item in plainOptions" :key="item.value"> | 44 | <template v-for="item in plainOptions" :key="item.value"> |
45 | - <div :class="`${prefixCls}__check-item`"> | 45 | + <div :class="`${prefixCls}__check-item`" v-if="!('ifShow' in item && !item.ifShow)"> |
46 | <DragOutlined class="table-coulmn-drag-icon" /> | 46 | <DragOutlined class="table-coulmn-drag-icon" /> |
47 | <Checkbox :value="item.value"> | 47 | <Checkbox :value="item.value"> |
48 | {{ item.label }} | 48 | {{ item.label }} |