mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 勾选框-属性-默认勾选配置项的fx配置项未生效
This commit is contained in:
parent
4ec41cc4ac
commit
cfc41c26f4
@ -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'),
|
||||
|
Loading…
Reference in New Issue
Block a user