fix(filter): fix can't filter boolean type problem

This commit is contained in:
Rairn 2023-03-14 01:12:38 +08:00
parent 9a1794a932
commit 9c60402153

View File

@ -62,7 +62,7 @@ export const useValues = () => {
const s2 = cloneDeep(operator?.schema); const s2 = cloneDeep(operator?.schema);
field.data.schema = merge(s1, s2); field.data.schema = merge(s1, s2);
field.data.dataIndex = dataIndex; field.data.dataIndex = dataIndex;
field.data.value = null; field.data.value = operator.noValue ? operator.default || true : null;
data2value(); data2value();
}, },
setOperator(operatorValue) { setOperator(operatorValue) {