mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 02:58:10 +08:00
perf: 树形过滤器基本逻辑
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user