@cloud-app-dev/vidc 4.0.15 → 4.1.0
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/.dumirc.ts +2 -18
- package/.eslintrc.js +3 -0
- package/.fatherrc.ts +0 -7
- package/es/AppContext/Sync.d.ts +1 -2
- package/es/AppContext/index.d.ts +10 -3
- package/es/AppContext/index.js +14 -4
- package/es/AppContext/interface.d.ts +1 -0
- package/es/CheckGroupFixed/demo.d.ts +1 -2
- package/es/CheckGroupFixed/demo.js +7 -12
- package/es/CheckGroupFixed/index.d.ts +7 -3
- package/es/CheckGroupFixed/index.js +9 -9
- package/es/CheckGroupFixed/style.d.ts +6 -0
- package/es/CheckGroupFixed/style.js +9 -0
- package/es/Config/index.js +1 -1
- package/es/CustomRenderSelect/index.d.ts +3 -2
- package/es/CustomRenderSelect/index.js +13 -10
- package/es/DBTools/index.js +1 -2
- package/es/DisableMark/index.d.ts +1 -2
- package/es/DisableMark/index.js +5 -2
- package/es/DomMove/demo.d.ts +1 -2
- package/es/DomMove/demo.js +0 -1
- package/es/DomMove/index.js +7 -8
- package/es/DynamicGridList/demo.d.ts +2 -0
- package/es/DynamicGridList/index.d.ts +1 -1
- package/es/DynamicGridList/index.js +3 -3
- package/es/DynamicList/demo.d.ts +1 -2
- package/es/DynamicList/demo.js +14 -19
- package/es/DynamicList/index.d.ts +1 -2
- package/es/DynamicList/index.js +10 -8
- package/es/ErrorFallback/index.d.ts +1 -2
- package/es/EventTools/index.d.ts +1 -1
- package/es/GridList/demo.d.ts +2 -0
- package/es/GridList/{Demo.js → demo.js} +1 -1
- package/es/GridList/hook.js +2 -2
- package/es/GridList/index.d.ts +0 -1
- package/es/GridList/index.js +5 -2
- package/es/HightLevel/index.d.ts +1 -2
- package/es/HightLevel/index.js +2 -3
- package/es/IconFont/index.d.ts +1 -1
- package/es/LabelValue/index.d.ts +1 -2
- package/es/LabelValue/index.js +5 -2
- package/es/List/demo.d.ts +1 -2
- package/es/List/demo.js +1 -2
- package/es/List/index.d.ts +2 -3
- package/es/List/index.js +25 -17
- package/es/ListWithSizeAnimate/demo.d.ts +1 -2
- package/es/ListWithSizeAnimate/index.d.ts +0 -1
- package/es/ListWithSizeAnimate/index.js +19 -10
- package/es/LoaderScript/index.d.ts +1 -1
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +1 -2
- package/es/Picture/component/DefaultRects/RectInfo.js +6 -4
- package/es/Picture/component/DefaultRects/index.d.ts +1 -3
- package/es/Picture/component/DefaultRects/index.js +5 -5
- package/es/Picture/component/DefaultRects/style.d.ts +10 -0
- package/es/Picture/component/DefaultRects/style.js +28 -0
- package/es/Picture/component/DrawRect/index.d.ts +1 -3
- package/es/Picture/component/DrawRect/index.js +6 -3
- package/es/Picture/component/RectMenu/index.d.ts +1 -3
- package/es/Picture/component/RectMenu/index.js +13 -8
- package/es/Picture/component/Tools/index.d.ts +1 -2
- package/es/Picture/component/Tools/index.js +21 -9
- package/es/Picture/component/Tools/style.d.ts +2 -0
- package/es/Picture/component/Tools/style.js +5 -0
- package/es/Picture/component/WheelScale/index.d.ts +1 -2
- package/es/Picture/demo.d.ts +1 -2
- package/es/Picture/demo.js +1 -1
- package/es/Picture/index.d.ts +1 -3
- package/es/Picture/index.js +21 -19
- package/es/Picture/useDraw.js +4 -4
- package/es/Player/api/index.d.ts +1 -1
- package/es/Player/api/index.js +44 -18
- package/es/Player/context.d.ts +1 -1
- package/es/Player/contraller_bar/bar.d.ts +1 -1
- package/es/Player/contraller_bar/bar.js +5 -1
- package/es/Player/contraller_bar/contraller_event.d.ts +1 -1
- package/es/Player/contraller_bar/contraller_event.js +4 -5
- package/es/Player/contraller_bar/index.d.ts +1 -2
- package/es/Player/contraller_bar/index.js +8 -2
- package/es/Player/contraller_bar/left_bar.d.ts +1 -1
- package/es/Player/contraller_bar/left_bar.js +12 -3
- package/es/Player/contraller_bar/right_bar.d.ts +1 -1
- package/es/Player/contraller_bar/right_bar.js +1 -2
- package/es/Player/contraller_bar/time.d.ts +1 -2
- package/es/Player/contraller_bar/time.js +5 -2
- package/es/Player/contraller_bar/volume.d.ts +1 -2
- package/es/Player/contraller_bar/volume.js +11 -6
- package/es/Player/demo.d.ts +1 -2
- package/es/Player/demo.js +41 -29
- package/es/Player/empty.d.ts +1 -2
- package/es/Player/empty.js +0 -1
- package/es/Player/event/index.d.ts +1 -1
- package/es/Player/event/index.js +4 -3
- package/es/Player/fps_play.d.ts +1 -2
- package/es/Player/fps_play.js +6 -2
- package/es/Player/frontend_player.d.ts +1 -2
- package/es/Player/frontend_player.js +4 -5
- package/es/Player/frontend_timeline.d.ts +1 -3
- package/es/Player/frontend_timeline.js +16 -8
- package/es/Player/iconfont.d.ts +1 -2
- package/es/Player/iconfont.js +1 -2
- package/es/Player/live_heart.js +8 -9
- package/es/Player/message.d.ts +2 -4
- package/es/Player/message.js +16 -7
- package/es/Player/player.d.ts +2 -0
- package/es/Player/segment_player.d.ts +1 -2
- package/es/Player/segment_player.js +4 -5
- package/es/Player/segment_timeline.d.ts +1 -3
- package/es/Player/segment_timeline.js +19 -9
- package/es/Player/single_player.d.ts +0 -1
- package/es/Player/single_player.js +18 -15
- package/es/Player/timeline.d.ts +5 -3
- package/es/Player/timeline.js +10 -4
- package/es/Player/util.d.ts +2 -2
- package/es/Player/util.js +2 -2
- package/es/PlayerExt/demo.d.ts +1 -2
- package/es/PlayerExt/demo.js +3 -3
- package/es/PlayerExt/index.d.ts +1 -2
- package/es/PlayerExt/index.js +10 -5
- package/es/Progress/index.d.ts +1 -3
- package/es/Progress/index.js +7 -3
- package/es/ROI/demo.d.ts +1 -2
- package/es/ROI/demo.js +1 -2
- package/es/ROI/index.d.ts +1 -2
- package/es/ROI/index.js +17 -7
- package/es/RefDrawer/Footer.d.ts +1 -1
- package/es/RefDrawer/index.d.ts +1 -1
- package/es/RefDrawer/index.js +2 -2
- package/es/RefModal/demo.d.ts +1 -2
- package/es/RefModal/index.d.ts +1 -1
- package/es/RefModal/index.js +2 -2
- package/es/ScreenPlayer/Live.d.ts +1 -3
- package/es/ScreenPlayer/Live.js +10 -11
- package/es/ScreenPlayer/LiveTools.d.ts +5 -1
- package/es/ScreenPlayer/LiveTools.js +14 -9
- package/es/ScreenPlayer/PlayerWithExt.d.ts +3 -3
- package/es/ScreenPlayer/PlayerWithExt.js +14 -13
- package/es/ScreenPlayer/RatePick.d.ts +1 -2
- package/es/ScreenPlayer/RatePick.js +9 -4
- package/es/ScreenPlayer/Record.d.ts +1 -3
- package/es/ScreenPlayer/Record.js +27 -22
- package/es/ScreenPlayer/RecordTools.d.ts +1 -1
- package/es/ScreenPlayer/RecordTools.js +11 -13
- package/es/ScreenPlayer/ScreenSelect.d.ts +1 -2
- package/es/ScreenPlayer/ScreenSelect.js +11 -3
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +1 -2
- package/es/ScreenPlayer/SegmentTimeLine.js +12 -6
- package/es/ScreenPlayer/TimeMode.d.ts +1 -2
- package/es/ScreenPlayer/TimeMode.js +7 -3
- package/es/ScreenPlayer/TimeSelect.d.ts +1 -2
- package/es/ScreenPlayer/TimeSelect.js +10 -5
- package/es/ScreenPlayer/containerStyle.d.ts +13 -0
- package/es/ScreenPlayer/containerStyle.js +32 -0
- package/es/ScreenPlayer/demo.d.ts +1 -2
- package/es/ScreenPlayer/demo.js +8 -13
- package/es/ScreenPlayer/demo2.d.ts +1 -2
- package/es/ScreenPlayer/demo2.js +112 -116
- package/es/ScreenPlayer/index.d.ts +2 -2
- package/es/ScreenPlayer/useTimeSlider.d.ts +2 -2
- package/es/ScreenPlayer/useTimeSlider.js +16 -15
- package/es/ScreenPlayer/useVideoFit.js +2 -2
- package/es/SocketEmitter/eventEmitter.d.ts +1 -1
- package/es/TableLayout/index.d.ts +1 -2
- package/es/TableLayout/index.js +7 -4
- package/es/Timeout/index.d.ts +1 -2
- package/es/Timeout/index.js +4 -5
- package/es/cache/index.d.ts +1 -1
- package/es/cache/index.js +21 -21
- package/es/index.d.ts +3 -11
- package/es/index.js +3 -11
- package/es/likeGo/index.d.ts +2 -0
- package/es/{Map/Config/utils.js → likeGo/index.js} +15 -49
- package/es/likeGoSync/index.d.ts +2 -0
- package/es/likeGoSync/index.js +10 -0
- package/es/logger/index.d.ts +4 -4
- package/es/nextTick/index.d.ts +1 -1
- package/es/nextTick/index.js +2 -6
- package/es/recorder/demo.d.ts +2 -0
- package/es/recorder/demo.js +200 -0
- package/es/recorder/index.d.ts +294 -0
- package/es/recorder/index.js +991 -0
- package/es/useDrawROI/index.js +8 -12
- package/es/useEventEmitterHandle/index.js +2 -2
- package/es/useInfiniteScroll/index.d.ts +1 -1
- package/es/useInfiniteScroll/index.js +8 -7
- package/es/useRafInterval/index.js +2 -2
- package/es/useSimpleState/index.js +3 -4
- package/es/useVirtualList/index.d.ts +1 -1
- package/es/useVirtualList/index.js +5 -8
- package/es/utils.d.ts +4 -4
- package/es/utils.js +1 -30
- package/es/uuid/index.d.ts +2 -1
- package/es/uuid/index.js +3 -12
- package/package.json +36 -37
- package/release-build.sh +3 -2
- package/scripts/{entry.js → entry.mjs} +4 -6
- package/{icon-fix.js → scripts/icon-fix.mjs} +4 -3
- package/tsconfig.json +1 -1
- package/es/Auth/index.d.ts +0 -8
- package/es/Auth/index.js +0 -18
- package/es/AutoExit/index.d.ts +0 -6
- package/es/AutoExit/index.js +0 -23
- package/es/CheckGroupFixed/index.less +0 -53
- package/es/ConfigContext/index.d.ts +0 -22
- package/es/ConfigContext/index.js +0 -25
- package/es/CustomRenderSelect/index.less +0 -25
- package/es/DisableMark/index.less +0 -9
- package/es/DynamicGridList/Demo.d.ts +0 -3
- package/es/DynamicList/index.less +0 -17
- package/es/FullScreen/index.d.ts +0 -22
- package/es/FullScreen/index.js +0 -36
- package/es/FullScreen/index.less +0 -18
- package/es/GridList/Demo.d.ts +0 -3
- package/es/GridList/index.less +0 -8
- package/es/HightLevel/index.less +0 -3
- package/es/ImageView/index.d.ts +0 -17
- package/es/ImageView/index.js +0 -58
- package/es/ImageView/index.less +0 -11
- package/es/LabelPlayer/111.png +0 -0
- package/es/LabelPlayer/demo.d.ts +0 -2
- package/es/LabelPlayer/demo.js +0 -123
- package/es/LabelPlayer/index.d.ts +0 -21
- package/es/LabelPlayer/index.js +0 -169
- package/es/LabelPlayer/index.less +0 -24
- package/es/LabelValue/index.less +0 -23
- package/es/List/index.less +0 -13
- package/es/ListWithSizeAnimate/index.less +0 -23
- package/es/Map/AMap.d.ts +0 -7109
- package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
- package/es/Map/BasicMap/AMapInstance.js +0 -98
- package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
- package/es/Map/BasicMap/LeafletInstance.js +0 -111
- package/es/Map/BasicMap/index.d.ts +0 -9
- package/es/Map/BasicMap/index.js +0 -98
- package/es/Map/BasicMap/index.less +0 -29
- package/es/Map/ClusterLayer/demo.d.ts +0 -3
- package/es/Map/ClusterLayer/demo.js +0 -22
- package/es/Map/ClusterLayer/hook.d.ts +0 -5
- package/es/Map/ClusterLayer/hook.js +0 -124
- package/es/Map/ClusterLayer/index.d.ts +0 -6
- package/es/Map/ClusterLayer/index.js +0 -32
- package/es/Map/ClusterLayer/index.less +0 -29
- package/es/Map/ClusterLayer/props.d.ts +0 -8
- package/es/Map/Config/index.d.ts +0 -9
- package/es/Map/Config/index.js +0 -52
- package/es/Map/Config/utils.d.ts +0 -2
- package/es/Map/Context/index.d.ts +0 -11
- package/es/Map/Context/index.js +0 -56
- package/es/Map/FindPio/index.d.ts +0 -4
- package/es/Map/FindPio/index.js +0 -14
- package/es/Map/FindPio/index.less +0 -7
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
- package/es/Map/InfoWindow/MakerLikeWindow.js +0 -113
- package/es/Map/InfoWindow/demo.d.ts +0 -3
- package/es/Map/InfoWindow/demo.js +0 -76
- package/es/Map/InfoWindow/index.d.ts +0 -11
- package/es/Map/InfoWindow/index.js +0 -67
- package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
- package/es/Map/LevelCenter/DragMarker/index.js +0 -44
- package/es/Map/LevelCenter/demo.d.ts +0 -3
- package/es/Map/LevelCenter/demo.js +0 -46
- package/es/Map/LevelCenter/index.d.ts +0 -15
- package/es/Map/LevelCenter/index.js +0 -71
- package/es/Map/LoaderMap/index.d.ts +0 -12
- package/es/Map/LoaderMap/index.js +0 -71
- package/es/Map/MapDrawSelect/demo.d.ts +0 -3
- package/es/Map/MapDrawSelect/demo.js +0 -79
- package/es/Map/MapDrawSelect/index.d.ts +0 -15
- package/es/Map/MapDrawSelect/index.js +0 -62
- package/es/Map/MouseTool/index.d.ts +0 -10
- package/es/Map/MouseTool/index.js +0 -44
- package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
- package/es/Map/MouseTool/useMouseTools.js +0 -83
- package/es/Map/ResetTools/index.d.ts +0 -10
- package/es/Map/ResetTools/index.js +0 -67
- package/es/Map/ResetTools/index.less +0 -39
- package/es/Map/SinglePoint/demo.d.ts +0 -3
- package/es/Map/SinglePoint/demo.js +0 -16
- package/es/Map/SinglePoint/index.d.ts +0 -27
- package/es/Map/SinglePoint/index.js +0 -57
- package/es/Map/SinglePoint/index.less +0 -41
- package/es/Map/hook/useMapEvent.d.ts +0 -2
- package/es/Map/hook/useMapEvent.js +0 -19
- package/es/Map/hook/useMapType.d.ts +0 -4
- package/es/Map/hook/useMapType.js +0 -12
- package/es/Map/icon.d.ts +0 -2
- package/es/Map/icon.js +0 -10
- package/es/Map/index.d.ts +0 -24
- package/es/Map/index.js +0 -25
- package/es/Map/interface.d.ts +0 -74
- package/es/Map/points.d.ts +0 -74
- package/es/Map/points.js +0 -1
- package/es/Map/useMarker/index.d.ts +0 -10
- package/es/Map/useMarker/index.js +0 -71
- package/es/Map/withMap/index.d.ts +0 -3
- package/es/Map/withMap/index.js +0 -18
- package/es/Picture/component/DefaultRects/index.less +0 -211
- package/es/Picture/component/DrawRect/index.less +0 -8
- package/es/Picture/component/RectMenu/index.less +0 -36
- package/es/Picture/component/Tools/index.less +0 -49
- package/es/Picture/index.less +0 -20
- package/es/Player/style/bar.less +0 -43
- package/es/Player/style/index.less +0 -34
- package/es/Player/style/message.less +0 -56
- package/es/Player/style/slider.less +0 -106
- package/es/Player/style/timeline.less +0 -116
- package/es/Player/style/volume.less +0 -24
- package/es/PlayerExt/index.less +0 -10
- package/es/Progress/index.less +0 -21
- package/es/ROI/index.less +0 -33
- package/es/ScreenPlayer/index.less +0 -335
- package/es/TableLayout/index.less +0 -4
- package/es/ThemeAntd/demo.d.ts +0 -4
- package/es/ThemeAntd/demo.js +0 -129
- package/es/ThemeAntd/demo.less +0 -20
- package/es/ThemeAntd/index.d.ts +0 -7
- package/es/ThemeAntd/index.js +0 -23
- package/es/ThemeAntd/index.less +0 -4
- package/es/VList/index.d.ts +0 -11
- package/es/VList/index.js +0 -42
- package/es/VList/index.less +0 -6
- package/es/VList/utils.d.ts +0 -14
- package/es/VList/utils.js +0 -17
- package/es/bigNumberTransformCN/index.d.ts +0 -5
- package/es/bigNumberTransformCN/index.js +0 -60
- package/es/useFullscreen/demo.d.ts +0 -2
- package/es/useFullscreen/demo.js +0 -48
- package/es/useFullscreen/index.d.ts +0 -12
- package/es/useFullscreen/index.js +0 -76
- /package/es/DynamicGridList/{Demo.js → demo.js} +0 -0
package/es/DynamicList/index.js
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
|
-
|
|
1
|
+
var _templateObject, _templateObject2;
|
|
2
2
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
4
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
5
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
6
6
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
7
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
9
|
+
import { css } from '@emotion/css';
|
|
10
|
+
import { useUpdateEffect } from 'ahooks';
|
|
8
11
|
import { Skeleton } from 'antd';
|
|
9
|
-
import
|
|
12
|
+
import { useMemo, useRef } from 'react';
|
|
10
13
|
import useInfiniteScroll from "../useInfiniteScroll";
|
|
11
14
|
import useVirtualList from "../useVirtualList";
|
|
12
15
|
import { LIMIT, skeletonList } from "./utils";
|
|
13
|
-
|
|
14
|
-
//style
|
|
15
|
-
import "./index.less";
|
|
16
16
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
17
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
var dynamicListLayoutCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n border: 1px solid var(--gray2);\n"])));
|
|
19
|
+
var dynamicBoxCss = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex: 1;\n overflow: auto;\n contain: strict;\n"])));
|
|
18
20
|
function DynamicList(_ref) {
|
|
19
21
|
var renderItem = _ref.renderItem,
|
|
20
22
|
itemHeight = _ref.itemHeight,
|
|
@@ -50,13 +52,13 @@ function DynamicList(_ref) {
|
|
|
50
52
|
_useVirtualList2 = _slicedToArray(_useVirtualList, 2),
|
|
51
53
|
list = _useVirtualList2[0],
|
|
52
54
|
scrollTo = _useVirtualList2[1];
|
|
53
|
-
|
|
55
|
+
useUpdateEffect(function () {
|
|
54
56
|
return scrollTo(0);
|
|
55
57
|
}, reloadDeps ? reloadDeps : []);
|
|
56
58
|
return /*#__PURE__*/_jsx("div", {
|
|
57
|
-
className:
|
|
59
|
+
className: dynamicListLayoutCss,
|
|
58
60
|
children: /*#__PURE__*/_jsxs("div", {
|
|
59
|
-
className:
|
|
61
|
+
className: dynamicBoxCss,
|
|
60
62
|
ref: containerRef,
|
|
61
63
|
children: [/*#__PURE__*/_jsx("div", {
|
|
62
64
|
ref: wrapperRef,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ErrorBoundaryProps } from './inerface';
|
|
3
2
|
interface IErrorFallbackProps {
|
|
4
3
|
error: Error;
|
|
5
4
|
resetErrorBoundary: () => void;
|
|
6
5
|
}
|
|
7
|
-
declare function ErrorFallback({ error, resetErrorBoundary }: IErrorFallbackProps): JSX.Element;
|
|
6
|
+
declare function ErrorFallback({ error, resetErrorBoundary }: IErrorFallbackProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export declare const errorBoundaryOptions: ErrorBoundaryProps;
|
|
9
8
|
export default ErrorFallback;
|
package/es/EventTools/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import
|
|
7
|
+
import { useEffect, useState } from 'react';
|
|
8
8
|
import data from "./data";
|
|
9
9
|
import GridList from "./index";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
package/es/GridList/hook.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _useScroll from "ahooks/es/useScroll";
|
|
2
1
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3
2
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
4
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -6,6 +5,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
6
5
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
6
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
8
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
8
|
+
import { useScroll } from 'ahooks';
|
|
9
9
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
10
10
|
import { getColumnWidth, getElementOffset, getElementSize, getWindowScroll, getWindowSize, isSameElementScroll, isSameElementSize } from "./utils";
|
|
11
11
|
export function useConstRef(value) {
|
|
@@ -125,7 +125,7 @@ export function useIntersecting(ref, rootMargin) {
|
|
|
125
125
|
}
|
|
126
126
|
export function useGridListContainerData(ref) {
|
|
127
127
|
var windowSize = useWindowSize();
|
|
128
|
-
var windowScroll =
|
|
128
|
+
var windowScroll = useScroll(ref);
|
|
129
129
|
var elementWindowOffset = useElementWindowOffset(ref);
|
|
130
130
|
var elementSize = useElementSize(ref);
|
|
131
131
|
return useMemo(function () {
|
package/es/GridList/index.d.ts
CHANGED
package/es/GridList/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
1
4
|
import React, { useRef } from 'react';
|
|
2
5
|
import { useGridListConfigData, useGridListContainerData, useGridListLayoutData, useGridListRenderData, useIntersecting } from "./hook";
|
|
3
6
|
import { getGridRowStart } from "./utils";
|
|
4
|
-
import "./index.less";
|
|
5
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
var cloudappGridListCss = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n padding: 20px;\n overflow: auto;\n contain: strict;\n box-sizing: border-box;\n"])));
|
|
6
9
|
var GridList = /*#__PURE__*/React.forwardRef(function GridList(props, ref) {
|
|
7
10
|
var containerRef = useRef(null);
|
|
8
11
|
var domRef = ref !== null && ref !== void 0 ? ref : containerRef;
|
|
@@ -14,7 +17,7 @@ var GridList = /*#__PURE__*/React.forwardRef(function GridList(props, ref) {
|
|
|
14
17
|
var colWidth = props.fixedColumnWidth ? "".concat(props.fixedColumnWidth, "px") : '1fr';
|
|
15
18
|
return /*#__PURE__*/_jsx("div", {
|
|
16
19
|
ref: domRef,
|
|
17
|
-
className: "
|
|
20
|
+
className: "".concat(cloudappGridListCss, " ").concat(props.className || ''),
|
|
18
21
|
children: /*#__PURE__*/_jsx("div", {
|
|
19
22
|
style: {
|
|
20
23
|
boxSizing: 'border-box',
|
package/es/HightLevel/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
2
|
interface HightLevelProps {
|
|
4
3
|
keyword: string;
|
|
5
4
|
name: string;
|
|
6
5
|
}
|
|
7
|
-
declare function HighLevel({ keyword, name }: HightLevelProps): JSX.Element;
|
|
6
|
+
declare function HighLevel({ keyword, name }: HightLevelProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
declare const _default: React.MemoExoticComponent<typeof HighLevel>;
|
|
9
8
|
export default _default;
|
package/es/HightLevel/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { escapeRegExp, replace } from 'lodash-es';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import { replace, escapeRegExp } from 'lodash-es';
|
|
3
|
-
import "./index.less";
|
|
4
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
4
|
function HighLevel(_ref) {
|
|
6
5
|
var keyword = _ref.keyword,
|
|
@@ -11,7 +10,7 @@ function HighLevel(_ref) {
|
|
|
11
10
|
});
|
|
12
11
|
}
|
|
13
12
|
var reg = new RegExp(escapeRegExp(keyword), 'g');
|
|
14
|
-
var html = replace(name, reg, "<span
|
|
13
|
+
var html = replace(name, reg, "<span style=\"color: var(--primary-dark);\">".concat(keyword, "</span>"));
|
|
15
14
|
return /*#__PURE__*/_jsx("span", {
|
|
16
15
|
dangerouslySetInnerHTML: {
|
|
17
16
|
__html: html
|
package/es/IconFont/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export interface IIconFontProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
style?: React.CSSProperties;
|
|
7
7
|
}
|
|
8
|
-
declare function IconFont({ type, className, title, style, ...props }: IIconFontProps): JSX.Element;
|
|
8
|
+
declare function IconFont({ type, className, title, style, ...props }: IIconFontProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare namespace IconFont {
|
|
10
10
|
var registerIconFont: (scriptUrl: string) => void;
|
|
11
11
|
}
|
package/es/LabelValue/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
2
|
interface ILabelValueProps {
|
|
4
3
|
label?: any;
|
|
5
4
|
value?: any;
|
|
@@ -11,5 +10,5 @@ interface ILabelValueProps {
|
|
|
11
10
|
labelStyle?: React.CSSProperties;
|
|
12
11
|
valueStyle?: React.CSSProperties;
|
|
13
12
|
}
|
|
14
|
-
declare function LabelValue({ label, value, emptyValue, className, style, labelStyle, valueStyle, noWrap, noColon }: ILabelValueProps): JSX.Element;
|
|
13
|
+
declare function LabelValue({ label, value, emptyValue, className, style, labelStyle, valueStyle, noWrap, noColon }: ILabelValueProps): import("react/jsx-runtime").JSX.Element;
|
|
15
14
|
export default LabelValue;
|
package/es/LabelValue/index.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
var _templateObject;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
1
4
|
import React from 'react';
|
|
2
|
-
import "./index.less";
|
|
3
5
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
var classname = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: inline-flex;\n font-size: var(--fs-small);\n span {\n &:first-child {\n padding-right: 4px;\n color: var(--color4);\n white-space: nowrap;\n }\n\n &:last-child {\n flex: 1;\n color: var(--color6);\n\n &.no-wrap {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n }\n }\n"])));
|
|
5
8
|
function LabelValue(_ref) {
|
|
6
9
|
var label = _ref.label,
|
|
7
10
|
value = _ref.value,
|
|
@@ -16,7 +19,7 @@ function LabelValue(_ref) {
|
|
|
16
19
|
noWrap = _ref$noWrap === void 0 ? false : _ref$noWrap,
|
|
17
20
|
noColon = _ref.noColon;
|
|
18
21
|
return /*#__PURE__*/_jsxs("div", {
|
|
19
|
-
className: "
|
|
22
|
+
className: "".concat(classname, " ").concat(className),
|
|
20
23
|
style: style,
|
|
21
24
|
children: [/*#__PURE__*/_jsxs("span", {
|
|
22
25
|
style: labelStyle,
|
package/es/List/demo.d.ts
CHANGED
package/es/List/demo.js
CHANGED
package/es/List/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import './index.less';
|
|
3
2
|
export interface ListProps<T> {
|
|
4
3
|
/**
|
|
5
4
|
* @description 列表数据
|
|
6
5
|
* @default []
|
|
7
6
|
*/
|
|
8
|
-
list
|
|
7
|
+
list: Array<T>;
|
|
9
8
|
/**
|
|
10
9
|
* @description 列表类名
|
|
11
10
|
* @default ''
|
|
@@ -24,5 +23,5 @@ export interface ListProps<T> {
|
|
|
24
23
|
rowHeight?: number;
|
|
25
24
|
renderHeaderExt?: () => JSX.Element;
|
|
26
25
|
}
|
|
27
|
-
declare function List<T>(
|
|
26
|
+
declare function List<T>({ className, style, renderItem, list, rowHeight, renderHeaderExt }: ListProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
28
27
|
export default List;
|
package/es/List/index.js
CHANGED
|
@@ -1,28 +1,36 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
1
4
|
import React from 'react';
|
|
2
|
-
import VList from "../VList";
|
|
3
|
-
import "./index.less";
|
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
var listWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n height: 100%;\n overflow: hidden;\n cursor: auto;\n border: 1px solid var(--gray2);\n flex-direction: column;\n"])));
|
|
8
|
+
var listlayout = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex: 1;\n overflow: hidden;\n"])));
|
|
9
|
+
var vidcSimpleListLayout = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n height: 100%;\n overflow: auto;\n contain: strict;\n"])));
|
|
10
|
+
function List(_ref) {
|
|
11
|
+
var className = _ref.className,
|
|
12
|
+
style = _ref.style,
|
|
13
|
+
renderItem = _ref.renderItem,
|
|
14
|
+
list = _ref.list,
|
|
15
|
+
_ref$rowHeight = _ref.rowHeight,
|
|
16
|
+
rowHeight = _ref$rowHeight === void 0 ? 30 : _ref$rowHeight,
|
|
17
|
+
renderHeaderExt = _ref.renderHeaderExt;
|
|
13
18
|
return /*#__PURE__*/_jsxs("div", {
|
|
14
|
-
className: "
|
|
19
|
+
className: "".concat(listWrapper, " ").concat(className),
|
|
15
20
|
style: style,
|
|
16
21
|
children: [/*#__PURE__*/_jsx("div", {
|
|
17
|
-
className: "lm-c-list-header",
|
|
18
22
|
children: renderHeaderExt === null || renderHeaderExt === void 0 ? void 0 : renderHeaderExt()
|
|
19
23
|
}), /*#__PURE__*/_jsx("div", {
|
|
20
|
-
className:
|
|
21
|
-
children: /*#__PURE__*/_jsx(
|
|
22
|
-
className:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
className: listlayout,
|
|
25
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
26
|
+
className: vidcSimpleListLayout,
|
|
27
|
+
style: {
|
|
28
|
+
contentVisibility: 'auto',
|
|
29
|
+
containIntrinsicSize: list.length * rowHeight
|
|
30
|
+
},
|
|
31
|
+
children: list.map(function (ele, index) {
|
|
32
|
+
return renderItem(ele, index);
|
|
33
|
+
})
|
|
26
34
|
})
|
|
27
35
|
})]
|
|
28
36
|
});
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default function App(): JSX.Element;
|
|
1
|
+
export default function App(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
import _useEventListener from "ahooks/es/useEventListener";
|
|
3
2
|
var _excluded = ["header", "children"];
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
4
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -14,12 +14,19 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
17
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
18
|
+
/* eslint-disable @typescript-eslint/no-unused-expressions */
|
|
19
|
+
import { css } from '@emotion/css';
|
|
20
|
+
import { useEventListener } from 'ahooks';
|
|
17
21
|
import React, { useImperativeHandle, useMemo, useRef } from 'react';
|
|
18
22
|
import DynamicGridList from "../DynamicGridList";
|
|
19
23
|
import useSimpleState from "../useSimpleState";
|
|
20
|
-
import "./index.less";
|
|
21
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
25
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
var listWithSizeAnimateLayout = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n height: 100%;\n overflow: hidden;\n flex-direction: column;\n"])));
|
|
27
|
+
var istAnimateHeader = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n transition: max-height 0.2s;\n"])));
|
|
28
|
+
var listAnimateContent = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex: 1;\n display: flex;\n overflow: hidden;\n transition: height 0.2s;\n flex-direction: column;\n"])));
|
|
29
|
+
var dynamicGridList = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 1;\n"])));
|
|
23
30
|
var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAnimate(_ref, forwardRef) {
|
|
24
31
|
var _ref$current2;
|
|
25
32
|
var header = _ref.header,
|
|
@@ -35,9 +42,9 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
35
42
|
var headerHeight = useMemo(function () {
|
|
36
43
|
return state.open ? 1000 : 0;
|
|
37
44
|
}, [state.open]);
|
|
38
|
-
|
|
45
|
+
useEventListener('scroll', function () {
|
|
39
46
|
var _ref$current;
|
|
40
|
-
var ele = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelector('.
|
|
47
|
+
var ele = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelector('.dynamic-grid-list');
|
|
41
48
|
if ((ele === null || ele === void 0 ? void 0 : ele.scrollTop) === 0) {
|
|
42
49
|
updateState({
|
|
43
50
|
open: true
|
|
@@ -48,7 +55,7 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
48
55
|
});
|
|
49
56
|
}
|
|
50
57
|
}, {
|
|
51
|
-
target: (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.querySelector('.
|
|
58
|
+
target: (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.querySelector('.dynamic-grid-list')
|
|
52
59
|
});
|
|
53
60
|
useImperativeHandle(forwardRef, function () {
|
|
54
61
|
return {
|
|
@@ -64,7 +71,7 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
64
71
|
},
|
|
65
72
|
backTop: function backTop() {
|
|
66
73
|
var _ref$current3, _ref$current3$querySe;
|
|
67
|
-
return (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : (_ref$current3$querySe = _ref$current3.querySelector('.
|
|
74
|
+
return (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : (_ref$current3$querySe = _ref$current3.querySelector('.dynamic-grid-list')) === null || _ref$current3$querySe === void 0 ? void 0 : _ref$current3$querySe.scrollTo({
|
|
68
75
|
top: 0
|
|
69
76
|
});
|
|
70
77
|
}
|
|
@@ -73,10 +80,10 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
73
80
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
74
81
|
[]);
|
|
75
82
|
return /*#__PURE__*/_jsxs("div", {
|
|
76
|
-
className:
|
|
83
|
+
className: listWithSizeAnimateLayout,
|
|
77
84
|
ref: ref,
|
|
78
85
|
children: [/*#__PURE__*/_jsx("div", {
|
|
79
|
-
className:
|
|
86
|
+
className: istAnimateHeader,
|
|
80
87
|
style: {
|
|
81
88
|
maxHeight: headerHeight,
|
|
82
89
|
overflow: !state.open ? 'hidden' : undefined
|
|
@@ -86,11 +93,13 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
86
93
|
children: header
|
|
87
94
|
})
|
|
88
95
|
}), /*#__PURE__*/_jsxs("div", {
|
|
89
|
-
className:
|
|
96
|
+
className: listAnimateContent,
|
|
90
97
|
children: [/*#__PURE__*/_jsx("div", {
|
|
91
98
|
className: "list-animate-content-ext",
|
|
92
99
|
children: children
|
|
93
|
-
}), /*#__PURE__*/_jsx(DynamicGridList, _objectSpread({}, props)
|
|
100
|
+
}), /*#__PURE__*/_jsx(DynamicGridList, _objectSpread(_objectSpread({}, props), {}, {
|
|
101
|
+
className: dynamicGridList
|
|
102
|
+
}))]
|
|
94
103
|
})]
|
|
95
104
|
});
|
|
96
105
|
});
|
|
@@ -43,5 +43,5 @@ export interface ILoaderProps {
|
|
|
43
43
|
*/
|
|
44
44
|
onLoadEnd?: () => Promise<null>;
|
|
45
45
|
}
|
|
46
|
-
declare function LoaderScripts({ options, children, Spin, onLoadEnd }: ILoaderProps): JSX.Element;
|
|
46
|
+
declare function LoaderScripts({ options, children, Spin, onLoadEnd }: ILoaderProps): import("react/jsx-runtime").JSX.Element;
|
|
47
47
|
export default LoaderScripts;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RectType } from '../../interface';
|
|
3
2
|
interface IRectInfoProps {
|
|
4
3
|
item: RectType;
|
|
5
4
|
containerDom: HTMLDivElement;
|
|
6
5
|
}
|
|
7
|
-
declare function RectInfo({ item, containerDom }: IRectInfoProps): JSX.Element;
|
|
6
|
+
declare function RectInfo({ item, containerDom }: IRectInfoProps): import("react/jsx-runtime").JSX.Element;
|
|
8
7
|
export default RectInfo;
|
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import
|
|
7
|
+
import { useMemo } from 'react';
|
|
8
8
|
import IconFont from "../../../IconFont";
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
10
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -12,15 +12,17 @@ var RECT_INFO_WIDTH = 150;
|
|
|
12
12
|
var RECT_INFO_HEIGHT = 24;
|
|
13
13
|
var RECT_WINDOW_MARGIN = 6;
|
|
14
14
|
function RectInfo(_ref) {
|
|
15
|
+
var _item$tags2, _item$tags3;
|
|
15
16
|
var item = _ref.item,
|
|
16
17
|
containerDom = _ref.containerDom;
|
|
17
18
|
var position = useMemo(function () {
|
|
19
|
+
var _item$tags;
|
|
18
20
|
var _containerDom$getBoun = containerDom.getBoundingClientRect(),
|
|
19
21
|
width = _containerDom$getBoun.width,
|
|
20
22
|
height = _containerDom$getBoun.height;
|
|
21
23
|
var _rectInfoWidth$rectIn = {
|
|
22
24
|
rectInfoWidth: RECT_INFO_WIDTH,
|
|
23
|
-
rectInfoHeight: item.tags.length * RECT_INFO_HEIGHT + 6 + 30
|
|
25
|
+
rectInfoHeight: ((_item$tags = item.tags) !== null && _item$tags !== void 0 ? _item$tags : []).length * RECT_INFO_HEIGHT + 6 + 30
|
|
24
26
|
},
|
|
25
27
|
rectInfoWidth = _rectInfoWidth$rectIn.rectInfoWidth,
|
|
26
28
|
rectInfoHeight = _rectInfoWidth$rectIn.rectInfoHeight;
|
|
@@ -46,7 +48,7 @@ function RectInfo(_ref) {
|
|
|
46
48
|
width: rectInfoWidth,
|
|
47
49
|
height: rectInfoHeight
|
|
48
50
|
};
|
|
49
|
-
}, [containerDom, item.rect, item.tags.length]);
|
|
51
|
+
}, [containerDom, item.rect, ((_item$tags2 = item.tags) !== null && _item$tags2 !== void 0 ? _item$tags2 : []).length]);
|
|
50
52
|
return /*#__PURE__*/_jsxs("div", {
|
|
51
53
|
className: "rect-info-list-wrapper",
|
|
52
54
|
style: {
|
|
@@ -70,7 +72,7 @@ function RectInfo(_ref) {
|
|
|
70
72
|
})]
|
|
71
73
|
}), /*#__PURE__*/_jsx("ul", {
|
|
72
74
|
className: "rect-info-list",
|
|
73
|
-
children: item.tags.map(function (v, index) {
|
|
75
|
+
children: ((_item$tags3 = item.tags) !== null && _item$tags3 !== void 0 ? _item$tags3 : []).map(function (v, index) {
|
|
74
76
|
return /*#__PURE__*/_jsxs("li", {
|
|
75
77
|
className: "info-item",
|
|
76
78
|
title: v.titleAttr,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { RectType } from '../../interface';
|
|
3
|
-
import './index.less';
|
|
4
2
|
interface IDefaultRectsProps {
|
|
5
3
|
rects: RectType[];
|
|
6
4
|
containerDom: HTMLDivElement;
|
|
@@ -9,5 +7,5 @@ interface IDefaultRectsProps {
|
|
|
9
7
|
}) => void;
|
|
10
8
|
getRectImage: (rect: number[]) => string | null;
|
|
11
9
|
}
|
|
12
|
-
declare function DefaultRects({ rects, containerDom, onClickRect, getRectImage }: IDefaultRectsProps): JSX.Element;
|
|
10
|
+
declare function DefaultRects({ rects, containerDom, onClickRect, getRectImage }: IDefaultRectsProps): import("react/jsx-runtime").JSX.Element;
|
|
13
11
|
export default DefaultRects;
|
|
@@ -6,8 +6,8 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import React, { useCallback, useMemo } from 'react';
|
|
8
8
|
import RectInfo from "./RectInfo";
|
|
9
|
+
import { borderBottomDecorator, borderTopDecorator, rectItem, typeRect } from "./style";
|
|
9
10
|
import { computedZIndex } from "./utils";
|
|
10
|
-
import "./index.less";
|
|
11
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
@@ -29,9 +29,9 @@ function DefaultRects(_ref) {
|
|
|
29
29
|
return /*#__PURE__*/_jsx(_Fragment, {
|
|
30
30
|
children: renderRects.map(function (v, k) {
|
|
31
31
|
return /*#__PURE__*/_jsxs("div", {
|
|
32
|
-
className:
|
|
32
|
+
className: typeRect[v.type],
|
|
33
33
|
children: [/*#__PURE__*/_jsxs("div", {
|
|
34
|
-
className:
|
|
34
|
+
className: "rect-item ".concat(rectItem),
|
|
35
35
|
onClick: function onClick(e) {
|
|
36
36
|
return rectClick(e, v);
|
|
37
37
|
},
|
|
@@ -43,9 +43,9 @@ function DefaultRects(_ref) {
|
|
|
43
43
|
zIndex: k
|
|
44
44
|
},
|
|
45
45
|
children: [/*#__PURE__*/_jsx("div", {
|
|
46
|
-
className: "border-top-decorator"
|
|
46
|
+
className: "border-top-decorator ".concat(borderTopDecorator)
|
|
47
47
|
}), /*#__PURE__*/_jsx("div", {
|
|
48
|
-
className: "border-bottom-decorator"
|
|
48
|
+
className: "border-bottom-decorator ".concat(borderBottomDecorator)
|
|
49
49
|
})]
|
|
50
50
|
}), Array.isArray(v.tags) && v.tags.length > 0 && /*#__PURE__*/_jsx(RectInfo, {
|
|
51
51
|
item: v,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const rectItem: string;
|
|
2
|
+
export declare const borderTopDecorator: string;
|
|
3
|
+
export declare const borderBottomDecorator: string;
|
|
4
|
+
export declare const typeRect: {
|
|
5
|
+
face: string;
|
|
6
|
+
body: string;
|
|
7
|
+
vehicle: string;
|
|
8
|
+
nonVehicle: string;
|
|
9
|
+
thing: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12;
|
|
2
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
|
+
import { css } from '@emotion/css';
|
|
4
|
+
var borderDecoratorColorMixin = function borderDecoratorColorMixin(color) {
|
|
5
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .border-top-decorator {\n &::before {\n border-top-color: ", ";\n border-left-color: ", ";\n }\n\n &::after {\n border-top-color: ", ";\n border-right-color: ", ";\n }\n }\n\n .border-bottom-decorator {\n &::before {\n border-bottom-color: ", ";\n border-left-color: ", ";\n }\n\n &::after {\n border-bottom-color: ", ";\n border-right-color: ", ";\n }\n }\n "])), color, color, color, color, color, color, color, color);
|
|
6
|
+
};
|
|
7
|
+
var rectItemStyleMixin = function rectItemStyleMixin(color, lightColor, shadowColor) {
|
|
8
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .rect-item {\n border-color: ", ";\n ", ";\n &:hover {\n border-color: ", ";\n box-shadow: inset 0 0 24px 0 ", ";\n }\n }\n "])), lightColor, borderDecoratorColorMixin(color), color, shadowColor);
|
|
9
|
+
};
|
|
10
|
+
var rectInfoListMixin = function rectInfoListMixin(color, bgColor) {
|
|
11
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .rect-info-list-wrapper {\n .data-type {\n .data-tag {\n background: ", ";\n border: 1px solid ", ";\n }\n }\n }\n "])), bgColor, color);
|
|
12
|
+
};
|
|
13
|
+
var rectItemWrapperface = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n ", ";\n ", ";\n"])), rectItemStyleMixin('#ff5f57', 'rgba(255, 95, 87, .6)', 'rgba(255, 95, 87, .4)'), rectInfoListMixin('#FF5F57', 'rgba(255,95,87,.6)'));
|
|
14
|
+
var rectItemWrapperbody = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n ", ";\n ", ";\n"])), rectItemStyleMixin('#ffbb22', 'rgba(255, 187, 34, .6)', 'rgba(255, 187, 34, .4)'), rectInfoListMixin('#FFBB22', 'rgba(255,187,34,.6)'));
|
|
15
|
+
var rectItemWrappervehicle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", ";\n ", ";\n"])), rectItemStyleMixin('#44aaff', 'rgba(68, 170, 255, .6)', 'rgba(68, 170, 255, .4)'), rectInfoListMixin('#44aaff', 'rgba(68,170,255,.6)'));
|
|
16
|
+
var rectItemWrappernonVehicle = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n ", ";\n ", ";\n"])), rectItemStyleMixin('#50e9b2', 'rgba(80, 233, 178, .6)', 'rgba(80, 233, 178, .4)'), rectInfoListMixin('#50e9b2', 'rgba(80,233,178,.6)'));
|
|
17
|
+
var rectItemWrapperthing = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n ", ";\n ", ";\n"])), rectItemStyleMixin('#b946d2', 'rgba(185, 70, 210, .6)', 'rgba(185, 70, 210, .4)'), rectInfoListMixin('#b946d2', 'rgba(185, 70, 210, .6)'));
|
|
18
|
+
export var rectItem = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n position: absolute;\n border-width: 1px;\n border-style: solid;\n cursor: pointer;\n"])));
|
|
19
|
+
var borderDecorator = css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n position: absolute;\n width: 100%;\n pointer-events: none;\n &::before,\n &::after {\n display: block;\n width: 8px;\n height: 8px;\n border: 2px solid transparent;\n content: '';\n }\n &::before {\n float: left;\n margin-left: -1px;\n }\n &::after {\n float: right;\n margin-right: -1px;\n }\n"])));
|
|
20
|
+
export var borderTopDecorator = css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n ", ";\n top: 0;\n &::before,\n &::after {\n margin-top: -1px;\n }\n"])), borderDecorator);
|
|
21
|
+
export var borderBottomDecorator = css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n ", ";\n bottom: 0;\n &::before,\n &::after {\n margin-bottom: -1px;\n }\n"])), borderDecorator);
|
|
22
|
+
export var typeRect = {
|
|
23
|
+
face: rectItemWrapperface,
|
|
24
|
+
body: rectItemWrapperbody,
|
|
25
|
+
vehicle: rectItemWrappervehicle,
|
|
26
|
+
nonVehicle: rectItemWrappernonVehicle,
|
|
27
|
+
thing: rectItemWrapperthing
|
|
28
|
+
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { MenuRectType } from '../../interface';
|
|
3
|
-
import './index.less';
|
|
4
2
|
interface IDrawRectProps {
|
|
5
3
|
rect: number[];
|
|
6
4
|
canRenderMenu?: boolean;
|
|
@@ -9,5 +7,5 @@ interface IDrawRectProps {
|
|
|
9
7
|
menus: MenuRectType[];
|
|
10
8
|
getRectImage: (rect: number[]) => string | null;
|
|
11
9
|
}
|
|
12
|
-
declare function DrawRect({ rect, canRenderMenu, containerDom, onMenuClick, menus, getRectImage }: IDrawRectProps): JSX.Element;
|
|
10
|
+
declare function DrawRect({ rect, canRenderMenu, containerDom, onMenuClick, menus, getRectImage }: IDrawRectProps): import("react/jsx-runtime").JSX.Element;
|
|
13
11
|
export default DrawRect;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
var _templateObject;
|
|
2
3
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
4
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
-
|
|
8
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
9
|
+
import { css } from '@emotion/css';
|
|
10
|
+
import { useCallback, useMemo } from 'react';
|
|
8
11
|
import RectMenu from "../RectMenu";
|
|
9
|
-
import "./index.less";
|
|
10
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
13
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
14
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
+
var cssbox = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: absolute;\n border: 1px solid;\n box-shadow: 0 0 0 9999em rgb(0 0 0 / 40%);\n border-image-source: url('data:image/gif;base64,R0lGODlhCgAKAJECAAAAAP///////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OEI5RDc5MTFDNkE2MTFFM0JCMDZEODI2QTI4MzJBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OEI5RDc5MTBDNkE2MTFFM0JCMDZEODI2QTI4MzJBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE4MDgzQzNDMjA5MzREQ0ZDIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjAyODAxMTc0MDcyMDY4MTE4MDgzQzNDMjA5MzREQ0ZDIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEBQoAAgAsAAAAAAoACgAAAhWEERkn7W3ei7KlagMWF/dKgYeyGAUAIfkEBQoAAgAsAAAAAAoACgAAAg+UYwLJ7RnQm7QmsCyVKhUAIfkEBQoAAgAsAAAAAAoACgAAAhCUYgLJHdiinNSAVfOEKoUCACH5BAUKAAIALAAAAAAKAAoAAAIRVISAdusPo3RAzYtjaMIaUQAAIfkEBQoAAgAsAAAAAAoACgAAAg+MDiem7Q8bSLFaG5il6xQAIfkEBQoAAgAsAAAAAAoACgAAAg+UYRLJ7QnQm7SmsCyVKhUAIfkEBQoAAgAsAAAAAAoACgAAAhCUYBLJDdiinNSEVfOEKoECACH5BAUKAAIALAAAAAAKAAoAAAIRFISBdusPo3RBzYsjaMIaUQAAOw==');\n border-image-repeat: repeat;\n border-image-slice: 1;\n"])));
|
|
13
16
|
function DrawRect(_ref) {
|
|
14
17
|
var _ref$rect = _ref.rect,
|
|
15
18
|
rect = _ref$rect === void 0 ? [] : _ref$rect,
|
|
@@ -32,7 +35,7 @@ function DrawRect(_ref) {
|
|
|
32
35
|
}, [getRectImage, onMenuClick, rect]);
|
|
33
36
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
34
37
|
children: [/*#__PURE__*/_jsx("div", {
|
|
35
|
-
className:
|
|
38
|
+
className: cssbox,
|
|
36
39
|
style: {
|
|
37
40
|
left: rect[0],
|
|
38
41
|
top: rect[1],
|