react-big-screen 0.0.12 → 0.0.14
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-BPU7D3rB.mjs} +1 -1
- package/es/{attributes-xsuWi_su.mjs → attributes-BQYKMvcj.mjs} +1 -1
- package/es/{attributes-BqM6ULf4.mjs → attributes-BmekoT3X.mjs} +1 -1
- package/es/{attributes-iVSwJDAX.mjs → attributes-Btb0WFLF.mjs} +1 -1
- package/es/{attributes-CXxDCEoU.mjs → attributes-C3fvsuzJ.mjs} +1 -1
- package/es/{attributes-CkxbpIDj.mjs → attributes-C9O8_sg4.mjs} +1 -1
- package/es/{attributes-Ble3yfo1.mjs → attributes-CWY2_iW1.mjs} +1 -1
- package/es/{attributes-Cpmd7Txn.mjs → attributes-CW_9BAq2.mjs} +2 -2
- package/es/{attributes-C6B-ZXmC.mjs → attributes-D4wypprY.mjs} +1 -1
- package/es/{attributes-CnC5d4dB.mjs → attributes-D6BpnolK.mjs} +1 -1
- package/es/{attributes-zcNzA9eV.mjs → attributes-DUZPLASc.mjs} +1 -1
- package/es/{attributes-CAbIPkXp.mjs → attributes-Dhnyf9QU.mjs} +1 -1
- package/es/{index-r57x4X5U.mjs → index-0kmSz75m.mjs} +2 -2
- package/es/{index-BFgFK9TM.mjs → index-B2DgN7Ho.mjs} +3 -3
- package/es/{index-izPLYvUd.mjs → index-BZYcTX5j.mjs} +248 -222
- package/es/{index-BataooQb.mjs → index-Bi3qRAX3.mjs} +2 -2
- package/es/{index-DFNd2-4P.mjs → index-BlACjoGr.mjs} +2 -2
- package/es/{index-yKkQtvIX.mjs → index-C6Xzniz1.mjs} +2 -2
- package/es/{index--QItsPX3.mjs → index-CK1f83Ne.mjs} +2 -2
- package/es/{index-CYN5AnmR.mjs → index-CTx-cvWk.mjs} +2 -2
- package/es/{index-Bb-5dA14.mjs → index-Cj_g4N5m.mjs} +2 -2
- package/es/{index-DeQ7oW_E.mjs → index-Cslh09K5.mjs} +2 -2
- package/es/{index-Pqe51Zf-.mjs → index-CwGNi732.mjs} +2 -2
- package/es/{index-DCRN8jl1.mjs → index-CwijThLu.mjs} +1 -1
- package/es/{index-CEomX12N.mjs → index-Cz49jHht.mjs} +3 -3
- package/es/{index-DQuRy5CD.mjs → index-D-3DbMMl.mjs} +2 -2
- package/es/{index-EQ5Mshvz.mjs → index-DSz8a2B7.mjs} +2 -2
- package/es/{index-D0U_cb8E.mjs → index-DThqOiX3.mjs} +2 -2
- package/es/{index-sfCjPr12.mjs → index-DWpwc6bV.mjs} +2 -2
- package/es/{index-DrLpfkDS.mjs → index-DYMjU1YC.mjs} +3 -3
- package/es/{index-BW_uo1lA.mjs → index-DpRRQVh-.mjs} +732 -747
- package/es/{index-H0rVQWTL.mjs → index-Dx-GVWd-.mjs} +2 -2
- package/es/{index-DTmQQ9sf.mjs → index-LSiyLbzB.mjs} +2 -2
- package/es/{index-3cCHmj8w.mjs → index-LjyKMBIL.mjs} +3 -3
- package/es/{index-DEebKkW3.mjs → index-efgz51Ht.mjs} +2 -2
- package/es/{index-CtV1M2dW.mjs → index-pjNmKgyo.mjs} +2 -2
- package/es/{index-DqEg6HY6.mjs → index-s23NvDdl.mjs} +1 -1
- package/es/{index-awsf1gCq.mjs → index-yEom7dpa.mjs} +2 -2
- package/es/index.mjs +1 -1
- package/es/{selectPage-1nlDtL2q.mjs → selectPage-bS9p5soG.mjs} +1 -1
- package/es/style.css +1 -1
- package/es/{useCurrentPageId-BuiSdDvY.mjs → useCurrentPageId-Cc4bRYxO.mjs} +1 -1
- package/package.json +1 -1
- package/types/src/export/components/RenderEditor/index.d.ts +5 -0
- package/types/src/export/index.d.ts +10 -2
- package/types/src/pages/components/Footer/index.d.ts +1 -0
- package/types/src/pages/components/Header/index.d.ts +7 -1
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-BZYcTX5j.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 as t } from "./index-
|
|
1
|
+
import { o as t } from "./index-BZYcTX5j.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 as e } from "./index-
|
|
1
|
+
import { o as e } from "./index-BZYcTX5j.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,4 +1,4 @@
|
|
|
1
|
-
import { o as t } from "./index-
|
|
1
|
+
import { o as t } from "./index-BZYcTX5j.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 t } from "./index-
|
|
2
|
+
import { o as t } from "./index-BZYcTX5j.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,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-BZYcTX5j.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,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-BZYcTX5j.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,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-BZYcTX5j.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-s23NvDdl.mjs";
|
|
10
10
|
const g = {
|
|
11
11
|
id: "clock.png"
|
|
12
12
|
}, s = t(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o } from "./index-
|
|
1
|
+
import { o } from "./index-BZYcTX5j.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-BZYcTX5j.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 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-BZYcTX5j.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-BZYcTX5j.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 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-BZYcTX5j.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-BPU7D3rB.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 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-BZYcTX5j.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-CwijThLu.mjs";
|
|
11
|
+
import { DEFAULT_OPTIONS as g } from "./attributes-CWY2_iW1.mjs";
|
|
12
12
|
const n = "chinaOutline";
|
|
13
13
|
async function z() {
|
|
14
14
|
var t, c;
|