fix: sub-table loading

This commit is contained in:
chenos 2021-04-01 21:17:26 +08:00
parent b8b5940205
commit d7dbad1ba8

View File

@ -27,6 +27,8 @@ import Field from '@/components/views/Field';
import { Form } from './Form'; import { Form } from './Form';
import { View } from './'; import { View } from './';
export const icon = <LoadingOutlined style={{ fontSize: 36 }} spin />;
export function Details(props) { export function Details(props) {
const { const {
onValueChange, onValueChange,
@ -288,6 +290,11 @@ export function SubTable(props: any) {
/> />
<ReactDragListView {...dragProps}> <ReactDragListView {...dragProps}>
<AntdTable <AntdTable
loading={{
spinning: loading,
size: 'large',
indicator: icon,
}}
rowKey={rowKey} rowKey={rowKey}
dataSource={dataSource} dataSource={dataSource}
size={size} size={size}