mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-02-02 18:28:40 +08:00
fix(table): Solve the bug of setting ifshow to false in table column (#1166)
表格列设置ifshow为false,表格的列设置里依然会渲染该列的checkBox,实际应该不渲染。如果需要隐藏应该是设置defaultHidden。
This commit is contained in:
parent
6cadcf087d
commit
5fa730c49a
@ -42,7 +42,7 @@
|
|||||||
<ScrollContainer>
|
<ScrollContainer>
|
||||||
<CheckboxGroup v-model:value="checkedList" @change="onChange" ref="columnListRef">
|
<CheckboxGroup v-model:value="checkedList" @change="onChange" ref="columnListRef">
|
||||||
<template v-for="item in plainOptions" :key="item.value">
|
<template v-for="item in plainOptions" :key="item.value">
|
||||||
<div :class="`${prefixCls}__check-item`">
|
<div :class="`${prefixCls}__check-item`" v-if="!('ifShow' in item && !item.ifShow)">
|
||||||
<DragOutlined class="table-coulmn-drag-icon" />
|
<DragOutlined class="table-coulmn-drag-icon" />
|
||||||
<Checkbox :value="item.value">
|
<Checkbox :value="item.value">
|
||||||
{{ item.label }}
|
{{ item.label }}
|
||||||
|
Loading…
Reference in New Issue
Block a user