{"id":16955098,"url":"https://github.com/wood3n/react-filter-component","last_synced_at":"2026-05-08T18:35:19.019Z","repository":{"id":225802907,"uuid":"761677583","full_name":"wood3n/react-filter-component","owner":"wood3n","description":"react filter component","archived":false,"fork":false,"pushed_at":"2024-03-13T14:38:08.000Z","size":1908,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T22:37:09.806Z","etag":null,"topics":["immerjs","react","reactcomponents","typescript"],"latest_commit_sha":null,"homepage":"https://wood3n.github.io/react-filter-component/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wood3n.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-22T09:29:41.000Z","updated_at":"2024-03-12T12:06:05.000Z","dependencies_parsed_at":"2024-10-03T17:34:59.611Z","dependency_job_id":"919befb6-474a-4e76-b3c4-99da0ebaf6c8","html_url":"https://github.com/wood3n/react-filter-component","commit_stats":null,"previous_names":["wood3n/react-filter-component"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wood3n/react-filter-component","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wood3n%2Freact-filter-component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wood3n%2Freact-filter-component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wood3n%2Freact-filter-component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wood3n%2Freact-filter-component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wood3n","download_url":"https://codeload.github.com/wood3n/react-filter-component/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wood3n%2Freact-filter-component/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32792364,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["immerjs","react","reactcomponents","typescript"],"created_at":"2024-10-13T22:11:19.898Z","updated_at":"2026-05-08T18:35:18.991Z","avatar_url":"https://github.com/wood3n.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react filter\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"200px\" height=\"200px\" src=\"./website/docs//public/react-filter.png\"\u003e\n\u003c/p\u003e\n\n[![npm version](https://badge.fury.io/js/@react-filter%2Fantd.svg)](https://badge.fury.io/js/@react-filter%2Fantd)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n\n## 安装\n\n```shell\npnpm add @react-filter/antd\n```\n\n## 使用\n\n```jsx\nimport { ReactFilter } from '@react-filter/antd';\n\n\u003cReactFilter /\u003e;\n```\n\n## API\n\n| 属性           | \u003cdiv style=\"width: 160\"\u003e说明\u003c/div\u003e     | 类型              | 默认值                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |\n| :------------- | -------------------------------------- | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `defaultValue` | 组件初始化默认值                       | `object`          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |\n| `value`        | 组件值                                 | `object`          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |\n| `onChange`     | 组件值改变回调                         | `(value) =\u003e void` |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |\n| `connectors`   | 条件组关系，默认且和或                 | `SelectOption[]`  | `{ label: '且', value: 'AND' }`\u003cbr /\u003e`{ label: '或', value: 'OR' }`                                                                                                                                                                                                                                                                                                                                                                                                                                                            |\n| `operators`    | 条件表达式操作符，例如`大于`、`小于`等 | `SelectOption[]`  | `{ label: \"等于\", \"value\": \"equal\"}`\u003cbr /\u003e`{ \"label\": \"不等于\",        \"value\": \"not_equal\"}`\u003cbr /\u003e`{ \"label\": \"大于\", \"value\": \"greater\"    }`\u003cbr /\u003e`{ \"label\": \"大于等于\", \"value\": \"greater_equal\" }`\u003cbr /\u003e`{       \"label\": \"小于\", \"value\": \"less\" }` \u003cbr /\u003e`{ \"label\": \"小于等于\", \"value\": \"less_equal\" }`\u003cbr /\u003e`{ \"label\": \"包含\", \"value\": \"in\"    }`\u003cbr /\u003e`{ \"label\": \"不包含\", \"value\": \"not_in\" }`\u003cbr /\u003e`{        \"label\": \"模糊匹配\", \"value\": \"like\" }`\u003cbr /\u003e`{ \"label\": \"不匹配\",        \"value\": \"not_like\" }` |\n| `fieldNames`   | 组件值字段名称                         | `FieldNameMap`    | `{connector: 'connector', filters: 'filters',  left: 'left', operator: 'operator', value: 'value'}`                                                                                                                                                                                                                                                                                                                                                                                                                            |\n\n### interface\n\n```typescript\ninterface SelectOption {\n  label: React.ReactNode;\n  value: string | number | boolean;\n}\n```\n\n```typescript\ninterface FieldNameMap {\n  connector?: string;\n  filters?: string;\n  left?: string;\n  operator?: string;\n  value?: string;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwood3n%2Freact-filter-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwood3n%2Freact-filter-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwood3n%2Freact-filter-component/lists"}