export const searchFormSchema FormSchema = label 库存数量 field Quantity component Checkbox defaultValue null componentProps checkedValue 0 复选框选中时的值 uncheckedValue null 复选框未选
export const searchFormSchema: FormSchema[] = [{ label: '库存数量', field: 'Quantity', component: 'Checkbox', defaultValue: null, componentProps: { checkedValue: 0, // 复选框选中时的值 uncheckedValue: null, // 复选框未选中时的值 }, renderComponentContent: '库存为0', onChange: (value) => { if (value) { // 当checkbox选中时,查询数据库里库存数量为0的数据 // 执行相应的操作 } }, }];
原文地址: https://www.cveoy.top/t/topic/iLSn 著作权归作者所有。请勿转载和采集!