mirror of
https://github.com/chillzhuang/Saber.git
synced 2024-11-16 23:49:36 +08:00
8 lines
408 KiB
JavaScript
8 lines
408 KiB
JavaScript
|
/*!
|
||
|
* Avue.js v2.7.6
|
||
|
* (c) 2017-2021 Smallwei
|
||
|
* Released under the MIT License.
|
||
|
*
|
||
|
*/
|
||
|
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("AVUE",[],e):"object"==typeof exports?exports.AVUE=e():t.AVUE=e()}(this,function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},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=124)}([function(t,e){t.exports=function(t,e,n,i,o,r){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var u="function"==typeof s?s.options:s;e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o);var c;if(r?(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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,f=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),f(t,e)}):u.beforeCreate=f?[].concat(f,c):[c]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.name=r.KEY_COMPONENT_NAME+(t.name||""),t.mixins=t.mixins||[],t.mixins.push(o.default),t};var i=n(128),o=function(t){return t&&t.__esModule?t:{default:t}}(i),r=n(10)},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t.name=l.KEY_ECHART_NAME+t.name,t.mixins=t.mixins||[],t.mixins.push(s.default),(0,r.default)(t)};var o=n(1),r=i(o),a=n(312),s=i(a),l=n(10)},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t;return{data:function(){return{stringMode:!1,name:"",text:void 0,propsHttpDefault:o.DIC_HTTP_PROPS,propsDefault:o.DIC_PROPS}},props:(t={blur:Function,focus:Function,change:Function,click:Function,typeformat:Function,typeslot:{type:Boolean,default:!1},separator:{type:String,default:o.DIC_SPLIT},formslot:{type:Boolean,default:!1},params:{type:Object,default:function(){return{}}},listType:{type:String},value:{},column:{type:Object,default:function(){return{}}}},i(t,"typeslot",{type:Boolean,default:!1}),i(t,"label",{type:String,default:""}),i(t,"readonly",{type:Boolean,default:!1}),i(t,"size",{type:String,default:""}),i(t,"tip",{type:String,default:""}),i(t,"disabled",{type:Boolean,default:!1}),i(t,"dataType",{type:String}),i(t,"clearable",{type:Boolean,default:!0}),i(t,"type",{type:String,default:""}),i(t,"dicUrl",{type:String,default:""}),i(t,"dicMethod",{type:String,default:""}),i(t,"dicFormatter",Function),i(t,"dicQuery",{type:Object,default:function(){return{}}}),i(t,"dic",{type:Array,default:function(){return[]}}),i(t,"placeholder",{type:String,default:""}),i(t,"rules",{type:Array}),i(t,"min",{type:Number}),i(t,"max",{type:Number}),i(t,"multiple",{type:Boolean,default:!1}),i(t,"button",{type:Boolean,default:!1}),i(t,"group",{type:Boolean,default:!1}),i(t,"row",{type:Boolean,default:!1}),i(t,"prop",{type:String,default:""}),i(t,"border",{type:Boolean,default:!1}),i(t,"propsHttp",{type:Object,default:function(){return o.DIC_HTTP_PROPS}}),i(t,"props",{type:Object,default:function(){return o.DIC_PROPS}}),t),watch:{text:{handler:function(t,e){this.handleChange(t)}},value:{handler:function(t,e){this.initVal()}}},computed:{componentName:function(){return this.$AVUE.ui.type+"-"+this.name+(this.button?"-button":"")},required:function(){return!this.validatenull(this.rules)},isArray:function(){return"array
|
||
|
!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=[]},i=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},o=n.prototype,r=i.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),u=l.length,c=t.URL||t.webkitURL||t,d=c.createObjectURL,f=c.revokeObjectURL,p=c,h=t.btoa,m=t.atob,v=t.ArrayBuffer,y=t.Uint8Array;for(i.fake=r.fake=!0;u--;)s.prototype[l[u]]=u+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 i?(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)):d?d.call(c,t):void 0},p.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&f&&f.call(c,t)},o.append=function(t){var n=this.data;if(y&&(t instanceof v||t instanceof y)){for(var o="",r=new y(t),l=0,u=r.length;l<u;l++)o+=String.fromCharCode(r[l]);n.push(o)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(t))}else t instanceof i?"base64"===t.encoding&&m?n.push(m(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))))},o.getBlob=function(t){return arguments.length||(t=null),new i(this.data.join(""),t,"raw")},o.toString=function(){return"[object BlobBuilder]"},r.slice=function(t,e,n){var o=arguments.length;return o<3&&(n=null),new i(this.data.slice(t,o>1?e:this.data.length),n,this.encoding)},r.toString=function(){return"[object Blob]"},r.close=function(){this.size=this.data.length=0},n}(t);t.Blob=function(t,n){var i=n?n.type||"":"",o=new e;if(t)for(var r=0,a=t.length;r<a;r++)o.append(t[r]);return o.getBlob(i)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||(void 0).content||void 0)},function(t,e,n){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t,e){if(null===this)throw new TypeError('"this" is null or not defined');var n=Object(this),i=n.length>>>0,o=arguments,r=0|e,a=0;if(0===i)return!1;for(a=Math.max(r>=0?r:i-Math.abs(r),0);a<i;){if(String(n[a])===String(o[0]))return!0;a++}return!1})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return window.html2canvas?window.html2canvas(t,e):void o.default.logs("Screenshot")};var i=n(7),o=function(t){return t&&t.__esModule?t:{default:t}}(i)},function(t,e,n){"use strict";function i(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 i=window.getSelection(),o=document.createRange();o.selectNodeContents(t),i.removeAllRanges(),i.addRange(o),e=i.toString()}return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.text;return new Promise(function(t,n){var o=document.body,r="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[r?"right":"left"]="-9999px";var s=window.pageYOffset||document.documentElement.scrollTop;a.style.top=s+"px",a.setAttribute("readonly",""),a.value=e,o.appendChild(a),i(a);try{document.execCommand("copy"),t()}catch(t){!1,n()}})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=functi
|