프로젝트
GitHub에서 보기
akumatus/FilterBuilder
소개
FilterBuilder is an UI component to create queries and filters. Based on vue 2.0.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalFilterBuilder
FilterBuilder is an UI component to create queries and filters. Based on vue 2.0 and bootstrap & AdminLTE.css
Use the FilterBuilder to construct queries of arbitrary complexity.
:chestnut: Here is a DEMO

###Usage Writing HTML like:
<and-or :options="options" :isFirst="isFirst" ref="andOr"></and-or>
Passing Pros like:
{
options: {
keys: [{
name: 'Choose Key',
id: -99
},{
name: 'Crash Number',
id: 134
},{
name: 'Daily Startup',
id: 256
}],
operators: [{
name: 'Choose Operator',
id: -99
},{
name: 'more',
id: '>'
},{
name: 'equal',
id: '='
},{
name: 'less',
id: '<'
}]
},
isFirst: true
}
Using queryFormStatus() function to get query result like:
{
"conditions": "AND",
"rules": [
{
"key": "2",
"operator": "more",
"value": "1"
},
{
"key": "2",
"operator": "equal",
"value": "3"
},
{
"conditions": "OR",
"rules": [
{
"key": "1",
"operator": "equal",
"value": "4"
},
{
"key": "3",
"operator": "equal",
"value": "5"
},
{
"conditions": "AND",
"rules": [
{
"key": "2",
"operator": "less",
"value": "6"
}
]
}
]
}
]
}
Using fillFormStatus() function to fill query into this component.
:cherries:Form validation & other addtional function is still in develop.
관련 프로젝트 살펴보기
불러오는 중…