• Stars
    star
    293
  • Rank 141,748 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

the compoent of vue 2.x for qart.js

Travis npm npm

vue-qart

You should read it before you using vue-qart

because of qart.js's author doesn't publish the lastest version to npm. so, the new options size, version,background,fillType doesn't work in vue-qart until qart.js' author publish the lastest version.

For More Detail, seeing this issue: size option doesn't works

the Vue 2.x Component for kciter's qart.js

Check the DEMO

Installation

install with NPM

npm install vue-qart --save

Import

import VueQArt from 'vue-qart'

new Vue({
    components: {VueQArt}
})

Usage

In template

<vue-q-art :config="config"></vue-q-art>

Set config value

data () {
    return {
        msg: 'Welcome to Your Vue.js App',
        config: {
            value: 'https://www.baidu.com',
            imagePath: './examples/assets/logo.png',
            filter: 'color'
        }
    }
}

for imagePath prop, you can use base64 instead of image path.

For more details you should definitely check out qart.js

download to image

passing download props, to show download button, it support:

  • text - button text
  • visible - setting download button visible or not
  • style - setting download button style
  • type - image type,such as image/png
  • filename

you can download the qrcode to image by using canvas.toDataURL()

const myCanvas = this.$refs.qart.children[0];
const type = 'image/png';
let image = myCanvas.toDataURL(type).replace(type, "image/octet-stream");
window.location.href = image; // it will save locally

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080/demo/
npm run dev

# build demo 
npm run demo

# export the directive as a library
npm run build

More Repositories

1

vue-axios-github

Vue 全家桶 + axios 前端实现登录拦截、登出、拦截器等功能
JavaScript
2,683
star
2

vue2.x-douban

Vue2.0实现简易豆瓣电影webApp
JavaScript
797
star
3

react-test-demo

React test demo with Jest and Enzyme
JavaScript
148
star
4

vue-highcharts

The Component of Vue 2.x for highcharts
JavaScript
115
star
5

wakatime-sync

Update Wakatime summary data to your gist every day
JavaScript
112
star
6

koa-jwt-sample

koa jwt login sample
JavaScript
78
star
7

wakatime-dashboard

Wakatime Dashboard gets data from Gist
JavaScript
48
star
8

react-douban

豆瓣电影-react版本
JavaScript
44
star
9

front-end-blog

前端博客收集
27
star
10

mac

高效、好玩、有趣的 Mac 软件推荐
23
star
11

koa-blog-api

Blog API build on koa2 + node.js
JavaScript
17
star
12

node-proxy-api

The simple node proxy api
JavaScript
16
star
13

sony-apps

sony 微单 apps
7
star
14

gatsby-starter-notion

Usging Notion + Gatsby + Netlify build your blog efficiently.
JavaScript
6
star
15

docker-demo

docker learning code
JavaScript
5
star
16

vue-nuxt-demo

Nuxt.js demo for vue-highcharts
Vue
4
star
17

eysenck-questionnaires

艾森克人格问卷、艾森克情绪稳定评测表
TypeScript
3
star
18

img2base64

图片在线转换 base64
HTML
2
star
19

notion-deploy-to-netlify

Deploy notion blog to netlify script of Tampermonkey
JavaScript
2
star
20

node-express-todo

基于node+nodejs+mongodb+angular的一个todo sample
JavaScript
2
star
21

angular-markdown

基于localStorage和AngularJS的markdown笔记本
JavaScript
2
star
22

logseq-plugin-url-md

Convert URL to Markdown links logseq plugin
TypeScript
2
star
23

docker-slides

CSS
2
star
24

angular-clipboard

angular-clipboard using clipboard.js that without using flash
JavaScript
2
star
25

tampermonkey-scripts

tampermonkey scripts
JavaScript
1
star
26

grid-trading-book

E大网格交易小账本
TypeScript
1
star
27

logseq-plugin-share-block

Share block with image
TypeScript
1
star
28

get-urls-md

TypeScript
1
star
29

react-mobx-todo

Todo Sample of React + MobX
JavaScript
1
star
30

logseq-plugin-date-picker

TypeScript
1
star
31

ffmpeg-gui

ffmpeg GUI build on Electron
1
star
32

css-modules-demo

CSS Module demo 学习
JavaScript
1
star
33

wakatime-notify

Sending wakatime daily report to Telegram, WeCom
JavaScript
1
star
34

js-design-pattern

js-design-pattern
JavaScript
1
star
35

mobX-stopWatch

MobX + React StopWatch demo
JavaScript
1
star
36

react-redux-todo

This is the complete source code of the tiny todo app
JavaScript
1
star