@aecworks/vue-qrcode 中文文档教程

发布于 4 年前 浏览 1 项目主页 更新于 2 年前

vue-qrcode

使用vue cli 3 封装的qrcode组件

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

How to use

install

npm install --save @aecworks/vue-qrcode

Generate 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
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文