【vue.js】引用方式使用iView组件开发中遇到的问题

正确引用文件组件名

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

猜你喜欢

转载自blog.csdn.net/wendy_monkey/article/details/83544384
今日推荐