fix: 勾选框-属性-默认勾选配置项的fx配置项未生效

This commit is contained in:
wutong25 2023-06-27 17:51:09 +08:00
parent 4ec41cc4ac
commit cfc41c26f4

View File

@ -148,14 +148,14 @@ export class CheckboxControlPlugin extends BasePlugin {
needDeleteProps: ['option'],
label: '默认勾选',
rendererWrapper: true, // 浅色线框包裹一下,增加边界感
valueType: 'boolean',
pipeIn: (value: any, data: any) => {
return value === (data?.data?.trueValue ?? true);
},
pipeOut: (value: any, origin: any, data: any) => {
const {trueValue = true, falseValue = false} = data;
return value ? trueValue : falseValue;
}
valueType: 'boolean'
// pipeIn: (value: any, data: any) => {
// return value === (data?.data?.trueValue ?? true);
// },
// pipeOut: (value: any, origin: any, data: any) => {
// const {trueValue = true, falseValue = false} = data;
// return value ? trueValue : falseValue;
// }
}),
getSchemaTpl('labelRemark'),
getSchemaTpl('remark'),