react-big-screen 0.0.17 → 0.0.20

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 (45) hide show
  1. package/es/{IInputNumber-PnHJNf9H.mjs → IInputNumber-Vk6zq2bP.mjs} +1 -1
  2. package/es/{Line-CLgwvraj.mjs → Line-nA3VtARp.mjs} +1 -1
  3. package/es/{attributes-D0U-wvwb.mjs → attributes-BDcSpbcs.mjs} +6 -7
  4. package/es/{attributes-CGZYjvqh.mjs → attributes-BWjMqQ_s.mjs} +10 -10
  5. package/es/{attributes-CReX9tBs.mjs → attributes-BZxcK9tt.mjs} +4 -5
  6. package/es/{attributes-BoihG0Pf.mjs → attributes-C7YISj8O.mjs} +10 -11
  7. package/es/{attributes-DDwE7z2U.mjs → attributes-CbI6ZNLl.mjs} +3 -4
  8. package/es/{attributes-DiQPq5cp.mjs → attributes-Cg2w2wqR.mjs} +3 -4
  9. package/es/{attributes-DFoyvXIt.mjs → attributes-Ck-M5Rw3.mjs} +3 -4
  10. package/es/{attributes-IldrBXRw.mjs → attributes-Dk4Khv-P.mjs} +3 -4
  11. package/es/{attributes-CCphg5Uz.mjs → attributes-DuAsVU2g.mjs} +3 -4
  12. package/es/{attributes-GO1j5FqP.mjs → attributes-Nwf_EnEX.mjs} +3 -4
  13. package/es/{attributes-Cp6DmzH2.mjs → attributes-OZgEPZfV.mjs} +3 -4
  14. package/es/{attributes-B2zdUkEM.mjs → attributes-jJg_yENs.mjs} +3 -4
  15. package/es/{index-jD_EEzQJ.mjs → index-7n0O_7or.mjs} +13 -14
  16. package/es/{index-CEejLCq7.mjs → index-B1ohG9Hu.mjs} +4 -5
  17. package/es/{index-DbwrHA2p.mjs → index-B75SSKFG.mjs} +9 -10
  18. package/es/{index-Id1jg1qj.mjs → index-B8Ei_KZZ.mjs} +4 -5
  19. package/es/{index-DJy3VCmO.mjs → index-BF07nOIu.mjs} +5 -6
  20. package/es/{index-I1LC9rW6.mjs → index-BUic5qZC.mjs} +10 -10
  21. package/es/{index-X3IxUabI.mjs → index-BemZB0VC.mjs} +4 -5
  22. package/es/{index-94huGSfW.mjs → index-BnaaZaeo.mjs} +4 -5
  23. package/es/{index-BqPf_Hxm.mjs → index-Bwm3aMXZ.mjs} +36 -36
  24. package/es/{index-BfVztt-6.mjs → index-C7UdPRSB.mjs} +4 -5
  25. package/es/{index-BaY0buPw.mjs → index-C8d60TqQ.mjs} +4 -5
  26. package/es/{index-BCzhbh3u.mjs → index-CBBKPguI.mjs} +24 -25
  27. package/es/{index-D1jy9Oi_.mjs → index-CKqOSJ9y.mjs} +3 -3
  28. package/es/{index-C2gXj9yh.mjs → index-CLnTLLjS.mjs} +1 -1
  29. package/es/{index-D3O-30zC.mjs → index-COVC4gVe.mjs} +4 -5
  30. package/es/{index-7SrSU63A.mjs → index-CR3gnAfy.mjs} +20 -21
  31. package/es/{index-D44zLboN.mjs → index-CXKN_KjL.mjs} +4 -5
  32. package/es/{index-DdNS18i9.mjs → index-CaUBqf8D.mjs} +8 -8
  33. package/es/{index-BOLcaCeQ.mjs → index-Ce7eAD1W.mjs} +3 -3
  34. package/es/{index-D1ux0Voe.mjs → index-Cq0uVP0H.mjs} +1 -1
  35. package/es/{index-DcqPY0qy.mjs → index-CrN898XP.mjs} +11 -11
  36. package/es/{index-3yjjqo9a.mjs → index-DB3YcEiT.mjs} +11 -12
  37. package/es/{index-3f6NpN6Q.mjs → index-DcyXbsRZ.mjs} +4 -5
  38. package/es/{index-CSzeRH1c.mjs → index-DuXGzYdH.mjs} +2 -2
  39. package/es/{index-CNgtHfNT.mjs → index-TjFlu-86.mjs} +9 -10
  40. package/es/{index-VRwDBwp0.mjs → index-hRI5WRPs.mjs} +7 -8
  41. package/es/{index-COdMO6-N.mjs → index-nTep9Ubc.mjs} +4 -5
  42. package/es/index.mjs +4 -5
  43. package/es/{selectPage-DGZoj14b.mjs → selectPage-BfNytQ95.mjs} +1 -1
  44. package/es/{useCurrentPageId-CuYS8NBR.mjs → useCurrentPageId-C1KnE1O3.mjs} +3 -4
  45. package/package.json +1 -1
