{"id":16923186,"url":"https://github.com/originring/ng-table-custom-column","last_synced_at":"2025-07-23T03:07:35.556Z","repository":{"id":157849933,"uuid":"613785451","full_name":"OriginRing/ng-table-custom-column","owner":"OriginRing","description":"使用 ng-zorro-antd Table 实现自定义列选择","archived":false,"fork":false,"pushed_at":"2023-05-18T09:00:04.000Z","size":40233,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-13T07:12:25.308Z","etag":null,"topics":["angular","custom-columns","ng-custom-columns","ng-zorro-antd","table"],"latest_commit_sha":null,"homepage":"","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/OriginRing.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":"2023-03-14T09:13:06.000Z","updated_at":"2023-11-05T15:12:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"f7140b01-4943-468d-9e34-4d1a2d30198a","html_url":"https://github.com/OriginRing/ng-table-custom-column","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OriginRing/ng-table-custom-column","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginRing%2Fng-table-custom-column","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginRing%2Fng-table-custom-column/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginRing%2Fng-table-custom-column/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginRing%2Fng-table-custom-column/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OriginRing","download_url":"https://codeload.github.com/OriginRing/ng-table-custom-column/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OriginRing%2Fng-table-custom-column/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266609265,"owners_count":23955608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["angular","custom-columns","ng-custom-columns","ng-zorro-antd","table"],"created_at":"2024-10-13T19:58:07.406Z","updated_at":"2025-07-23T03:07:35.538Z","avatar_url":"https://github.com/OriginRing.png","language":"TypeScript","readme":"# 自定义表格列\n\n## 实现环境\n\n- angular 14\n- angular/cdk 14\n- ng-zorro-antd 14\n\n## 运行\n\n```shell\ngit clone https://github.com/OriginRing/ng-table-custom-column.git\ncd ng-table-custom-column\nnpm install\nnpm run start\n```\n\n## 实现原理\n\n参考 ag-grid 表格实现原理使用位移进行列排序，同时在保证不破坏 ng-zorro-antd table 写法的情况下实现该效果。\n\n采用 `flex` 布局，对 `flex` 容器内每个模块进行分配，利用 `order` 属性进行排序\n\n支持使用 `nzScroll` 和 虚拟滚动\n\n## 效果\n\n预览地址：[ng-table-custom-column](https://stackblitz.com/github/OriginRing/ng-table-custom-column)\n\n![img](https://github.com/OriginRing/ng-table-custom-row/blob/master/src/assets/image.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriginring%2Fng-table-custom-column","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foriginring%2Fng-table-custom-column","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foriginring%2Fng-table-custom-column/lists"}