修复 dialog 的 size 无效的问题

This commit is contained in:
2betop 2020-05-14 14:33:55 +08:00
parent 65cb97f0db
commit 9e77eca421

View File

@ -37,7 +37,7 @@ interface CRUDProps extends RendererProps {
defaultParams: object;
syncLocation?: boolean;
primaryField?: string;
mode?: 'table' | 'grid' | 'cards' /* grid 的别名*/ | 'list';
mode?: 'table' | 'grid' | 'cards' | /* grid 的别名*/ 'list';
toolbarInline?: boolean;
toolbar?: SchemaNode; // 不推荐,但是还是要兼容老用法。
headerToolbar?: SchemaNode;
@ -119,7 +119,8 @@ export default class CRUD extends React.Component<CRUDProps, any> {
'loadDataOnceFetchOnFilter',
'source',
'header',
'columns'
'columns',
'size'
];
static defaultProps = {
toolbarInline: true,
@ -1346,9 +1347,9 @@ export default class CRUD extends React.Component<CRUDProps, any> {
}
return (
<div className={cx('Crud-statistics')}>{`${store.page +
'/' +
store.lastPage}${store.total}`}</div>
<div className={cx('Crud-statistics')}>{`${
store.page + '/' + store.lastPage
}${store.total}`}</div>
);
}