self-btn
v0.1.3
Published
自定义按钮
Downloads
7
Readme
self-btn
调用方式
npm i self-btn -s
引入
import selfBtn from 'self-btn'
Vue.use(selfBtn)
调用
<self-btn>自定义按钮<self-btn>
vue组件发布到npm
需要设置npm源
npm config set registry https://registry.npmjs.org/
生成推送到npm包的内容
npm run lib
登录npm账号(输入账号、密码、邮箱)
npm login
发布到npm上,可以npm i 安装使用
npm publish
version版本不允许重复,每次发布都得改一下