正确引用文件组件名
- 在使用 CDN 引用时,即非 template/render 模式下,组件名要采用文件名小写,单词间用
-
分隔,例如RadioGroup
必须要写成radio-group
。 - 有一些特别组件在使用 CDN 引用时,即非template/render 模式下,需要加前缀
i-
,且组件名小写,相关组件如下所示:
iView组件名 | 非template/render 模式下的组件名 |
---|---|
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 |
- 除非使用iview-loader,在所有情况下,必须加
i-
前缀的组件如下所示:
iView组件名 | 非iview-loader情况下的组件名 |
---|---|
Switch | i-switch |
Circle | i-circle |