0.1.5 • Published 6 years ago

v-qriously v0.1.5

Weekly downloads
39
License
-
Repository
-
Last release
6 years ago

vue-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 v-qriously

Generate 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.org
login: npm login

没有npm账号,注册

publish: npm publish

npm包package.json中name的值不能和npmjs网上已经发布的包的名字重复, private属性设为false,registory属性一定要填写,每次npm publish时package.json中version版本一定要大于上一次。

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago