fix(BasicTable): ColumnSetting about selectedRowKeys override (#3446)

This commit is contained in:
xachary 2023-12-21 09:37:41 +08:00 committed by GitHub
parent 86ecb2729e
commit 65122ea1a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -111,7 +111,7 @@
import { useDesign } from '@/hooks/web/useDesign';
import { isFunction, isNil } from '@/utils/is';
import { getPopupContainer as getParentContainer } from '@/utils';
import { cloneDeep } from 'lodash-es';
import { cloneDeep, omit } from 'lodash-es';
import Sortablejs from 'sortablejs';
//
@ -492,7 +492,7 @@
table.setProps({
rowSelection: showRowSelection
? {
...defaultRowSelection,
...omit(defaultRowSelection, ['selectedRowKeys']),
fixed: true,
}
: undefined,

View File

@ -6,7 +6,7 @@
v-if="getSetting.setting"
@columns-change="handleColumnChange"
:getPopupContainer="getTableContainer"
:cache="false"
:cache="getSetting.settingCache"
/>
<FullScreenSetting v-if="getSetting.fullScreen" :getPopupContainer="getTableContainer" />
</div>
@ -39,6 +39,7 @@
redo: true,
size: true,
setting: true,
settingCache: false,
fullScreen: false,
...props.setting,
};

View File

@ -140,6 +140,7 @@ export interface TableSetting {
redo?: boolean;
size?: boolean;
setting?: boolean;
settingCache?: boolean;
fullScreen?: boolean;
}