st-comp 0.0.31 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/bundle.umd.cjs +1 -1
- package/package.json +1 -1
- package/src/pages/TreeMap/index.vue +3 -2
- package/vite.config.ts +0 -5
package/lib/bundle.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(t,_o){typeof exports=="object"&&typeof module<"u"?module.exports=_o(require("vue"),require("echarts")):typeof define=="function"&&define.amd?define(["vue","echarts"],_o):(t=typeof globalThis<"u"?globalThis:t||self,t.Bundle=_o(t.
|
|
1
|
+
(function(t,_o){typeof exports=="object"&&typeof module<"u"?module.exports=_o(require("vue"),require("echarts")):typeof define=="function"&&define.amd?define(["vue","echarts"],_o):(t=typeof globalThis<"u"?globalThis:t||self,t.Bundle=_o(t.vue,t.echarts))})(this,function(t,_o){"use strict";function cC(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const b=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,b.get?b:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const L4=cC(_o),M5=function(e,o,...r){let b;o.includes("mouse")||o.includes("click")?b="MouseEvents":o.includes("key")?b="KeyboardEvent":b="HTMLEvents";const w=document.createEvent(b);return w.initEvent(o,...r),e.dispatchEvent(w),e},d0=(e,o,{checkForDefaultPrevented:r=!0}={})=>w=>{const N=e==null?void 0:e(w);if(r===!1||!N)return o==null?void 0:o(w)};var Bm;const tn=typeof window<"u",fC=e=>typeof e=="string",Rm=()=>{},Fm=tn&&((Bm=window==null?void 0:window.navigator)==null?void 0:Bm.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Cl(e){return typeof e=="function"?e():t.unref(e)}function pC(e){return e}function E5(e){return t.getCurrentScope()?(t.onScopeDispose(e),!0):!1}function dC(e,o=!0){t.getCurrentInstance()?t.onMounted(e):o?e():t.nextTick(e)}function Mo(e,o,r={}){const{immediate:b=!0}=r,w=t.ref(!1);let N=null;function S(){N&&(clearTimeout(N),N=null)}function T(){w.value=!1,S()}function B(...F){S(),w.value=!0,N=setTimeout(()=>{w.value=!1,N=null,e(...F)},Cl(o))}return b&&(w.value=!0,tn&&B()),E5(T),{isPending:t.readonly(w),start:B,stop:T}}function j0(e){var o;const r=Cl(e);return(o=r==null?void 0:r.$el)!=null?o:r}const _l=tn?window:void 0;function R3(...e){let o,r,b,w;if(fC(e[0])||Array.isArray(e[0])?([r,b,w]=e,o=_l):[o,r,b,w]=e,!o)return Rm;Array.isArray(r)||(r=[r]),Array.isArray(b)||(b=[b]);const N=[],S=()=>{N.forEach(H=>H()),N.length=0},T=(H,U,Q,K)=>(H.addEventListener(U,Q,K),()=>H.removeEventListener(U,Q,K)),B=t.watch(()=>[j0(o),Cl(w)],([H,U])=>{S(),H&&N.push(...r.flatMap(Q=>b.map(K=>T(H,Q,K,U))))},{immediate:!0,flush:"post"}),F=()=>{B(),S()};return E5(F),F}let km=!1;function mC(e,o,r={}){const{window:b=_l,ignore:w=[],capture:N=!0,detectIframe:S=!1}=r;if(!b)return;Fm&&!km&&(km=!0,Array.from(b.document.body.children).forEach(Q=>Q.addEventListener("click",Rm)));let T=!0;const B=Q=>w.some(K=>{if(typeof K=="string")return Array.from(b.document.querySelectorAll(K)).some(q=>q===Q.target||Q.composedPath().includes(q));{const q=j0(K);return q&&(Q.target===q||Q.composedPath().includes(q))}}),H=[R3(b,"click",Q=>{const K=j0(e);if(!(!K||K===Q.target||Q.composedPath().includes(K))){if(Q.detail===0&&(T=!B(Q)),!T){T=!0;return}o(Q)}},{passive:!0,capture:N}),R3(b,"pointerdown",Q=>{const K=j0(e);K&&(T=!Q.composedPath().includes(K)&&!B(Q))},{passive:!0}),S&&R3(b,"blur",Q=>{var K;const q=j0(e);((K=b.document.activeElement)==null?void 0:K.tagName)==="IFRAME"&&!(q!=null&&q.contains(b.document.activeElement))&&o(Q)})].filter(Boolean);return()=>H.forEach(Q=>Q())}function hC(e,o=!1){const r=t.ref(),b=()=>r.value=!!e();return b(),dC(b,o),r}const zm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pm="__vueuse_ssr_handlers__";zm[Pm]=zm[Pm]||{};var jm=Object.getOwnPropertySymbols,gC=Object.prototype.hasOwnProperty,yC=Object.prototype.propertyIsEnumerable,vC=(e,o)=>{var r={};for(var b in e)gC.call(e,b)&&o.indexOf(b)<0&&(r[b]=e[b]);if(e!=null&&jm)for(var b of jm(e))o.indexOf(b)<0&&yC.call(e,b)&&(r[b]=e[b]);return r};function H0(e,o,r={}){const b=r,{window:w=_l}=b,N=vC(b,["window"]);let S;const T=hC(()=>w&&"ResizeObserver"in w),B=()=>{S&&(S.disconnect(),S=void 0)},F=t.watch(()=>j0(e),U=>{B(),T.value&&w&&U&&(S=new ResizeObserver(o),S.observe(U,N))},{immediate:!0,flush:"post"}),H=()=>{B(),F()};return E5(H),{isSupported:T,stop:H}}var Hm;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Hm||(Hm={}));var bC=Object.defineProperty,$m=Object.getOwnPropertySymbols,xC=Object.prototype.hasOwnProperty,wC=Object.prototype.propertyIsEnumerable,Um=(e,o,r)=>o in e?bC(e,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[o]=r,NC=(e,o)=>{for(var r in o||(o={}))xC.call(o,r)&&Um(e,r,o[r]);if($m)for(var r of $m(o))wC.call(o,r)&&Um(e,r,o[r]);return e};NC({linear:pC},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const AC=()=>tn&&/firefox/i.test(window.navigator.userAgent);/**
|
|
2
2
|
* @vue/shared v3.4.19
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
package/package.json
CHANGED
|
@@ -520,16 +520,17 @@ onMounted(() => {
|
|
|
520
520
|
data.value = defaultData.map(item => {
|
|
521
521
|
const itemPercent = Math.random() > 0.5 ? Math.random() * 10 : 0 - Math.random() * 10
|
|
522
522
|
return {
|
|
523
|
+
name: item.name,
|
|
523
524
|
value: item.value,
|
|
524
525
|
labelValue: (item.value / 10000).toFixed(2) + '万',
|
|
525
|
-
name: item.name,
|
|
526
526
|
percent: itemPercent.toFixed(2),
|
|
527
527
|
color: linearLegendRef.value.numberToColor(itemPercent),
|
|
528
528
|
children: item.children.map(child => {
|
|
529
529
|
const childPercent = Math.random() > 0.5 ? Math.random() * 10 : 0 - Math.random() * 10
|
|
530
530
|
return {
|
|
531
|
-
value: child.value,
|
|
532
531
|
name: child.name,
|
|
532
|
+
value: child.value,
|
|
533
|
+
colorValue: childPercent.toFixed(2),
|
|
533
534
|
percent: childPercent.toFixed(2),
|
|
534
535
|
color: linearLegendRef.value.numberToColor(childPercent)
|
|
535
536
|
}
|