iview 非 template/render 标签转换

在 非 template/render情形下使用 iview,发现除了官方的一些须要注意的点外,还有一些其余须要注意的,这里记录下,防踩坑:iview

官方说明:ide

在非 template/render 模式下(例如使用 CDN 引用时),组件名要分隔,例如 DatePicker 必需要写成 date-pickerui

如下组件,在非 template/render 模式下,须要加前缀 i-code

  • 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-loaderorm

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

补充:(未完待续)ci

一、MenuItem:Menu-Itemget

二、RadioGroup:Radio-Groupinput

三、<Icon / >:<Icon ></Icon>it

四、FormItem:Form-Itemio

相关文章
相关标签/搜索