st-comp 0.0.71 → 0.0.72

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.
Files changed (97) hide show
  1. package/{lib/ChartLayout.cjs.js → es/ChartLayout.cjs} +1 -1
  2. package/{lib/ChartLayout.es.js → es/ChartLayout.js} +15 -14
  3. package/es/Dialog.cjs +1 -0
  4. package/{lib/Dialog.es.js → es/Dialog.js} +21 -20
  5. package/{lib/HeatMap.cjs.js → es/HeatMap.cjs} +1 -1
  6. package/{lib/HeatMap.es.js → es/HeatMap.js} +21 -20
  7. package/{lib/Kline.es.js → es/Kline.js} +82 -82
  8. package/{lib/KlineNew.cjs.js → es/KlineNew.cjs} +1 -1
  9. package/es/LinearLegend.cjs +1 -0
  10. package/{lib/LinearLegend.es.js → es/LinearLegend.js} +20 -19
  11. package/{lib/Map.cjs.js → es/Map.cjs} +1 -1
  12. package/{lib/Map.es.js → es/Map.js} +25 -24
  13. package/es/Pagination.cjs +1 -0
  14. package/{lib/Pagination.es.js → es/Pagination.js} +103 -102
  15. package/es/Pie.cjs +2 -0
  16. package/{lib/Pie.es.js → es/Pie.js} +20 -19
  17. package/{lib/Table.cjs.js → es/Table.cjs} +3 -3
  18. package/{lib/Table.es.js → es/Table.js} +345 -344
  19. package/{lib/TreeMap.cjs.js → es/TreeMap.cjs} +2 -2
  20. package/{lib/TreeMap.es.js → es/TreeMap.js} +17 -16
  21. package/{lib/VarietySearch.cjs.js → es/VarietySearch.cjs} +2 -2
  22. package/{lib/VarietySearch.es.js → es/VarietySearch.js} +365 -364
  23. package/{lib/VirtualTable.cjs.js → es/VirtualTable.cjs} +5 -5
  24. package/{lib/VirtualTable.es.js → es/VirtualTable.js} +203 -202
  25. package/es/style.css +1 -0
  26. package/es/talib.wasm +0 -0
  27. package/es/vite.svg +1 -0
  28. package/lib/bundle.js +144404 -0
  29. package/lib/bundle.umd.cjs +139 -0
  30. package/lib/style.css +1 -1
  31. package/package.json +6 -4
  32. package/packages/ChartLayout/index.ts +5 -5
  33. package/packages/Dialog/index.ts +5 -5
  34. package/packages/HeatMap/index.ts +5 -5
  35. package/packages/LinearLegend/index.ts +5 -5
  36. package/packages/Map/index.ts +5 -5
  37. package/packages/Pagination/index.ts +5 -5
  38. package/packages/Pie/index.ts +5 -5
  39. package/packages/Table/index.ts +5 -5
  40. package/packages/TreeMap/index.ts +5 -5
  41. package/packages/VarietySearch/index.ts +5 -5
  42. package/packages/VirtualTable/index.ts +5 -5
  43. package/vitePlugins/createExportFile.ts +5 -5
  44. package/lib/Dialog.cjs.js +0 -1
  45. package/lib/LinearLegend.cjs.js +0 -1
  46. package/lib/Pagination.cjs.js +0 -1
  47. package/lib/Pie.cjs.js +0 -2
  48. package/lib/bundle.cjs.js +0 -1
  49. package/lib/bundle.es.js +0 -46
  50. /package/{lib/Kline.cjs.js → es/Kline.cjs} +0 -0
  51. /package/{lib/KlineNew.es.js → es/KlineNew.js} +0 -0
  52. /package/{lib → es}/_commonjsHelpers-10dfc225.js +0 -0
  53. /package/{lib → es}/_commonjsHelpers-87b0abe8.cjs +0 -0
  54. /package/{lib → es}/_plugin-vue_export-helper-dad06003.js +0 -0
  55. /package/{lib → es}/_plugin-vue_export-helper-f246444f.cjs +0 -0
  56. /package/{lib → es}/base-4865d432.cjs +0 -0
  57. /package/{lib → es}/base-a240bf62.js +0 -0
  58. /package/{lib → es}/bundle.umd-4967d574.js +0 -0
  59. /package/{lib → es}/bundle.umd-c5698c50.cjs +0 -0
  60. /package/{lib → es}/castArray-3341cbb4.cjs +0 -0
  61. /package/{lib → es}/castArray-a723a736.js +0 -0
  62. /package/{lib → es}/config-provider-3db4dac6.js +0 -0
  63. /package/{lib → es}/config-provider-cf4edc1e.cjs +0 -0
  64. /package/{lib → es}/el-button-c24606d0.cjs +0 -0
  65. /package/{lib → es}/el-button-fa6a5742.js +0 -0
  66. /package/{lib → es}/el-empty-282e5e93.js +0 -0
  67. /package/{lib → es}/el-empty-608948d9.cjs +0 -0
  68. /package/{lib → es}/el-icon-7718f55e.cjs +0 -0
  69. /package/{lib → es}/el-icon-d9ef9ccc.js +0 -0
  70. /package/{lib → es}/el-overlay-7fceb816.cjs +0 -0
  71. /package/{lib → es}/el-overlay-9b7bdd18.js +0 -0
  72. /package/{lib → es}/el-scrollbar-7dc53299.js +0 -0
  73. /package/{lib → es}/el-scrollbar-bc381e35.cjs +0 -0
  74. /package/{lib → es}/el-select-85ed2643.js +0 -0
  75. /package/{lib → es}/el-select-a50741c1.cjs +0 -0
  76. /package/{lib → es}/el-tag-308f715a.js +0 -0
  77. /package/{lib → es}/el-tag-87fd3960.cjs +0 -0
  78. /package/{lib → es}/el-tooltip-0ea8fbf8.cjs +0 -0
  79. /package/{lib → es}/el-tooltip-4ed993c7.js +0 -0
  80. /package/{lib → es}/focus-trap-2a734f35.cjs +0 -0
  81. /package/{lib → es}/focus-trap-6922b96b.js +0 -0
  82. /package/{lib → es}/index-1508a06b.js +0 -0
  83. /package/{lib → es}/index-48a9f60d.cjs +0 -0
  84. /package/{lib → es}/index-657047bb.js +0 -0
  85. /package/{lib → es}/index-eea0bcb3.cjs +0 -0
  86. /package/{lib → es}/index.esm-8d9a2abe.js +0 -0
  87. /package/{lib → es}/index.esm-94a95a2a.cjs +0 -0
  88. /package/{lib → es}/raf-5e5c53db.cjs +0 -0
  89. /package/{lib → es}/raf-fc8a56cf.js +0 -0
  90. /package/{lib → es}/scroll-bb8039ba.cjs +0 -0
  91. /package/{lib → es}/scroll-cfdae01b.js +0 -0
  92. /package/{lib → es}/typescript-7ae59c4c.js +0 -0
  93. /package/{lib → es}/typescript-b63f8e83.cjs +0 -0
  94. /package/{lib → es}/vnode-a9714179.js +0 -0
  95. /package/{lib → es}/vnode-abafec9e.cjs +0 -0
  96. /package/{lib → es}/zh-cn-92978806.js +0 -0
  97. /package/{lib → es}/zh-cn-d4df7172.cjs +0 -0
