jiuyiUniapp/jiuyi2/unpackage/dist/build/app-plus/app-renderjs.js

6 lines
150 KiB
JavaScript
Raw Normal View History

2024-12-18 15:46:27 +08:00
var __renderjsModules={};
__renderjsModules["5a1e922e"]=(()=>{var u=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var o in e)u(t,o,{get:e[o],enumerable:!0})},g=(t,e,o,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of f(e))!p.call(t,i)&&i!==o&&u(t,i,{get:()=>e[i],enumerable:!(a=c(e,i))||a.enumerable});return t};var v=t=>g(u({},"__esModule",{value:!0}),t);var S={};m(S,{default:()=>D});var l={showWatch(t,e,o,a,i){var s=i.state,r=o.$el||o.$vm&&o.$vm.$el;if(r){if(this.getDom(a,o,i),t&&t!=="none"){this.openState(t,a,o,i);return}s.left&&this.openState("none",a,o,i),this.resetTouchStatus(a,i)}},touchstart(t,e,o){let a=t.instance,i=a.getDataset().disabled,s=o.state;this.getDom(a,e,o),i=this.getDisabledType(i),!i&&(a.requestAnimationFrame(function(){a.removeClass("ani"),e.callMethod("closeSwipe")}),s.x=s.left||0,this.stopTouchStart(t,e,o))},touchmove(t,e,o){let a=t.instance;if(!a)return;let i=a.getDataset().disabled,s=o.state;if(i=this.getDisabledType(i),i||(this.stopTouchMove(t,o),s.direction!=="horizontal"))return;t.preventDefault&&t.preventDefault();let r=s.x+s.deltaX;this.move(r,a,e,o)},touchend(t,e,o){let a=t.instance,i=a.getDataset().disabled,s=o.state;i=this.getDisabledType(i),!i&&this.moveDirection(s.left,a,e,o)},move(t,e,o,a){t=t||0;let i=a.state,s=i.leftWidth,r=i.rightWidth;i.left=this.range(t,-r,s),e.requestAnimationFrame(function(){e.setStyle({transform:"translateX("+i.left+"px)","-webkit-transform":"translateX("+i.left+"px)"})})},getDom(t,e,o){var a=o.state,i=e.$el||e.$vm&&e.$vm.$el,s=i.querySelector(".button-group--left"),r=i.querySelector(".button-group--right");a.leftWidth=s.offsetWidth||0,a.rightWidth=r.offsetWidth||0,a.threshold=t.getDataset().threshold},getDisabledType(t){return(typeof t=="string"?JSON.parse(t):t)||!1},range(t,e,o){return Math.min(Math.max(t,e),o)},moveDirection(t,e,o,a){var i=a.state,s=i.threshold,r=i.position,h=i.isopen||"none",n=i.leftWidth,d=i.rightWidth;if(i.deltaX===0){this.openState("none",e,o,a);return}h==="none"&&d>0&&-t>s||h!=="none"&&d>0&&d+t<s?this.openState("right",e,o,a):h==="none"&&n>0&&t>s||h!=="none"&&n>0&&n-t<s?this.openState("left",e,o,a):this.openState("none",e,o,a)},openState(t,e,o,a){let i=a.state,s=i.leftWidth,r=i.rightWidth,h="";switch(i.isopen=i.isopen?i.isopen:"none",t){case"left":h=s;break;case"right":h=-r;break;default:h=0}i.isopen!==t&&(i.throttle=!0,o.callMethod("change",{open:t})),i.isopen=t,e.requestAnimationFrame(()=>{e.addClass("ani"),this.move(h,e,o,a)})},getDirection(t,e){return t>e&&t>10?"horizontal":e>t&&e>10?"vertical":""},resetTouchStatus(t,e){let o=e.state;o.direction="",o.deltaX=0,o.deltaY=0,o.offsetX=0,o.offsetY=0},stopTouchStart(t,e,o){let a=t.instance,i=o.state;this.resetTouchStatus(a,o);var s=t.touches[0];i.startX=s.clientX,i.startY=s.clientY},stopTouchMove(t,e){let o=t.instance,a=e.state,i=t.touches[0];a.deltaX=i.clientX-a.startX,a.deltaY=i.clientY-a.startY,a.offsetY=Math.abs(a.deltaY),a.offsetX=Math.abs(a.deltaX),a.direction=a.direction||this.getDirection(a.offsetX,a.offsetY)}};var D={mounted(t,e,o){this.state={}},methods:{showWatch(t,e,o,a){l.showWatch(t,e,o,a,this)},touchstart(t,e){l.touchstart(t,e,this)},touchmove(t,e){l.touchmove(t,e,this)},touchend(t,e){l.touchend(t,e,this)}}};return v(S);})();
__renderjsModules.f9cb76fc=(()=>{var De=Object.defineProperty;var na=Object.getOwnPropertyDescriptor;var ha=Object.getOwnPropertyNames;var da=Object.prototype.hasOwnProperty;var oa=(i,e)=>{for(var l in e)De(i,l,{get:e[l],enumerable:!0})},fa=(i,e,l,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of ha(e))!da.call(i,t)&&t!==l&&De(i,t,{get:()=>e[t],enumerable:!(a=na(e,t))||a.enumerable});return i};var ua=i=>fa(De({},"__esModule",{value:!0}),i);var Di={};oa(Di,{default:()=>pi});var Ae={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},k=function(i,...e){if(i==null)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!e||e.length<=0)return i;function l(a,t){for(let r in t)a[r]=a[r]&&a[r].toString()==="[object Object]"?l(a[r],t[r]):a[r]=t[r];return a}return e.forEach(a=>{i=l(i,a)}),i},fe={toFixed:function(e,l){return l=l||2,this.isFloat(e)&&(e=e.toFixed(l)),e},isFloat:function(e){return e%1!==0},approximatelyEqual:function(e,l){return Math.abs(e-l)<1e-10},isSameSign:function(e,l){return Math.abs(e)===e&&Math.abs(l)===l||Math.abs(e)!==e&&Math.abs(l)!==l},isSameXCoordinateArea:function(e,l){return this.isSameSign(e.x,l.x)},isCollision:function(e,l){e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height,l.end={},l.end.x=l.start.x+l.width,l.end.y=l.start.y-l.height;var a=l.start.x>e.end.x||l.end.x<e.start.x||l.end.y>e.start.y||l.start.y<e.end.y;return!a}};function M(i,e){var l=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,a=i.replace(l,function(n,g,o,f){return g+g+o+o+f+f}),t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a),r=parseInt(t[1],16),h=parseInt(t[2],16),d=parseInt(t[3],16);return"rgba("+r+","+h+","+d+","+e+")"}function Ne(i,e,l){if(isNaN(i))throw new Error("[uCharts] series\u6570\u636E\u9700\u4E3ANumber\u683C\u5F0F");l=l||10,e=e||"upper";for(var a=1;l<1;)l*=10,a*=10;for(e==="upper"?i=Math.ceil(i*a):i=Math.floor(i*a);i%l!==0;)if(e==="upper"){if(i==i+1)break;i++}else i--;return i/a}function sa(i,e,l,a){let t=[];for(let r=0;r<i.length;r++){let h={data:[],name:e[r],color:l[r]};for(let d=0,n=a.length;d<n;d++){if(d<i[r]){h.data.push(null);continue}let g=0;for(let o=0;o<i[r];o++)g+=a[d-o][1];h.data.push(+(g/i[r]).toFixed(3))}t.push(h)}return t}function Re(i,e,l,a,t){var r=t.width-t.area[1]-t.area[3],h=l.eachSpacing*(t.chartData.xAxisData.xAxisPoints.length-1);t.type=="mount"&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),h+=(t.extra.mount.widthRatio-1)*l.eachSpacing);var d=e;return e>=0?(d=0,i.uevent.trigger("scrollLeft"),i.scrollOption.position="left",t.xAxis.scrollPosition="left"):Math.abs(e)>=h-r?(d=r-h,i.uevent.trigger("scrollRight"),i.scrollOption.position="right",t.xAxis.scrollPosition="right"):(i.scrollOption.position=e,t.xAxis.scrollPosition=e),d}function Ke(i,e,l){function a(t){for(;t<0;)t+=2*Math.PI;for(;t>2*Math.PI;)t-=2*Math.PI;return t}return i=a(i),e=a(e),l=a(l),e>l&&(l+=2*Math.PI,i<e&&(i+=2*Math.PI)),i>=e&&i<=l}function me(i,e){function l(f,u){return f[u-1]&&f[u+1]?f[u].y>=Math.max(f[u-1].y,f[u+1].y)||f[u].y<=Math.min(f[u-1].y,f[u+1].y):!1}function a(f,u){return f[u-1]&&f[u+1]?f[u].x>=Math.max(f[u-1].x,f[u+1].x)||f[u].x<=Math.min(f[u-1].x,f[u+1].x):!1}var t=.2,r=.2,h=null,d=null,n=null,g=null;if(e<1?(h=i[0].x+(i[1].x-i[0].x)*t,d=i[0].y+(i[1].y-i[0].y)*t):(h=i[e].x+(i[e+1].x-i[e-1].x)*t,d=i[e].y+(i[e+1].y-i[e-1].y)*t),e>i.length-3){var o=i.length-1;n=i[o].x-(i[o].x-i[o-1].x)*r,g=i[o].y-(i[o].y-i[o-1].y)*r}else n=i[e+1].x-(i[e+2].x-i[e].x)*r,g=i[e+1].y-(i[e+2].y-i[e].y)*r;return l(i,e+1)&&(g=i[e+1].y),l(i,e)&&(d=i[e].y),a(i,e+1)&&(n=i[e+1].x),a(i,e)&&(h=i[e].x),(d>
`+i[l].seriesName+"\uFF1A"+a+" \u4E07\u5143",e+="<br/>"+i[l].marker+i[l].seriesName+"\uFF1A"+a+" \u4E07\u5143"}return e},legendFormat:function(i){return"\u81EA\u5B9A\u4E49\u56FE\u4F8B+"+i},yAxisFormatDemo:function(i,e){return i+"\u5143"},seriesFormatDemo:function(i){return i.name+"\u5E74"+i.value+"\u5143"}},demotype:{color:re},column:{color:re,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"bar",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},line:{color:re,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],barwidth:20,label:{show:!0,color:"#666666",position:"top"}}},area:{color:re,title:{text:""},tooltip:{trigger:"axis"},grid:{top:30,bottom:50,right:15,left:40},legend:{bottom:"left"},toolbox:{show:!1},xAxis:{type:"category",axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}},boundaryGap:!0,data:[]},yAxis:{type:"value",axisTick:{show:!1},axisLabel:{color:"#666666"},axisLine:{lineStyle:{color:"#CCCCCC"}}},seriesTemplate:{name:"",type:"line",data:[],areaStyle:{},label:{show:!0,color:"#666666",position:"top"}}},pie:{color:re,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:"50%",label:{show:!0,color:"#666666",position:"top"}}},ring:{color:re,title:{text:""},tooltip:{trigger:"item"},grid:{top:40,bottom:30,right:15,left:15},legend:{bottom:"left"},seriesTemplate:{name:"",type:"pie",data:[],radius:["40%","70%"],avoidLabelOverlap:!1,label:{show:!0,color:"#666666",position:"top"},labelLine:{show:!0}}},rose:{color:re,title:{text:""},tooltip:{trigger:"item"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"pie",data:[],radius:"55%",center:["50%","50%"],roseType:"area"}},funnel:{color:re,title:{text:""},tooltip:{trigger:"item",formatter:"{b} : {c}%"},legend:{top:"bottom"},seriesTemplate:{name:"",type:"funnel",left:"10%",top:60,bottom:60,width:"80%",min:0,max:100,minSize:"0%",maxSize:"100%",sort:"descending",gap:2,label:{show:!0,position:"inside"},labelLine:{length:10,lineStyle:{width:1,type:"solid"}},itemStyle:{bordercolor:"#fff",borderwidth:1},emphasis:{label:{fontSize:20}},data:[]}},gauge:{color:re,tooltip:{formatter:"{a} <br/>{b} : {c}%"},seriesTemplate:{name:"\u4E1A\u52A1\u6307\u6807",type:"gauge",detail:{formatter:"{value}%"},data:[{value:50,name:"\u5B8C\u6210\u7387"}]}},candle:{xAxis:{data:[]},yAxis:{},color:re,title:{text:""},dataZoom:[{type:"inside",xAxisIndex:[0,1],start:10,end:100},{show:!0,xAxisIndex:[0,1],type:"slider",bottom:10,start:10,end:100}],seriesTemplate:{name:"",type:"k",data:[]}}},E=Mi;var q={},ce=null;function pe(i={},...e){for(let l in e)for(let a in e[l])e[l].hasOwnProperty(a)&&(i[a]=e[l][a]&&typeof e[l][a]=="object"?pe(Array.isArray(e[l][a])?[]:{},i[a],e[l][a]):e[l][a]);return i}function Ge(i,e){for(let l in i)i.hasOwnProperty(l)&&i[l]!==null&&typeof i[l]=="object"?Ge(i[l],e):l==="format"&&typeof i[l]=="string"&&(i.formatter=e[i[l]]?e[i[l]]:void 0);return i}var pi={data(){return{rid:null}},mounted(){ce={top:0,left:0},setTimeout(()=>{this.rid===null&&this.$ownerInstance&&this.$ownerInstance.callMethod("getRenderType")},200)},destroyed(){delete D.option[this.rid],delete D.instance[this.rid],delete E.option[this.rid],delete E.instance[this.rid]},methods:{ecinit(i,e,l,a){let t=JSON.stringify(i.id);this.rid=t,q[t]=this.$ownerInstance||a;let r=JSON.parse(JSON.stringify(i)),h=r.type;h&&E.type.includes(h)?E.option[t]=pe({