| | |
| | | <!-- 删除按钮 --> |
| | | <!--cl-multi-delete-btn /--> |
| | | <cl-flex1 /> |
| | | <cl-filter label="日期"> |
| | | <cl-date-picker type="daterange" /> |
| | | </cl-filter> |
| | | <!-- 条件搜索 --> |
| | | <cl-search ref="Search" /> |
| | | </cl-row> |
| | |
| | | }); |
| | | |
| | | // cl-search |
| | | const Search = useSearch(); |
| | | function hideDateSearch({ exposed }: { exposed: any }) { |
| | | const items = exposed.config?.items as { prop?: string }[] | undefined; |
| | | const index = items?.findIndex(e => e.prop === "date") ?? -1; |
| | | if (index >= 0) items?.splice(index, 1); |
| | | } |
| | | |
| | | const Search = useSearch({ |
| | | plugins: [hideDateSearch] |
| | | }); |
| | | |
| | | // cl-crud |
| | | const Crud = useCrud( |