该ui组件和element-ui组件有很大的区别,

vue-ant design中,a-table要给每一行添加一个rowkey,要不然会报各种各样地 错误

eg:

<a-table :rowSelection="rowSelection" :rowKey="showRecord" :columns="columns1" :dataSource="dataSource1" :pagination="false"  >
</a-table>
showRecord(record,index){
return index;
},

用select时遇到一个很奇怪的问题:
本来数组的名字时info的,但这样做的时候下拉框失效,v-model也失效,将info换成infolist的时候就可以了
<a-select v-model="informMethod">
<a-select-option v-for="item in infolist" :value="item.id" :key="item.id">{{item.label}}</a-select-option>
</a-select>

分类:

技术点:

相关文章: