fix: table empty datasource error #3082

pull/3089/head
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: { watch: {
$props: { propsSymbol: {
handler() { handler() {
this.setCheckState(this.$props); this.setCheckState(this.$props);
}, },
deep: true,
}, },
}, },

View File

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

View File

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