{"id":44086982,"url":"https://github.com/j4dream/cs-table","last_synced_at":"2026-02-08T10:07:24.943Z","repository":{"id":39144363,"uuid":"258811635","full_name":"j4dream/cs-table","owner":"j4dream","description":"High performance table, react component","archived":false,"fork":false,"pushed_at":"2024-05-02T16:41:53.000Z","size":13283,"stargazers_count":6,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T02:51:34.798Z","etag":null,"topics":["react","reactjs","resizable","sheet","sorting","table","virtualized"],"latest_commit_sha":null,"homepage":"https://j4dream.github.io/cs-table/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/j4dream.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-04-25T15:38:41.000Z","updated_at":"2024-01-17T02:26:16.000Z","dependencies_parsed_at":"2024-12-18T08:45:35.626Z","dependency_job_id":null,"html_url":"https://github.com/j4dream/cs-table","commit_stats":{"total_commits":182,"total_committers":3,"mean_commits":"60.666666666666664","dds":0.2692307692307693,"last_synced_commit":"17226957035448b5b3ad84f54d8dff261d473dbb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/j4dream/cs-table","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4dream%2Fcs-table","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4dream%2Fcs-table/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4dream%2Fcs-table/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4dream%2Fcs-table/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j4dream","download_url":"https://codeload.github.com/j4dream/cs-table/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j4dream%2Fcs-table/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29227401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T09:43:19.170Z","status":"ssl_error","status_checked_at":"2026-02-08T09:42:55.556Z","response_time":57,"last_error":"SSL_read: 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":["react","reactjs","resizable","sheet","sorting","table","virtualized"],"created_at":"2026-02-08T10:07:24.189Z","updated_at":"2026-02-08T10:07:24.935Z","avatar_url":"https://github.com/j4dream.png","language":"TypeScript","readme":"# CS Table, virtualized Table\n\nSupports large amounts of data, built using react hooks.\n\n![image](https://d15k2d11r6t6rl.cloudfront.net/public/users/Integrators/30362ec0-6160-4873-be5a-3b39551a5a27/5539ea9f0cf2a3b799810f25/placeholder/demo.gif)\n\nInstall\n\n```\nnpm i virtualized-sc-table\n// or\nyarn add virtualized-sc-table\n```\n\n[文档 Docs](https://j4dream.github.io/cs-table/)  \n[CTable Online Demo](https://codesandbox.io/s/ctable-2l6l9)  \n[STable Online Demo](https://codesandbox.io/s/stable-cfehb)\n\n```javascript\nimport { CTable, STable } from 'virtualized-sc-table';\n\nconst header = [\n  {\n    label: 'Operation',\n    fixed: true,\n    prop: 'op',\n    width: 90,\n    renderHeader: (h, p) =\u003e \u003ca href=\"#\"\u003eOperation\u003c/a\u003e,\n    renderCell: () =\u003e \u003ca href=\"#\"\u003eOP\u003c/a\u003e,\n  },\n  {\n    label: 'Email (Fixed)',\n    fixed: true,\n    prop: 'email',\n  },\n];\nfor (let i = 0; i \u003c 200; i++) {\n  header.push({\n    label: `H ${i}`,\n    prop: `${i}`,\n  });\n}\n\nconst data = [];\nfor (let r = 0; r \u003c 10000; r++) {\n  const row = {};\n  for (let c = 0; c \u003c 200; c++) {\n    row[c] = `data ${r}:${c}`;\n  }\n  row['email'] = `test_${r}@email.com`;\n  data.push(row);\n}\n\n\u003cCTable\n  header={header}\n  data={data}\n  // renderCell={(record, prop) =\u003e record[prop]}\n  // renderHeader={(header, prop) =\u003e header[prop]}\n/\u003e;\n```\n\n## STable\n\nSheet can support grouping column header and row header.\n\n| props | default | Desc |\n| --- | --- | --- |\n| colHeader: Array | [] | required \\*, table header [{ label: 'Name', prop: 'name' }] |\n| rowHeader: Array | [] | required \\*, table header [{ label: 'Name', prop: 'name' }] |\n| data: Array | [] | required \\*, tabel data [{ name: 'DDR' }] |\n| renderCell: Function | (record, rowProp, colProp, data) =\u003e record |\n| cellWidth: number | 100 | config cell Width |\n| cellHeight: number | 40 | config cell Height |\n| enableColResize: boolean | false | support resize col|\n| enableColSorting: boolean | false | support drag \u0026 drog to sort colunm header |\n| enableRowResize: boolean | false | support resize col|\n| enableRowSorting: boolean | false | support drag \u0026 drog to sort row headr |\n\n\n## CTable\n\n| props | default | Desc |\n| --- | --- | --- |\n| header: Array | [] | required \\*, table header [{ label: 'Name', prop: 'name' }] |\n| data: Array | [] | required \\*, tabel data [{ name: 'DDR' }] |\n| preventScroll: Boolean | false | toggle scroll, prevent scroll |\n| keepScrollStatus: Boolean | false | when data or header update, keep scroll status, ortherwise scroll to {0, 0} |\n| enableResize: Boolean | false | resize col width |\n| renderCell: Function | (record, rowIndex, prop, header) =\u003e record |\n| renderHeader: Function | (header, prop) =\u003e header.label |\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj4dream%2Fcs-table","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj4dream%2Fcs-table","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj4dream%2Fcs-table/lists"}