vue iview 之使用

注意 以前1.0时候的iview   只适用vue 1.x 的;

2.0官网:

https://www.iviewui.com/components/cascader

 

安装

npm install [email protected] --save  这个是安装1.0的。。。现在vue2.0 了 用不了!

npm install view-design --save    使用这个安装 2.0的。。。
npm WARN notsup Unsupported engine for [email protected]: wanted: {"node":">=8.11.4","npm":"6.4.1"} (current: {"node":"10.15.3","npm":"6.12.0"})
npm WARN notsup Not compatible with your version of node/npm: [email protected]
npm WARN [email protected] requires a peer of ajv@^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of vue@^1.0.17 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ [email protected]
added 10 packages from 12 contributors in 11.878s
 

 cascader 之使用 

  首先 其数据格式要严格按照官网的  label  value  children;等等 ; 要不然会出错

先写这些 以后再补充;


  
  

 友好的一点是添加了插槽。。随便给里面加东西//完美的。 比element ui 更自由;

 

vue 快要正式使用3.0了。。。最好 最自由的是自己写组件。。弄自己项目需要的,,,,现在项目紧,偷懒下 先用iview 的

good good study dayday up

 

你可能感兴趣的:(vue,iview)