app模板、应用模板、组件模板、widget模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
616 KiB

4 years ago
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{1016:function(e,t,i){var n=i(4);i(1017),i(1018),n.registerVisual(n.util.curry(i(159),"liquidFill"))},1017:function(e,t,i){var n=i(265),s=i(4);s.extendSeriesModel({type:"series.liquidFill",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var i=n(["value"],e.data),i=new s.List(i,this);return i.initData(e.data),i},defaultOption:{color:["#294D99","#156ACF","#1598ED","#45BDFF"],center:["50%","50%"],radius:"50%",amplitude:"8%",waveLength:"80%",phase:"auto",period:"auto",direction:"right",shape:"circle",waveAnimation:!0,animationEasing:"linear",animationEasingUpdate:"linear",animationDuration:2e3,animationDurationUpdate:1e3,outline:{show:!0,borderDistance:8,itemStyle:{color:"none",borderColor:"#294D99",borderWidth:8,shadowBlur:20,shadowColor:"rgba(0, 0, 0, 0.25)"}},backgroundStyle:{color:"#E3F7FF"},itemStyle:{opacity:.95,shadowBlur:50,shadowColor:"rgba(0, 0, 0, 0.4)"},label:{show:!0,color:"#294D99",insideColor:"#fff",fontSize:50,fontWeight:"bold",align:"center",baseline:"middle",position:"inside"},emphasis:{itemStyle:{opacity:.8}}}})},1018:function(e,t,i){var $=i(4),n=$.number,E=i(52),I=n.parsePercent,M=i(1019);$.extendChartView({type:"liquidFill",render:function(h,e,t){var c=this.group;c.removeAll();var d=h.getData(),r=d.getItemModel(0),i=r.get("center"),p=r.get("radius"),n=t.getWidth(),f=t.getHeight(),s=Math.min(n,f),a=0,o=0,t=h.get("outline.show");t&&(a=h.get("outline.borderDistance"),o=I(h.get("outline.itemStyle.borderWidth"),s));var l,u,m,g=I(i[0],n),v=I(i[1],f),b=!1,y=h.get("shape"),p="container"===y?(b=!0,u=[(l=[n/2,f/2])[0]-o/2,l[1]-o/2],m=[I(a,n),I(a,f)],[Math.max(u[0]-m[0],0),Math.max(u[1]-m[1],0)]):(u=(l=I(p,s)/2)-o/2,m=I(a,s),Math.max(u-m,0));t&&(T().style.lineWidth=o,c.add(T()));var w=b?0:g-p,x=b?0:v-p,C=null;c.add(function(){var e=S(p);e.setStyle(h.getModel("backgroundStyle").getItemStyle()),e.style.fill=null,e.z2=5;var t=S(p);t.setStyle(h.getModel("backgroundStyle").getItemStyle()),t.style.stroke=null;var i=new $.graphic.Group;return i.add(e),i.add(t),i}());var k=this._data,_=[];function S(e,t){if(y){if(0===y.indexOf("path://")){var i=(a=$.graphic.makePath(y.slice(7),{})).getBoundingRect(),n=i.width,s=i.height;s<n?(s*=2*e/n,n=2*e):(n*=2*e/s,s=2*e);var r=t?0:g-n/2,i=t?0:v-s/2,a=$.graphic.makePath(y.slice(7),{},new $.graphic.BoundingRect(r,i,n,s));return t&&(a.position=[-n/2,-s/2]),a}if(b){var o=t?-e[0]:g-e[0],l=t?-e[1]:v-e[1];return E.createSymbol("rect",o,l,2*e[0],2*e[1])}l=t?-e:v-e;return"pin"===y?l+=e:"arrow"===y&&(l-=e),E.createSymbol(y,o=t?-e:g-e,l,2*e,2*e)}return new $.graphic.Circle({shape:{cx:t?0:g,cy:t?0:v,r:e}})}function T(){var e=S(l);return e.style.fill=null,e.setStyle(h.getModel("outline.itemStyle").getItemStyle()),e}function O(e,t,i){var n=b?p[0]:p,s=b?f/2:p,r=d.getItemModel(e),a=r.getModel("itemStyle"),o=r.get("phase"),l=I(r.get("amplitude"),2*s),c=I(r.get("waveLength"),2*n),u=s-d.get("value",e)*s*2,o=i?i.shape.phase:"auto"===o?e*Math.PI/4:o,i=a.getItemStyle();i.fill||(e=e%(a=h.get("color")).length,i.fill=a[e]);i=new M({shape:{waveLength:c,radius:n,radiusY:s,cx:2*n,cy:0,waterLevel:u,amplitude:l,phase:o,inverse:t},style:i,position:[g,v]});i.shape._waterLevel=u;r=r.getModel("emphasis.itemStyle").getItemStyle();r.lineWidth=0,$.graphic.setHoverStyle(i,r);r=S(p,!0);return r.setStyle({fill:"white"}),i.setClipPath(r),i}function D(e,t,i){var n,s,r=d.getItemModel(e),a=r.get("period"),o=r.get("direction"),l=d.get("value",e),c=r.get("phase"),c=i?i.shape.phase:"auto"===c?e*Math.PI/4:c,i=0,i="auto"===a?(n=5e3,0===(s=d.count())?n:n*(.2+(s-e)/s*.8)):"function"==typeof a?a(l,e):a,a=0;"right"===o||null==o?a=Math.PI:"left"===o?a=-Math.PI:"none"===o?a=0:console.error("Illegal direction value for liquid fill."),"none"!==o&&r.get("waveAnimation")&&t.animate("shape",!0).when(0,{phase:c}).when(i/2,{phase:a+c}).when(i,{phase:2*a+c}).during(function(){C&&C.dirty(!0)}).start()}d.diff(k).add(function(e){var t=O(e,!1),i=t.shape.waterLevel;t.shape.waterLev
  2. /*!
  3. * wordcloud2.js
  4. * http://timdream.org/wordcloud2.js/
  5. *
  6. * Copyright 2011 - 2013 Tim Chien
  7. * Released under the MIT license
  8. */function n(g,e){if(r){(g=!Array.isArray(g)?[g]:g).forEach(function(e,t){if("string"==typeof e){if(g[t]=document.getElementById(e),!g[t])throw"The element id specified is not found."}else if(!e.tagName&&!e.appendChild)throw"You must pass valid HTML elements, or ID of the element."});var t,x={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(var i in e)i in x&&(x[i]=e[i]);if("function"!=typeof x.weightFactor&&(t=x.weightFactor,x.weightFactor=function(e){return e*t}),"function"!=typeof x.shape)switch(x.shape){case"circle":default:x.shape="circle";break;case"cardioid":x.shape=function(e){return 1-Math.sin(e)};break;case"diamond":case"square":x.shape=function(e){e%=2*Math.PI/4;return 1/(Math.cos(e)+Math.sin(e))};break;case"triangle-forward":x.shape=function(e){e%=2*Math.PI/3;return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-upright":x.shape=function(e){e=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":x.shape=function(e){e=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":x.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return 0<=(e+.955)%(2*Math.PI/5)-2*Math.PI/10?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}x.gridSize=Math.max(Math.floor(x.gridSize),4);var v,b,y,f,m,w,C,k=x.gridSize,_=k-x.maskGapWidth,d=Math.abs(x.maxRotation-x.minRotation),p=Math.min(x.maxRotation,x.minRotation),S=x.rotationStep;switch(x.color){case"random-dark":C=function(){return s(10,50)};break;case"random-light":C=function(){return s(50,90)};break;default:"function"==typeof x.color&&(C=x.color)}var T=null;"function"==typeof x.classes&&(T=x.classes);var O,D=!1,$=[],n=function(e){var t=e.currentTarget,i=t.getBoundingClientRect(),e=e.touches?(n=e.touches[0].clientX,e.touches[0].clientY):(n=e.clientX,e.clientY),n=n-i.left,e=e-i.top,n=Math.floor(n*(t.width/i.width||1)/k),i=Math.floor(e*(t.height/i.height||1)/k);return $[n][i]},E=function(e){var t=n(e);O!==t&&((O=t)?x.hover(t.item,t.dimension,e):x.hover(void 0,void 0,e))},I=function(e){var t=n(e);t&&(x.click(t.item,t.dimension,e),e.preventDefault())},M=[],P=function(){return 0<x.abortThreshold&&(new Date).getTime()-w>x.abortThreshold},j=function(e,t,i,n,s,r){var a,o,l=s.occupied,c=x.drawMask;c&&((a=g[0].getContext("2d")).save(),a.fillStyle=x.maskColor),D&&(o={x:(e+(s=s.bounds)[3])*k,y:(t+s[0])*k,w:(s[1]-s[3]+1)*k,h:(s[2]-s[0]+1)*k});for(var u,h,d,p=l.length;p--;){var f=e+l[p][0],m=t+l[p][1];b<=f||y<=m||f<0||m<0||(u=m,h=c,d=o,m=r,b<=(f=f)||y<=u||f<0||u<0||(v[f][u]=!1,h&&g[0].getContext("2d").fillRect(f*k,u*k,_,_),D&&($[f][u]={item:m,dimension:d})))}c&&a.restore()},N=function(n){var s,r,a;Array.isArray(n)?(s=n[0],r=n[1]):(s=n.word,r=n.weight,a=n.attributes);var o=0===x.rotateRatio||Math.random()>x.rotateRatio?0:0===d?p:p+Math.round(Math.random()*d/S)*S,l=function(e,t,i){var n=x.weightFactor(t);if(n<=x.minSize)return!1;var s=1;n<F&&(s=function(){for(var e=2;e*n<F;)e+=2;return e}());var r=document.createElement("canvas"),a=r.getContext("2d",{willReadFrequently:!0});a.font=x.fontWeight+" "+(n*s).toString(10)+"px "+x.fontFamily;var o=a.measureText(e).width/s,l=Math.max(n*s,a.measureText("m").width,a.measureText("").width)/s,c=o+2*l,u=3*l,h=Math.ceil(c/k),t=Math.ceil(u/k),c=h*k,u=t*k,h=-o/2,t=.4*-l,d=Math.ceil((c*Math.abs(Math.sin(i))+u*Math.abs(Math.cos(i)))/k),c=Math.ceil((c*Math.abs(Math.cos(i))+u*Math.abs(Math.sin(i)))/k),p=c*k,u=d*k;r.setAttribute("width",p),r.setAttribute("height",u),a.scale(1/s,1/s),a.translate(p*s/2,u*s/2),a.rotate(-i),a.font=x.fontWeight+"
  9. /**
  10. * @fileOverview Kickass library to create and place poppers near their reference elements.
  11. * @version {{version}}
  12. * @license
  13. * Copyright (c) 2016 Federico Zivolo and contributors
  14. *
  15. * Permission is hereby granted, free of charge, to any person obtaining a copy
  16. * of this software and associated documentation files (the "Software"), to deal
  17. * in the Software without restriction, including without limitation the rights
  18. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  19. * copies of the Software, and to permit persons to whom the Software is
  20. * furnished to do so, subject to the following conditions:
  21. *
  22. * The above copyright notice and this permission notice shall be included in all
  23. * copies or substantial portions of the Software.
  24. *
  25. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  26. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  27. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  28. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  29. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  30. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  31. * SOFTWARE.
  32. */void 0===(n="function"==typeof(n=function(){"use strict";var m=window,r={placement:"bottom",gpuAcceleration:true,offset:0,boundariesElement:"viewport",boundariesPadding:5,preventOverflowOrder:["left","right","top","bottom"],flipBehavior:"flip",arrowElement:"[x-arrow]",arrowOffset:0,modifiers:["shift","offset","preventOverflow","keepTogether","arrow","flip","applyStyle"],modifiersIgnored:[],forceAbsolute:false};function e(e,t,i){this._reference=e.jquery?e[0]:e;this.state={};var n=typeof t==="undefined"||t===null;var s=t&&Object.prototype.toString.call(t)==="[object Object]";if(n||s)this._popper=this.parse(s?t:{});else this._popper=t.jquery?t[0]:t;this._options=Object.assign({},r,i);this._options.modifiers=this._options.modifiers.map(function(e){if(this._options.modifiersIgnored.indexOf(e)!==-1)return;if(e==="applyStyle")this._popper.setAttribute("x-placement",this._options.placement);return this.modifiers[e]||e}.bind(this));this.state.position=this._getPosition(this._popper,this._reference);o(this._popper,{position:this.state.position,top:0});this.update();this._setupEventListeners();return this}function g(e){var t=e.style.display,i=e.style.visibility;e.style.display="block";e.style.visibility="hidden";var n=e.offsetWidth;var s=m.getComputedStyle(e);var r=parseFloat(s.marginTop)+parseFloat(s.marginBottom);var a=parseFloat(s.marginLeft)+parseFloat(s.marginRight);var o={width:e.offsetWidth+a,height:e.offsetHeight+r};e.style.display=t;e.style.visibility=i;return o}function c(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function v(e){var t=Object.assign({},e);t.right=t.left+t.width;t.bottom=t.top+t.height;return t}function s(e,t){var i=0,n;for(n in e){if(e[n]===t)return i;i++}return null}function i(e,t){var i=m.getComputedStyle(e,null);return i[t]}function b(e){var t=e.offsetParent;return t===m.document.body||!t?m.document.documentElement:t}function y(e){var t=e.parentNode;if(!t)return e;if(t===m.document)if(m.document.body.scrollTop||m.document.body.scrollLeft)return m.document.body;else return m.document.documentElement;if(["scroll","auto"].indexOf(i(t,"overflow"))!==-1||["scroll","auto"].indexOf(i(t,"overflow-x"))!==-1||["scroll","auto"].indexOf(i(t,"overflow-y"))!==-1)return t;return y(e.parentNode)}function a(e){if(e===m.document.body)return false;if(i(e,"position")==="fixed")return true;return e.parentNode?a(e.parentNode):e}function o(i,n){function s(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}Object.keys(n).forEach(function(e){var t="";if(["width","height","top","right","bottom","left"].indexOf(e)!==-1&&s(n[e]))t="px";i.style[e]=n[e]+t})}function l(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function w(e){var t={width:e.offsetWidth,height:e.offsetHeight,left:e.offsetLeft,top:e.offsetTop};t.right=t.left+t.width;t.bottom=t.top+t.height;return t}function u(e){var t=e.getBoundingClientRect();var i=navigator.userAgent.indexOf("MSIE")!=-1;var n=i&&e.tagName==="HTML"?-e.scrollTop:t.top;return{left:t.left,top:n,right:t.right,bottom:t.bottom,width:t.right-t.left,height:t.bottom-n}}function h(e,t,i){var n=u(e);var s=u(t);if(i){var r=y(t);s.top+=r.scrollTop;s.bottom+=r.scrollTop;s.left+=r.scrollLeft;s.right+=r.scrollLeft}var a={top:n.top-s.top,left:n.left-s.left,bottom:n.top-s.top+n.height,right:n.left-s.left+n.width,width:n.width,height:n.height};return a}function d(e){var t=["","ms","webkit","moz","o"];for(var i=0;i<t.length;i++){var n=t[i]?t[i]+e.charAt(0).toUpperCase()+e.slice(1):e;if(typeof m.document.body.style[n]!=="undefined")return n}return null}if(e.prototype.destroy=function(){this._popper.removeAttribute("x-placement");this._popper.style.left="";this._popper.style.position="";this._popper.style.top="";this._popper.style[d("transform")]="";this._removeEventListeners();if(this._options.removeOnDestroy)this._popper.remove();return this},e.prototype.update=function(){var e={instance:this,styles:{}};e.placement=this._options.placement;e._originalPlacement=this._options.placement;e.offsets=this._getOffsets(t
  33. /**
  34. * Checks if an event is supported in the current execution environment.
  35. *
  36. * NOTE: This will not work correctly for non-generic events such as `change`,
  37. * `reset`, `load`, `error`, and `select`.
  38. *
  39. * Borrows from Modernizr.
  40. *
  41. * @param {string} eventNameSuffix Event name, e.g. "click".
  42. * @param {?boolean} capture Check if the capture phase is supported.
  43. * @return {boolean} True if the event is supported.
  44. * @internal
  45. * @license Modernizr 3.0.0pre (Custom Build) | MIT
  46. */,e.exports=function(e,t){if(!r.canUseDOM||t&&!("addEventListener"in document))return!1;var i="on"+e,n=i in document;return n||((t=document.createElement("div")).setAttribute(i,"return;"),n="function"==typeof t[i]),n=!n&&s&&"wheel"===e?document.implementation.hasFeature("Events.wheel","3.0"):n}},696:function(e,t,i){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=n},74:function(e,t,i){"use strict";var n=i(3);var s=(r.prototype.beforeEnter=function(e){Object(n.a)(e,"collapse-transition"),e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.height="0",e.style.paddingTop=0,e.style.paddingBottom=0},r.prototype.enter=function(e){e.dataset.oldOverflow=e.style.overflow,0!==e.scrollHeight?e.style.height=e.scrollHeight+"px":e.style.height="",e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"},r.prototype.afterEnter=function(e){Object(n.i)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow},r.prototype.beforeLeave=function(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.height=e.scrollHeight+"px",e.style.overflow="hidden"},r.prototype.leave=function(e){0!==e.scrollHeight&&(Object(n.a)(e,"collapse-transition"),e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0)},r.prototype.afterLeave=function(e){Object(n.i)(e,"collapse-transition"),e.style.height="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},r);function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r)}t.a={name:"ElCollapseTransition",functional:!0,render:function(e,t){t=t.children;return e("transition",{on:new s},t)}}},794:function(e,t,i){"use strict";i(578)},795:function(e,t,i){"use strict";i(579)},8:function(e,t,i){"use strict";function s(t,i,n){this.$children.forEach(function(e){e.$options.componentName===t?e.$emit.apply(e,[i].concat(n)):s.apply(e,[t,i].concat([n]))})}t.a={methods:{dispatch:function(e,t,i){for(var n=this.$parent||this.$root,s=n.$options.componentName;n&&(!s||s!==e);)(n=n.$parent)&&(s=n.$options.componentName);n&&n.$emit.apply(n,[t].concat(i))},broadcast:function(e,t,i){s.call(this,e,t,i)}}}},83:function(e,t){e.exports=function(e){return JSON.parse(JSON.stringify(e))}},84:function(e,t,i){"use strict";t.a=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},86:function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(5),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){return null!==e&&"object"===(void 0===e?"undefined":s(e))&&Object(n.j)(e,"componentOptions")}},88:function(e,t,i){"use strict";var n=i(2),s=i(14),r=i(296),r={mixins:[s.a],components:{TimeSpinner:r.a},props:{visible:Boolean,timeArrowControl:Boolean},watch:{visible:function(e){var t=this;e?(this.oldValue=this.value,this.$nextTick(function(){return t.$refs.spinner.emitSelectRange("hours")})):this.needInitAdjust=!0},value:function(e){var t=this,i=void 0;e instanceof Date?i=Object(n.s)(e,this.selectableRange,this.format):e||(i=this.defaultValue?new Date(this.defaultValue):new Date),this.date=i,this.visible&&this.needInitAdjust&&(this.$nextTick(function(e){return t.adjustSpinners()}),this.needInitAdjust=!1)},selectableRange:function(e){this.$refs.spinner.selectableRange=e},defaultValue:function(e){Object(n.q)(this.value)||(this.date=e?new Date(e):new Date)}},data:function(){return{popperClass:"",format:"HH:mm:ss",value:"",defaultValue