|
|
|
@ -6,15 +6,15 @@
@@ -6,15 +6,15 @@
|
|
|
|
|
<Popover |
|
|
|
|
placement="bottomLeft" |
|
|
|
|
trigger="click" |
|
|
|
|
@visibleChange="handleVisibleChange" |
|
|
|
|
:overlayClassName="`${prefixCls}__cloumn-list`" |
|
|
|
|
:getPopupContainer="getPopupContainer" |
|
|
|
|
@visibleChange="handleVisibleChange" |
|
|
|
|
> |
|
|
|
|
<template #title> |
|
|
|
|
<div :class="`${prefixCls}__popover-title`"> |
|
|
|
|
<Checkbox |
|
|
|
|
:indeterminate="indeterminate" |
|
|
|
|
v-model:checked="checkAll" |
|
|
|
|
:indeterminate="indeterminate" |
|
|
|
|
@change="onCheckAllChange" |
|
|
|
|
> |
|
|
|
|
{{ t('component.table.settingColumnShow') }} |
|
|
|
@ -26,8 +26,8 @@
@@ -26,8 +26,8 @@
|
|
|
|
|
|
|
|
|
|
<Checkbox |
|
|
|
|
v-model:checked="checkSelect" |
|
|
|
|
@change="handleSelectCheckChange" |
|
|
|
|
:disabled="!defaultRowSelection" |
|
|
|
|
@change="handleSelectCheckChange" |
|
|
|
|
> |
|
|
|
|
{{ t('component.table.settingSelectColumnShow') }} |
|
|
|
|
</Checkbox> |
|
|
|
@ -40,10 +40,10 @@
@@ -40,10 +40,10 @@
|
|
|
|
|
|
|
|
|
|
<template #content> |
|
|
|
|
<ScrollContainer> |
|
|
|
|
<CheckboxGroup v-model:value="checkedList" @change="onChange" ref="columnListRef"> |
|
|
|
|
<CheckboxGroup ref="columnListRef" v-model:value="checkedList" @change="onChange"> |
|
|
|
|
<template v-for="item in plainOptions" :key="item.value"> |
|
|
|
|
<div :class="`${prefixCls}__check-item`" v-if="!('ifShow' in item && !item.ifShow)"> |
|
|
|
|
<DragOutlined class="table-coulmn-drag-icon" /> |
|
|
|
|
<div v-if="!('ifShow' in item && !item.ifShow)" :class="`${prefixCls}__check-item`"> |
|
|
|
|
<DragOutlined class="table-coulmn-drag-icon"/> |
|
|
|
|
<Checkbox :value="item.value"> |
|
|
|
|
{{ item.label }} |
|
|
|
|
</Checkbox> |
|
|
|
@ -68,7 +68,7 @@
@@ -68,7 +68,7 @@
|
|
|
|
|
@click="handleColumnFixed(item, 'left')" |
|
|
|
|
/> |
|
|
|
|
</Tooltip> |
|
|
|
|
<Divider type="vertical" /> |
|
|
|
|
<Divider type="vertical"/> |
|
|
|
|
<Tooltip |
|
|
|
|
placement="bottomLeft" |
|
|
|
|
:mouseLeaveDelay="0.4" |
|
|
|
@ -94,7 +94,7 @@
@@ -94,7 +94,7 @@
|
|
|
|
|
</CheckboxGroup> |
|
|
|
|
</ScrollContainer> |
|
|
|
|
</template> |
|
|
|
|
<SettingOutlined /> |
|
|
|
|
<SettingOutlined/> |
|
|
|
|
</Popover> |
|
|
|
|
</Tooltip> |
|
|
|
|
</template> |
|
|
|
|