vue-upload-wrapper
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -19,5 +19,10 @@ 'use strict'; | ||
// | ||
// | ||
var script = { | ||
name: "vue-upload-wrapper", | ||
props: { | ||
accept: { | ||
type: Array, | ||
default: [] | ||
}, | ||
disabled: { | ||
@@ -64,3 +69,4 @@ type: Boolean, | ||
attrs: { | ||
"type": "file" | ||
"type": "file", | ||
"accept": _vm.accept.join(',') | ||
}, | ||
@@ -67,0 +73,0 @@ on: { |
@@ -19,5 +19,10 @@ (function (global, factory) { | ||
// | ||
// | ||
var script = { | ||
name: "vue-upload-wrapper", | ||
props: { | ||
accept: { | ||
type: Array, | ||
default: [] | ||
}, | ||
disabled: { | ||
@@ -149,3 +154,4 @@ type: Boolean, | ||
attrs: { | ||
"type": "file" | ||
"type": "file", | ||
"accept": _vm.accept.join(',') | ||
}, | ||
@@ -152,0 +158,0 @@ on: { |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self)["vue-upload-wrapper"]=t()}(this,function(){"use strict";return function(e,t,n,i,o,r,s,d,f,a){"boolean"!=typeof s&&(f=d,d=s,s=!1);var l,c="function"==typeof n?n.options:n;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),i&&(c._scopeId=i),r?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,f(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},c._ssrRegister=l):t&&(l=s?function(){t.call(this,a(this.$root.$options.shadowRoot))}:function(e){t.call(this,d(e))}),l)if(c.functional){var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return n}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("span",{on:{click:this.triggerFileSelection}},[t("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"file",attrs:{type:"file"},on:{change:this.emitSelection}}),this._v(" "),this._t("default")],2)},staticRenderFns:[]},void 0,{name:"vue-upload-wrapper",props:{disabled:{type:Boolean,default:!1}},methods:{triggerFileSelection:function(){this.disabled||this.$refs.file.click()},emitSelection:function(){this.$emit("fileSelected",this.$refs.file.files)}}},void 0,!1,void 0,void 0,void 0)}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self)["vue-upload-wrapper"]=t()}(this,function(){"use strict";return function(e,t,i,n,o,r,s,a,d,c){"boolean"!=typeof s&&(d=a,a=s,s=!1);var f,l="function"==typeof i?i.options:i;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),n&&(l._scopeId=n),r?(f=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=f):t&&(f=s?function(){t.call(this,c(this.$root.$options.shadowRoot))}:function(e){t.call(this,a(e))}),f)if(l.functional){var p=l.render;l.render=function(e,t){return f.call(t),p(e,t)}}else{var u=l.beforeCreate;l.beforeCreate=u?[].concat(u,f):[f]}return i}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("span",{on:{click:this.triggerFileSelection}},[t("input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"file",attrs:{type:"file",accept:this.accept.join(",")},on:{change:this.emitSelection}}),this._v(" "),this._t("default")],2)},staticRenderFns:[]},void 0,{name:"vue-upload-wrapper",props:{accept:{type:Array,default:[]},disabled:{type:Boolean,default:!1}},methods:{triggerFileSelection:function(){this.disabled||this.$refs.file.click()},emitSelection:function(){this.$emit("fileSelected",this.$refs.file.files)}}},void 0,!1,void 0,void 0,void 0)}); | ||
//# sourceMappingURL=vue-upload-wrapper.umd.min.js.map |
{ | ||
"name": "vue-upload-wrapper", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Transform any element into an file selector", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-upload-wrapper.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
17708
323