react-big-screen 0.0.12 → 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-DX8kqNSX.mjs → attributes--4TLwTJ7.mjs} +1 -1
- package/es/{attributes-Cpmd7Txn.mjs → attributes-BQVvyBiv.mjs} +2 -2
- package/es/{attributes-CXxDCEoU.mjs → attributes-BWVuAA3i.mjs} +1 -1
- package/es/{attributes-CAbIPkXp.mjs → attributes-BqRyp1ob.mjs} +1 -1
- package/es/{attributes-CnC5d4dB.mjs → attributes-Bzd30ZIf.mjs} +1 -1
- package/es/{attributes-Ble3yfo1.mjs → attributes-C-FswaWY.mjs} +1 -1
- package/es/{attributes-iVSwJDAX.mjs → attributes-C1NWgfsy.mjs} +1 -1
- package/es/{attributes-CkxbpIDj.mjs → attributes-CRjnUsRx.mjs} +1 -1
- package/es/{attributes-xsuWi_su.mjs → attributes-DLLyxz0N.mjs} +1 -1
- package/es/{attributes-C6B-ZXmC.mjs → attributes-DmdRtgZZ.mjs} +1 -1
- package/es/{attributes-zcNzA9eV.mjs → attributes-Ds-UHXjB.mjs} +1 -1
- package/es/{attributes-BqM6ULf4.mjs → attributes-Dsp5j2A0.mjs} +1 -1
- package/es/{index-BFgFK9TM.mjs → index-3xI6pYK_.mjs} +3 -3
- package/es/{index-r57x4X5U.mjs → index-B152sOCT.mjs} +2 -2
- package/es/{index-H0rVQWTL.mjs → index-B5kA4V3C.mjs} +2 -2
- package/es/{index-BW_uo1lA.mjs → index-BaXFBriK.mjs} +611 -627
- package/es/{index--QItsPX3.mjs → index-BkiBaEzs.mjs} +2 -2
- package/es/{index-sfCjPr12.mjs → index-BvuyAzoz.mjs} +2 -2
- package/es/{index-3cCHmj8w.mjs → index-BxFObudF.mjs} +3 -3
- package/es/{index-awsf1gCq.mjs → index-BxnULZLw.mjs} +2 -2
- package/es/{index-DQuRy5CD.mjs → index-C18T8lZz.mjs} +2 -2
- package/es/{index-CYN5AnmR.mjs → index-C3s_52_F.mjs} +2 -2
- package/es/{index-DFNd2-4P.mjs → index-CCiktl86.mjs} +2 -2
- package/es/{index-CEomX12N.mjs → index-CWVkCbis.mjs} +3 -3
- package/es/{index-DrLpfkDS.mjs → index-Cp4rqgjF.mjs} +3 -3
- package/es/{index-DEebKkW3.mjs → index-D-q9tYW0.mjs} +2 -2
- package/es/{index-Bb-5dA14.mjs → index-DB6gZpoX.mjs} +2 -2
- package/es/{index-Pqe51Zf-.mjs → index-DSLm4B3h.mjs} +2 -2
- package/es/{index-izPLYvUd.mjs → index-DTUaHCnR.mjs} +239 -222
- package/es/{index-D0U_cb8E.mjs → index-Dd7rZVc_.mjs} +2 -2
- package/es/{index-yKkQtvIX.mjs → index-DjkNh2yG.mjs} +2 -2
- package/es/{index-DqEg6HY6.mjs → index-NxDdAVMu.mjs} +1 -1
- package/es/{index-DCRN8jl1.mjs → index-O_OcKtSF.mjs} +1 -1
- package/es/{index-CtV1M2dW.mjs → index-RYQ9EzNC.mjs} +2 -2
- package/es/{index-DeQ7oW_E.mjs → index-fj1Y8y5V.mjs} +2 -2
- package/es/{index-DTmQQ9sf.mjs → index-gJTpfQvV.mjs} +2 -2
- package/es/{index-BataooQb.mjs → index-hk0ols1y.mjs} +2 -2
- package/es/{index-EQ5Mshvz.mjs → index-z6ax5THp.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-1nlDtL2q.mjs → selectPage-BrsWx9sU.mjs} +1 -1
- package/es/style.css +1 -1
- package/es/{useCurrentPageId-BuiSdDvY.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 = {
|