react-big-screen 0.0.21 → 0.0.22

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 (64) hide show
  1. package/es/{IInputNumber-PnHJNf9H.mjs → IInputNumber-CEotcbKL.mjs} +1 -1
  2. package/es/{Line-CLgwvraj.mjs → Line-CgKiUu04.mjs} +3 -3
  3. package/es/{attributes-E8oqU4q7.mjs → attributes-BPJdjr2i.mjs} +11 -9
  4. package/es/{attributes-C5pimFaJ.mjs → attributes-BcOvtwR5.mjs} +17 -15
  5. package/es/attributes-BfidbonK.mjs +43 -0
  6. package/es/{attributes-w4UsefFp.mjs → attributes-Btg07K2U.mjs} +32 -29
  7. package/es/attributes-BwADICpR.mjs +37 -0
  8. package/es/{attributes-C0SMjnHG.mjs → attributes-CLKihLxA.mjs} +10 -8
  9. package/es/{attributes-Dv8IMI4h.mjs → attributes-CbEkHFeA.mjs} +10 -8
  10. package/es/attributes-Cqd_mqWc.mjs +41 -0
  11. package/es/attributes-CuMNtV8M.mjs +34 -0
  12. package/es/attributes-D48dVLeW.mjs +27 -0
  13. package/es/{attributes-DdjjVR4N.mjs → attributes-DygyEbMZ.mjs} +10 -8
  14. package/es/attributes-T101y64V.mjs +49 -0
  15. package/es/{index-ryl5yfWq.mjs → index--DlyGwmX.mjs} +13 -11
  16. package/es/index-5xqLm0cU.mjs +47 -0
  17. package/es/index-8ZXIms1b.mjs +48 -0
  18. package/es/index-B7TrIL_C.mjs +19 -0
  19. package/es/{index-CyS-CdYv.mjs → index-B8oIQxa8.mjs} +13 -12
  20. package/es/{index-B4KSL-Bu.mjs → index-BHUjUILf.mjs} +11 -9
  21. package/es/{index-D--V8m-b.mjs → index-BHmzQnjb.mjs} +9 -9
  22. package/es/{index-B9Nb8R2I.mjs → index-BQ7mzQ9J.mjs} +17 -16
  23. package/es/{index-Bvab-NQ4.mjs → index-BtEza1iX.mjs} +24 -22
  24. package/es/{index-CRDggJyg.mjs → index-BuUTG4Rv.mjs} +61 -61
  25. package/es/index-BvW1_Hyv.mjs +51 -0
  26. package/es/index-C0Dt2jQ_.mjs +40 -0
  27. package/es/index-C6A7V93P.mjs +61 -0
  28. package/es/index-CHxtigvR.mjs +42 -0
  29. package/es/index-CW3G29nN.mjs +46 -0
  30. package/es/{index-CpYmNO_5.mjs → index-D-o2kNzn.mjs} +53 -53
  31. package/es/{index-guYPVm3G.mjs → index-D5seKG8I.mjs} +2 -2
  32. package/es/index-DTMGhBFA.mjs +43 -0
  33. package/es/index-DZRl1odp.mjs +37 -0
  34. package/es/{index-D_0vVSWq.mjs → index-DmMp7-l-.mjs} +11 -9
  35. package/es/{index-n9OtRMYa.mjs → index-Dv8VfJDC.mjs} +30 -29
  36. package/es/{index-C6HV7IaP.mjs → index-DxbswiWm.mjs} +30 -28
  37. package/es/{index-B8JqjjA1.mjs → index-Qxmobfyd.mjs} +4 -4
  38. package/es/{index-Ljz96Vra.mjs → index-X5o1pXL3.mjs} +16 -14
  39. package/es/{index-Dh00vKAk.mjs → index-Z8NfClWR.mjs} +15 -13
  40. package/es/{index-DyB0TE1y.mjs → index-mzSvAxqW.mjs} +27 -25
  41. package/es/index-onenk3XK.mjs +26 -0
  42. package/es/{index-D1ux0Voe.mjs → index-yEFPa0R2.mjs} +2 -2
  43. package/es/index.mjs +3 -3
  44. package/es/{selectPage-D267xnl4.mjs → selectPage-BTdc0EhU.mjs} +1 -1
  45. package/es/useCurrentPageId-DkPUSvWz.mjs +20 -0
  46. package/package.json +1 -1
  47. package/es/attributes-BWtBVgsg.mjs +0 -41
  48. package/es/attributes-BuMChZnt.mjs +0 -47
  49. package/es/attributes-COwKDUMI.mjs +0 -35
  50. package/es/attributes-C_fbpAUx.mjs +0 -25
  51. package/es/attributes-DztmBsKn.mjs +0 -32
  52. package/es/attributes-YL1J6lLR.mjs +0 -39
  53. package/es/index-BRgbtPVH.mjs +0 -45
  54. package/es/index-BUth1V1H.mjs +0 -41
  55. package/es/index-BYJ5e2rN.mjs +0 -38
  56. package/es/index-BYe40Zu2.mjs +0 -46
  57. package/es/index-BzpuXSbE.mjs +0 -49
  58. package/es/index-CBxj6uKJ.mjs +0 -35
  59. package/es/index-CUkul7R0.mjs +0 -44
  60. package/es/index-DQU0jlV0.mjs +0 -24
  61. package/es/index-KruFCy9N.mjs +0 -17
  62. package/es/index-hPKl41YD.mjs +0 -40
  63. package/es/index-qoPI1H9i.mjs +0 -59
  64. package/es/useCurrentPageId-DM05DNLI.mjs +0 -18
