fix: table empty datasource error #3082

This commit is contained in:
tanjinzhou 2020-11-02 17:19:09 +08:00
parent 71a3691edc
commit aca5301dc0
3 changed files with 3 additions and 2 deletions

View File

@ -126,11 +126,10 @@ export default defineComponent({
},
watch: {
$props: {
propsSymbol: {
handler() {
this.setCheckState(this.$props);
},
deep: true,
},
},

View File

@ -1034,6 +1034,7 @@ export default defineComponent({
selections={rowSelection.selections}
hideDefaultSelections={rowSelection.hideDefaultSelections}
getPopupContainer={this.generatePopupContainerFunc(getPopupContainer)}
propsSymbol={Symbol()}
/>
);
}

View File

@ -178,6 +178,7 @@ export interface TableState {
// }
export const SelectionCheckboxAllProps = {
propsSymbol: PropTypes.any,
store: Store,
locale: PropTypes.any,
disabled: PropTypes.looseBool,