vgg-filter
v3.3.9
Published
Filter
Downloads
77
Readme
Filter 组件
安装依赖
npm install vgg-filter
开始使用
main.js文件中引入并注册
import VggFilter from 'vgg-filter';
Vue.use(VggFilter);
参数
dataArr: [ { "label": "First Name", "type": "string", "operator": [ { "operator": "LIST_NOT_CONTAINS", "label": "doesn't contains exactly", "inputType": "SINGLE_SELECT", "options": [ { 'value': "true", 'label': 'true' }, { 'value': "false", 'label': 'false' } ] }, { "operator": "LIST_NOT_CONTAINS", "label": "doesn't contains exactly", "inputType": "NONE", "options": [ { 'value': "true", 'label': 'true' }, { 'value': "false", 'label': 'false' } ] } ] } ]
事件
applyFilter(obj) obj: [ { "operator": "IS_KNOWN | IS_UNKNOWN | IN | NOT_IN | EQUAL | NOT_EQUAL | GREATER_THAN | GREATER_OR_EQUAL | LESS_THAN | LESS_OR_EQUAL | BETWEEN_IN | LIST_CONTAINS | LIST_NOT_CONTAINS | DATE_IS | DATE_IS_EQUAL", "property":"", "value": [] //任何情况都传数组 } ]
vgg-filter
A Vue.js project
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
For detailed explanation on how things work, consult the docs for vue-loader.