@@ -0,0 +1,47 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { R as i } from "./index-BHmzQnjb.mjs";
3
+ import { n as a } from "./index-BuUTG4Rv.mjs";
4
+ import "localforage";
5
+ import "react";
6
+ import "react-dom";
7
+ import "react-dom/client";
8
+ import "antd";
9
+ import "driver.js";
10
+ import "driver.js/dist/driver.css";
11
+ import "lodash-es";
12
+ import "ahooks";
13
+ const O = a((t) => {
14
+ const { width: r, height: o } = t;
15
+ return /* @__PURE__ */ e(
16
+ i,
17
+ {
18
+ options: {
19
+ tooltip: {
20
+ formatter: "{a} <br/>{b} : {c}%"
21
+ },
22
+ series: [
23
+ {
24
+ name: "Pressure",
25
+ type: "gauge",
26
+ detail: {
27
+ formatter: "{value}"
28
+ },
29
+ data: [
30
+ {
31
+ value: 50,
32
+ name: "SCORE"
33
+ }
34
+ ]
35
+ }
36
+ ]
37
+ },
38
+ style: {
39
+ width: r,
40
+ height: o
41
+ }
42
+ }
43
+ );
44
+ });
45
+ export {
46
+ O as default
47
+ };
@@ -0,0 +1,48 @@
1
+ import { jsxs as t, jsx as l } from "react/jsx-runtime";
2
+ import { n as r } from "./index-BuUTG4Rv.mjs";
3
+ import "localforage";
4
+ import "react";
5
+ import "react-dom";
6
+ import "react-dom/client";
7
+ import "antd";
8
+ import "driver.js";
9
+ import "driver.js/dist/driver.css";
10
+ import "lodash-es";
11
+ import "ahooks";
12
+ import { DoubleRightOutlined as a, DoubleLeftOutlined as s } from "@ant-design/icons";
13
+ import { DEFAULT_OPTIONS as p } from "./attributes-BfidbonK.mjs";
14
+ const m = "_specialTitle_7705n_59", o = "_specialTitle_line_left_7705n_64", T = "_specialTitle_inner_7705n_69", h = "_specialTitle_inner_icon_7705n_74", d = "_specialTitle_line_right_7705n_78", i = {
15
+ specialTitle: m,
16
+ specialTitle_line_left: o,
17
+ specialTitle_inner: T,
18
+ specialTitle_inner_icon: h,
19
+ specialTitle_line_right: d
20
+ }, j = r((n) => {
21
+ const { width: _, height: c, options: e } = n;
22
+ return /* @__PURE__ */ t("div", { style: { width: _, height: c }, className: i.specialTitle, children: [
23
+ /* @__PURE__ */ l("div", { className: i.specialTitle_line_left }),
24
+ /* @__PURE__ */ t("div", { className: i.specialTitle_inner, children: [
25
+ /* @__PURE__ */ l(a, { className: i.specialTitle_inner_icon }),
26
+ /* @__PURE__ */ l(
27
+ "div",
28
+ {
29
+ style: {
30
+ color: e == null ? void 0 : e.color,
31
+ wordBreak: "break-all",
32
+ fontWeight: e == null ? void 0 : e.fontWeight,
33
+ fontSize: e == null ? void 0 : e.fontSize,
34
+ lineHeight: e != null && e.lineHeight ? `${e == null ? void 0 : e.lineHeight}px` : void 0
35
+ },
36
+ dangerouslySetInnerHTML: {
37
+ __html: (e == null ? void 0 : e.value) || ""
38
+ }
39
+ }
40
+ ),
41
+ /* @__PURE__ */ l(s, { className: i.specialTitle_inner_icon })
42
+ ] }),
43
+ /* @__PURE__ */ l("div", { className: i.specialTitle_line_right })
44
+ ] });
45
+ }, p);
46
+ export {
47
+ j as default
48
+ };
@@ -0,0 +1,19 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { n as p } from "./index-BuUTG4Rv.mjs";
3
+ import "localforage";
4
+ import "react";
5
+ import "react-dom";
6
+ import "react-dom/client";
7
+ import "antd";
8
+ import "driver.js";
9
+ import "driver.js/dist/driver.css";
10
+ import "lodash-es";
11
+ import "ahooks";
12
+ import { DEFAULT_OPTIONS as n } from "./attributes-D48dVLeW.mjs";
13
+ const l = p((o) => {
14
+ const { options: t, width: r, height: i } = o;
15
+ return /* @__PURE__ */ m("div", { style: { width: r, height: i, background: t.background } });
16
+ }, n);
17
+ export {
18
+ l as default
19
+ };
@@ -1,22 +1,23 @@
1
- import { jsx as o, jsxs as a } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as h } from "./index-CRDggJyg.mjs";
3
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
1
+ import { jsx as o, jsxs as a } from "react/jsx-runtime";
2
+ import { n as h } from "./index-BuUTG4Rv.mjs";
3
+ import "localforage";
4
4
  import { useState as p, useMemo as L, useEffect as x } from "react";
