tachybase_todo/docs/components/collection-fields/phone.md

30 lines
528 B
Markdown
Raw Normal View History

2021-10-31 11:35:11 +08:00
# Phone - 手机号码
## Interface
```ts
export const phone: FieldOptions = {
name: 'phone',
type: 'object',
group: 'basic',
order: 3,
title: '手机号码',
sortable: true,
default: {
dataType: 'string',
// name,
uiSchema: {
type: 'string',
// title,
'x-component': 'Input',
'x-decorator': 'FormItem',
'x-validator': 'phone',
'x-designable-bar': 'Input.DesignableBar',
},
},
properties: {
...defaultProps,
},
operations: string.operations,
};
```