react-big-screen 0.0.19 → 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.
- package/es/{IInputNumber-8TbQFEeQ.mjs → IInputNumber-Vk6zq2bP.mjs} +3 -3
- package/es/{Line-h-rhOKev.mjs → Line-nA3VtARp.mjs} +37 -37
- package/es/{attributes-CxnJg-FT.mjs → attributes-BDcSpbcs.mjs} +3 -3
- package/es/{attributes-DBip_IK_.mjs → attributes-BWjMqQ_s.mjs} +56 -55
- package/es/{attributes-NVduSBUS.mjs → attributes-BZxcK9tt.mjs} +4 -4
- package/es/{attributes-BDv3jJ5O.mjs → attributes-C7YISj8O.mjs} +3 -3
- package/es/{attributes-CauLjFb0.mjs → attributes-CbI6ZNLl.mjs} +3 -3
- package/es/{attributes-DYnxULqW.mjs → attributes-Cg2w2wqR.mjs} +3 -3
- package/es/{attributes-BIXlzE3A.mjs → attributes-Ck-M5Rw3.mjs} +3 -3
- package/es/{attributes-CgnjWsLu.mjs → attributes-Dk4Khv-P.mjs} +3 -3
- package/es/{attributes-5RpQLPsm.mjs → attributes-DuAsVU2g.mjs} +6 -6
- package/es/{attributes-CqNLwRW3.mjs → attributes-Nwf_EnEX.mjs} +7 -7
- package/es/{attributes-CuUxWoIW.mjs → attributes-OZgEPZfV.mjs} +3 -3
- package/es/{attributes-B8s8kYoD.mjs → attributes-jJg_yENs.mjs} +3 -3
- package/es/{index-D07zNDg9.mjs → index-7n0O_7or.mjs} +11 -11
- package/es/{index-Dvs_cgct.mjs → index-B1ohG9Hu.mjs} +8 -8
- package/es/{index-CFdcAnNu.mjs → index-B75SSKFG.mjs} +5 -5
- package/es/{index-CBAcYtqX.mjs → index-B8Ei_KZZ.mjs} +5 -5
- package/es/{index-Bdqrb_sj.mjs → index-BF07nOIu.mjs} +5 -5
- package/es/{index-Bi3lZwlI.mjs → index-BUic5qZC.mjs} +55 -54
- package/es/{index-BVjByyUe.mjs → index-BemZB0VC.mjs} +4 -4
- package/es/{index-C49BBpRX.mjs → index-BnaaZaeo.mjs} +5 -5
- package/es/index-Bwm3aMXZ.mjs +4441 -0
- package/es/{index-BFdLFt4J.mjs → index-C7UdPRSB.mjs} +4 -4
- package/es/{index-GdH3Zwz0.mjs → index-C8d60TqQ.mjs} +5 -5
- package/es/{index-DzRsgn_u.mjs → index-CBBKPguI.mjs} +18 -18
- package/es/{index-BInCuYp5.mjs → index-CKqOSJ9y.mjs} +17 -16
- package/es/{index-Daza1EsK.mjs → index-CLnTLLjS.mjs} +3 -3
- package/es/{index-DCIgeYYw.mjs → index-COVC4gVe.mjs} +4 -4
- package/es/{index-umVDADGS.mjs → index-CR3gnAfy.mjs} +5 -5
- package/es/{index-56XQx0At.mjs → index-CXKN_KjL.mjs} +4 -4
- package/es/{index-Cm-Rzkqs.mjs → index-CaUBqf8D.mjs} +46 -45
- package/es/{index-nSniwbAA.mjs → index-Ce7eAD1W.mjs} +8 -7
- package/es/index-Cq0uVP0H.mjs +29 -0
- package/es/{index-8Jjn38kS.mjs → index-CrN898XP.mjs} +22 -21
- package/es/{index-CgI9EXqn.mjs → index-DB3YcEiT.mjs} +4 -4
- package/es/{index-i0K7Ynj-.mjs → index-DcyXbsRZ.mjs} +4 -4
- package/es/{index-BAzeX1Ol.mjs → index-DuXGzYdH.mjs} +29 -28
- package/es/{index-Dkl0nzkU.mjs → index-TjFlu-86.mjs} +6 -6
- package/es/{index-kvRZQZJ-.mjs → index-guYPVm3G.mjs} +1 -1
- package/es/{index-SkjPQ6Pt.mjs → index-hRI5WRPs.mjs} +4 -4
- package/es/{index-CjeVSp69.mjs → index-nTep9Ubc.mjs} +5 -5
- package/es/index.mjs +6 -6
- package/es/{selectPage-ChSsIBe9.mjs → selectPage-BfNytQ95.mjs} +2 -2
- package/es/{useCurrentPageId-BlVc4whf.mjs → useCurrentPageId-C1KnE1O3.mjs} +3 -3
- package/es/useEffectOnce-l5sUTCBG.mjs +7 -0
- package/es/useListenRef-B01dENv0.mjs +8 -0
- package/es/{useResizeDom-BUgMcz6M.mjs → useResizeDom-B6mM4jrh.mjs} +2 -2
- package/package.json +1 -1
- package/es/index-BhafNo6T.mjs +0 -16092
- package/es/index-dxiyF_62.mjs +0 -29
- package/es/useEffectOnce-Ct0JMBZd.mjs +0 -7
- package/es/useListenRef-Dqm6KZRj.mjs +0 -8
|
@@ -1,9 +1,9 @@
|
|
|
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 {
|
|
2
|
+
import { Input as n, InputNumber 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";
|
|
3
3
|
function u(t) {
|
|
4
4
|
const { onChange: e, ...r } = t;
|
|
5
5
|
return /* @__PURE__ */ o(
|
|
6
|
-
|
|
6
|
+
n.TextArea,
|
|
7
7
|
{
|
|
8
8
|
allowClear: !0,
|
|
9
9
|
maxLength: 500,
|
|
@@ -18,7 +18,7 @@ function u(t) {
|
|
|
18
18
|
function i(t) {
|
|
19
19
|
const { onChange: e, ...r } = t;
|
|
20
20
|
return /* @__PURE__ */ o(
|
|
21
|
-
|
|
21
|
+
m,
|
|
22
22
|
{
|
|
23
23
|
min: 1,
|
|
24
24
|
max: 99999999,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as a, jsxs as _ } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import b, { useState as S, createContext as g, useContext as k } from "react";
|
|
3
3
|
import { SketchPicker as v } from "/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";
|
|
4
|
+
import { Dropdown as o, Input as D, Row as w, Col as f, Tooltip as N } 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
5
|
import C from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
5
|
-
import { D, g as o, q as w, r as f, T as N } from "./index-BhafNo6T.mjs";
|
|
6
6
|
const I = "_IColorPicker_p2bys_59", $ = {
|
|
7
7
|
IColorPicker: I
|
|
8
8
|
}, P = "_customDropDown_t0e27_59", L = {
|
|
9
9
|
customDropDown: P
|
|
10
|
-
}, x =
|
|
11
|
-
const { trigger: l = ["click"], overlayChildren: n, children: t } = e, c = typeof n == "function" ? n == null ? void 0 : n(
|
|
12
|
-
function
|
|
10
|
+
}, x = b.memo(function(e) {
|
|
11
|
+
const { trigger: l = ["click"], overlayChildren: n, children: t } = e, c = typeof n == "function" ? n == null ? void 0 : n(i) : n, m = typeof t == "function" ? t == null ? void 0 : t(i) : t;
|
|
12
|
+
function i() {
|
|
13
13
|
var u;
|
|
14
14
|
(u = e == null ? void 0 : e.onClose) == null || u.call(e);
|
|
15
15
|
}
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
|
|
16
|
+
return /* @__PURE__ */ a(
|
|
17
|
+
o,
|
|
18
18
|
{
|
|
19
19
|
className: e == null ? void 0 : e.className,
|
|
20
20
|
open: e == null ? void 0 : e.visible,
|
|
@@ -29,35 +29,35 @@ const I = "_IColorPicker_p2bys_59", $ = {
|
|
|
29
29
|
},
|
|
30
30
|
overlayClassName: C(L.customDropDown, e == null ? void 0 : e.overlayClassName),
|
|
31
31
|
onOpenChange: (u) => {
|
|
32
|
-
u ||
|
|
32
|
+
u || i();
|
|
33
33
|
},
|
|
34
34
|
children: m
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
});
|
|
38
|
-
function
|
|
38
|
+
function F(e) {
|
|
39
39
|
const { value: l = "white" } = e, [n, t] = S(!1);
|
|
40
40
|
function c() {
|
|
41
41
|
t(!1);
|
|
42
42
|
}
|
|
43
|
-
return /* @__PURE__ */
|
|
43
|
+
return /* @__PURE__ */ a(
|
|
44
44
|
x,
|
|
45
45
|
{
|
|
46
46
|
visible: n,
|
|
47
47
|
onClose: c,
|
|
48
|
-
overlayChildren: /* @__PURE__ */
|
|
48
|
+
overlayChildren: /* @__PURE__ */ a(
|
|
49
49
|
v,
|
|
50
50
|
{
|
|
51
51
|
width: "250px",
|
|
52
52
|
color: l,
|
|
53
53
|
onChange: (m) => {
|
|
54
54
|
var h;
|
|
55
|
-
const { rgb:
|
|
55
|
+
const { rgb: i } = m, u = i.a === 1 ? m.hex : `rgba(${i.r}, ${i.g}, ${i.b}, ${i.a})`;
|
|
56
56
|
(h = e == null ? void 0 : e.onChange) == null || h.call(e, `${u}` || "#fff");
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
),
|
|
60
|
-
children: /* @__PURE__ */
|
|
60
|
+
children: /* @__PURE__ */ a(
|
|
61
61
|
"div",
|
|
62
62
|
{
|
|
63
63
|
className: $.IColorPicker,
|
|
@@ -70,19 +70,19 @@ function E(e) {
|
|
|
70
70
|
}
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
|
-
const T = "_iinput_1ak9s_59",
|
|
73
|
+
const T = "_iinput_1ak9s_59", j = {
|
|
74
74
|
iinput: T
|
|
75
75
|
};
|
|
76
|
-
function
|
|
76
|
+
function G(e) {
|
|
77
77
|
const { onChange: l, className: n, ...t } = e;
|
|
78
|
-
return /* @__PURE__ */
|
|
79
|
-
|
|
78
|
+
return /* @__PURE__ */ a(
|
|
79
|
+
D,
|
|
80
80
|
{
|
|
81
81
|
allowClear: !0,
|
|
82
82
|
maxLength: 100,
|
|
83
83
|
size: "small",
|
|
84
84
|
placeholder: "请输入",
|
|
85
|
-
className: C(n,
|
|
85
|
+
className: C(n, j.iinput),
|
|
86
86
|
...t,
|
|
87
87
|
onChange: (c) => {
|
|
88
88
|
var m;
|
|
@@ -91,12 +91,12 @@ function F(e) {
|
|
|
91
91
|
}
|
|
92
92
|
);
|
|
93
93
|
}
|
|
94
|
-
const q = "_line_pevaq_59",
|
|
94
|
+
const q = "_line_pevaq_59", O = "_line_help_pevaq_62", y = {
|
|
95
95
|
line: q,
|
|
96
|
-
line_help:
|
|
96
|
+
line_help: O
|
|
97
97
|
};
|
|
98
|
-
function
|
|
99
|
-
const l =
|
|
98
|
+
function H(e) {
|
|
99
|
+
const l = R(), { labelSpan: n = l == null ? void 0 : l.labelSpan } = e, t = 24 - n;
|
|
100
100
|
return /* @__PURE__ */ _(
|
|
101
101
|
w,
|
|
102
102
|
{
|
|
@@ -104,30 +104,30 @@ function G(e) {
|
|
|
104
104
|
...e == null ? void 0 : e.style,
|
|
105
105
|
...l == null ? void 0 : l.itemStyle
|
|
106
106
|
},
|
|
107
|
-
className:
|
|
107
|
+
className: y.line,
|
|
108
108
|
children: [
|
|
109
|
-
/* @__PURE__ */
|
|
109
|
+
/* @__PURE__ */ a(
|
|
110
110
|
f,
|
|
111
111
|
{
|
|
112
112
|
span: n,
|
|
113
|
-
className: C((e == null ? void 0 : e.labelTip) &&
|
|
113
|
+
className: C((e == null ? void 0 : e.labelTip) && y.line_help),
|
|
114
114
|
style: l == null ? void 0 : l.labelStyle,
|
|
115
|
-
children: e != null && e.labelTip ? /* @__PURE__ */
|
|
115
|
+
children: e != null && e.labelTip ? /* @__PURE__ */ a(N, { title: e == null ? void 0 : e.labelTip, children: e == null ? void 0 : e.label }) : e == null ? void 0 : e.label
|
|
116
116
|
}
|
|
117
117
|
),
|
|
118
|
-
/* @__PURE__ */
|
|
118
|
+
/* @__PURE__ */ a(f, { span: t, style: e == null ? void 0 : e.childrenStyle, children: e == null ? void 0 : e.children })
|
|
119
119
|
]
|
|
120
120
|
}
|
|
121
121
|
);
|
|
122
122
|
}
|
|
123
|
-
const
|
|
123
|
+
const d = g({
|
|
124
124
|
labelSpan: 3
|
|
125
125
|
});
|
|
126
|
-
function
|
|
127
|
-
return k(
|
|
126
|
+
function R() {
|
|
127
|
+
return k(d);
|
|
128
128
|
}
|
|
129
|
-
const
|
|
130
|
-
|
|
129
|
+
const J = b.memo((e) => /* @__PURE__ */ a(
|
|
130
|
+
d.Provider,
|
|
131
131
|
{
|
|
132
132
|
value: {
|
|
133
133
|
labelSpan: e.labelSpan || 3,
|
|
@@ -139,8 +139,8 @@ const H = y.memo((e) => /* @__PURE__ */ i(
|
|
|
139
139
|
));
|
|
140
140
|
export {
|
|
141
141
|
x as C,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
G as I,
|
|
143
|
+
J as L,
|
|
144
|
+
H as a,
|
|
145
|
+
F as b
|
|
146
146
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as e } 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
|
-
import "
|
|
4
|
-
import "
|
|
3
|
+
import "react";
|
|
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
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsxs as y, jsx as d } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
+
import { i as k, c as I, o 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
|
-
import { useRef as
|
|
5
|
-
import "
|
|
4
|
+
import { useRef as S, useMemo as H } from "react";
|
|
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
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
9
9
|
import g from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
10
|
-
import { CloseOutlined as
|
|
11
|
-
import { b as
|
|
12
|
-
import {
|
|
10
|
+
import { CloseOutlined as N, PlusOutlined as R } 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 { b as A, I as T } from "./index-Cq0uVP0H.mjs";
|
|
12
|
+
import { Space as q } 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";
|
|
13
|
+
import { L as D, a as v, I as C, b as P } from "./Line-nA3VtARp.mjs";
|
|
13
14
|
const w = "_editSeriesList_c1zv3_59", O = {
|
|
14
15
|
editSeriesList: w
|
|
15
16
|
}, U = "_tabsHead_1q8na_59", j = "_tabsHead_add_1q8na_64", B = "_tabsHead_body_1q8na_72", E = "_tabsHead_body_inner_1q8na_85", F = "_tabsHead_item_1q8na_90", K = "_tabsHead_item_selected_1q8na_102", $ = "_tabsHead_item_delete_1q8na_107", h = {
|
|
@@ -23,49 +24,49 @@ const w = "_editSeriesList_c1zv3_59", O = {
|
|
|
23
24
|
};
|
|
24
25
|
function z(e) {
|
|
25
26
|
var l, i;
|
|
26
|
-
const t =
|
|
27
|
-
function
|
|
28
|
-
const m = n.getBoundingClientRect(),
|
|
29
|
-
return
|
|
27
|
+
const t = S(null);
|
|
28
|
+
function _(n) {
|
|
29
|
+
const m = n.getBoundingClientRect(), b = t.current.getBoundingClientRect();
|
|
30
|
+
return A(
|
|
30
31
|
{ x1: m.x, y1: m.y, x2: m.right, y2: m.bottom },
|
|
31
32
|
{
|
|
32
|
-
x1:
|
|
33
|
-
y1:
|
|
34
|
-
x2:
|
|
35
|
-
y2:
|
|
33
|
+
x1: b.x,
|
|
34
|
+
y1: b.y,
|
|
35
|
+
x2: b.right,
|
|
36
|
+
y2: b.bottom
|
|
36
37
|
}
|
|
37
38
|
);
|
|
38
39
|
}
|
|
39
40
|
function s(n) {
|
|
40
|
-
|
|
41
|
+
_(n) || t.current.scrollTo({
|
|
41
42
|
left: n.offsetLeft - 20,
|
|
42
43
|
// -20 是为了能刚好看到前一个
|
|
43
44
|
behavior: "smooth"
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ y("div", { style: e == null ? void 0 : e.style, className: h.tabsHead, children: [
|
|
47
48
|
/* @__PURE__ */ d("div", { className: h.tabsHead_body, ref: t, children: /* @__PURE__ */ d("div", { className: h.tabsHead_body_inner, children: (i = (l = e == null ? void 0 : e.items) == null ? void 0 : l.map) == null ? void 0 : i.call(l, (n, m) => {
|
|
48
|
-
const
|
|
49
|
-
return /* @__PURE__ */
|
|
49
|
+
const b = (n == null ? void 0 : n.value) === (e == null ? void 0 : e.value);
|
|
50
|
+
return /* @__PURE__ */ y(
|
|
50
51
|
"div",
|
|
51
52
|
{
|
|
52
53
|
className: g(
|
|
53
54
|
h.tabsHead_item,
|
|
54
|
-
|
|
55
|
+
b && h.tabsHead_item_selected
|
|
55
56
|
),
|
|
56
|
-
onClick: (
|
|
57
|
+
onClick: (r) => {
|
|
57
58
|
var a;
|
|
58
|
-
|
|
59
|
+
b || (s(r.target), (a = e == null ? void 0 : e.onChange) == null || a.call(e, n == null ? void 0 : n.value));
|
|
59
60
|
},
|
|
60
61
|
children: [
|
|
61
62
|
n == null ? void 0 : n.label,
|
|
62
63
|
/* @__PURE__ */ d(
|
|
63
|
-
|
|
64
|
+
N,
|
|
64
65
|
{
|
|
65
66
|
className: g(h.tabsHead_item_delete, "icon_clickable"),
|
|
66
|
-
onClick: (
|
|
67
|
+
onClick: (r) => {
|
|
67
68
|
var a;
|
|
68
|
-
|
|
69
|
+
r.stopPropagation(), (a = e == null ? void 0 : e.onDelete) == null || a.call(e, n.value);
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
)
|
|
@@ -74,27 +75,27 @@ function z(e) {
|
|
|
74
75
|
(n == null ? void 0 : n.value) || m
|
|
75
76
|
);
|
|
76
77
|
}) }) }),
|
|
77
|
-
(e == null ? void 0 : e.showAdd) && /* @__PURE__ */ d("div", { className: h.tabsHead_add, onClick: e == null ? void 0 : e.onAdd, children: /* @__PURE__ */ d(
|
|
78
|
+
(e == null ? void 0 : e.showAdd) && /* @__PURE__ */ d("div", { className: h.tabsHead_add, onClick: e == null ? void 0 : e.onAdd, children: /* @__PURE__ */ d(R, {}) })
|
|
78
79
|
] });
|
|
79
80
|
}
|
|
80
|
-
function
|
|
81
|
-
const { value: t, onChange:
|
|
81
|
+
function M(e) {
|
|
82
|
+
const { value: t, onChange: _ } = e;
|
|
82
83
|
function s(l) {
|
|
83
|
-
|
|
84
|
+
_ == null || _({
|
|
84
85
|
...t,
|
|
85
86
|
...l
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
|
-
return /* @__PURE__ */ d(D, { labelSpan: 6, children: /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ d(D, { labelSpan: 6, children: /* @__PURE__ */ y(q, { direction: "vertical", style: { width: "100%", padding: 12 }, children: [
|
|
89
90
|
/* @__PURE__ */ d(v, { label: "名称", children: /* @__PURE__ */ d(C, { value: t == null ? void 0 : t.name, onChange: (l) => s({ name: l }) }) }),
|
|
90
91
|
/* @__PURE__ */ d(v, { label: "字段", children: /* @__PURE__ */ d(C, { value: t == null ? void 0 : t.value, onChange: (l) => s({ value: l }) }) }),
|
|
91
92
|
/* @__PURE__ */ d(v, { label: "颜色", children: /* @__PURE__ */ d(P, { value: t == null ? void 0 : t.color, onChange: (l) => s({ color: l }) }) })
|
|
92
93
|
] }) });
|
|
93
94
|
}
|
|
94
|
-
function
|
|
95
|
-
const { value: t = [] } = e, [
|
|
96
|
-
var u,
|
|
97
|
-
const a = ((
|
|
95
|
+
function V(e) {
|
|
96
|
+
const { value: t = [] } = e, [_, s, l] = k(""), i = H(() => {
|
|
97
|
+
var u, o;
|
|
98
|
+
const a = ((o = (u = e == null ? void 0 : e.value) == null ? void 0 : u.map) == null ? void 0 : o.call(u, (c) => ({
|
|
98
99
|
label: c.name || "",
|
|
99
100
|
value: c.key || (c == null ? void 0 : c.value) || "",
|
|
100
101
|
data: c
|
|
@@ -102,66 +103,66 @@ function M(e) {
|
|
|
102
103
|
return a.length && (a.some((f) => f.value === l.current) || s(a[0].value)), a;
|
|
103
104
|
}, [e == null ? void 0 : e.value]), n = H(() => {
|
|
104
105
|
var a, u;
|
|
105
|
-
return (u = (a = i == null ? void 0 : i.find) == null ? void 0 : a.call(i, (
|
|
106
|
-
}, [i,
|
|
106
|
+
return (u = (a = i == null ? void 0 : i.find) == null ? void 0 : a.call(i, (o) => (o == null ? void 0 : o.value) === _)) == null ? void 0 : u.data;
|
|
107
|
+
}, [i, _]);
|
|
107
108
|
function m() {
|
|
108
109
|
var a;
|
|
109
110
|
(a = e == null ? void 0 : e.onChange) == null || a.call(e, [
|
|
110
111
|
...t,
|
|
111
112
|
{
|
|
112
|
-
key:
|
|
113
|
+
key: I(4),
|
|
113
114
|
name: `数据${t.length + 1}`,
|
|
114
115
|
value: void 0,
|
|
115
116
|
color: "white"
|
|
116
117
|
}
|
|
117
118
|
]);
|
|
118
119
|
}
|
|
119
|
-
function
|
|
120
|
-
var
|
|
120
|
+
function b(a) {
|
|
121
|
+
var o;
|
|
121
122
|
const u = i == null ? void 0 : i.reduce((c, f) => (f.value !== a && c.push(f.data), c), []);
|
|
122
|
-
(
|
|
123
|
+
(o = e == null ? void 0 : e.onChange) == null || o.call(e, u);
|
|
123
124
|
}
|
|
124
|
-
function
|
|
125
|
-
var u,
|
|
125
|
+
function r(a) {
|
|
126
|
+
var u, o;
|
|
126
127
|
(u = t == null ? void 0 : t.some) == null || u.call(t, (c) => {
|
|
127
128
|
const f = c.key === a.key;
|
|
128
129
|
return f && Object.assign(c, a), f;
|
|
129
|
-
}), (
|
|
130
|
+
}), (o = e == null ? void 0 : e.onChange) == null || o.call(e, [...t]);
|
|
130
131
|
}
|
|
131
|
-
return /* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ y("div", { className: O.editSeriesList, children: [
|
|
132
133
|
/* @__PURE__ */ d(
|
|
133
134
|
z,
|
|
134
135
|
{
|
|
135
136
|
showAdd: !0,
|
|
136
137
|
showDelete: !0,
|
|
137
|
-
value:
|
|
138
|
+
value: _,
|
|
138
139
|
items: i,
|
|
139
140
|
onChange: s,
|
|
140
141
|
onAdd: m,
|
|
141
142
|
onDelete: (a) => {
|
|
142
|
-
|
|
143
|
+
b(a);
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
),
|
|
146
|
-
!n && /* @__PURE__ */ d(
|
|
147
|
+
!n && /* @__PURE__ */ d(T, {}),
|
|
147
148
|
n && /* @__PURE__ */ d(
|
|
148
|
-
|
|
149
|
+
M,
|
|
149
150
|
{
|
|
150
151
|
value: n,
|
|
151
152
|
onChange: (a) => {
|
|
152
|
-
|
|
153
|
+
r(a);
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
)
|
|
156
157
|
] });
|
|
157
158
|
}
|
|
158
|
-
const
|
|
159
|
+
const W = {
|
|
159
160
|
seriesList: [
|
|
160
161
|
{ key: "1", name: "数据1", value: "value1", color: "#f8e71c" },
|
|
161
162
|
{ key: "2", name: "数据2", value: "value2", color: "#7ed321" },
|
|
162
163
|
{ key: "3", name: "数据3", value: "value3", color: "#1071e0" }
|
|
163
164
|
]
|
|
164
|
-
},
|
|
165
|
+
}, le = L(
|
|
165
166
|
[
|
|
166
167
|
{
|
|
167
168
|
key: "background",
|
|
@@ -175,12 +176,12 @@ const V = {
|
|
|
175
176
|
key: "seriesList",
|
|
176
177
|
label: "映射",
|
|
177
178
|
labelTip: "图表的数据映射",
|
|
178
|
-
component: ({ value: e, onChange: t }) => /* @__PURE__ */ d("div", { style: { border: "1px solid #e8e8e8" }, children: /* @__PURE__ */ d(
|
|
179
|
+
component: ({ value: e, onChange: t }) => /* @__PURE__ */ d("div", { style: { border: "1px solid #e8e8e8" }, children: /* @__PURE__ */ d(V, { value: e, onChange: t }) })
|
|
179
180
|
}
|
|
180
181
|
],
|
|
181
|
-
|
|
182
|
+
W
|
|
182
183
|
);
|
|
183
184
|
export {
|
|
184
|
-
|
|
185
|
-
|
|
185
|
+
W as DEFAULT_OPTIONS,
|
|
186
|
+
le as default
|
|
186
187
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { o 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
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "react";
|
|
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
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
9
|
-
import { I as b } from "./index-
|
|
9
|
+
import { I as b } from "./index-DuXGzYdH.mjs";
|
|
10
10
|
const g = {
|
|
11
11
|
id: "clock.png"
|
|
12
12
|
}, s = t(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { o as r } 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
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "react";
|
|
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
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as e } 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
|
-
import { useMemo as n } from "
|
|
4
|
-
import "
|
|
3
|
+
import { useMemo as n } from "react";
|
|
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
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as t } 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
|
-
import "
|
|
4
|
-
import "
|
|
3
|
+
import "react";
|
|
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
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as e } 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
|
-
import "
|
|
4
|
-
import "
|
|
3
|
+
import "react";
|
|
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
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as t } 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
|
-
import "
|
|
4
|
-
import "
|
|
3
|
+
import "react";
|
|
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
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
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 { o 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
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "react";
|
|
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
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
9
9
|
const r = {
|
|
10
10
|
autoScroll: !0,
|
|
11
11
|
pxPerSecond: 12
|
|
12
|
-
}, u =
|
|
12
|
+
}, u = t(
|
|
13
13
|
[
|
|
14
|
-
/* @__PURE__ */
|
|
14
|
+
/* @__PURE__ */ o("b", { children: "滚动配置" }, "data"),
|
|
15
15
|
{
|
|
16
16
|
key: "pxPerSecond",
|
|
17
17
|
label: "每秒滚动像素",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o } 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
|
-
import "
|
|
4
|
-
import "
|
|
3
|
+
import "react";
|
|
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
6
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
7
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
9
|
-
const
|
|
9
|
+
const t = {
|
|
10
10
|
background: "#223447"
|
|
11
|
-
}, s =
|
|
11
|
+
}, s = o(
|
|
12
12
|
[
|
|
13
13
|
{
|
|
14
14
|
key: "background",
|
|
@@ -16,9 +16,9 @@ const o = {
|
|
|
16
16
|
component: "colorPicker"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
|
-
|
|
19
|
+
t
|
|
20
20
|
);
|
|
21
21
|
export {
|
|
22
|
-
|
|
22
|
+
t as DEFAULT_OPTIONS,
|
|
23
23
|
s as default
|
|
24
24
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
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 {
|
|
2
|
+
import { o as n } 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
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "react";
|
|
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
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { o as r } 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
|
-
import "
|
|
5
|
-
import "
|
|
4
|
+
import "react";
|
|
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
7
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.js.mjs";
|
|
8
8
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|