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

648 B

CreatedAt - 添加时间

Interface

export const createdAt: FieldOptions = {
  name: 'createdAt',
  type: 'object',
  group: 'systemInfo',
  order: 1,
  title: '添加时间',
  sortable: true,
  default: {
    dataType: 'date',
    field: 'created_at',
    // name,
    uiSchema: {
      type: 'datetime',
      title: '添加时间',
      'x-component': 'DatePicker',
      'x-component-props': {},
      'x-read-pretty': true,
      'x-decorator': 'FormItem',
      'x-designable-bar': 'DatePicker.DesignableBar',
    },
  },
  properties: {
    ...defaultProps,
    ...dateTimeProps,
  },
  operations: datetime.operations,
};