@@ -1 +1 @@
1
- "use strict";require("./base-4865d432.cjs");const r=require("./el-empty-608948d9.cjs"),t=require("vue"),o=require("./_plugin-vue_export-helper-f246444f.cjs");const u={__name:"index",props:{data:{type:Array,default:()=>[]},spacing:{type:Number,default:()=>2},row:{type:Number,default:()=>3},col:{type:Number,default:()=>3},emptyText:{type:String,default:()=>"暂无数据"}},setup(e){return(n,d)=>{const l=r.ElEmpty;return e.data&&e.data.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"chartLayout",style:t.normalizeStyle({width:`calc(100% + ${e.spacing}px)`,height:`calc(100% + ${e.spacing}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.slice(0,e.col*e.row),(a,i)=>(t.openBlock(),t.createElementBlock("div",{key:a.key,class:"chartLayout-item",style:t.normalizeStyle({margin:`0 ${e.spacing}px ${e.spacing}px 0`,width:`calc(100% / ${e.row} - ${e.spacing}px)`,height:`calc(100% / ${e.col} - ${e.spacing}px)`})},[t.renderSlot(n.$slots,"default",{data:a,index:i},void 0,!0)],4))),128))],4)):(t.openBlock(),t.createBlock(l,{key:1,description:e.emptyText,style:{height:"80%"}},null,8,["description"]))}}},c=o._export_sfc(u,[["__scopeId","data-v-578f611c"]]);c.install=e=>{e.component("st-chartLayout",c)};module.exports=c;
1
+ "use strict";require("./base-4865d432.cjs");const i=require("./el-empty-608948d9.cjs"),t=require("vue"),r=require("./_plugin-vue_export-helper-f246444f.cjs");const o={__name:"index",props:{data:{type:Array,default:()=>[]},spacing:{type:Number,default:()=>2},row:{type:Number,default:()=>3},col:{type:Number,default:()=>3},emptyText:{type:String,default:()=>"暂无数据"}},setup(e){return(a,s)=>{const n=i.ElEmpty;return e.data&&e.data.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"chartLayout",style:t.normalizeStyle({width:`calc(100% + ${e.spacing}px)`,height:`calc(100% + ${e.spacing}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data.slice(0,e.col*e.row),(c,l)=>(t.openBlock(),t.createElementBlock("div",{key:c.key,class:"chartLayout-item",style:t.normalizeStyle({margin:`0 ${e.spacing}px ${e.spacing}px 0`,width:`calc(100% / ${e.row} - ${e.spacing}px)`,height:`calc(100% / ${e.col} - ${e.spacing}px)`})},[t.renderSlot(a.$slots,"default",{data:c,index:l},void 0,!0)],4))),128))],4)):(t.openBlock(),t.createBlock(n,{key:1,description:e.emptyText,style:{height:"80%"}},null,8,["description"]))}}},u=r._export_sfc(o,[["__scopeId","data-v-578f611c"]]),d={install(e){e.component("st-chartLayout",u)}};module.exports=d;
@@ -1,8 +1,8 @@
1
1
  import "./base-a240bf62.js";
