tachybase_todo/docs/components/collection-fields/phone.md
2021-10-31 11:35:11 +08:00

528 B

Phone - 手机号码

Interface

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,
};