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 { View } from './';
export const icon = <LoadingOutlined style={{ fontSize: 36 }} spin />;
export function Details(props) {
const {
onValueChange,
@ -288,6 +290,11 @@ export function SubTable(props: any) {
/>
<ReactDragListView {...dragProps}>
<AntdTable
loading={{
spinning: loading,
size: 'large',
indicator: icon,
}}
rowKey={rowKey}
dataSource={dataSource}
size={size}