5
5
  import "react-dom";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
6
+ import "react-dom/client";
7
7
  import { Progress as S } from "antd";
8
8
  import { r as y, g as C } from "./random-DD0zMfMm.mjs";
9
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
11
- import { cloneDeep as v } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/lodash.js";
12
- import { DEFAULT_OPTIONS as I } from "./attributes-Dv8IMI4h.mjs";
13
- import { A as M } from "./index-guYPVm3G.mjs";
14
- import { DoubleRightOutlined as z } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/@ant-design+icons@5.6.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/icons/es/index.js";
9
+ import "driver.js";
10
+ import "driver.js/dist/driver.css";
11
+ import { cloneDeep as v } from "lodash-es";
12
+ import "ahooks";
13
+ import { DEFAULT_OPTIONS as I } from "./attributes-CbEkHFeA.mjs";
14
+ import { A as M } from "./index-D5seKG8I.mjs";
15
+ import { DoubleRightOutlined as z } from "@ant-design/icons";
15
16
  const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_progressList_line_header_xy0sd_69", c = {
16
17
  progressList: N,
17
18
  progressList_line: P,
18
19
  progressList_line_header: A
19
- }, H = h((u) => {
20
+ }, J = h((u) => {
20
21
  const { width: g, height: _, options: r, dataSource: s } = u, [n, d] = p(s), i = L(() => m(), [s, r == null ? void 0 : r.max]);
21
22
  function m() {
22
23
  const e = Math.max(...n.map((t) => t.count));
@@ -87,5 +88,5 @@ const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_pro
87
88
  );
88
89
  }, I);
89
90
  export {
90
- H as default
91
+ J as default
91
92
  };
@@ -1,16 +1,18 @@
1
- import { jsx as c } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as b } from "./index-CRDggJyg.mjs";
3
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { n as b } from "./index-BuUTG4Rv.mjs";
3
+ import "localforage";
4
4
  import { useState as u, useMemo as x } from "react";
5
5
  import "react-dom";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
6
+ import "react-dom/client";
7
7
  import "antd";
8
8
  import { r as f, g as y } from "./random-DD0zMfMm.mjs";
9
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
+ import "driver.js";
10
+ import "driver.js/dist/driver.css";
11
+ import "lodash-es";
11
12
  import { u as d } from "./useEffectOnce-l5sUTCBG.mjs";
