个人认为比ifshow好用
table中这样
{
field: 'sequencingPlatform',
label: '学校:',
component: 'Input',
colProps: {
span: 20,
offset: 2,
},
componentProps: {
placeholder: ' ',
},
},
用updateSchema修改类型
updateSchema({
field: 'sequencingPlatform',
component: 'Select',
required: true,
componentProps: {
options: [
{
label: '下拉1',
value: '下拉1',
key: '1',
},
{
label: '下拉2',
value: '下拉2',
key: '2',
},
],
},
});