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

37 lines
734 B
Markdown

# UpdatedBy - 最后修改人
## Interface
```ts
export const updatedBy: FieldOptions = {
name: 'updatedBy',
type: 'object',
group: 'systemInfo',
order: 4,
title: '最后修改人',
isAssociation: true,
default: {
dataType: 'belongsTo',
target: 'users',
foreignKey: 'updated_by_id',
// name,
uiSchema: {
type: 'object',
title: '最后修改人',
'x-component': 'Select.Drawer',
'x-component-props': {
fieldNames: {
value: 'id',
label: 'nickname',
},
},
'x-decorator': 'FormItem',
'x-read-pretty': true,
'x-designable-bar': 'Select.Drawer.DesignableBar',
},
},
properties: {
...defaultProps,
},
};
```