v-qriously

0.1.5 • Public • Published

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版本一定要大于上一次。

Readme

Keywords

none

Package Sidebar

Install

npm i v-qriously

Weekly Downloads

8

Version

0.1.5

License

none

Unpacked Size

662 kB

Total Files

12

Last publish

Collaborators

  • xuyuanjie