diff --git a/components/table/SelectionCheckboxAll.tsx b/components/table/SelectionCheckboxAll.tsx index 7900aa7f7..194b3c49b 100644 --- a/components/table/SelectionCheckboxAll.tsx +++ b/components/table/SelectionCheckboxAll.tsx @@ -126,11 +126,10 @@ export default defineComponent({ }, watch: { - $props: { + propsSymbol: { handler() { this.setCheckState(this.$props); }, - deep: true, }, }, diff --git a/components/table/Table.tsx b/components/table/Table.tsx index acc22fda3..73a7bd7b3 100755 --- a/components/table/Table.tsx +++ b/components/table/Table.tsx @@ -1034,6 +1034,7 @@ export default defineComponent({ selections={rowSelection.selections} hideDefaultSelections={rowSelection.hideDefaultSelections} getPopupContainer={this.generatePopupContainerFunc(getPopupContainer)} + propsSymbol={Symbol()} /> ); } diff --git a/components/table/interface.ts b/components/table/interface.ts index f916128d3..79d95e33f 100644 --- a/components/table/interface.ts +++ b/components/table/interface.ts @@ -178,6 +178,7 @@ export interface TableState { // } export const SelectionCheckboxAllProps = { + propsSymbol: PropTypes.any, store: Store, locale: PropTypes.any, disabled: PropTypes.looseBool,