码迷,mamicode.com
首页 > 其他好文 > 详细

在vue里面使用iVew框架

时间:2018-06-29 14:08:54      阅读:2948      评论:0      收藏:0      [点我收藏+]

标签:ica   guid   .com   文档   self   3.2   style   critical   引入   

iVew框架的文档   https://www.iviewui.com/docs/guide/install

这里使用的是 npm 来安装,在项目下执行下面命令npm install iview --save:

$ npm install iview --save

npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ iview@2.14.3
added 10 packages from 12 contributors and audited 32865 packages in 17.509s
found 7 vulnerabilities (1 low, 1 moderate, 4 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details

在main.js 里面引入:

import iView from ‘iview‘;
import ‘iview/dist/styles/iview.css‘;

Vue.use(iView);

然后在页面中使用:

技术分享图片

运行就可以看到实现的效果  :)

上面是全部引入该组件库,如果仅使用里面的部分组件,也可以选择按需引入

 

在vue里面使用iVew框架

标签:ica   guid   .com   文档   self   3.2   style   critical   引入   

原文地址:https://www.cnblogs.com/stella1024/p/8298081.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!