修复Table传columns属性问题

This commit is contained in:
rickcole 2020-05-09 16:53:05 +08:00
parent 79ca800035
commit cea5749617
2 changed files with 2 additions and 1 deletions

View File

@ -132,6 +132,7 @@ export default class Table extends React.Component<TableProps, object> {
'itemActions', 'itemActions',
'combineNum', 'combineNum',
'items', 'items',
'columns',
'valueField', 'valueField',
'saveImmediately', 'saveImmediately',
'rowClassName', 'rowClassName',

View File

@ -1153,7 +1153,7 @@ export function chainEvents(props: any, schema: any) {
) { ) {
ret[key] = chainFunctions(schema[key], props[key]); ret[key] = chainFunctions(schema[key], props[key]);
} else { } else {
ret[key] = schema[key] ?? props[key]; ret[key] = props[key];
} }
}); });