perf: 树形过滤器基本逻辑

This commit is contained in:
fit2cloud-chenyw
2022-05-26 13:15:50 +08:00
parent f5241528ff
commit a0fb3a62ad
3 changed files with 8 additions and 6 deletions

View File

@@ -26,10 +26,10 @@ export const valueValid = condition => {
}
export const formatCondition = obj => {
const { component, value, operator } = obj
const { component, value, operator, isTree } = obj
const fieldId = component.options.attrs.fieldId
const viewIds = component.options.attrs.viewIds
const condition = new Condition(component.id, fieldId, operator, value, viewIds)
const condition = new Condition(component.id, fieldId, operator, value, viewIds, isTree)
return condition
}