vue-qrious
Advanced tools
Comparing version 1.0.0 to 1.0.1
/*! | ||
* vue-qrious a vue component of generating qrcode with `qrious` | ||
* Version 1.0.0 | ||
* Version 1.0.1 | ||
* Copyright (C) 2017 JounQin <admin@1stg.me> | ||
@@ -50,3 +50,3 @@ * Released under the MIT license | ||
qr: qr, | ||
src: this.getSrc(qr) | ||
src: qr.toDataURL(this.mime) | ||
}; | ||
@@ -60,12 +60,6 @@ }, | ||
_this.qr[key] = _this[key]; | ||
_this.src = _this.getSrc(); | ||
_this.src = _this.qr.toDataURL(_this.mime); | ||
}); | ||
}); | ||
}, | ||
methods: { | ||
getSrc: function getSrc(qr) { | ||
return (this.qr || qr).toDataURL(this.mime); | ||
} | ||
}, | ||
render: function render() { | ||
@@ -72,0 +66,0 @@ var h = arguments[0]; |
/*! | ||
* vue-qrious a vue component of generating qrcode with `qrious` | ||
* Version 1.0.0 | ||
* Version 1.0.1 | ||
* Copyright (C) 2017 JounQin <admin@1stg.me> | ||
@@ -9,2 +9,2 @@ * Released under the MIT license | ||
*/ | ||
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("qrious")):"function"==typeof define&&define.amd?define("vue-qrious",["qrious"],t):r.VueQrious=t(r.QRious)}(this,function(r){"use strict";r="default"in r?r.default:r;var t=["L","M","Q","H"],e={type:[Number,String],validator:function(r){return!isNaN(+r)}};return{props:{value:{type:String,required:!0},background:String,backgroundAlpha:e,foreground:String,foregroundAlpha:e,level:{type:String,validator:function(r){return t.indexOf(r)+1}},mime:String,padding:e,size:e},data:function(){var t=new r(this.$options.propsData);return{qr:t,src:this.getSrc(t)}},created:function(){var r=this;this.$options._propKeys.forEach(function(t){return r.$watch(t,function(){r.qr[t]=r[t],r.src=r.getSrc()})})},methods:{getSrc:function(r){return(this.qr||r).toDataURL(this.mime)}},render:function(){return(0,arguments[0])("img",{attrs:{src:this.src}},[])}}}); | ||
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("qrious")):"function"==typeof define&&define.amd?define("vue-qrious",["qrious"],t):r.VueQrious=t(r.QRious)}(this,function(r){"use strict";r="default"in r?r.default:r;var t=["L","M","Q","H"],e={type:[Number,String],validator:function(r){return!isNaN(+r)}};return{props:{value:{type:String,required:!0},background:String,backgroundAlpha:e,foreground:String,foregroundAlpha:e,level:{type:String,validator:function(r){return t.indexOf(r)+1}},mime:String,padding:e,size:e},data:function(){var t=new r(this.$options.propsData);return{qr:t,src:t.toDataURL(this.mime)}},created:function(){var r=this;this.$options._propKeys.forEach(function(t){return r.$watch(t,function(){r.qr[t]=r[t],r.src=r.qr.toDataURL(r.mime)})})},render:function(){return(0,arguments[0])("img",{attrs:{src:this.src}},[])}}}); |
/*! | ||
* vue-qrious a vue component of generating qrcode with `qrious` | ||
* Version 1.0.0 | ||
* Version 1.0.1 | ||
* Copyright (C) 2017 JounQin <admin@1stg.me> | ||
@@ -50,3 +50,3 @@ * Released under the MIT license | ||
qr: qr, | ||
src: this.getSrc(qr) | ||
src: qr.toDataURL(this.mime) | ||
}; | ||
@@ -60,12 +60,6 @@ }, | ||
_this.qr[key] = _this[key]; | ||
_this.src = _this.getSrc(); | ||
_this.src = _this.qr.toDataURL(_this.mime); | ||
}); | ||
}); | ||
}, | ||
methods: { | ||
getSrc: function getSrc(qr) { | ||
return (this.qr || qr).toDataURL(this.mime); | ||
} | ||
}, | ||
render: function render() { | ||
@@ -72,0 +66,0 @@ var h = arguments[0]; |
/*! | ||
* vue-qrious a vue component of generating qrcode with `qrious` | ||
* Version 1.0.0 | ||
* Version 1.0.1 | ||
* Copyright (C) 2017 JounQin <admin@1stg.me> | ||
@@ -9,2 +9,2 @@ * Released under the MIT license | ||
*/ | ||
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("node-qrious")):"function"==typeof define&&define.amd?define("vue-qrious",["node-qrious"],t):r.VueQrious=t(r.QRious)}(this,function(r){"use strict";r="default"in r?r.default:r;var t=["L","M","Q","H"],e={type:[Number,String],validator:function(r){return!isNaN(+r)}};return{props:{value:{type:String,required:!0},background:String,backgroundAlpha:e,foreground:String,foregroundAlpha:e,level:{type:String,validator:function(r){return t.indexOf(r)+1}},mime:String,padding:e,size:e},data:function(){var t=new r(this.$options.propsData);return{qr:t,src:this.getSrc(t)}},created:function(){var r=this;this.$options._propKeys.forEach(function(t){return r.$watch(t,function(){r.qr[t]=r[t],r.src=r.getSrc()})})},methods:{getSrc:function(r){return(this.qr||r).toDataURL(this.mime)}},render:function(){return(0,arguments[0])("img",{attrs:{src:this.src}},[])}}}); | ||
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("node-qrious")):"function"==typeof define&&define.amd?define("vue-qrious",["node-qrious"],t):r.VueQrious=t(r.QRious)}(this,function(r){"use strict";r="default"in r?r.default:r;var t=["L","M","Q","H"],e={type:[Number,String],validator:function(r){return!isNaN(+r)}};return{props:{value:{type:String,required:!0},background:String,backgroundAlpha:e,foreground:String,foregroundAlpha:e,level:{type:String,validator:function(r){return t.indexOf(r)+1}},mime:String,padding:e,size:e},data:function(){var t=new r(this.$options.propsData);return{qr:t,src:t.toDataURL(this.mime)}},created:function(){var r=this;this.$options._propKeys.forEach(function(t){return r.$watch(t,function(){r.qr[t]=r[t],r.src=r.qr.toDataURL(r.mime)})})},render:function(){return(0,arguments[0])("img",{attrs:{src:this.src}},[])}}}); |
@@ -32,3 +32,3 @@ import QRious from 'qrious' | ||
qr, | ||
src: this.getSrc(qr) | ||
src: qr.toDataURL(this.mime) | ||
} | ||
@@ -39,10 +39,5 @@ }, | ||
this.qr[key] = this[key] | ||
this.src = this.getSrc() | ||
this.src = this.qr.toDataURL(this.mime) | ||
})) | ||
}, | ||
methods: { | ||
getSrc(qr) { | ||
return (this.qr || qr).toDataURL(this.mime) | ||
} | ||
}, | ||
render() { | ||
@@ -49,0 +44,0 @@ return <img src={this.src}/> |
{ | ||
"name": "vue-qrious", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "a vue component of generating qrcode with `qrious`", | ||
@@ -13,3 +13,3 @@ "browser": "dist/vue-qrious.browser", | ||
"scripts": { | ||
"dev": "yarn client --watch", | ||
"dev": "yarn client -- --watch", | ||
"client": "rollup -c", | ||
@@ -16,0 +16,0 @@ "server": "cross-env ENV=server rollup -c", |
# vue-qrious | ||
[![peerDependencies status](https://david-dm.org/JounQin/vue-qrious/peer-status.svg)](https://david-dm.org/JounQin/vue-qrious?type=peer) | ||
[![dependency Status](https://david-dm.org/JounQin/vue-qrious/status.svg)](https://david-dm.org/JounQin/vue-qrious) | ||
[![devDependency Status](https://david-dm.org/JounQin/vue-qrious/dev-status.svg)](https://david-dm.org/JounQin/vue-qrious?type=dev) | ||
@@ -10,3 +11,3 @@ | ||
Since qrious has been split into multiple modules from 4.0.0 (https://github.com/neocotic/qrious/issues/53), so if your are using es module with webpack or rollup, remember add an alias/replacement-plugin from module `qrious` to `node-qrious` on node/server environment. | ||
Since qrious has been split into multiple modules from 4.0.0 (https://github.com/neocotic/qrious/issues/53), so if your are using es module with webpack or rollup, remember to add an alias/replacement-plugin from module `qrious` to `node-qrious` on node/server environment. | ||
@@ -13,0 +14,0 @@ Or you can manually choosing files in `vue-qrious/dist` folder as following. |
Sorry, the diff of this file is not supported yet
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1
43
90344
288