該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>