2
- import { E as o } from "./el-empty-282e5e93.js";
3
- import { openBlock as e, createElementBlock as a, normalizeStyle as n, Fragment as u, renderList as y, renderSlot as s, createBlock as m } from "vue";
4
- import { _ as f } from "./_plugin-vue_export-helper-dad06003.js";
5
- const g = {
2
+ import { E as r } from "./el-empty-282e5e93.js";
3
+ import { openBlock as e, createElementBlock as a, normalizeStyle as n, Fragment as o, renderList as u, renderSlot as s, createBlock as y } from "vue";
4
+ import { _ as m } from "./_plugin-vue_export-helper-dad06003.js";
5
+ const f = {
6
6
  __name: "index",
7
7
  props: {
8
8
  data: {
@@ -31,8 +31,8 @@ const g = {
31
31
  }
32
32
  },
33
33
  setup(t) {
34
- return (i, h) => {
35
- const d = o;
34
+ return (l, x) => {
35
+ const i = r;
36
36
  return t.data && t.data.length ? (e(), a("div", {
37
37
  key: 0,
38
38
  class: "chartLayout",
@@ -41,7 +41,7 @@ const g = {
41
41
  height: `calc(100% + ${t.spacing}px)`
42
42
  })
43
43
  }, [
44
- (e(!0), a(u, null, y(t.data.slice(0, t.col * t.row), (c, r) => (e(), a("div", {
44
+ (e(!0), a(o, null, u(t.data.slice(0, t.col * t.row), (c, d) => (e(), a("div", {
45
45
  key: c.key,
46
46
  class: "chartLayout-item",
47
47
  style: n({
@@ -50,22 +50,23 @@ const g = {
50
50
  height: `calc(100% / ${t.col} - ${t.spacing}px)`
51
51
  })
52
52
  }, [
53
- s(i.$slots, "default", {
53
+ s(l.$slots, "default", {
54
54
  data: c,
55
- index: r
55
+ index: d
56
56
  }, void 0, !0)
57
57
  ], 4))), 128))
58
- ], 4)) : (e(), m(d, {
58
+ ], 4)) : (e(), y(i, {
59
59
  key: 1,
60
60
  description: t.emptyText,
61
61
  style: { height: "80%" }
62
62
  }, null, 8, ["description"]));
63
63
  };
64
64
  }
65
- }, l = /* @__PURE__ */ f(g, [["__scopeId", "data-v-578f611c"]]);
66
- l.install = (t) => {
67
- t.component("st-chartLayout", l);
65
+ }, g = /* @__PURE__ */ m(f, [["__scopeId", "data-v-578f611c"]]), v = {
66
+ install(t) {
67
+ t.component("st-chartLayout", g);
68
+ }
68
69
  };
69
70
  export {
70
- l as default
71
+ v as default
71
72
  };
package/es/Dialog.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";require("./base-4865d432.cjs");const u=require("./zh-cn-d4df7172.cjs"),f=require("./el-overlay-7fceb816.cjs"),V=require("./el-button-c24606d0.cjs"),e=require("vue");require("./config-provider-cf4edc1e.cjs");require("./focus-trap-2a734f35.cjs");require("./index-48a9f60d.cjs");require("./vnode-abafec9e.cjs");require("./scroll-bb8039ba.cjs");require("./index-eea0bcb3.cjs");const C=e.createElementVNode("span",null,"This is a message",-1),_={class:"dialog-footer"},q=e.defineComponent({__name:"index",props:{modelValue:{type:Boolean,required:!0},title:{type:String,default:()=>""},style:{type:String,default:()=>""}},emits:["update:modelValue"],setup(o,{emit:s}){const i=s,d=o,l=e.computed({get(){return d.modelValue},set(n){i("update:modelValue",n)}}),c=n=>{i("update:modelValue",!1)};return(n,t)=>{const a=V.ElButton,m=f.ElDialog,p=u.ElConfigProvider;return e.openBlock(),e.createBlock(p,{locale:e.unref(u.zhCn)},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:l.value,"onUpdate:modelValue":t[2]||(t[2]=r=>l.value=r),title:o.title,width:"30%","before-close":c,style:e.normalizeStyle(o.style)},{footer:e.withCtx(()=>[e.createElementVNode("span",_,[e.createVNode(a,{onClick:t[0]||(t[0]=r=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode("Cancel")]),_:1}),e.createVNode(a,{type:"primary",onClick:t[1]||(t[1]=r=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(" Confirm ")]),_:1})])]),default:e.withCtx(()=>[C]),_:1},8,["modelValue","title","style"])]),_:1},8,["locale"])}}}),v={install(o){o.component("st-dialog",q)}};module.exports=v;
@@ -1,15 +1,15 @@
1
1
  import "./base-a240bf62.js";
2
- import { z as g, E as y } from "./zh-cn-92978806.js";
3
- import { E as v } from "./el-overlay-9b7bdd18.js";
4
- import { E as C } from "./el-button-fa6a5742.js";
5
- import { defineComponent as E, computed as x, openBlock as k, createBlock as B, unref as b, withCtx as o, createVNode as i, normalizeStyle as z, createElementVNode as u, createTextVNode as m } from "vue";
2
+ import { z as V, E as g } from "./zh-cn-92978806.js";
3
+ import { E as y } from "./el-overlay-9b7bdd18.js";
4
+ import { E as v } from "./el-button-fa6a5742.js";
5
+ import { defineComponent as C, computed as E, openBlock as x, createBlock as k, unref as B, withCtx as o, createVNode as i, normalizeStyle as b, createElementVNode as d, createTextVNode as m } from "vue";
6
6
  import "./config-provider-3db4dac6.js";
7
7
  import "./focus-trap-6922b96b.js";
8
8
  import "./index-1508a06b.js";
9
9
  import "./vnode-a9714179.js";
10
10
  import "./scroll-cfdae01b.js";
11
11
  import "./index-657047bb.js";
12
- const N = /* @__PURE__ */ u("span", null, "This is a message", -1), S = { class: "dialog-footer" }, d = /* @__PURE__ */ E({
12
+ const z = /* @__PURE__ */ d("span", null, "This is a message", -1), N = { class: "dialog-footer" }, S = /* @__PURE__ */ C({
13
13
  __name: "index",
14
14
  props: {
15
15
  modelValue: {
@@ -26,31 +26,31 @@ const N = /* @__PURE__ */ u("span", null, "This is a message", -1), S = { class:
26
26
  }
27
27
  },
28
28
  emits: ["update:modelValue"],
29
- setup(t, { emit: p }) {
30
- const r = p, f = t, l = x({
29
+ setup(t, { emit: u }) {
30
+ const r = u, p = t, l = E({
31
31
  get() {
32
- return f.modelValue;
32
+ return p.modelValue;
33
33
  },
34
34
  set(n) {
35
35
  r("update:modelValue", n);
36
36
  }
37
- }), c = (n) => {
37
+ }), f = (n) => {
38
38
  r("update:modelValue", !1);
39
39
  };
40
40
  return (n, e) => {
41
- const s = C, _ = v, V = y;
42
- return k(), B(V, { locale: b(g) }, {
41
+ const s = v, c = y, _ = g;
42
+ return x(), k(_, { locale: B(V) }, {
43
43
  default: o(() => [
44
- i(_, {
44
+ i(c, {
45
45
  modelValue: l.value,
46
46
  "onUpdate:modelValue": e[2] || (e[2] = (a) => l.value = a),
47
47
  title: t.title,
48
48
  width: "30%",
49
- "before-close": c,
50
- style: z(t.style)
49
+ "before-close": f,
50
+ style: b(t.style)
51
51
  }, {
52
52
  footer: o(() => [
53
- u("span", S, [
53
+ d("span", N, [
54
54
  i(s, {
55
55
  onClick: e[0] || (e[0] = (a) => l.value = !1)
56
56
  }, {
@@ -71,7 +71,7 @@ const N = /* @__PURE__ */ u("span", null, "This is a message", -1), S = { class:
71
71
  ])
72
72
  ]),
73
73
  default: o(() => [
74
- N
74
+ z
75
75
  ]),
76
76
  _: 1
77
77
  }, 8, ["modelValue", "title", "style"])
@@ -80,10 +80,11 @@ const N = /* @__PURE__ */ u("span", null, "This is a message", -1), S = { class:
80
80
  }, 8, ["locale"]);
81
81
  };
82
82
  }
83
- });
84
- d.install = (t) => {
85
- t.component("st-dialog", d);
83
+ }), G = {
84
+ install(t) {
85
+ t.component("st-dialog", S);
86
+ }
86
87
  };
87
88
  export {
88
- d as default
89
+ G as default
89
90
  };
@@ -1 +1 @@
1
- "use strict";const a=require("vue"),v=require("echarts"),y=require("./_plugin-vue_export-helper-f246444f.cjs");function h(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(c,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return c.default=e,Object.freeze(c)}const x=h(v),b=a.defineComponent({__name:"index",props:{data:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e,{expose:c}){const n={tooltipFormatter:null,dataZoom:null,grid:{left:"60px",bottom:"20px",right:"0",top:0}};let o,l;const r=e,u=a.ref(),s=a.computed(()=>({...n,...r.config}));a.watch(()=>[r.data],()=>{i()},{deep:!0}),a.onMounted(()=>{o=x.init(u.value),i();let t=!0;l=new ResizeObserver(()=>{if(t){t=null;return}o.resize()}),l.observe(u.value)}),a.onUnmounted(()=>{o.dispose(),l.disconnect(),l=null});const i=()=>{o.setOption({tooltip:{confine:!0,formatter:s.value.tooltipFormatter?t=>s.value.tooltipFormatter(t,r.data):null},grid:s.value.grid,xAxis:{type:"category",data:r.data.date},yAxis:{type:"category",inverse:!0,data:r.data.data.map(t=>t.name)},visualMap:{type:"piecewise",show:!1,inRange:[]},dataZoom:s.value.dataZoom,series:[{name:"热力图",type:"heatmap",info:r.data,data:r.data.data.reduce((t,f,_)=>[...t,...f.data.reduce((m,d,g)=>d===null?m:[...m,{value:[g,_,d.value],itemStyle:{color:d.color}}],[])],[]),label:{show:!1}}]})};return c({reset:()=>{i()}}),(t,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"chartRef",ref:u,class:"chart"},null,512))}});const p=y._export_sfc(b,[["__scopeId","data-v-4c74604d"]]);p.install=e=>{e.component("st-heatMap",p)};module.exports=p;
1
+ "use strict";const a=require("vue"),g=require("echarts"),v=require("./_plugin-vue_export-helper-f246444f.cjs");function y(e){const c=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(c,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return c.default=e,Object.freeze(c)}const x=y(g),h=a.defineComponent({__name:"index",props:{data:{type:Object,default:()=>({})},config:{type:Object,default:()=>({})}},setup(e,{expose:c}){const n={tooltipFormatter:null,dataZoom:null,grid:{left:"60px",bottom:"20px",right:"0",top:0}};let o,l;const r=e,u=a.ref(),s=a.computed(()=>({...n,...r.config}));a.watch(()=>[r.data],()=>{i()},{deep:!0}),a.onMounted(()=>{o=x.init(u.value),i();let t=!0;l=new ResizeObserver(()=>{if(t){t=null;return}o.resize()}),l.observe(u.value)}),a.onUnmounted(()=>{o.dispose(),l.disconnect(),l=null});const i=()=>{o.setOption({tooltip:{confine:!0,formatter:s.value.tooltipFormatter?t=>s.value.tooltipFormatter(t,r.data):null},grid:s.value.grid,xAxis:{type:"category",data:r.data.date},yAxis:{type:"category",inverse:!0,data:r.data.data.map(t=>t.name)},visualMap:{type:"piecewise",show:!1,inRange:[]},dataZoom:s.value.dataZoom,series:[{name:"热力图",type:"heatmap",info:r.data,data:r.data.data.reduce((t,p,m)=>[...t,...p.data.reduce((f,d,_)=>d===null?f:[...f,{value:[_,m,d.value],itemStyle:{color:d.color}}],[])],[]),label:{show:!1}}]})};return c({reset:()=>{i()}}),(t,p)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"chartRef",ref:u,class:"chart"},null,512))}});const b=v._export_sfc(h,[["__scopeId","data-v-4c74604d"]]),O={install(e){e.component("st-heatMap",b)}};module.exports=O;
@@ -1,7 +1,7 @@
1
- import { defineComponent as v, ref as g, computed as y, watch as h, onMounted as x, onUnmounted as b, openBlock as w, createElementBlock as R } from "vue";
2
- import * as F from "echarts";
3
- import { _ as M } from "./_plugin-vue_export-helper-dad06003.js";
4
- const O = /* @__PURE__ */ v({
1
+ import { defineComponent as _, ref as v, computed as g, watch as x, onMounted as y, onUnmounted as h, openBlock as b, createElementBlock as w } from "vue";
2
+ import * as R from "echarts";
3
+ import { _ as F } from "./_plugin-vue_export-helper-dad06003.js";
4
+ const M = /* @__PURE__ */ _({
5
5
  __name: "index",
6
6
  props: {
7
7
  data: {
@@ -14,8 +14,8 @@ const O = /* @__PURE__ */ v({
14
14
  default: () => ({})
15
15
  }
16
16
  },
17
- setup(n, { expose: u }) {
18
- const f = {
17
+ setup(n, { expose: p }) {
18
+ const u = {
19
19
  tooltipFormatter: null,
20
20
  dataZoom: null,
21
21
  grid: {
@@ -26,15 +26,15 @@ const O = /* @__PURE__ */ v({
26
26
  }
27
27
  };
28
28
  let a, o;
29
- const t = n, l = g(), r = y(() => ({ ...f, ...t.config }));
30
- h(
29
+ const t = n, l = v(), r = g(() => ({ ...u, ...t.config }));
30
+ x(
31
31
  () => [t.data],
32
32
  () => {
33
33
  s();
34
34
  },
35
35
  { deep: !0 }
36
- ), x(() => {
37
- a = F.init(l.value), s();
36
+ ), y(() => {
37
+ a = R.init(l.value), s();
38
38
  let e = !0;
39
39
  o = new ResizeObserver(() => {
40
40
  if (e) {
@@ -43,7 +43,7 @@ const O = /* @__PURE__ */ v({
43
43
  }
44
44
  a.resize();
45
45
  }), o.observe(l.value);
46
- }), b(() => {
46
+ }), h(() => {
47
47
  a.dispose(), o.disconnect(), o = null;
48
48
  });
49
49
  const s = () => {
@@ -75,12 +75,12 @@ const O = /* @__PURE__ */ v({
75
75
  name: "热力图",
76
76
  type: "heatmap",
77
77
  info: t.data,
78
- data: t.data.data.reduce((e, d, m) => [
78
+ data: t.data.data.reduce((e, d, f) => [
79
79
  ...e,
80
- ...d.data.reduce((i, c, _) => c === null ? i : [
80
+ ...d.data.reduce((i, c, m) => c === null ? i : [
81
81
  ...i,
82
82
  {
83
- value: [_, m, c.value],
83
+ value: [m, f, c.value],
84
84
  itemStyle: {
85
85
  color: c.color
86
86
  }
@@ -96,22 +96,23 @@ const O = /* @__PURE__ */ v({
96
96
  }
97
97
  );
98
98
  };
99
- return u({
99
+ return p({
100
100
  reset: () => {
101
101
  s();
102
102
  }
103
103
  // 重置
104
- }), (e, d) => (w(), R("div", {
104
+ }), (e, d) => (b(), w("div", {
105
105
  ref_key: "chartRef",
106
106
  ref: l,
107
107
  class: "chart"
108
108
  }, null, 512));
109
109
  }
110
110
  });
111
- const p = /* @__PURE__ */ M(O, [["__scopeId", "data-v-4c74604d"]]);
112
- p.install = (n) => {
113
- n.component("st-heatMap", p);
111
+ const O = /* @__PURE__ */ F(M, [["__scopeId", "data-v-4c74604d"]]), C = {
112
+ install(n) {
113
+ n.component("st-heatMap", O);
114
+ }
114
115
  };
115
116
  export {
116
- p as default
117
+ C as default
117
118
  };