react-big-screen 0.0.11 → 0.0.13
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/README.md +47 -0
- package/es/{attributes-C-2HGh7n.mjs → attributes--4TLwTJ7.mjs} +1 -1
- package/es/{attributes-BY9LFsFw.mjs → attributes-BQVvyBiv.mjs} +2 -2
- package/es/{attributes-Bhf8aq33.mjs → attributes-BWVuAA3i.mjs} +1 -1
- package/es/{attributes-Co1ow14s.mjs → attributes-BqRyp1ob.mjs} +1 -1
- package/es/{attributes-DA33m9Y9.mjs → attributes-Bzd30ZIf.mjs} +1 -1
- package/es/{attributes-B7qe3na4.mjs → attributes-C-FswaWY.mjs} +1 -1
- package/es/{attributes-Cafkrvu7.mjs → attributes-C1NWgfsy.mjs} +1 -1
- package/es/{attributes-DHS3sD2D.mjs → attributes-CRjnUsRx.mjs} +1 -1
- package/es/{attributes-BHXwz8DS.mjs → attributes-DLLyxz0N.mjs} +1 -1
- package/es/{attributes-D4vnJckc.mjs → attributes-DmdRtgZZ.mjs} +1 -1
- package/es/{attributes-B22MPpVh.mjs → attributes-Ds-UHXjB.mjs} +1 -1
- package/es/{attributes-BSyypEpa.mjs → attributes-Dsp5j2A0.mjs} +1 -1
- package/es/{index-BJtlNwtn.mjs → index-3xI6pYK_.mjs} +3 -3
- package/es/{index-BwfaMw7n.mjs → index-B152sOCT.mjs} +2 -2
- package/es/{index-Di_W06G4.mjs → index-B5kA4V3C.mjs} +2 -2
- package/es/{index-CbBZ1IB5.mjs → index-BaXFBriK.mjs} +611 -627
- package/es/{index-iKRmo_CT.mjs → index-BkiBaEzs.mjs} +2 -2
- package/es/{index-DK4n2qWe.mjs → index-BvuyAzoz.mjs} +2 -2
- package/es/{index-B04LrNP4.mjs → index-BxFObudF.mjs} +3 -3
- package/es/{index-NbXTfi6i.mjs → index-BxnULZLw.mjs} +2 -2
- package/es/{index-BlDZ5Cim.mjs → index-C18T8lZz.mjs} +2 -2
- package/es/{index-DTdAvmYK.mjs → index-C3s_52_F.mjs} +2 -2
- package/es/{index-DrefJIAb.mjs → index-CCiktl86.mjs} +2 -2
- package/es/{index-BlNCwWBW.mjs → index-CWVkCbis.mjs} +3 -3
- package/es/{index-Cns7J-Ox.mjs → index-Cp4rqgjF.mjs} +3 -3
- package/es/{index-DkSqpC9L.mjs → index-D-q9tYW0.mjs} +2 -2
- package/es/{index-DqK216F5.mjs → index-DB6gZpoX.mjs} +2 -2
- package/es/{index-DYS15zup.mjs → index-DSLm4B3h.mjs} +2 -2
- package/es/{index-Dxk5bHke.mjs → index-DTUaHCnR.mjs} +239 -222
- package/es/{index-Di88TsQW.mjs → index-Dd7rZVc_.mjs} +2 -2
- package/es/{index-Chb6B0XW.mjs → index-DjkNh2yG.mjs} +2 -2
- package/es/{index-C91DsF8W.mjs → index-NxDdAVMu.mjs} +1 -1
- package/es/{index-CqPfpOtj.mjs → index-O_OcKtSF.mjs} +1 -1
- package/es/{index-Bqq-aMFf.mjs → index-RYQ9EzNC.mjs} +2 -2
- package/es/{index-BREwG7-S.mjs → index-fj1Y8y5V.mjs} +2 -2
- package/es/{index-Cgav8dub.mjs → index-gJTpfQvV.mjs} +2 -2
- package/es/{index-DdH0frNw.mjs → index-hk0ols1y.mjs} +2 -2
- package/es/{index-BsaJL81Y.mjs → index-z6ax5THp.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-BnTwfy5A.mjs → selectPage-BrsWx9sU.mjs} +1 -1
- package/es/style.css +1 -1
- package/es/{useCurrentPageId-CVMcOaf7.mjs → useCurrentPageId-BFU6rfHk.mjs} +1 -1
- package/package.json +1 -1
- package/types/src/export/components/RenderEditor/index.d.ts +2 -0
- package/types/src/export/index.d.ts +8 -2
- package/types/src/pages/components/Footer/index.d.ts +1 -0
package/README.md
CHANGED
|
@@ -36,6 +36,53 @@ react-big-screen 是一个使用React开发的`前端可拖拽大屏`开源项
|
|
|
36
36
|
- [点击访问:多组件联动](https://tangjiahui-cn.github.io/react-big-screen/#/create?example=multiple-components-interactive)
|
|
37
37
|
|
|
38
38
|
## 快速开始
|
|
39
|
+
|
|
40
|
+
注:仅支持node版本20+、react版本18+
|
|
41
|
+
|
|
42
|
+
```shell
|
|
43
|
+
pnpm install react-big-screen
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```tsx
|
|
47
|
+
// index.tsx
|
|
48
|
+
import { EXAMPLE, RbsEngine } from "react-big-screen";
|
|
49
|
+
import * as React from "react";
|
|
50
|
+
import "antd/dist/antd.min.css";
|
|
51
|
+
import "react-big-screen/es/style.css";
|
|
52
|
+
|
|
53
|
+
export default () => {
|
|
54
|
+
const domRef = React.useRef<HTMLDivElement>(null);
|
|
55
|
+
|
|
56
|
+
React.useEffect(() => {
|
|
57
|
+
const engine = new RbsEngine();
|
|
58
|
+
|
|
59
|
+
// 挂载到DOM
|
|
60
|
+
engine.mount(domRef.current!).then(() => {
|
|
61
|
+
// 挂载成功后,导入JSON文件
|
|
62
|
+
engine.importJSON(EXAMPLE.classic);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
// 销毁
|
|
66
|
+
return () => {
|
|
67
|
+
engine.destroy()
|
|
68
|
+
};
|
|
69
|
+
}, []);
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<div
|
|
73
|
+
ref={domRef}
|
|
74
|
+
style={{
|
|
75
|
+
width: "100vw",
|
|
76
|
+
height: "100vh",
|
|
77
|
+
position: "fixed",
|
|
78
|
+
overflow: "hidden",
|
|
79
|
+
}}
|
|
80
|
+
/>
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## 本地调试
|
|
39
86
|
本地启动一个项目,用以调试或者开发功能。
|
|
40
87
|
```shell
|
|
41
88
|
# 拉取代码
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e } from "./index-
|
|
1
|
+
import { o as e } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -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 { o as t } from "./index-
|
|
2
|
+
import { o as t } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
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/index.js";
|
|
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-NxDdAVMu.mjs";
|
|
10
10
|
const g = {
|
|
11
11
|
id: "clock.png"
|
|
12
12
|
}, s = t(
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { o as t } from "./index-
|
|
2
|
+
import { o as t } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
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/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e } from "./index-
|
|
1
|
+
import { o as e } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { i as k, c as I, o as L } from "./index-DTUaHCnR.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 S, useMemo as H } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
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/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { o as r } from "./index-
|
|
2
|
+
import { o as r } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
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/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as t } from "./index-
|
|
1
|
+
import { o as t } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { o as r } from "./index-
|
|
2
|
+
import { o as r } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
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/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as t } from "./index-
|
|
1
|
+
import { o as t } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o } from "./index-
|
|
1
|
+
import { o } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { o as n } from "./index-
|
|
2
|
+
import { o as n } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
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/index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e } from "./index-
|
|
1
|
+
import { o as e } from "./index-DTUaHCnR.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 { useMemo as n } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
4
4
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as b } 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-
|
|
2
|
+
import { n as C } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
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/index.js";
|
|
@@ -7,8 +7,8 @@ import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react-dom@18.3
|
|
|
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 { useRequest 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";
|
|
10
|
-
import { R as S } from "./index-
|
|
11
|
-
import { DEFAULT_OPTIONS as g } from "./attributes-
|
|
10
|
+
import { R as S } from "./index-O_OcKtSF.mjs";
|
|
11
|
+
import { DEFAULT_OPTIONS as g } from "./attributes-C-FswaWY.mjs";
|
|
12
12
|
const n = "chinaOutline";
|
|
13
13
|
async function z() {
|
|
14
14
|
var t, c;
|
|
@@ -1,12 +1,12 @@
|
|
|
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-
|
|
2
|
+
import { n as l } from "./index-DTUaHCnR.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 "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
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/index.js";
|
|
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 { DEFAULT_OPTIONS as u } from "./attributes
|
|
9
|
+
import { DEFAULT_OPTIONS as u } from "./attributes--4TLwTJ7.mjs";
|
|
10
10
|
import d from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/dayjs@1.11.18/node_modules/dayjs/dayjs.min.js";
|
|
11
11
|
const D = l((m) => {
|
|
12
12
|
const { width: i, height: n, options: e } = m, r = c(null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { n as h } from "./index-DTUaHCnR.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 { useState as p, useMemo as L, useEffect as x } from "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/react@18.3.1/node_modules/react/index.js";
|
|
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/index.js";
|
|
@@ -9,7 +9,7 @@ import { r as y, g as C } from "./random-DD0zMfMm.mjs";
|
|
|
9
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
10
|
import "/Users/tangjiahui/tjh/react-big-screen/node_modules/.pnpm/driver.js@1.3.6/node_modules/driver.js/dist/driver.css";
|
|
11
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-
|
|
12
|
+
import { DEFAULT_OPTIONS as I } from "./attributes-CRjnUsRx.mjs";
|
|
13
13
|
import { A as M } from "./index-kvRZQZJ-.mjs";
|
|
14
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";
|
|
15
15
|
const N = "_progressList_xy0sd_59", P = "_progressList_line_xy0sd_62", A = "_progressList_line_header_xy0sd_69", c = {
|