Commit a0b28b44 authored by 王波's avatar 王波

表格列表增加key值

parent 14e976ef
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
</view> </view>
<table a:if="{{item.state === 0}}" fixedHeader maxBodyHeight="{{maxBodyHeight}}" class="winner-list-table" dataSource="{{item[listProp.content]}}"> <table a:if="{{item.state === 0}}" fixedHeader maxBodyHeight="{{maxBodyHeight}}" class="winner-list-table" dataSource="{{item[listProp.content]}}">
<table-column width="{{index === 0 ? 60 : ''}}" a:for="{{listProp.tableProps}}" title="{{item.title}}" dataIndex="{{item.value}}"> <table-column width="{{index === 0 ? 60 : ''}}" a:for="{{listProp.tableProps}}" key="{{index}}" title="{{item.title}}" dataIndex="{{item.value}}">
</table-column> </table-column>
</table> </table>
<view class="winner-no-finish" a:else> <view class="winner-no-finish" a:else>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment