25 lines
521 B
TypeScript
25 lines
521 B
TypeScript
import { ISchema } from '@formily/react';
|
|
import { defaultProps } from './properties';
|
|
|
|
export const attachment: ISchema = {
|
|
name: 'attachment',
|
|
type: 'object',
|
|
group: 'media',
|
|
title: '附件',
|
|
default: {
|
|
dataType: 'belongsToMany',
|
|
target: 'attachments',
|
|
// name,
|
|
uiSchema: {
|
|
type: 'array',
|
|
// title,
|
|
'x-component': 'Upload',
|
|
'x-decorator': 'FormItem',
|
|
'x-designable-bar': 'Upload.DesignableBar',
|
|
} as ISchema,
|
|
},
|
|
properties: {
|
|
...defaultProps,
|
|
},
|
|
};
|