jy-saas-ui
v0.1.25
Published
专门为基源Saas项目提供的一款Vue2的组件库
Downloads
100
Readme
基源SaasUi
注意: 组件库的组件名一定要跟项目中的组件名不一致, 不然发布之后,会出现组件覆盖的情况
1.创建组件
2.命令行yarn build:com
3.在examples 项目中 调试组件
// main.js
import jySassUi from "../../dist/jy-saas-ui.umd";
import '../../dist/jy-saas-ui.css'
Vue.use(jySassUi);
4.调试成功联系tyz 提交npm 发布
5.发布
yarn build:com
#需要再package.json 改一下 version 不然会提交不上去
npm login
npm publish
6.项目中的使用
// main.js
// 前提:element-ui 在项目中是存在的
import jySassUi from 'jy-saas-ui'
import 'jy-saas-ui/dist/jy-saas-ui.css'
Vue.use(jySassUi);