mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-01 11:47:51 +08:00
fix: improve createdBy/updatedBy default options
This commit is contained in:
parent
110d5bcc9c
commit
a351d52226
@ -3,6 +3,8 @@ import { TableOptions } from '@nocobase/database';
|
||||
export default {
|
||||
title: '示例',
|
||||
showInDataMenu: true,
|
||||
createdBy: true,
|
||||
updatedBy: true,
|
||||
fields: [
|
||||
{
|
||||
interface: 'string',
|
||||
|
@ -340,12 +340,16 @@ export const linkTo = {
|
||||
|
||||
export const createdBy = {
|
||||
title: '创建者',
|
||||
disabled: true,
|
||||
// disabled: true,
|
||||
options: {
|
||||
interface: 'createdBy',
|
||||
type: 'belongsTo',
|
||||
type: 'createdBy',
|
||||
name: 'createdBy',
|
||||
filterable: true,
|
||||
target: 'users',
|
||||
labelField: 'nickname',
|
||||
foreignKey: 'created_by_id',
|
||||
appends: true,
|
||||
component: {
|
||||
type: 'drawerSelect',
|
||||
},
|
||||
@ -372,12 +376,16 @@ export const createdAt = {
|
||||
|
||||
export const updatedBy = {
|
||||
title: '更新人',
|
||||
disabled: true,
|
||||
// disabled: true,
|
||||
options: {
|
||||
interface: 'updatedBy',
|
||||
name: 'updatedBy',
|
||||
type: 'belongsTo',
|
||||
type: 'updatedBy',
|
||||
filterable: true,
|
||||
target: 'users',
|
||||
labelField: 'nickname',
|
||||
foreignKey: 'created_by_id',
|
||||
appends: true,
|
||||
component: {
|
||||
type: 'drawerSelect',
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user