tachybase_todo/packages/client/src/schemas/database-field/interfaces/attachment.ts
2021-07-23 12:34:15 +08:00

29 lines
621 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,
},
operations: [
{ label: '等于', value: 'eq' },
{ label: '不等于', value: 'ne' },
],
};