iview 非 template/render 標簽轉換


在 非 template/render情形下使用 iview,發現除了官方的一些需要注意的點外,還有一些其他需要注意的,這里記錄下,防踩坑:

官方說明:

在非 template/render 模式下(例如使用 CDN 引用時),組件名要分隔,例如 DatePicker 必須要寫成 date-picker

以下組件,在非 template/render 模式下,需要加前綴 i-

  • Button: i-button
  • Col: i-col
  • Table: i-table
  • Input: i-input
  • Form: i-form
  • Menu: i-menu
  • Select: i-select
  • Option: i-option
  • Progress: i-progress
  • Time: i-time

以下組件,在所有模式下,必須加前綴 i-,除非使用 iview-loader

  • Switch: i-switch
  • Circle: i-circle

補充:(未完待續)

1、MenuItem:Menu-Item

2、RadioGroup:Radio-Group

3、<Icon / >:<Icon ></Icon>

4、FormItem:Form-Item


免責聲明!

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



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