这里以 APiselect组件的 onchange 示例
{
field: 'clusterId',
label: '集群:',
component: 'ApiSelect',
colProps: { span: 4, style: { paddingRight: '16px', marginBottom: '8px' } },
render: ({ model, field }) => {
return h(ApiSelect, {
value: model[field],
placeholder: '请选择',
api: ClusterApi.findNoPage,
labelField: 'name',
valueField: 'id',
onChange: (e: ChangeEvent) => {
curCluster.value = parseInt(e as string);
},
});
},
},