Saber/public/cdn/avue/2.0.0/avue.min.js

8 lines
314 KiB
JavaScript
Raw Normal View History

/*!
* Avue.js v1.0.8
* (c) 2017-2019 Smallwei
* Released under the MIT License.
*
*/
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("Vue"),require("ELEMENT")):"function"==typeof define&&define.amd?define("AVUE",["Vue","ELEMENT"],e):"object"==typeof exports?exports.AVUE=e(require("Vue"),require("ELEMENT")):t.AVUE=e(t.Vue,t.ELEMENT)}(this,function(t,e){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=247)}([function(t,e,n){var r=n(4),i=n(17),o=n(21),a=n(22),u=n(26),s=function(t,e,n){var l,c,f,d,p=t&s.F,h=t&s.G,v=t&s.S,m=t&s.P,y=t&s.B,g=h?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=h?i:i[e]||(i[e]={}),x=b.prototype||(b.prototype={});h&&(n=e);for(l in n)c=!p&&g&&void 0!==g[l],f=(c?g:n)[l],d=y&&c?u(f,r):m&&"function"==typeof f?u(Function.call,f):f,g&&a(g,l,f,t&s.U),b[l]!=f&&o(b,l,d),m&&x[l]!=f&&(x[l]=f)};r.core=i,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},function(t,e){t.exports=function(t,e,n,r,i,o){var a,u=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(a=t,u=t.default);var l="function"==typeof u?u.options:u;e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId=i);var c;if(o?(c=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=c):r&&(c=r),c){var f=l.functional,d=f?l.render:l.beforeCreate;f?(l._injectStyles=c,l.render=function(t,e){return c.call(e),d(t,e)}):l.beforeCreate=d?[].concat(d,c):[c]}return{esModule:a,exports:u,options:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.name=o.KEY_COMPONENT_NAME+t.name,t.mixins=t.mixins||[],t.mixins.push(i.default),t};var r=n(251),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(142)},function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(83)("wks"),i=n(49),o=n(4).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,e,n){var r=n(28),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(3),i=n(211),o=n(30),a=Object.defineProperty;e.f=n(10)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(6)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";(function(t){function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=1,i=e[0],o=e.length;if("function"==typeof i)return i.apply(null,e.slice(1));if("string"==typeof i){for(var a=String(i).replace(m,function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(t){return"[Circular]"}break;default:return t}}),u=e[r];r<o;u=e[++r])a+=" "+u;return a}return i}function i(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"pattern"===t}function o(t,e){return void 0===t||null===t||(!("arra
!function(t){if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},i=n.prototype,o=r.prototype,a=t.FileReaderSync,u=function(t){this.code=this[this.name=t]},s="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),l=s.length,c=t.URL||t.webkitURL||t,f=c.createObjectURL,d=c.revokeObjectURL,p=c,h=t.btoa,v=t.atob,m=t.ArrayBuffer,y=t.Uint8Array;for(r.fake=o.fake=!0;l--;)u.prototype[s[l]]=l+1;return c.createObjectURL||(p=t.URL={}),p.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):h?e+";base64,"+h(t.data):e+","+encodeURIComponent(t.data)):f?f.call(c,t):void 0},p.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&d&&d.call(c,t)},i.append=function(t){var n=this.data;if(y&&(t instanceof m||t instanceof y)){for(var i="",o=new y(t),s=0,l=o.length;s<l;s++)i+=String.fromCharCode(o[s]);n.push(i)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new u("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&v?n.push(v(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(t,i>1?e:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=this.data.length=0},n}(t);t.Blob=function(t,n){var r=n?n.type||"":"",i=new e;if(t)for(var o=0,a=t.length;o<a;o++)i.append(t[o]);return i.getBlob(r)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content||void 0)},function(t,e,n){"use strict";function r(t){var e=void 0;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(t),r.removeAllRanges(),r.addRange(i),e=r.toString()}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.text;return new Promise(function(t,n){var i=document.body,o="rtl"==document.documentElement.getAttribute("dir"),a=document.createElement("textarea");a.style.fontSize="12pt",a.style.border="0",a.style.padding="0",a.style.margin="0",a.style.position="absolute",a.style[o?"right":"left"]="-9999px";var u=window.pageYOffset||document.documentElement.scrollTop;a.style.top=u+"px",a.setAttribute("readonly",""),a.value=e,i.appendChild(a),r(a);try{document.execCommand("copy"),t()}catch(t){!1,n()}})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(438),i=function(t){return t&&t.__esModule?t:{default:t}}(r),o=n(440),a=void 0,u=[],s=1,l=function(t){var e=t.extend(i.default),n=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i="imagePreview_"+s++,l={datas:n,index:r},c=l.onClose;return a=new e({data:l}),l.onClose=function(){t.close(i,c)},a.id=i,(0,o.isVNode)(a.message)&&(a.$slots.default=[a.message],a.message=null),a.vm=a.$mount(),document.body.appendChild(a.vm.$el),a.vm.isShow=!0,a.dom=a.vm.$el,u.push(a),a.vm};return n.close=function(t,e){for(var n=0,r=u.length;n<r;n++)if(t===u[n].id){"function"==typeof e&&e(u[n]),