szjy-new-ui
v1.0.6
Published
以组件VideoJsj为例,引入后直接放入arrylist数组里面
Downloads
7
Readme
szjy-ui 组件库封装流程
1、在components封装组件 组件name保持唯一性 再在src目录下的index.js里面引入
以组件VideoJsj为例,引入后直接放入arrylist数组里面
注:组件封装完成后可在app.vue里面引入查看组件是否能正常展示
2、npm打包发布
npm官网注册账号地址: https://www.npmjs.com/ 使用npm adduser 添加账号密码后再使用 npm login登录
使用 npm run lib 命令打包 生成一个lib的文件夹
每次发布之前需要修改package.json 里面的version 版本号 依此加1即可 例:1.0.6 =》1.0.7
再使用 npm publish 发布