@@ -1,59 +1,58 @@
1
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 { R as u } from "./index-C2gXj9yh.mjs";
3
- import { n as f } from "./index-BqPf_Hxm.mjs";
2
+ import { R as u } from "./index-CLnTLLjS.mjs";
3
+ import { n as f } from "./index-Bwm3aMXZ.mjs";
4
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
5
  import { useMemo as g } from "react";
6
6
  import "react-dom";
7
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";
8
- import "antd";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
11
- import { DEFAULT_OPTIONS as p } from "./attributes-CGZYjvqh.mjs";
12
- function l(m = "name", o, n) {
13
- return !(o != null && o.length) || !(n != null && n.length) ? {
10
+ import { DEFAULT_OPTIONS as l } from "./attributes-BWjMqQ_s.mjs";
11
+ function p(m = "name", a, n) {
12
+ return !(a != null && a.length) || !(n != null && n.length) ? {
14
13
  source: []
15
14
  } : {
16
- dimensions: [m, ...o.map((r) => r.name)],
15
+ dimensions: [m, ...a.map((r) => r.name)],
17
16
  source: n.map((r) => {
18
- const a = { [m]: `${r[m] ?? ""}` };
19
- return o.forEach((t) => {
20
- a[t.name] = r[t.value] || 0;
21
- }), a;
17
+ const o = { [m]: `${r[m] ?? ""}` };
18
+ return a.forEach((t) => {
19
+ o[t.name] = r[t.value] || 0;
20
+ }), o;
22
21
  })
23
22
  };
24
23
  }
25
24
  function h(m) {
26
- var o;
27
- return ((o = m == null ? void 0 : m.map) == null ? void 0 : o.call(m, (n) => ({
25
+ var a;
26
+ return ((a = m == null ? void 0 : m.map) == null ? void 0 : a.call(m, (n) => ({
28
27
  id: n == null ? void 0 : n.key,
29
28
  type: "line",
30
29
  color: n == null ? void 0 : n.color
31
30
  }))) || [];
32
31
  }
33
- const R = f((m) => {
34
- const { width: o, height: n, options: r, dataSource: a } = m, t = g(() => ({
32
+ const D = f((m) => {
33
+ const { width: a, height: n, options: r, dataSource: o } = m, t = g(() => ({
35
34
  tooltip: { trigger: "item" },
36
- dataset: l(
35
+ dataset: p(
37
36
  r == null ? void 0 : r.nameCode,
38
37
  r == null ? void 0 : r.seriesList,
39
- Array.isArray(a) ? a : []
38
+ Array.isArray(o) ? o : []
40
39
  ),
41
40
  xAxis: [{ type: "category" }],
42
41
  yAxis: [{}],
43
42
  series: h(r == null ? void 0 : r.seriesList)
44
- }), [a, r == null ? void 0 : r.seriesList, r == null ? void 0 : r.nameCode]);
43
+ }), [o, r == null ? void 0 : r.seriesList, r == null ? void 0 : r.nameCode]);
45
44
  return /* @__PURE__ */ c(
46
45
  u,
47
46
  {
48
47
  options: t,
49
48
  style: {
50
- width: o,
49
+ width: a,
51
50
  height: n,
52
51
  background: r == null ? void 0 : r.background
53
52
  }
54
53
  }
55
54
  );
56
- }, p);
55
+ }, l);
57
56
  export {
58
- R as default
57
+ D as default
59
58
  };
@@ -1,20 +1,19 @@
1
1
  import { jsx as e, jsxs as l } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as c } from "./index-BqPf_Hxm.mjs";
2
+ import { n as c } from "./index-Bwm3aMXZ.mjs";
3
3
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "react";
5
5
  import "react-dom";
6
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 "antd";
8
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- import { DEFAULT_OPTIONS as i } from "./attributes-DDwE7z2U.mjs";
9
+ import { DEFAULT_OPTIONS as i } from "./attributes-CbI6ZNLl.mjs";
11
10
  import { DoubleRightOutlined as s } 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
11
  const _ = "_specialCard_1s46n_59", t = "_specialCard_head_1s46n_64", m = "_specialCard_head_arrow_1s46n_71", o = "_specialCard_head_title_1s46n_74", r = {
13
12
  specialCard: _,
14
13
  specialCard_head: t,
15
14
  specialCard_head_arrow: m,
16
15
  specialCard_head_title: o
17
- }, g = c((d) => {
16
+ }, v = c((d) => {
18
17
  const { options: a } = d;
19
18
  return /* @__PURE__ */ e(
20
19
  "div",
@@ -34,5 +33,5 @@ const _ = "_specialCard_1s46n_59", t = "_specialCard_head_1s46n_64", m = "_speci
34
33
  );
35
34
  }, i);
36
35
  export {
37
- g as default
36
+ v as default
38
37
  };
@@ -1,19 +1,19 @@
1
1
  var R = Object.defineProperty;
2
2
  var T = (e, n, t) => n in e ? R(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var b = (e, n, t) => T(e, typeof n != "symbol" ? n + "" : n, t);
4
- import { b as O, u as k, I as x, R as F } from "./index-BqPf_Hxm.mjs";
4
+ import { b as O, u as k, I as x, R as F } from "./index-Bwm3aMXZ.mjs";
5
5
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
6
6
  import N, { useEffect as y, useMemo as M, useRef as w, useState as _, useCallback as z } from "react";
7
7
  import "react-dom";
8
8
  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";
9
- import { message as G } from "antd";
10
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
11
10
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
12
- import { jsxs as U, jsx as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
13
- import Z from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/umi-request@1.4.0/node_modules/umi-request/dist/index.esm.js";
11
+ import { jsxs as G, jsx as S } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
12
+ import U from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/umi-request@1.4.0/node_modules/umi-request/dist/index.esm.js";
14
13
  import { u as j } from "./useListenRef-B01dENv0.mjs";
14
+ import { message as Z } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
15
15
  import { u as Q } from "./useEffectOnce-l5sUTCBG.mjs";
16
- import { u as V } from "./useCurrentPageId-CuYS8NBR.mjs";
16
+ import { u as V } from "./useCurrentPageId-C1KnE1O3.mjs";
17
17
  import I from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/hotkeys-js@3.13.15/node_modules/hotkeys-js/dist/hotkeys.esm.js";
18
18
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
19
19
  function X(e) {
@@ -92,7 +92,7 @@ class K {
92
92
  // 立刻请求一次
93
93
  async request(n, t, s) {
94
94
  const r = t || this.requestConfig;
95
- return r != null && r.url ? Z(`${(r == null ? void 0 : r.url) || ""}`, {
95
+ return r != null && r.url ? U(`${(r == null ? void 0 : r.url) || ""}`, {
96
96
  ...s,
97
97
  method: `${(r == null ? void 0 : r.method) || "get"}`,
98
98
  params: n
@@ -188,7 +188,7 @@ function se(e, n) {
188
188
  a && a.forEach((h) => {
189
189
  const l = e.componentNode.get(h.id);
190
190
  if (!l) {
191
- G.error("[bigScreen]: target componentNode not exist.");
191
+ Z.error("[bigScreen]: target componentNode not exist.");
192
192
  return;
193
193
  }
194
194
  h.opts.forEach((g) => {
@@ -436,7 +436,7 @@ function ge(e) {
436
436
  l.current.x = e.offsetX,
437
437
  l.current.y = e.offsetY
438
438
  );
439
- }, [e.offsetX, e.offsetY]), /* @__PURE__ */ U("div", { className: L.infiniteCanvas, ref: f, style: e == null ? void 0 : e.style, children: [
439
+ }, [e.offsetX, e.offsetY]), /* @__PURE__ */ G("div", { className: L.infiniteCanvas, ref: f, style: e == null ? void 0 : e.style, children: [
440
440
  /* @__PURE__ */ S("div", { className: L.infiniteCanvas_inner, ref: d, children: e == null ? void 0 : e.children }),
441
441
  /* @__PURE__ */ S("div", { className: L.infiniteCanvas_mask, ref: u })
442
442
  ] });
@@ -1,13 +1,13 @@
1
1
  import { jsx as o } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { Image as i } from "antd";
3
- import { n as p } from "./index-BqPf_Hxm.mjs";
2
+ import { Image as i } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
3
+ import { n as p } from "./index-Bwm3aMXZ.mjs";
4
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
5
  import "react";
6
6
  import "react-dom";
7
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";
8
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- import { DEFAULT_OPTIONS as n } from "./attributes-DiQPq5cp.mjs";
10
+ import { DEFAULT_OPTIONS as n } from "./attributes-Cg2w2wqR.mjs";
11
11
  const g = p((e) => {
12
12
  const { options: r, width: t, height: m } = e;
13
13
  return /* @__PURE__ */ o(
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { Empty as i } from "antd";
2
+ import { Empty as i } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
3
3
  import m from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
4
4
  function l(y, n) {
5
5
  return !// 左侧
@@ -1,13 +1,13 @@
1
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-BqPf_Hxm.mjs";
3
- import { I as u } from "./index-CSzeRH1c.mjs";
2
+ import { C as l } from "./index-Bwm3aMXZ.mjs";
3
+ import { I as u } from "./index-DuXGzYdH.mjs";
4
4
  import "react";
5
- import { Tooltip as v, Checkbox as h, Slider as C } from "antd";
6
5
  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
6
  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";
7
+ import { I as v, b as C } from "./Line-nA3VtARp.mjs";
9
8
  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";
9
+ import { I as f, a as m } from "./IInputNumber-Vk6zq2bP.mjs";
10
+ import { Tooltip as o, Checkbox as h, Slider as b } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
11
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
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";
13
13
  const y = () => {
@@ -52,13 +52,13 @@ function I(e) {
52
52
  }
53
53
  function d(e) {
54
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
+ return /* @__PURE__ */ n(o, { title: t("reset"), children: /* @__PURE__ */ n(x, { className: "icon_clickable", onClick: e == null ? void 0 : e.onClick }) });
56
56
  }
57
57
  const S = () => {
58
- l.register("input", (e) => /* @__PURE__ */ n(f, { ...e == null ? void 0 : e.options, value: e.value, onChange: e.onChange }));
58
+ l.register("input", (e) => /* @__PURE__ */ n(v, { ...e == null ? void 0 : e.options, value: e.value, onChange: e.onChange }));
59
59
  }, w = () => {
60
60
  l.register("inputNumber", (e) => /* @__PURE__ */ n(
61
- o,
61
+ f,
62
62
  {
63
63
  style: { width: "100%" },
64
64
  ...e == null ? void 0 : e.options,
@@ -68,7 +68,7 @@ const S = () => {
68
68
  ));
69
69
  }, T = () => {
70
70
  l.register("textarea", (e) => /* @__PURE__ */ n(
71
- b,
71
+ m,
72
72
  {
73
73
  ...e == null ? void 0 : e.options,
74
74
  value: e.value,
@@ -95,7 +95,7 @@ const S = () => {
95
95
  resetColor: c
96
96
  // 重置颜色
97
97
  } = (e == null ? void 0 : e.options) || {}, i = /* @__PURE__ */ n(
98
- m,
98
+ C,
99
99
  {
100
100
  style: { width: "100%" },
101
101
  ...e == null ? void 0 : e.options,
@@ -186,7 +186,7 @@ const S = () => {
186
186
  },
187
187
  children: [
188
188
  /* @__PURE__ */ n(
189
- C,
189
+ b,
190
190
  {
191
191
  style: { flex: 1, margin: "4px 8px" },
192
192
  min: 0,
@@ -1,19 +1,18 @@
1
1
  import { jsx as f } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as l } from "./index-BqPf_Hxm.mjs";
2
+ import { n as l } from "./index-Bwm3aMXZ.mjs";
3
3
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import { useRef as c, useEffect as a } from "react";
5
5
  import "react-dom";
6
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 "antd";
8
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- import { DEFAULT_OPTIONS as u } from "./attributes-DFoyvXIt.mjs";
9
+ import { DEFAULT_OPTIONS as u } from "./attributes-Ck-M5Rw3.mjs";
11
10
  import d from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
12
- const M = l((m) => {
13
- const { width: i, height: n, options: r } = m, e = c(null);
11
+ const D = l((m) => {
12
+ const { width: i, height: n, options: e } = m, r = c(null);
14
13
  return a(() => {
15
14
  function t() {
16
- e.current.innerHTML = d().format("YYYY-MM-DD HH:mm:ss");
15
+ r.current.innerHTML = d().format("YYYY-MM-DD HH:mm:ss");
17
16
  }
18
17
  let o = setInterval(t, 1e3);
19
18
  return t(), () => {
@@ -25,16 +24,16 @@ const M = l((m) => {
25
24
  style: {
26
25
  width: i,
27
26
  height: n,
28
- color: r == null ? void 0 : r.color,
29
- fontSize: r == null ? void 0 : r.fontSize,
30
- textAlign: r == null ? void 0 : r.textAlign,
31
- lineHeight: `${r == null ? void 0 : r.lineHeight}px`
27
+ color: e == null ? void 0 : e.color,
28
+ fontSize: e == null ? void 0 : e.fontSize,
29
+ textAlign: e == null ? void 0 : e.textAlign,
30
+ lineHeight: `${e == null ? void 0 : e.lineHeight}px`
32
31
  },
33
- ref: e,
32
+ ref: r,
34
33
  children: 11
35
34
  }
36
35
  );
37
36
  }, u);
38
37
  export {
39
- M as default
38
+ D as default
40
39
  };
@@ -1,14 +1,13 @@
1
1
  import { jsx as i } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { R as r } from "./index-C2gXj9yh.mjs";
3
- import { n as a } from "./index-BqPf_Hxm.mjs";
2
+ import { R as r } from "./index-CLnTLLjS.mjs";
3
+ import { n as a } from "./index-Bwm3aMXZ.mjs";
4
4
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
5
5
  import "react";
6
6
  import "react-dom";
7
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";
8
- import "antd";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
10
9
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
11
- const g = a((t) => {
10
+ const f = a((t) => {
12
11
  const { width: e, height: o } = t;
13
12
  return /* @__PURE__ */ i(
14
13
  r,
@@ -40,5 +39,5 @@ const g = a((t) => {
40
39
  );
41
40
  });
42
41
  export {
43
- g as default
42
+ f as default
44
43
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as Q, jsx as b } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
2
  import { useState as S } from "react";
3
- import { Select as M } from "antd";
3
+ import { Select as M } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/antd@4.24.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/index.js";
4
4
  import { useDebounceEffect as X, 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";
5
5
  import { u as Y } from "./useEffectOnce-l5sUTCBG.mjs";
6
- import { i as Z } from "./index-BqPf_Hxm.mjs";
6
+ import { i as Z } from "./index-Bwm3aMXZ.mjs";
7
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";
8
8
  const q = (e, l) => {
9
9
  var r, f, d;
@@ -1,16 +1,15 @@
1
- import { jsxs as t, jsx as r } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as a } from "./index-BqPf_Hxm.mjs";
1
+ import { jsxs as a, jsx as l } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
+ import { n as t } from "./index-Bwm3aMXZ.mjs";
3
3
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "react";
5
5
  import "react-dom";
6
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 "antd";
8
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- import { DEFAULT_OPTIONS as d } from "./attributes-Cp6DmzH2.mjs";
11
- const H = a((l) => {
12
- const { options: e, width: _, height: g } = l;
13
- return /* @__PURE__ */ t(
9
+ import { DEFAULT_OPTIONS as d } from "./attributes-OZgEPZfV.mjs";
10
+ const k = t((r) => {
11
+ const { options: e, width: _, height: g } = r;
12
+ return /* @__PURE__ */ a(
14
13
  "div",
15
14
  {
16
15
  style: {
@@ -18,7 +17,7 @@ const H = a((l) => {
18
17
  height: g
19
18
  },
20
19
  children: [
21
- (e == null ? void 0 : e.value_1) && /* @__PURE__ */ r(
20
+ (e == null ? void 0 : e.value_1) && /* @__PURE__ */ l(
22
21
  "div",
23
22
  {
24
23
  style: {
@@ -36,7 +35,7 @@ const H = a((l) => {
36
35
  }
37
36
  }
38
37
  ),
39
- (e == null ? void 0 : e.value_2) && /* @__PURE__ */ r(
38
+ (e == null ? void 0 : e.value_2) && /* @__PURE__ */ l(
40
39
  "div",
41
40
  {
42
41
  style: {
@@ -59,5 +58,5 @@ const H = a((l) => {
59
58
  );
60
59
  }, d);
61
60
  export {
62
- H as default
61
+ k as default
63
62
  };
@@ -1,21 +1,20 @@
1
1
  import { jsxs as t, jsx as l } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { n as a } from "./index-BqPf_Hxm.mjs";
2
+ import { n as a } from "./index-Bwm3aMXZ.mjs";
3
3
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "react";
5
5
  import "react-dom";
6
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 "antd";
8
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
9
  import { DoubleRightOutlined as r, DoubleLeftOutlined as s } 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";
11
- import { DEFAULT_OPTIONS as p } from "./attributes-D0U-wvwb.mjs";
12
- const T = "_specialTitle_7705n_59", m = "_specialTitle_line_left_7705n_64", o = "_specialTitle_inner_7705n_69", h = "_specialTitle_inner_icon_7705n_74", d = "_specialTitle_line_right_7705n_78", i = {
13
- specialTitle: T,
10
+ import { DEFAULT_OPTIONS as T } from "./attributes-BDcSpbcs.mjs";
11
+ const p = "_specialTitle_7705n_59", m = "_specialTitle_line_left_7705n_64", o = "_specialTitle_inner_7705n_69", h = "_specialTitle_inner_icon_7705n_74", d = "_specialTitle_line_right_7705n_78", i = {
12
+ specialTitle: p,
14
13
  specialTitle_line_left: m,
15
14
  specialTitle_inner: o,
16
15
  specialTitle_inner_icon: h,
17
16
  specialTitle_line_right: d
18
- }, D = a((n) => {
17
+ }, b = a((n) => {
19
18
  const { width: _, height: c, options: e } = n;
20
19
  return /* @__PURE__ */ t("div", { style: { width: _, height: c }, className: i.specialTitle, children: [
21
20
  /* @__PURE__ */ l("div", { className: i.specialTitle_line_left }),
@@ -40,7 +39,7 @@ const T = "_specialTitle_7705n_59", m = "_specialTitle_line_left_7705n_64", o =
40
39
  ] }),
41
40
  /* @__PURE__ */ l("div", { className: i.specialTitle_line_right })
42
41
  ] });
43
- }, p);
42
+ }, T);
44
43
  export {
45
- D as default
44
+ b as default
46
45
  };
@@ -1,19 +1,18 @@
1
1
  import { jsx as s, 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 d } from "./index-BqPf_Hxm.mjs";
2
+ import { n as d } from "./index-Bwm3aMXZ.mjs";
3
3
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
4
4
  import "react";
5
5
  import "react-dom";
6
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 "antd";
8
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
10
- import { DEFAULT_OPTIONS as p } from "./attributes-CCphg5Uz.mjs";
9
+ import { DEFAULT_OPTIONS as p } from "./attributes-DuAsVU2g.mjs";
11
10
  import { A as _ } from "./index-guYPVm3G.mjs";
12
11
  import { CalendarOutlined as f } 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";
13
12
  const L = "_scrollList_ni091_59", h = "_scrollList_line_ni091_62", o = {
14
13
  scrollList: L,
15
14
  scrollList_line: h
16
- }, P = d((t) => {
15
+ }, O = d((t) => {
17
16
  const { width: c, height: n, options: r, dataSource: e } = t, i = e;
18
17
  return /* @__PURE__ */ s(
19
18
  _,
@@ -31,5 +30,5 @@ const L = "_scrollList_ni091_59", h = "_scrollList_line_ni091_62", o = {
31
30
  );
32
31
  }, p);
33
32
  export {
34
- P as default
33
+ O as default
35
34
  };
package/es/index.mjs CHANGED
@@ -1,12 +1,11 @@
1
1
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { q as m, R as e, p as E, s as f } from "./index-BqPf_Hxm.mjs";
2
+ import { q as p, R as e, p as m, s as E } from "./index-Bwm3aMXZ.mjs";
3
3
  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";
4
4
  import "react";
5
5
  import "react-dom";
6
- import "antd";
7
6
  export {
8
- m as EXAMPLE,
7
+ p as EXAMPLE,
9
8
  e as RbsEngine,
10
- E as defaultPackage,
11
- f as startDriver
9
+ m as defaultPackage,
10
+ E as startDriver
12
11
  };
@@ -1,5 +1,5 @@
1
1
  import { useState as g, useEffect as r } from "react";
2
- import { u as i, R as a } from "./index-BqPf_Hxm.mjs";
2
+ import { u as i, R as a } from "./index-Bwm3aMXZ.mjs";
3
3
  function f() {
4
4
  const [n, e] = g([]), { engine: t } = i();
5
5
  return r(() => {
@@ -1,18 +1,17 @@
1
- import { b as i, D as m } from "./index-BqPf_Hxm.mjs";
1
+ import { b as i, D as m } from "./index-Bwm3aMXZ.mjs";
2
2
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js";
3
3
  import "react";
4
4
  import "react-dom";
5
5
  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 "antd";
7
6
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
8
7
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
9
8
  import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
10
- function l() {
9
+ function g() {
11
10
  return i((r) => {
12
11
  var o;
13
12
  return ((o = r == null ? void 0 : r.config) == null ? void 0 : o.currentPageId) || m.id;
14
13
  });
15
14
  }
16
15
  export {
17
- l as u
16
+ g as u
18
17
  };
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "author": "tangjiahui-cn",
6
6
  "description": "一个前端大屏看板项目",
7
7
  "license": "ISC",
8
- "version": "0.0.17",
8
+ "version": "0.0.20",
9
9
  "module": "./es/index.mjs",
10
10
  "types": "./types/src/export/index.d.ts",
11
11
  "scripts": {