Skip to content

Commit aca5301

Browse files
committed
fix: table empty datasource error #3082
1 parent 71a3691 commit aca5301

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

components/table/SelectionCheckboxAll.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,10 @@ export default defineComponent({
126126
},
127127

128128
watch: {
129-
$props: {
129+
propsSymbol: {
130130
handler() {
131131
this.setCheckState(this.$props);
132132
},
133-
deep: true,
134133
},
135134
},
136135

components/table/Table.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,7 @@ export default defineComponent({
10341034
selections={rowSelection.selections}
10351035
hideDefaultSelections={rowSelection.hideDefaultSelections}
10361036
getPopupContainer={this.generatePopupContainerFunc(getPopupContainer)}
1037+
propsSymbol={Symbol()}
10371038
/>
10381039
);
10391040
}

components/table/interface.ts

+1
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export interface TableState {
178178
// }
179179

180180
export const SelectionCheckboxAllProps = {
181+
propsSymbol: PropTypes.any,
181182
store: Store,
182183
locale: PropTypes.any,
183184
disabled: PropTypes.looseBool,

0 commit comments

Comments
 (0)