{"id":18965609,"url":"https://github.com/cczx/react-sort-table","last_synced_at":"2026-05-05T08:32:01.069Z","repository":{"id":105697607,"uuid":"324520002","full_name":"CCZX/react-sort-table","owner":"CCZX","description":"可拖拽排序的react表格组件","archived":false,"fork":false,"pushed_at":"2021-01-17T15:59:33.000Z","size":653,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-03T18:52:39.725Z","etag":null,"topics":["component","drag-and-drop","react","sort","storybook","table","tsdx"],"latest_commit_sha":null,"homepage":"","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/CCZX.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":"2020-12-26T09:15:02.000Z","updated_at":"2021-01-17T15:59:36.000Z","dependencies_parsed_at":"2023-06-13T00:30:50.321Z","dependency_job_id":null,"html_url":"https://github.com/CCZX/react-sort-table","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CCZX/react-sort-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCZX%2Freact-sort-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCZX%2Freact-sort-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCZX%2Freact-sort-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCZX%2Freact-sort-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CCZX","download_url":"https://codeload.github.com/CCZX/react-sort-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CCZX%2Freact-sort-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32642007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["component","drag-and-drop","react","sort","storybook","table","tsdx"],"created_at":"2024-11-08T14:30:24.678Z","updated_at":"2026-05-05T08:32:01.045Z","avatar_url":"https://github.com/CCZX.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A react table component that can be dragged and sorted\n\n## install\n\n```bash\n// npm\nnpm install react-drag-sort-table\n\n// yarn\nyarn add react-drag-sort-table\n```\n## use\n\n```js\nimport DragSortTable from 'react-drag-sort-table'\nimport 'react-drag-sort-table/dist/dist.min.css'\n```\n## API\n\n### Table\n\n|  prop   | description  | 类型 | required | default value |\n|  ----   |     ----     |      ----     |   ----   |  ----   |\n| dataSource | 数据数组 | object[] | true | [] |\n| columns |  |  | true |  |\n| canDragSort | 是否使用拖拽排序 | boolean | false | rue |\n| canAdjustWidth | 是否可以调整宽度 |   | false |  |\n| customDragSortIcon |  |   | false |  |\n| align |  |   | false |  |\n| onSortDataSource | dataSource顺序改变处理函数，参数分别是当前的值，当前行的值，当前行索引 | (text, rowData, index) =\u003e void | true |  |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcczx%2Freact-sort-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcczx%2Freact-sort-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcczx%2Freact-sort-table/lists"}