Skip to content

Commit

Permalink
fix(BasicTable): ColumnSetting about selectedRowKeys override (#3446)
Browse files Browse the repository at this point in the history
  • Loading branch information
xachary authored Dec 21, 2023
1 parent 86ecb27 commit 65122ea
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
// 列表设置缓存
Expand Down Expand Up @@ -492,7 +492,7 @@
table.setProps({
rowSelection: showRowSelection
? {
...defaultRowSelection,
...omit(defaultRowSelection, ['selectedRowKeys']),
fixed: true,
}
: undefined,
Expand Down
3 changes: 2 additions & 1 deletion src/components/Table/src/components/settings/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -39,6 +39,7 @@
redo: true,
size: true,
setting: true,
settingCache: false,
fullScreen: false,
...props.setting,
};
Expand Down
1 change: 1 addition & 0 deletions src/components/Table/src/types/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export interface TableSetting {
redo?: boolean;
size?: boolean;
setting?: boolean;
settingCache?: boolean;
fullScreen?: boolean;
}

Expand Down

0 comments on commit 65122ea

Please sign in to comment.