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

30 lines
621 B
TypeScript

import { ISchema } from '@formily/react';
import { defaultProps } from './properties';
export const string: ISchema = {
name: 'string',
type: 'object',
group: 'basic',
order: 1,
title: '单行文本',
default: {
interface: 'string',
dataType: 'string',
// name,
uiSchema: {
type: 'string',
// title,
'x-component': 'Input',
'x-decorator': 'FormItem',
'x-designable-bar': 'Input.DesignableBar',
} as ISchema,
},
properties: {
...defaultProps,
},
operations: [
{ label: '等于', value: 'eq' },
{ label: '不等于', value: 'ne' },
],
};