为什么使用ng-repeat出来的不能排序
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- angularjs
- 领域
- frontend
调研方向
首先使用 AngularJS ng-repeat 重现表格标记,并检查可排序表格如何针对动态生成的表头和行进行初始化。确认为什么只有第一列可以排序,然后验证每个生成的列都能正确排序,同时不破坏现有的表格行为。
由索引模型根据 Issue 内容生成。
描述
<table data-sortable class="tableMax table-striped sortable-theme-bootstrap" style="margin-top:
30px;" >
<thead>
<tr>
<th>{{desc}}</th>
<th ng-repeat="i in tableKeyList" >{{i.desc}}<span></span></th>
</tr>
</thead>
<tbody>
<tr ng-repeat="item in items|orderBy:col:desc">
<td>{{item[dimension]}}</td>
<td ng-repeat="i in tableKeyList">{{item[i.field]}}</td>
</tr>
</tbody>
</table>

只能第一列排序,其它列不能排序啊
- 主要语言
- CSS
- 星标
- 1.3k
- 派生
- 110
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
HubSpot/sortable 的其他 Issue
-
Merge PRs未关闭
难度 5/5 一周以上 新手友好度 15/100
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 25/100
-
Documentation未关闭
难度 1/5 1 小时以内 新手友好度 45/100
-
难度 2/5 1-3 小时 新手友好度 52/100
相似的 Issue
-
In a half-screen window, the title bar cuts the workspace and version names until they can't be read未关闭bug launch local use macOS Windows
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Bug
难度 2/5 1-3 小时 新手友好度 61/100
keiyoushi/extensions-source#20494 · 1 个 reaction ·
维护者通常 1 天内回复
-
a10y a10y-audit ai-driven-qa claude
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
awslabs/visual-asset-management-system#878 ·
维护者通常 1 天内回复
-
type: enhancement
难度 2/5 1-3 小时 新手友好度 62/100
franciscoBSalgueiro/en-croissant#1061 ·
维护者通常 3 天内回复