iview階段性問題總結

一、iview根據條件控制樣式iview

<Card :class="{'nodate-content':item.rentSituation='空','renting-content':item.rentSituation == '滿','overdue-content':item.endDate>nowDate}" style="border-radius:5px;">
</Card>

二、iview模態框只要點擊肯定就本身關閉,怎麼阻止iview模態框關閉 使用slot插入自定義的底部按鈕組就不會存在不可阻斷的問題,即在模態框層最底層加以下代碼:ui

<div slot="footer">
           <Button type="text" size="large" @click="improtDialogVisible=false">取消</Button>
           <Button type="primary" size="large" @click="importBuildDada()">肯定</Button>
 </div>

https://blog.csdn.net/qq_16371909/article/details/82800427.net

三、作自定義驗證時,對象裏的字段必先聲明code

四、問題:修改組件名後,報錯 解決:如下必定要拼寫一致,也就是unit-add-or-update必定命名爲UnitAddOrUpdate,不能對象

五、iview Radio 綁定數字,按照官方給的例子,label是字符串,默認選中是沒有問題的,若是label是數字,就沒法選中了,使用:label http://www.javashuo.com/article/p-dixmuazj-kx.htmlblog

六、Checkbox要獲取除了true和false的值,:true-value,:false-value同時賦值,且不能同樣 字符串

相關文章
相關標籤/搜索