yao/tests/libs/filter.json
2021-11-06 15:11:53 +08:00

47 lines
1.1 KiB
JSON

{
"关键词": {
"__comment": "filter.关键词('where.name.match')",
"label": "关键词",
"bind": "{{$in.0}}",
"input": {
"type": "input",
"props": {
"placeholder": "请输入关键词"
}
}
},
"排序": {
"__comment": "filter.排序()",
"label": "排序方式",
"bind": "order",
"input": {
"type": "select",
"props": {
"placeholder": "排序方式",
"options": [
{ "label": "手动顺序", "value": "rank" },
{ "label": "最近更新", "value": "updated_at.desc" },
{ "label": "最近创建", "value": "created_at.desc" }
]
}
}
},
"客户状态": {
"__comment": "filter.客户状态()",
"label": "状态",
"bind": "where.status.in",
"input": {
"type": "select",
"props": {
"placeholder": "选择厂商状态",
"mode": "multiple",
"options": [
{ "value": "已注册" },
{ "value": "待收录" },
{ "value": "待审核" },
{ "value": "已禁用" }
]
}
}
}
}