0.1.5 • Published 7 years ago
v-qriously v0.1.5
vue-qrcode
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your tests
npm run testLints and fixes files
npm run lintHow to use
install
npm install --save v-qriouslyGenerate a qr code
<template>
<div id="app">
<span>这是使用二维码组件的example</span>
<qriously :value="qrCodeContent"></qriously>
</div>
</template>
<script>
import Qriously from 'v-qriously';
export default {
name: 'app',
data() {
return {
qrCodeContent:
'http://www.aecworks.cn',
};
},
components: {
Qriously,
},
};
</script>
<style>
#app {
text-align: center;
}
</style>How to publish
set registry: npm config set registry http://registry.npmjs.orglogin: npm login没有npm账号,注册
publish: npm publishnpm包package.json中name的值不能和npmjs网上已经发布的包的名字重复, private属性设为false,registory属性一定要填写,每次npm publish时package.json中version版本一定要大于上一次。