@cloud-app-dev/vidc 3.2.16 → 3.2.18
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/.prettierrc.js +1 -1
- package/.stylelintrc.js +113 -0
- package/es/AppContext/index.js +3 -4
- package/es/Box/InfoBox/index.less +8 -6
- package/es/Box/TwoColumnBox/index.less +32 -22
- package/es/Box/index.less +1 -1
- package/es/CheckGroupFixed/index.less +17 -14
- package/es/CustomRenderSelect/index.less +7 -7
- package/es/DisableMark/index.less +3 -3
- package/es/DomMove/index.js +5 -5
- package/es/Drag/DragAndDropItem.js +1 -2
- package/es/Drag/DropItem.js +2 -2
- package/es/Drag/index.d.ts +9 -7
- package/es/Drawer/index.js +19 -20
- package/es/Drawer/index.less +8 -8
- package/es/Drawer/interface.d.ts +4 -3
- package/es/DynamicGridList/Demo.js +1 -1
- package/es/DynamicList/index.less +2 -0
- package/es/FullScreen/index.less +6 -4
- package/es/GridList/Demo.js +2 -2
- package/es/GridList/index.js +2 -1
- package/es/GridList/index.less +1 -1
- package/es/ImageView/index.less +2 -1
- package/es/Input/index.less +1 -1
- package/es/LabelValue/index.less +5 -2
- package/es/List/index.less +2 -2
- package/es/ListWithSizeAnimate/demo.js +0 -1
- package/es/ListWithSizeAnimate/index.js +18 -28
- package/es/ListWithSizeAnimate/index.less +10 -6
- package/es/Map/BasicMap/index.less +8 -3
- package/es/Map/ClusterLayer/index.less +8 -6
- package/es/Map/FindPio/index.less +2 -2
- package/es/Map/LevelCenter/index.js +3 -4
- package/es/Map/MapDrawSelect/index.js +2 -3
- package/es/Map/ResetTools/index.less +10 -6
- package/es/Map/SinglePoint/index.less +3 -3
- package/es/Map/useMarker/index.js +1 -1
- package/es/Modal/index.js +17 -17
- package/es/Modal/index.less +10 -11
- package/es/Picture/component/DefaultRects/index.js +3 -1
- package/es/Picture/component/DefaultRects/index.less +51 -28
- package/es/Picture/component/DrawRect/index.js +3 -1
- package/es/Picture/component/DrawRect/index.less +2 -2
- package/es/Picture/component/RectMenu/index.less +11 -6
- package/es/Picture/component/Tools/index.js +1 -1
- package/es/Picture/component/Tools/index.less +12 -6
- package/es/Picture/index.js +50 -26
- package/es/Picture/index.less +3 -2
- package/es/Picture/useDraw.js +1 -1
- package/es/Picture/utils.js +35 -34
- package/es/Player/api/index.js +67 -35
- package/es/Player/contraller_bar/contraller_event.js +4 -4
- package/es/Player/contraller_bar/left_bar.js +12 -10
- package/es/Player/empty.js +6 -0
- package/es/Player/event/errorEvent.js +7 -8
- package/es/Player/event/index.js +1 -1
- package/es/Player/fps_play.js +10 -8
- package/es/Player/frontend_player.js +13 -10
- package/es/Player/frontend_timeline.js +41 -41
- package/es/Player/live_heart.js +15 -5
- package/es/Player/message.js +5 -5
- package/es/Player/segment_player.js +31 -24
- package/es/Player/segment_timeline.js +71 -71
- package/es/Player/single_player.js +17 -21
- package/es/Player/style/bar.less +13 -9
- package/es/Player/style/index.less +8 -4
- package/es/Player/style/message.less +22 -16
- package/es/Player/style/slider.less +40 -37
- package/es/Player/style/timeline.less +43 -33
- package/es/Player/style/volume.less +7 -4
- package/es/Player/timeline.js +16 -8
- package/es/Player/util.js +82 -58
- package/es/PlayerExt/index.less +2 -2
- package/es/Progress/index.d.ts +8 -11
- package/es/Progress/index.less +5 -4
- package/es/ROI/index.less +8 -4
- package/es/ScreenPlayer/index.less +49 -26
- package/es/TableLayout/index.less +1 -1
- package/es/ThemeAntd/demo.less +4 -3
- package/es/ThemeAntd/index.less +12 -12
- package/es/ThemeAntd/style/button.less +4 -4
- package/es/ThemeAntd/style/checkbox.less +3 -3
- package/es/ThemeAntd/style/input.less +7 -7
- package/es/ThemeAntd/style/pagination.less +4 -4
- package/es/ThemeAntd/style/picker.less +5 -5
- package/es/ThemeAntd/style/radio.less +2 -2
- package/es/ThemeAntd/style/scrollbar.less +5 -3
- package/es/ThemeAntd/style/select.less +8 -8
- package/es/ThemeAntd/style/table.less +4 -4
- package/es/Tree/index.less +13 -12
- package/es/VList/index.d.ts +12 -18
- package/es/useSimpleState/index.js +1 -1
- package/package.json +12 -6
- package/tsconfig.json +12 -0
- package/es/Api/index.d.ts +0 -12
- package/es/AppContext/Sync.d.ts +0 -8
- package/es/AppContext/index.d.ts +0 -10
- package/es/AppContext/static.d.ts +0 -8
- package/es/Auth/index.d.ts +0 -8
- package/es/AutoExit/index.d.ts +0 -6
- package/es/Box/BetweenBox/index.d.ts +0 -12
- package/es/Box/InfoBox/index.d.ts +0 -12
- package/es/Box/TwoColumnBox/index.d.ts +0 -10
- package/es/Box/deps/content-grid.d.ts +0 -9
- package/es/Box/deps/grid-factory.d.ts +0 -10
- package/es/Box/deps/simple-grid.d.ts +0 -9
- package/es/Box/index.d.ts +0 -14
- package/es/CheckGroupFixed/demo.d.ts +0 -3
- package/es/CheckGroupFixed/index.d.ts +0 -18
- package/es/Config/index.d.ts +0 -4
- package/es/Config/utils.d.ts +0 -4
- package/es/ConfigContext/index.d.ts +0 -22
- package/es/CustomRenderSelect/index.d.ts +0 -12
- package/es/DisableMark/index.d.ts +0 -9
- package/es/DomMove/demo.d.ts +0 -2
- package/es/DomMove/index.d.ts +0 -16
- package/es/DomMove/utils.d.ts +0 -8
- package/es/Drag/DragAndDropItem.d.ts +0 -4
- package/es/Drag/DropItem.d.ts +0 -4
- package/es/Drag/index.less +0 -0
- package/es/Drawer/Footer.d.ts +0 -5
- package/es/Drawer/demo.d.ts +0 -3
- package/es/Drawer/index.d.ts +0 -38
- package/es/DynamicGridList/Demo.d.ts +0 -3
- package/es/DynamicGridList/index.d.ts +0 -27
- package/es/DynamicList/demo.d.ts +0 -2
- package/es/DynamicList/index.d.ts +0 -31
- package/es/DynamicList/utils.d.ts +0 -4
- package/es/ErrorFallback/index.d.ts +0 -9
- package/es/FrontendPlayer/index.d.ts +0 -2
- package/es/FullScreen/index.d.ts +0 -22
- package/es/GridList/Demo.d.ts +0 -3
- package/es/GridList/data.d.ts +0 -16
- package/es/GridList/hook.d.ts +0 -13
- package/es/GridList/index.d.ts +0 -15
- package/es/GridList/utils.d.ts +0 -9
- package/es/HightLevel/index.d.ts +0 -9
- package/es/IconFont/index.d.ts +0 -12
- package/es/ImageView/index.d.ts +0 -17
- package/es/Input/demo.d.ts +0 -3
- package/es/Input/index.d.ts +0 -19
- package/es/InstanceHistory/index.d.ts +0 -3
- package/es/LabelValue/index.d.ts +0 -23
- package/es/List/demo.d.ts +0 -3
- package/es/List/index.d.ts +0 -41
- package/es/ListWithSizeAnimate/demo.d.ts +0 -2
- package/es/ListWithSizeAnimate/index.d.ts +0 -15
- package/es/LoaderApp/index.d.ts +0 -31
- package/es/LoaderApp/loader.d.ts +0 -19
- package/es/LoaderApp/sandbox.back.d.ts +0 -18
- package/es/LoaderApp/sandbox.d.ts +0 -12
- package/es/LoaderApp/utils.d.ts +0 -19
- package/es/LoaderScript/index.d.ts +0 -26
- package/es/LoaderScript/utils.d.ts +0 -14
- package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
- package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
- package/es/Map/BasicMap/index.d.ts +0 -9
- package/es/Map/ClusterLayer/hook.d.ts +0 -5
- package/es/Map/ClusterLayer/index.d.ts +0 -6
- package/es/Map/Config/index.d.ts +0 -7
- package/es/Map/Config/utils.d.ts +0 -2
- package/es/Map/Context/index.d.ts +0 -11
- package/es/Map/FindPio/index.d.ts +0 -4
- package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
- package/es/Map/InfoWindow/demo.d.ts +0 -3
- package/es/Map/InfoWindow/index.d.ts +0 -10
- package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
- package/es/Map/LevelCenter/demo.d.ts +0 -3
- package/es/Map/LevelCenter/index.d.ts +0 -16
- package/es/Map/LevelCenter/index.less +0 -2
- package/es/Map/LoaderMap/index.d.ts +0 -12
- package/es/Map/MapDrawSelect/demo.d.ts +0 -3
- package/es/Map/MapDrawSelect/index.d.ts +0 -16
- package/es/Map/MapDrawSelect/index.less +0 -2
- package/es/Map/MouseTool/index.d.ts +0 -10
- package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
- package/es/Map/ResetTools/index.d.ts +0 -10
- package/es/Map/SinglePoint/index.d.ts +0 -27
- package/es/Map/hook/useMapEvent.d.ts +0 -2
- package/es/Map/hook/useMapType.d.ts +0 -4
- package/es/Map/icon.d.ts +0 -2
- package/es/Map/index.d.ts +0 -24
- package/es/Map/useMarker/index.d.ts +0 -11
- package/es/Map/useMarker/index.less +0 -0
- package/es/Map/withMap/index.d.ts +0 -3
- package/es/Modal/demo.d.ts +0 -3
- package/es/Modal/index.d.ts +0 -44
- package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
- package/es/Picture/component/DefaultRects/index.d.ts +0 -13
- package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
- package/es/Picture/component/DrawRect/index.d.ts +0 -13
- package/es/Picture/component/RectMenu/index.d.ts +0 -12
- package/es/Picture/component/RectMenu/utils.d.ts +0 -12
- package/es/Picture/component/Tools/index.d.ts +0 -13
- package/es/Picture/component/WheelScale/index.d.ts +0 -7
- package/es/Picture/demo.d.ts +0 -2
- package/es/Picture/dragBound.d.ts +0 -5
- package/es/Picture/index.d.ts +0 -19
- package/es/Picture/loadCaptureRectImage.d.ts +0 -8
- package/es/Picture/useDraw.d.ts +0 -1
- package/es/Picture/utils.d.ts +0 -21
- package/es/Player/api/index.d.ts +0 -68
- package/es/Player/context.d.ts +0 -21
- package/es/Player/contraller_bar/bar.d.ts +0 -8
- package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
- package/es/Player/contraller_bar/index.d.ts +0 -14
- package/es/Player/contraller_bar/left_bar.d.ts +0 -10
- package/es/Player/contraller_bar/right_bar.d.ts +0 -8
- package/es/Player/contraller_bar/time.d.ts +0 -3
- package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
- package/es/Player/contraller_bar/volume.d.ts +0 -9
- package/es/Player/demo.d.ts +0 -3
- package/es/Player/event/errorEvent.d.ts +0 -16
- package/es/Player/event/eventName.d.ts +0 -18
- package/es/Player/event/index.d.ts +0 -24
- package/es/Player/fps_play.d.ts +0 -11
- package/es/Player/frontend_player.d.ts +0 -8
- package/es/Player/frontend_timeline.d.ts +0 -10
- package/es/Player/iconfont.d.ts +0 -5
- package/es/Player/index.d.ts +0 -2
- package/es/Player/live_heart.d.ts +0 -8
- package/es/Player/message.d.ts +0 -5
- package/es/Player/segment_player.d.ts +0 -9
- package/es/Player/segment_timeline.d.ts +0 -12
- package/es/Player/single_player.d.ts +0 -5
- package/es/Player/timeline.d.ts +0 -5
- package/es/Player/util.d.ts +0 -28
- package/es/PlayerExt/demo.d.ts +0 -3
- package/es/PlayerExt/index.d.ts +0 -48
- package/es/ROI/demo.d.ts +0 -3
- package/es/ROI/index.d.ts +0 -39
- package/es/ROI/utils.d.ts +0 -1
- package/es/ScreenPlayer/Live.d.ts +0 -10
- package/es/ScreenPlayer/LiveTools.d.ts +0 -29
- package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
- package/es/ScreenPlayer/RatePick.d.ts +0 -7
- package/es/ScreenPlayer/Record.d.ts +0 -10
- package/es/ScreenPlayer/RecordTools.d.ts +0 -37
- package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
- package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
- package/es/ScreenPlayer/TimeMode.d.ts +0 -7
- package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
- package/es/ScreenPlayer/demo.d.ts +0 -2
- package/es/ScreenPlayer/demo2.d.ts +0 -2
- package/es/ScreenPlayer/index.d.ts +0 -6
- package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
- package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
- package/es/ScreenPlayer/utils.d.ts +0 -19
- package/es/SegmentPlayer/index.d.ts +0 -2
- package/es/Service/fetch-adapter.d.ts +0 -12
- package/es/Service/http.d.ts +0 -6
- package/es/Service/index.d.ts +0 -3
- package/es/Service/middleware.d.ts +0 -5
- package/es/TableLayout/index.d.ts +0 -13
- package/es/ThemeAntd/demo.d.ts +0 -4
- package/es/ThemeAntd/index.d.ts +0 -7
- package/es/Timeout/index.d.ts +0 -32
- package/es/Tree/demo.d.ts +0 -3
- package/es/Tree/index.d.ts +0 -24
- package/es/VList/utils.d.ts +0 -14
- package/es/index.d.ts +0 -52
- package/es/useDrawROI/index.d.ts +0 -16
- package/es/useEventEmitterHandle/index.d.ts +0 -2
- package/es/useFullscreen/demo.d.ts +0 -2
- package/es/useFullscreen/index.d.ts +0 -12
- package/es/useHistory/index.d.ts +0 -3
- package/es/useInfiniteScroll/index.d.ts +0 -16
- package/es/useRafInterval/index.d.ts +0 -5
- package/es/useSimpleState/index.d.ts +0 -3
- package/es/useVirtualList/index.d.ts +0 -13
- package/es/utils.d.ts +0 -25
package/es/ImageView/index.less
CHANGED
package/es/Input/index.less
CHANGED
package/es/LabelValue/index.less
CHANGED
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
.lm-c-label-value-layout {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
font-size: var(--fs-small);
|
|
4
|
+
|
|
4
5
|
span {
|
|
5
6
|
&:first-child {
|
|
6
|
-
white-space: nowrap;
|
|
7
7
|
padding-right: 4px;
|
|
8
8
|
color: var(--color);
|
|
9
|
+
white-space: nowrap;
|
|
9
10
|
}
|
|
11
|
+
|
|
10
12
|
&:last-child {
|
|
11
13
|
flex: 1;
|
|
12
14
|
color: var(--color-dark);
|
|
15
|
+
|
|
13
16
|
&.no-wrap {
|
|
14
|
-
white-space: nowrap;
|
|
15
17
|
overflow: hidden;
|
|
16
18
|
text-overflow: ellipsis;
|
|
19
|
+
white-space: nowrap;
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
}
|
package/es/List/index.less
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _useEventListener from "ahooks/es/useEventListener";
|
|
2
|
-
var _excluded = ["
|
|
2
|
+
var _excluded = ["header", "children"];
|
|
3
3
|
|
|
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
|
|
|
@@ -30,10 +30,9 @@ import "./index.less";
|
|
|
30
30
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
31
31
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
32
32
|
var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAnimate(_ref, forwardRef) {
|
|
33
|
-
var _ref$
|
|
33
|
+
var _ref$current2;
|
|
34
34
|
|
|
35
|
-
var
|
|
36
|
-
header = _ref.header,
|
|
35
|
+
var header = _ref.header,
|
|
37
36
|
children = _ref.children,
|
|
38
37
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
39
38
|
|
|
@@ -46,32 +45,25 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
46
45
|
|
|
47
46
|
var ref = useRef(null);
|
|
48
47
|
var headerHeight = useMemo(function () {
|
|
49
|
-
return state.open ?
|
|
48
|
+
return state.open ? 1000 : 0;
|
|
50
49
|
}, [state.open]);
|
|
51
|
-
var contentHeight = useMemo(function () {
|
|
52
|
-
return "calc(100% - ".concat(headerHeight, "px)");
|
|
53
|
-
}, [headerHeight]);
|
|
54
50
|
|
|
55
|
-
_useEventListener('
|
|
56
|
-
|
|
57
|
-
updateState({
|
|
58
|
-
open: false
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
62
|
-
target: ref
|
|
63
|
-
});
|
|
51
|
+
_useEventListener('scroll', function () {
|
|
52
|
+
var _ref$current;
|
|
64
53
|
|
|
65
|
-
|
|
66
|
-
var _event$currentTarget;
|
|
54
|
+
var ele = (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelector('.cloudapp-dynamic-grid-list');
|
|
67
55
|
|
|
68
|
-
if ((
|
|
56
|
+
if ((ele === null || ele === void 0 ? void 0 : ele.scrollTop) === 0) {
|
|
69
57
|
updateState({
|
|
70
58
|
open: true
|
|
71
59
|
});
|
|
60
|
+
} else {
|
|
61
|
+
state.open && updateState({
|
|
62
|
+
open: false
|
|
63
|
+
});
|
|
72
64
|
}
|
|
73
65
|
}, {
|
|
74
|
-
target: (_ref$
|
|
66
|
+
target: (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.querySelector('.cloudapp-dynamic-grid-list')
|
|
75
67
|
});
|
|
76
68
|
|
|
77
69
|
useImperativeHandle(forwardRef, function () {
|
|
@@ -87,21 +79,22 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
87
79
|
});
|
|
88
80
|
},
|
|
89
81
|
backTop: function backTop() {
|
|
90
|
-
var _ref$
|
|
82
|
+
var _ref$current3, _ref$current3$querySe;
|
|
91
83
|
|
|
92
|
-
return (_ref$
|
|
84
|
+
return (_ref$current3 = ref.current) === null || _ref$current3 === void 0 ? void 0 : (_ref$current3$querySe = _ref$current3.querySelector('.cloudapp-dynamic-grid-list')) === null || _ref$current3$querySe === void 0 ? void 0 : _ref$current3$querySe.scrollTo({
|
|
93
85
|
top: 0
|
|
94
86
|
});
|
|
95
87
|
}
|
|
96
88
|
};
|
|
97
|
-
},
|
|
89
|
+
}, // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
90
|
+
[]);
|
|
98
91
|
return /*#__PURE__*/_jsxs("div", {
|
|
99
92
|
className: "list-with-size-animate-layout",
|
|
100
93
|
ref: ref,
|
|
101
94
|
children: [/*#__PURE__*/_jsx("div", {
|
|
102
95
|
className: "list-animate-header",
|
|
103
96
|
style: {
|
|
104
|
-
|
|
97
|
+
maxHeight: headerHeight,
|
|
105
98
|
overflow: !state.open ? 'hidden' : undefined
|
|
106
99
|
},
|
|
107
100
|
children: /*#__PURE__*/_jsx("div", {
|
|
@@ -110,9 +103,6 @@ var ListWithSizeAnimate = /*#__PURE__*/React.forwardRef(function ListWithSizeAni
|
|
|
110
103
|
})
|
|
111
104
|
}), /*#__PURE__*/_jsxs("div", {
|
|
112
105
|
className: "list-animate-content",
|
|
113
|
-
style: {
|
|
114
|
-
height: contentHeight
|
|
115
|
-
},
|
|
116
106
|
children: [/*#__PURE__*/_jsx("div", {
|
|
117
107
|
className: "list-animate-content-ext",
|
|
118
108
|
children: children
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
.list-with-size-animate-layout {
|
|
2
|
-
|
|
2
|
+
display: flex;
|
|
3
3
|
width: 100%;
|
|
4
|
+
height: 100%;
|
|
4
5
|
overflow: hidden;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
|
|
5
8
|
.list-animate-header {
|
|
6
|
-
|
|
7
|
-
transition: height 0.3s;
|
|
9
|
+
transition: max-height .2s;
|
|
8
10
|
}
|
|
11
|
+
|
|
9
12
|
.list-animate-content {
|
|
10
|
-
|
|
11
|
-
overflow: hidden;
|
|
12
|
-
transition: height 0.3s;
|
|
13
|
+
flex: 1;
|
|
13
14
|
display: flex;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
transition: height .2s;
|
|
14
17
|
flex-direction: column;
|
|
18
|
+
|
|
15
19
|
.cloudapp-dynamic-grid-list {
|
|
16
20
|
flex: 1;
|
|
17
21
|
}
|
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
.c-map-container {
|
|
2
|
+
position: relative;
|
|
2
3
|
width: 100%;
|
|
3
4
|
height: 100%;
|
|
4
|
-
|
|
5
|
+
|
|
5
6
|
.amap-container {
|
|
6
7
|
width: 100%;
|
|
7
8
|
height: 100%;
|
|
9
|
+
|
|
8
10
|
.amap-logo {
|
|
9
11
|
display: none !important;
|
|
10
12
|
}
|
|
13
|
+
|
|
11
14
|
.amap-copyright {
|
|
12
15
|
display: none !important;
|
|
13
16
|
}
|
|
14
17
|
}
|
|
18
|
+
|
|
15
19
|
.leaflet-container {
|
|
20
|
+
z-index: 1;
|
|
16
21
|
width: 100%;
|
|
17
22
|
height: 100%;
|
|
18
|
-
z-index: 1;
|
|
19
23
|
}
|
|
24
|
+
|
|
20
25
|
.leaflet-div-icon {
|
|
21
|
-
border: none;
|
|
22
26
|
background-color: transparent;
|
|
27
|
+
border: none;
|
|
23
28
|
}
|
|
24
29
|
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
.c-cluster-marker-layout {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
2
4
|
width: 35px;
|
|
3
5
|
height: 35px;
|
|
4
|
-
display: flex;
|
|
5
6
|
justify-content: center;
|
|
6
7
|
align-items: center;
|
|
7
|
-
|
|
8
|
+
|
|
8
9
|
& > div {
|
|
10
|
+
display: flex;
|
|
9
11
|
width: 28px;
|
|
10
12
|
height: 28px;
|
|
13
|
+
line-height: 28px;
|
|
14
|
+
text-align: center;
|
|
11
15
|
border-radius: 50%;
|
|
12
|
-
display: flex;
|
|
13
16
|
justify-content: center;
|
|
14
17
|
align-items: center;
|
|
15
|
-
box-shadow: 0 0 4px 0
|
|
16
|
-
|
|
17
|
-
line-height: 28px;
|
|
18
|
+
box-shadow: 0 0 4px 0 rgb(0 0 0 / 30%);
|
|
19
|
+
|
|
18
20
|
.anticon {
|
|
19
21
|
font-size: 17px;
|
|
20
22
|
color: #fff;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _useMount from "ahooks/es/useMount";
|
|
2
2
|
import React, { useCallback, useContext, useMemo } from 'react';
|
|
3
3
|
import ClusterLayer from "../ClusterLayer";
|
|
4
|
-
import ResetTools from "../ResetTools";
|
|
5
|
-
import DragMarker from "./DragMarker";
|
|
6
|
-
import withMap from "../withMap";
|
|
7
4
|
import { mapContext } from "../Context";
|
|
8
5
|
import useMapEvent from "../hook/useMapEvent";
|
|
9
|
-
import "
|
|
6
|
+
import ResetTools from "../ResetTools";
|
|
7
|
+
import withMap from "../withMap";
|
|
8
|
+
import DragMarker from "./DragMarker";
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
10
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -2,11 +2,10 @@ import _useUpdateEffect from "ahooks/es/useUpdateEffect";
|
|
|
2
2
|
import _useMount from "ahooks/es/useMount";
|
|
3
3
|
import React, { useCallback, useContext, useEffect, useMemo } from 'react';
|
|
4
4
|
import ClusterLayer from "../ClusterLayer";
|
|
5
|
-
import ResetTools from "../ResetTools";
|
|
6
|
-
import withMap from "../withMap";
|
|
7
5
|
import { mapContext } from "../Context";
|
|
8
6
|
import MouseTool from "../MouseTool";
|
|
9
|
-
import "
|
|
7
|
+
import ResetTools from "../ResetTools";
|
|
8
|
+
import withMap from "../withMap";
|
|
10
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
10
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -4,23 +4,27 @@
|
|
|
4
4
|
bottom: 10px;
|
|
5
5
|
z-index: 3;
|
|
6
6
|
padding: 5px 0;
|
|
7
|
-
background: #
|
|
7
|
+
background: #fff;
|
|
8
|
+
|
|
8
9
|
.map-reset,
|
|
9
10
|
.map-zoom {
|
|
10
|
-
background: #
|
|
11
|
+
background: #fff;
|
|
11
12
|
}
|
|
13
|
+
|
|
12
14
|
.map-zoom {
|
|
13
15
|
margin-bottom: 0;
|
|
14
16
|
}
|
|
17
|
+
|
|
15
18
|
.map-tool-icon {
|
|
19
|
+
display: flex;
|
|
16
20
|
width: 30px;
|
|
17
21
|
height: 25px;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
justify-content: center;
|
|
21
22
|
font-size: 18px;
|
|
22
|
-
color:
|
|
23
|
+
color: var(--icon);
|
|
23
24
|
cursor: pointer;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
|
|
24
28
|
&:hover {
|
|
25
29
|
color: var(--primary);
|
|
26
30
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
.single-point-map-container {
|
|
2
2
|
.marker-center-layout {
|
|
3
|
-
text-align: center;
|
|
4
3
|
width: 32px;
|
|
5
4
|
height: 42px;
|
|
6
5
|
margin-top: -10px;
|
|
6
|
+
text-align: center;
|
|
7
7
|
|
|
8
8
|
> div {
|
|
9
9
|
width: 100%;
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.anticon {
|
|
35
|
-
font-size: 18px;
|
|
36
|
-
color: white;
|
|
37
35
|
position: relative;
|
|
38
36
|
top: 1px;
|
|
37
|
+
font-size: 18px;
|
|
38
|
+
color: white;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -16,10 +16,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
16
16
|
|
|
17
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
18
|
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
|
|
19
20
|
/// <reference path="../AMap.d.ts" />
|
|
20
21
|
import { useEffect, useRef, useState } from 'react';
|
|
21
22
|
import useMapType from "../hook/useMapType";
|
|
22
|
-
import "./index.less";
|
|
23
23
|
|
|
24
24
|
function useMarker(_ref) {
|
|
25
25
|
var map = _ref.map,
|
package/es/Modal/index.js
CHANGED
|
@@ -82,6 +82,23 @@ function useModal() {
|
|
|
82
82
|
var root = useMemo(function () {
|
|
83
83
|
return ReactDOMClient.createRoot(div);
|
|
84
84
|
}, [div]);
|
|
85
|
+
|
|
86
|
+
var open = function open(options) {
|
|
87
|
+
setState(function (old) {
|
|
88
|
+
return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
|
|
89
|
+
visible: true
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
var close = function close() {
|
|
95
|
+
setState(function (old) {
|
|
96
|
+
return _objectSpread(_objectSpread({}, old), {}, {
|
|
97
|
+
visible: false
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
|
|
85
102
|
useEffect(function () {
|
|
86
103
|
container.appendChild(div);
|
|
87
104
|
return function () {
|
|
@@ -112,23 +129,6 @@ function useModal() {
|
|
|
112
129
|
})
|
|
113
130
|
}));
|
|
114
131
|
}, [state.content, state.visible, state.title, state.onOk, state.width, state.className, root, prefixCls, container]);
|
|
115
|
-
|
|
116
|
-
var open = function open(options) {
|
|
117
|
-
setState(function (old) {
|
|
118
|
-
return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
|
|
119
|
-
visible: true
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
var close = function close() {
|
|
125
|
-
setState(function (old) {
|
|
126
|
-
return _objectSpread(_objectSpread({}, old), {}, {
|
|
127
|
-
visible: false
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
|
|
132
132
|
return {
|
|
133
133
|
open: open,
|
|
134
134
|
close: close
|
package/es/Modal/index.less
CHANGED
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
padding-bottom: 0;
|
|
3
3
|
color: inherit;
|
|
4
4
|
.@{ant-prefix}-modal-content {
|
|
5
|
-
height: 100%;
|
|
6
5
|
display: flex;
|
|
7
|
-
|
|
8
|
-
border-radius: var(--redius1);
|
|
6
|
+
height: 100%;
|
|
9
7
|
overflow: hidden;
|
|
10
8
|
background-color: transparent;
|
|
9
|
+
border-radius: var(--redius1);
|
|
10
|
+
flex-direction: column;
|
|
11
11
|
}
|
|
12
12
|
.@{ant-prefix}-modal-close {
|
|
13
|
+
color: inherit;
|
|
13
14
|
.@{ant-prefix}-modal-close-x {
|
|
14
15
|
width: 48px;
|
|
15
16
|
height: 47px;
|
|
@@ -19,27 +20,25 @@
|
|
|
19
20
|
.@{ant-prefix}-modal-header {
|
|
20
21
|
padding: 12px 24px;
|
|
21
22
|
padding-right: 56px;
|
|
23
|
+
color: inherit;
|
|
22
24
|
background: var(--modal-title-bg);
|
|
23
|
-
border-bottom-color: var(--modal-divider-color);
|
|
24
25
|
border-radius: 0;
|
|
25
|
-
color:
|
|
26
|
+
border-bottom-color: var(--modal-divider-color);
|
|
26
27
|
.@{ant-prefix}-modal-title {
|
|
27
|
-
color: inherit;
|
|
28
28
|
font-size: var(--fs-large);
|
|
29
|
+
color: inherit;
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
|
-
|
|
32
|
-
color: inherit;
|
|
33
|
-
}
|
|
32
|
+
|
|
34
33
|
.@{ant-prefix}-modal-body {
|
|
34
|
+
overflow: hidden;
|
|
35
35
|
background: var(--modal-content-bg);
|
|
36
36
|
flex: 1;
|
|
37
|
-
overflow: hidden;
|
|
38
37
|
}
|
|
39
38
|
.@{ant-prefix}-modal-footer {
|
|
40
39
|
padding: 12px 24px;
|
|
41
|
-
border-radius: 0;
|
|
42
40
|
background: var(--modal-footer-bg);
|
|
41
|
+
border-radius: 0;
|
|
43
42
|
border-top-color: var(--modal-divider-color);
|
|
44
43
|
}
|
|
45
44
|
}
|
|
@@ -21,9 +21,11 @@ function DefaultRects(_ref) {
|
|
|
21
21
|
return computedZIndex(rects);
|
|
22
22
|
}, [rects]);
|
|
23
23
|
var rectClick = useCallback(function (e, item) {
|
|
24
|
+
var _getRectImage;
|
|
25
|
+
|
|
24
26
|
e.stopPropagation();
|
|
25
27
|
onClickRect === null || onClickRect === void 0 ? void 0 : onClickRect(_objectSpread(_objectSpread({}, item), {}, {
|
|
26
|
-
base64: getRectImage(item.rect)
|
|
28
|
+
base64: (_getRectImage = getRectImage(item.rect)) !== null && _getRectImage !== void 0 ? _getRectImage : ''
|
|
27
29
|
}));
|
|
28
30
|
}, [getRectImage, onClickRect]);
|
|
29
31
|
return /*#__PURE__*/_jsx(_Fragment, {
|