项目
在 GitHub 查看
akumatus/FilterBuilder
关于
FilterBuilder is an UI component to create queries and filters. Based on vue 2.0.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文FilterBuilder
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.
探索相关项目
加载中…