mirror of https://github.com/certd/certd
🔱: [client] sync upgrade with 3 commits [trident-sync]
refactor: 1.13.4 perf: 服务端过滤示例pull/14/head
parent
49487419d2
commit
c9ac5ae963
|
@ -3,6 +3,16 @@
|
|||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.13.4](https://github.com/fast-crud/fast-crud/compare/v1.13.3...v1.13.4) (2023-05-06)
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* 1.13.3 ([451bd53](https://github.com/fast-crud/fast-crud/commit/451bd5390ce88fcbb875d39a39c88b3226f46b4e))
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* naiveui sortable示例完善 ([dcd9e5b](https://github.com/fast-crud/fast-crud/commit/dcd9e5b04df7bda352878f4f1e30874ab9a6f452))
|
||||
|
||||
## [1.13.3](https://github.com/fast-crud/fast-crud/compare/v1.13.2...v1.13.3) (2023-05-04)
|
||||
|
||||
### Bug Fixes
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@fast-crud/fs-admin-antdv",
|
||||
"version": "1.13.3",
|
||||
"version": "1.13.4",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
@ -26,10 +26,10 @@
|
|||
"@aws-sdk/client-s3": "^3.292.0",
|
||||
"@aws-sdk/s3-request-presigner": "^3.292.0",
|
||||
"@fast-crud/fast-bpmn": "^1.0.14",
|
||||
"@fast-crud/fast-crud": "^1.13.3",
|
||||
"@fast-crud/fast-extends": "^1.13.3",
|
||||
"@fast-crud/ui-antdv": "^1.13.3",
|
||||
"@fast-crud/ui-interface": "^1.13.3",
|
||||
"@fast-crud/fast-crud": "^1.13.4",
|
||||
"@fast-crud/fast-extends": "^1.13.4",
|
||||
"@fast-crud/ui-antdv": "^1.13.4",
|
||||
"@fast-crud/ui-interface": "^1.13.4",
|
||||
"@iconify/iconify": "^3.1.0",
|
||||
"@iconify/json": "^2.2.35",
|
||||
"@purge-icons/generated": "^0.9.0",
|
||||
|
|
|
@ -27,8 +27,16 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||
},
|
||||
table: {
|
||||
// 表头过滤改变事件
|
||||
onFilterChange(e: any) {
|
||||
console.log("onFilterChange", e);
|
||||
onFilterChange(filters: any) {
|
||||
console.log("onFilterChange", filters);
|
||||
if (filters.remote != null) {
|
||||
crudExpose.setSearchFormData({
|
||||
form: {
|
||||
remote: filters.remote
|
||||
}
|
||||
});
|
||||
crudExpose.doRefresh();
|
||||
}
|
||||
}
|
||||
},
|
||||
columns: {
|
||||
|
@ -44,7 +52,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||
}
|
||||
},
|
||||
radio: {
|
||||
title: "状态",
|
||||
title: "本地过滤",
|
||||
search: { show: true },
|
||||
type: "dict-radio",
|
||||
dict: dict({
|
||||
|
@ -64,6 +72,26 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti
|
|||
sorter: (a: any, b: any) => a.radio - b.radio,
|
||||
sortDirections: ["descend"]
|
||||
}
|
||||
},
|
||||
remote: {
|
||||
title: "支持服务端过滤",
|
||||
search: {
|
||||
show: true,
|
||||
component: {
|
||||
mode: "multiple"
|
||||
}
|
||||
},
|
||||
type: "dict-radio",
|
||||
dict: dict({
|
||||
url: "/mock/dicts/OpenStatusEnum?single"
|
||||
}),
|
||||
column: {
|
||||
filters: [
|
||||
{ text: "开", value: "1" },
|
||||
{ text: "关", value: "0" },
|
||||
{ text: "停", value: "2" }
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,13 +5,16 @@ const options: any = {
|
|||
};
|
||||
const list = [
|
||||
{
|
||||
radio: "1"
|
||||
radio: "1",
|
||||
remote: "0"
|
||||
},
|
||||
{
|
||||
radio: "2"
|
||||
radio: "2",
|
||||
remote: "1"
|
||||
},
|
||||
{
|
||||
radio: "0"
|
||||
radio: "0",
|
||||
remote: "2"
|
||||
}
|
||||
];
|
||||
options.list = list;
|
||||
|
|
Loading…
Reference in New Issue