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

530 B

RadioGroup - 单选框

Interface

export const radioGroup: FieldOptions = {
  name: 'radioGroup',
  type: 'object',
  group: 'choices',
  order: 4,
  title: '单选框',
  default: {
    dataType: 'string',
    // name,
    uiSchema: {
      type: 'string',
      // title,
      'x-component': 'Radio.Group',
      'x-decorator': 'FormItem',
      'x-designable-bar': 'Radio.DesignableBar',
    },
  },
  properties: {
    ...defaultProps,
    'uiSchema.enum': dataSource,
  },
  operations: select.operations,
};