@calibur/sakura
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -1,1 +0,1 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=31)}({0:function(t,e,r){"use strict";function n(t,e,r,n,i,s,o,a){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}r.d(e,"a",(function(){return n}))},31:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"v-uploader",class:{"v-uploader--custom":t.hasSlot,"v-uploader--single":1===t.limit}},[t._t("list",[t.fileList.length?r("div",{staticClass:"v-uploader__files"},t._l(t.fileList,(function(e,n){return r("div",{key:n+e.id,staticClass:"v-uploader__item"},[e.url?r("img",{staticClass:"v-uploader__item__poster",attrs:{src:e.url}}):t._e(),t._v(" "),"loading"===e.status||!t.showClose&&"error"!==e.status?t._e():r("i",{staticClass:"bili-font ic_input_close v-uploader__item__cancel",on:{click:function(e){return t.remove(n)}}}),t._v(" "),"loading"===e.status?r("div",{staticClass:"v-uploader__item__loading v-uploader__item__mask"},[r("div")]):t._e(),t._v(" "),"success"===e.status?r("div",{staticClass:"v-uploader__item__status is-success"},[r("i",{staticClass:"bili-font ic_success"})]):t._e(),t._v(" "),"error"===e.status?r("div",{staticClass:"v-uploader__item__mask"},[r("span",{domProps:{textContent:t._s(e.message)}}),t._v(" "),t._m(0,!0)]):t._e()])})),0):t._e()],{list:t.fileList}),t._v(" "),r("div",{staticClass:"v-uploader__action",on:{click:t._emitActionClick}},[r("input",{ref:"input",attrs:{multiple:1!==t.limit,disabled:t.isDisabled,accept:t.fileAccept,type:"file",name:"file"},on:{change:t._handleInputSelect}}),t._v(" "),r("div",{staticClass:"v-uploader__action__wrap"},[t._t("action",[t._m(1)])],2)])],2)};n._withStripped=!0;var i=r(4);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=function(t){var e=new RegExp("(^| )"+t+"=([^;]*)(;|$)"),r=document.cookie.match(e);return r?unescape(r[2]):null};function c(t){if(!t)return[];var e=function(t){var e={};return"string"==typeof t?(e.url=t,e.status="success"):(t.id&&(e.id=t.id),t.url&&(e.url=t.url),t.url&&t.url.startsWith("http")?(e.status="success",e.data=t):e=o({},e,{},t)),o({},{id:Math.random().toString(36).substring(3,6),url:"",status:"",message:"",data:null,file:null},{},e)};return Object(i.a)(t)?t.map(e):e(t)}r(59);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={name:"VUploader",props:{value:{type:[Array,Object,String],default:""},url:{type:String,default:"//api.bilibili.com/x/upload/web/image"},bucket:{type:String,default:""},disabled:{type:Boolean,default:!1},accept:{type:[String,Array],default:"image/*"},limit:{type:Number,default:1,validator:function(t){return t>=1}},oversize:{type:[String,Number],default:0,validator:function(t){return t>=0}},cookie:{type:Boolean,default:!0},auto:{type:Boolean,default:!0},http:{type:Function,default:function(t){if("undefined"!=typeof XMLHttpRequest){var e=new XMLHttpRequest,r=t.action;e.onerror=function(e){t.onError(e)},e.onload=function(){if(e.status<200||e.status>=400)return t.onError(function(t,e,r){var n;n=r.response?"".concat(r.response.error||r.response):r.responseText?"".concat(r.responseText):"fail to post ".concat(t," ").concat(r.status);var i=new Error(n);return i.status=r.status,i.method="post",i.url=t,i}(r,0,e));t.onSuccess(function(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(r){return e}}(e))},e.open("POST",r,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var n={Accept:"application/json, text/plain, */*"};return"setRequestHeader"in e&&Object.keys(n).forEach((function(t){e.setRequestHeader(t,n[t])})),e.send(t.data),e}}},required:{type:Boolean,default:!1},transformRequest:{type:Function,default:function(t){return t.csrf=u("bili_jct"),t}},transformResponse:{type:Function,default:function(t){return t&&0===t.code?{url:t.data.location,data:t.data}:t}}},data:function(){return f({},(t=this.value,e=this.limit,t?e>1?(n="array",r=Object(i.a)(t)?c(t.slice(0,e)):[c(t)]):"string"==typeof t?(n="string",r=t?[c(t)]:[]):t.url?(n="object",r=[c(t)]):(n="object",r=[]):(r=[],n=e>1?"array":"string"==typeof t?"string":"object"),{fileType:n,fileList:r}));var t,e,r,n},computed:{hasSlot:function(){return this.$slots.action||this.$slots.list},isDisabled:function(){return this.disabled||this.fileList.length>this.limit},showClose:function(){return!(this.required&&1===this.fileList.length)},fileAccept:function(){return"string"==typeof this.accept?this.accept:this.accept.map((function(t){return t.startsWith("image/")?t:"image/".concat(t)})).join(", ")}},watch:{fileList:{handler:function(t){if("array"!==this.fileType){if("object"!==this.fileType)return this.$emit("input",t[0]?t[0].url:"");this.$emit("input",t[0]||{})}else this.$emit("input",t)},immediate:!0,deep:!0}},methods:{upload:function(){this._updateToServer(this.fileList)},images:function(){return this.fileList.filter((function(t){return"success"===t.status}))},remove:function(t){this.fileList.splice(t,1),this.$refs.input.value="",this.$emit("change")},_readImage:function(t){var e=this;Promise.all(t.map((function(t){return function(t){return new Promise((function(e){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.readAsDataURL(t)}))}(t)}))).then((function(r){!function(t){1===e.limit?e.fileList=t.filter((function(t){return t})):e.fileList=e.fileList.concat(t.filter((function(t){return t}))),e.auto&&e._updateToServer(t)}(t.map((function(t,n){var i={file:t};return r[n]?(i.url=r[n],e.oversize&&e.oversize<t.size?(i.status="error",i.message="图片体积过大"):i.status="preview"):(i.status="error",i.message="图片读取失败"),c(i)})))}))},_emitActionClick:function(){this.$emit("click")},_updateImage:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.fileList.forEach((function(n){n.id===t&&(n.status=e,r&&Object.keys(r).forEach((function(t){n[t]=r[t]})))}))},_updateToServer:function(t){var e=this,r=t.filter((function(t){return"preview"===t.status}));r.length&&r.map((function(t){var r={file:t.file};return e.bucket&&(r.bucket=e.bucket),{id:t.id,form:e.transformRequest?e.transformRequest(r):r}})).map((function(t){var e=new FormData;return Object.keys(t.form).forEach((function(r){e.append(r,t.form[r])})),f({},t,{form:e})})).forEach((function(t){e._updateImage(t.id,"loading");var r={withCredentials:e.cookie,data:t.form,action:e.url,onSuccess:function(r){e._handleUploadSuccess(t,r)},onError:function(){e._handleUploadError(t)}};e.http(r)}))},_handleInputSelect:function(t){var e=t.target.files;if(!this.disabled&&e.length){var r=[].slice.call(e);r=r.slice(0,Math.max(this.limit-this.fileList.length,1)),this._readImage(r)}},_handleUploadError:function(t){this._updateImage(t.id,"error",{message:"上传失败"}),this.$emit("change")},_handleUploadSuccess:function(t,e){var r=this.transformResponse?this.transformResponse(e):e,n=t.id;r.url?this._updateImage(n,"success",r):this._updateImage(n,"error",{message:r.message}),this.$emit("change")}}},_=r(0),m=Object(_.a)(d,n,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-uploader__item__status is-error"},[e("i",{staticClass:"bili-font ic_error"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-uploader__btn"},[e("i",{staticClass:"bili-font ic_add"})])}],!1,null,null,null);m.options.__file="src/components/uploader/uploader.vue";var h=m.exports;e.default=h},4:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},59:function(t,e,r){}})})); | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["@calibur/sakura"]=e():t["@calibur/sakura"]=e()}(this,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=31)}({0:function(t,e,r){"use strict";function n(t,e,r,n,i,s,o,a){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):i&&(u=a?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}r.d(e,"a",(function(){return n}))},31:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"v-uploader",class:{"v-uploader--custom":t.hasSlot,"v-uploader--single":1===t.limit}},[t._t("list",[t.fileList.length?r("div",{staticClass:"v-uploader__files"},t._l(t.fileList,(function(e,n){return r("div",{key:n+e.id,staticClass:"v-uploader__item"},[e.url?r("img",{staticClass:"v-uploader__item__poster",attrs:{src:e.url}}):t._e(),t._v(" "),"loading"!==e.status&&t.showClose?r("i",{staticClass:"bili-font ic_input_close v-uploader__item__cancel",on:{click:function(e){return t.remove(n)}}}):t._e(),t._v(" "),"loading"===e.status?r("div",{staticClass:"v-uploader__item__loading v-uploader__item__mask"},[r("div")]):t._e(),t._v(" "),"success"===e.status?r("div",{staticClass:"v-uploader__item__status is-success"},[r("i",{staticClass:"bili-font ic_success"})]):t._e(),t._v(" "),"error"===e.status?r("div",{staticClass:"v-uploader__item__mask"},[r("span",{domProps:{textContent:t._s(e.message)}}),t._v(" "),t._m(0,!0)]):t._e()])})),0):t._e()],{list:t.fileList}),t._v(" "),r("div",{staticClass:"v-uploader__action",on:{click:t._emitActionClick}},[r("input",{ref:"input",attrs:{multiple:1!==t.limit,disabled:t.isDisabled,accept:t.fileAccept,type:"file",name:"file"},on:{change:t._handleInputSelect}}),t._v(" "),r("div",{staticClass:"v-uploader__action__wrap"},[t._t("action",[t._m(1)])],2)])],2)};n._withStripped=!0;var i=r(4);function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){a(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function a(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u=function(t){var e=new RegExp("(^| )"+t+"=([^;]*)(;|$)"),r=document.cookie.match(e);return r?unescape(r[2]):null};function c(t){if(!t)return[];var e=function(t){var e={};return"string"==typeof t?(e.url=t,e.status="success"):(t.id&&(e.id=t.id),t.url&&(e.url=t.url),t.url&&t.url.startsWith("http")?(e.status="success",e.data=t):e=o({},e,{},t)),o({},{id:Math.random().toString(36).substring(3,6),url:"",status:"",message:"",data:null,file:null},{},e)};return Object(i.a)(t)?t.map(e):e(t)}r(59);function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var d={name:"VUploader",props:{value:{type:[Array,Object,String],default:""},url:{type:String,default:"//api.bilibili.com/x/upload/web/image"},bucket:{type:String,default:""},disabled:{type:Boolean,default:!1},accept:{type:[String,Array],default:"image/*"},limit:{type:Number,default:1,validator:function(t){return t>=1}},oversize:{type:[String,Number],default:0,validator:function(t){return t>=0}},cookie:{type:Boolean,default:!0},auto:{type:Boolean,default:!0},http:{type:Function,default:function(t){if("undefined"!=typeof XMLHttpRequest){var e=new XMLHttpRequest,r=t.action;e.onerror=function(e){t.onError(e)},e.onload=function(){if(e.status<200||e.status>=400)return t.onError(function(t,e,r){var n;n=r.response?"".concat(r.response.error||r.response):r.responseText?"".concat(r.responseText):"fail to post ".concat(t," ").concat(r.status);var i=new Error(n);return i.status=r.status,i.method="post",i.url=t,i}(r,0,e));t.onSuccess(function(t){var e=t.responseText||t.response;if(!e)return e;try{return JSON.parse(e)}catch(r){return e}}(e))},e.open("POST",r,!0),t.withCredentials&&"withCredentials"in e&&(e.withCredentials=!0);var n={Accept:"application/json, text/plain, */*"};return"setRequestHeader"in e&&Object.keys(n).forEach((function(t){e.setRequestHeader(t,n[t])})),e.send(t.data),e}}},required:{type:Boolean,default:!1},transformRequest:{type:Function,default:function(t){return t.csrf=u("bili_jct"),t}},transformResponse:{type:Function,default:function(t){return t&&0===t.code?{url:t.data.location,data:t.data}:t}}},data:function(){return f({},(t=this.value,e=this.limit,t?e>1?(n="array",r=Object(i.a)(t)?c(t.slice(0,e)):[c(t)]):"string"==typeof t?(n="string",r=t?[c(t)]:[]):t.url?(n="object",r=[c(t)]):(n="object",r=[]):(r=[],n=e>1?"array":"string"==typeof t?"string":"object"),{fileType:n,fileList:r}));var t,e,r,n},computed:{hasSlot:function(){return this.$slots.action||this.$slots.list},isDisabled:function(){return this.disabled||this.fileList.length>this.limit},showClose:function(){return!(this.required&&1===this.fileList.length)},fileAccept:function(){return"string"==typeof this.accept?this.accept:this.accept.map((function(t){return t.startsWith("image/")?t:"image/".concat(t)})).join(", ")}},watch:{fileList:{handler:function(t){var e=t.filter((function(t){return"success"===t.status}));if(e.length||!this.required)if("array"!==this.fileType){if("object"!==this.fileType)return this.$emit("input",e[0]?e[0].url:"");this.$emit("input",e[0]||{})}else this.$emit("input",e)},immediate:!0,deep:!0}},methods:{upload:function(){this._updateToServer(this.fileList)},images:function(){return this.fileList.filter((function(t){return"success"===t.status}))},remove:function(t){this.fileList.splice(t,1),this.$refs.input.value="",this.$emit("change")},_readImage:function(t){var e=this;Promise.all(t.map((function(t){return function(t){return new Promise((function(e){var r=new FileReader;r.onload=function(t){e(t.target.result)},r.readAsDataURL(t)}))}(t)}))).then((function(r){!function(t){1===e.limit?e.fileList=t.filter((function(t){return t})):e.fileList=e.fileList.concat(t.filter((function(t){return t}))),e.auto&&e._updateToServer(t)}(t.map((function(t,n){var i={file:t};return r[n]?(i.url=r[n],e.oversize&&e.oversize<t.size?(i.status="error",i.message="图片体积过大"):i.status="preview"):(i.status="error",i.message="图片读取失败"),c(i)})))}))},_emitActionClick:function(){this.$emit("click")},_updateImage:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.fileList.forEach((function(n){n.id===t&&(n.status=e,r&&Object.keys(r).forEach((function(t){n[t]=r[t]})))}))},_updateToServer:function(t){var e=this,r=t.filter((function(t){return"preview"===t.status}));r.length&&r.map((function(t){var r={file:t.file};return e.bucket&&(r.bucket=e.bucket),{id:t.id,form:e.transformRequest?e.transformRequest(r):r}})).map((function(t){var e=new FormData;return Object.keys(t.form).forEach((function(r){e.append(r,t.form[r])})),f({},t,{form:e})})).forEach((function(t){e._updateImage(t.id,"loading");var r={withCredentials:e.cookie,data:t.form,action:e.url,onSuccess:function(r){e._handleUploadSuccess(t,r)},onError:function(){e._handleUploadError(t)}};e.http(r)}))},_handleInputSelect:function(t){var e=t.target.files;if(!this.disabled&&e.length){var r=[].slice.call(e);r=r.slice(0,Math.max(this.limit-this.fileList.length,1)),this._readImage(r)}},_handleUploadError:function(t){this._updateImage(t.id,"error",{message:"上传失败"}),this.$emit("change")},_handleUploadSuccess:function(t,e){var r=this.transformResponse?this.transformResponse(e):e,n=t.id;r.url?this._updateImage(n,"success",r):this._updateImage(n,"error",{message:r.message}),this.$emit("change")}}},_=r(0),m=Object(_.a)(d,n,[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-uploader__item__status is-error"},[e("i",{staticClass:"bili-font ic_error"})])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"v-uploader__btn"},[e("i",{staticClass:"bili-font ic_add"})])}],!1,null,null,null);m.options.__file="src/components/uploader/uploader.vue";var h=m.exports;e.default=h},4:function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));var n=function(t){return"[object Array]"===Object.prototype.toString.call(t)}},59:function(t,e,r){}})})); |
{ | ||
"name": "@calibur/sakura", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "bilibili h5 vue components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
802943