feat: improves fields configuration
This commit is contained in:
parent
6f0cd54fd8
commit
8d3e94e86b
@ -269,6 +269,7 @@ export default {
|
|||||||
name: 'target',
|
name: 'target',
|
||||||
title: '要关联的数据表',
|
title: '要关联的数据表',
|
||||||
required: true,
|
required: true,
|
||||||
|
createOnly: true,
|
||||||
component: {
|
component: {
|
||||||
type: 'remoteSelect',
|
type: 'remoteSelect',
|
||||||
showInDetail: true,
|
showInDetail: true,
|
||||||
@ -280,6 +281,14 @@ export default {
|
|||||||
valueField: 'name',
|
valueField: 'name',
|
||||||
},
|
},
|
||||||
"x-linkages": [
|
"x-linkages": [
|
||||||
|
{
|
||||||
|
type: "value:state",
|
||||||
|
target: "labelField",
|
||||||
|
condition: "{{ $self.inputed }}",
|
||||||
|
state:{
|
||||||
|
value: null,
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"type": "value:visible",
|
"type": "value:visible",
|
||||||
"target": "labelField",
|
"target": "labelField",
|
||||||
@ -438,8 +447,15 @@ export default {
|
|||||||
title: '所属数据表',
|
title: '所属数据表',
|
||||||
target: 'collections',
|
target: 'collections',
|
||||||
targetKey: 'name',
|
targetKey: 'name',
|
||||||
|
labelField: 'title',
|
||||||
component: {
|
component: {
|
||||||
type: 'drawerSelect',
|
type: 'drawerSelect',
|
||||||
|
// showInTable: true,
|
||||||
|
'x-component-props': {
|
||||||
|
resourceName: 'collections.fields',
|
||||||
|
labelField: 'title',
|
||||||
|
valueField: 'name',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user