2.0.0 • Published 7 years ago
@aecworks/vue-qrcode v2.0.0
vue-qrcode
使用vue cli 3 封装的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 @aecworks/vue-qrcodeGenerate a qr code
<template>
<div id="app">
<span>这是使用二维码组件的example</span>
<qriously :value="qrCodeContent"></qriously>
</div>
</template>
<script>
import Qriously from '@aecworks/vue-qrcode';
export default {
name: 'app',
data() {
return {
qrCodeContent:
'http://www.aecworks.cn',
};
},
components: {
Qriously,
},
};
</script>
<style>
#app {
text-align: center;
}
</style>Keywords
vue-qrcode