vue ant design


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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM