tachybase_todo/docs/components/collection-fields/radio-group.md

29 lines
530 B
Markdown
Raw Normal View History

2021-10-31 11:35:11 +08:00
# RadioGroup - 单选框
## Interface
```ts
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,
};
```