12
- import { R as h } from "./index-D--V8m-b.mjs";
13
- const g = ["06-01", "06-02", "06-03", "06-04", "06-05", "06-06", "06-07"], r = 250, a = [210, 200, 195, 200, 202, 195, 180], C = b((i) => {
13
+ import "ahooks";
14
+ import { R as h } from "./index-BHmzQnjb.mjs";
15
+ const g = ["06-01", "06-02", "06-03", "06-04", "06-05", "06-06", "06-07"], r = 250, a = [210, 200, 195, 200, 202, 195, 180], O = b((i) => {
14
16
  const { width: n, height: s } = i, [e, l] = u(a), m = x(() => {
15
17
  const o = e.map((t) => t * 100 / r);
16
18
  return {
@@ -148,5 +150,5 @@ const g = ["06-01", "06-02", "06-03", "06-04", "06-05", "06-06", "06-07"], r = 2
148
150
  }), /* @__PURE__ */ c(h, { options: m, style: { width: n, height: s } });
149
151
  });
150
152
  export {
151
- C as default
153
+ O as default
152
154
  };
@@ -1,13 +1,13 @@
1
- import { jsx as R } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
1
+ import { jsx as R } from "react/jsx-runtime";
2
2
  import { useRef as m, useCallback as T, useEffect as E, useMemo as y } from "react";
3
- import * as f from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/core.js";
4
- import { PieChart as L, BarChart as b, LineChart as k, LinesChart as v, RadarChart as g, GaugeChart as x, MapChart as G, EffectScatterChart as M } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/charts.js";
5
- import { TitleComponent as O, TooltipComponent as j, ToolboxComponent as w, VisualMapComponent as z, GridComponent as D, DatasetComponent as N, TransformComponent as U, LegendComponent as B } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/components.js";
6
- import { LabelLayout as F, UniversalTransition as P } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/features.js";
7
- import { CanvasRenderer as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/renderers.js";
8
- import { useUpdateEffect as V } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/ahooks@3.9.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/ahooks/es/index.js";
9
- import "./index-CRDggJyg.mjs";
10
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
3
+ import * as f from "echarts/core";
4
+ import { PieChart as L, BarChart as b, LineChart as k, LinesChart as v, RadarChart as g, GaugeChart as x, MapChart as G, EffectScatterChart as M } from "echarts/charts";
5
+ import { TitleComponent as O, TooltipComponent as j, ToolboxComponent as w, VisualMapComponent as z, GridComponent as D, DatasetComponent as N, TransformComponent as U, LegendComponent as B } from "echarts/components";
6
+ import { LabelLayout as F, UniversalTransition as P } from "echarts/features";
7
+ import { CanvasRenderer as S } from "echarts/renderers";
8
+ import { useUpdateEffect as V } from "ahooks";
9
+ import "./index-BuUTG4Rv.mjs";
10
+ import "react-dom/client";
11
11
  import { u as q } from "./useResizeDom-B6mM4jrh.mjs";
12
12
  f.use([
13
13
  // 图表
@@ -1,15 +1,16 @@
1
- import { jsx as n, jsxs as g } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { C as l } from "./index-CRDggJyg.mjs";
3
- import { I as u } from "./index-B8JqjjA1.mjs";
1
+ import { jsx as n, jsxs as g } from "react/jsx-runtime";
2
+ import { C as l } from "./index-BuUTG4Rv.mjs";
3
+ import { I as u } from "./index-Qxmobfyd.mjs";
4
4
  import "react";
5
5
  import { Tooltip as v, Checkbox as h, Slider as C } from "antd";
6
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-color@2.19.3_react@18.3.1/node_modules/react-color/es/index.js";
8
- import { I as f, b as m } from "./Line-CLgwvraj.mjs";
9
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
10
- import { I as o, a as b } from "./IInputNumber-PnHJNf9H.mjs";
11
- import { ReloadOutlined as x } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/@ant-design+icons@5.6.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@ant-design/icons/es/index.js";
12
- import { useTranslation as r } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-i18next@15.7.4_i18next@24.2.3_typescript@5.9.3__react-dom@18.3.1_react@18.3.1__react@18.3.1_typescript@5.9.3/node_modules/react-i18next/dist/es/index.js";
6
+ import "ahooks";
7
+ import "react-dom/client";
8
+ import "react-color";
9
+ import { I as f, b as m } from "./Line-CgKiUu04.mjs";
10
+ import { ReloadOutlined as o } from "@ant-design/icons";
11
+ import { useTranslation as b } from "react-i18next";
12
+ import "classnames";
13
+ import { I as r, a as x } from "./IInputNumber-CEotcbKL.mjs";
13
14
  const y = () => {
14
15
  l.register("select", (e) => /* @__PURE__ */ n(
15
16
  u,
@@ -51,14 +52,14 @@ function I(e) {
51
52
  );
52
53
  }
53
54
  function d(e) {
54
- const [t] = r();
55
- return /* @__PURE__ */ n(v, { title: t("reset"), children: /* @__PURE__ */ n(x, { className: "icon_clickable", onClick: e == null ? void 0 : e.onClick }) });
55
+ const [t] = b();
56
+ return /* @__PURE__ */ n(v, { title: t("reset"), children: /* @__PURE__ */ n(o, { className: "icon_clickable", onClick: e == null ? void 0 : e.onClick }) });
56
57
  }
57
58
  const S = () => {
58
59
  l.register("input", (e) => /* @__PURE__ */ n(f, { ...e == null ? void 0 : e.options, value: e.value, onChange: e.onChange }));
59
60
  }, w = () => {
60
61
  l.register("inputNumber", (e) => /* @__PURE__ */ n(
61
- o,
62
+ r,
62
63
  {
63
64
  style: { width: "100%" },
64
65
  ...e == null ? void 0 : e.options,
@@ -68,7 +69,7 @@ const S = () => {
68
69
  ));
69
70
  }, T = () => {
70
71
  l.register("textarea", (e) => /* @__PURE__ */ n(
71
- b,
72
+ x,
72
73
  {
73
74
  ...e == null ? void 0 : e.options,
74
75
  value: e.value,
@@ -209,9 +210,9 @@ const S = () => {
209
210
  );
210
211
  });
211
212
  };
212
- function J() {
213
+ function K() {
213
214
  y(), S(), w(), T(), N(), P(), A(), B(), F(), R(), W();
214
215
  }
215
216
  export {
216
- J as default
217
+ K as default
217
218
  };
@@ -1,24 +1,26 @@
1
- import { jsx as p } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as h } from "./index-D--V8m-b.mjs";
3
- import { n as x } from "./index-CRDggJyg.mjs";
4
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
1
+ import { jsx as f } from "react/jsx-runtime";
2
+ import { R as h } from "./index-BHmzQnjb.mjs";
3
+ import { n as x } from "./index-BuUTG4Rv.mjs";
4
+ import "localforage";
5
5
  import { useRef as g, useMemo as I } from "react";
6
6
  import "react-dom";
7
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/client.js";
7
+ import "react-dom/client";
8
8
  import "antd";
9
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
- import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
+ import "driver.js";
10
+ import "driver.js/dist/driver.css";
11
+ import "lodash-es";
11
12
  import { u as y } from "./useEffectOnce-l5sUTCBG.mjs";
12
- import { DEFAULT_OPTIONS as b } from "./attributes-YL1J6lLR.mjs";
13
- const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz项目"], i = [1048, 735, 580, 484, 300], W = x((m) => {
14
- const { width: u, height: d, options: t } = m, n = g(), f = I(() => {
15
- const e = S.map((r, l) => ({
13
+ import "ahooks";
14
+ import { DEFAULT_OPTIONS as b } from "./attributes-Cqd_mqWc.mjs";
15
+ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz项目"], i = [1048, 735, 580, 484, 300], F = x((m) => {
16
+ const { width: u, height: p, options: t } = m, n = g(), d = I(() => {
17
+ const e = S.map((r, o) => ({
16
18
  name: r,
17
- value: i[l]
19
+ value: i[o]
18
20
  }));
19
21
  return {
20
22
  title: {
21
- text: i.reduce((r, l) => r + l, 0),
23
+ text: i.reduce((r, o) => r + o, 0),
22
24
  left: "center",
23
25
  top: "37%",
24
26
  textStyle: {
@@ -67,7 +69,7 @@ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz
67
69
  };
68
70
  }, [t == null ? void 0 : t.titleColor, t == null ? void 0 : t.subtextColor]);
69
71
  return y(() => {
70
- let e = null, o = 0;
72
+ let e = null, l = 0;
71
73
  function r() {
72
74
  var s, a, c;
73
75
  e !== null && ((s = n.current) == null || s.dispatchAction({
@@ -77,26 +79,26 @@ const S = ["私有化项目", "培训项目", "演示项目", "tjh项目", "xyz
77
79
  })), (c = (a = n.current) == null ? void 0 : a.dispatchAction) == null || c.call(a, {
78
80
  type: "highlight",
79
81
  seriesIndex: 0,
80
- dataIndex: e = o
81
- }), o = ++o >= i.length ? 0 : o;
82
+ dataIndex: e = l
83
+ }), l = ++l >= i.length ? 0 : l;
82
84
  }
83
85
  r();
84
- let l = setInterval(r, 2e3);
86
+ let o = setInterval(r, 2e3);
85
87
  return () => {
86
- l && clearInterval(l);
88
+ o && clearInterval(o);
87
89
  };
88
- }), /* @__PURE__ */ p(
90
+ }), /* @__PURE__ */ f(
89
91
  h,
90
92
  {
91
93
  onGetInstance: (e) => n.current = e,
92
- options: f,
94
+ options: d,
93
95
  style: {
94
96
  width: u,
95
- height: d
97
+ height: p
96
98
  }
97
99
  }
98
100
  );
99
101
  }, b);
100
102
  export {
101
- W as default
103
+ F as default
102
104
  };