@cloud-app-dev/vidc 3.2.17 → 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.
Files changed (269) hide show
  1. package/.prettierrc.js +1 -1
  2. package/.stylelintrc.js +113 -0
  3. package/es/AppContext/index.js +3 -4
  4. package/es/Box/InfoBox/index.less +8 -6
  5. package/es/Box/TwoColumnBox/index.less +32 -22
  6. package/es/Box/index.less +1 -1
  7. package/es/CheckGroupFixed/index.less +17 -14
  8. package/es/CustomRenderSelect/index.less +7 -7
  9. package/es/DisableMark/index.less +3 -3
  10. package/es/DomMove/index.js +5 -5
  11. package/es/Drag/DragAndDropItem.js +1 -2
  12. package/es/Drag/DropItem.js +2 -2
  13. package/es/Drag/index.d.ts +9 -7
  14. package/es/Drawer/index.js +19 -20
  15. package/es/Drawer/index.less +8 -8
  16. package/es/Drawer/interface.d.ts +4 -3
  17. package/es/DynamicList/index.less +2 -0
  18. package/es/FullScreen/index.less +6 -4
  19. package/es/GridList/index.js +1 -1
  20. package/es/GridList/index.less +1 -1
  21. package/es/ImageView/index.less +2 -1
  22. package/es/Input/index.less +1 -1
  23. package/es/LabelValue/index.less +5 -2
  24. package/es/List/index.less +2 -2
  25. package/es/ListWithSizeAnimate/demo.js +0 -1
  26. package/es/ListWithSizeAnimate/index.js +18 -28
  27. package/es/ListWithSizeAnimate/index.less +10 -6
  28. package/es/Map/BasicMap/index.less +8 -3
  29. package/es/Map/ClusterLayer/index.less +8 -6
  30. package/es/Map/FindPio/index.less +2 -2
  31. package/es/Map/LevelCenter/index.js +3 -4
  32. package/es/Map/MapDrawSelect/index.js +2 -3
  33. package/es/Map/ResetTools/index.less +10 -6
  34. package/es/Map/SinglePoint/index.less +3 -3
  35. package/es/Map/useMarker/index.js +1 -1
  36. package/es/Modal/index.js +17 -17
  37. package/es/Modal/index.less +10 -11
  38. package/es/Picture/component/DefaultRects/index.js +3 -1
  39. package/es/Picture/component/DefaultRects/index.less +51 -28
  40. package/es/Picture/component/DrawRect/index.js +3 -1
  41. package/es/Picture/component/DrawRect/index.less +2 -2
  42. package/es/Picture/component/RectMenu/index.less +11 -6
  43. package/es/Picture/component/Tools/index.js +1 -1
  44. package/es/Picture/component/Tools/index.less +12 -6
  45. package/es/Picture/index.js +50 -26
  46. package/es/Picture/index.less +3 -2
  47. package/es/Picture/useDraw.js +1 -1
  48. package/es/Picture/utils.js +35 -34
  49. package/es/Player/api/index.js +67 -35
  50. package/es/Player/contraller_bar/contraller_event.js +4 -4
  51. package/es/Player/contraller_bar/left_bar.js +12 -10
  52. package/es/Player/empty.js +6 -0
  53. package/es/Player/event/errorEvent.js +7 -8
  54. package/es/Player/event/index.js +1 -1
  55. package/es/Player/fps_play.js +10 -8
  56. package/es/Player/frontend_player.js +13 -10
  57. package/es/Player/frontend_timeline.js +41 -41
  58. package/es/Player/live_heart.js +15 -5
  59. package/es/Player/message.js +5 -5
  60. package/es/Player/segment_player.js +31 -24
  61. package/es/Player/segment_timeline.js +71 -71
  62. package/es/Player/single_player.js +17 -21
  63. package/es/Player/style/bar.less +13 -9
  64. package/es/Player/style/index.less +8 -4
  65. package/es/Player/style/message.less +22 -16
  66. package/es/Player/style/slider.less +40 -37
  67. package/es/Player/style/timeline.less +43 -33
  68. package/es/Player/style/volume.less +7 -4
  69. package/es/Player/timeline.js +16 -8
  70. package/es/Player/util.js +82 -58
  71. package/es/PlayerExt/index.less +2 -2
  72. package/es/Progress/index.d.ts +8 -11
  73. package/es/Progress/index.less +5 -4
  74. package/es/ROI/index.less +8 -4
  75. package/es/ScreenPlayer/index.less +49 -26
  76. package/es/TableLayout/index.less +1 -1
  77. package/es/ThemeAntd/demo.less +4 -3
  78. package/es/ThemeAntd/index.less +12 -12
  79. package/es/ThemeAntd/style/button.less +4 -4
  80. package/es/ThemeAntd/style/checkbox.less +3 -3
  81. package/es/ThemeAntd/style/input.less +7 -7
  82. package/es/ThemeAntd/style/pagination.less +4 -4
  83. package/es/ThemeAntd/style/picker.less +5 -5
  84. package/es/ThemeAntd/style/radio.less +2 -2
  85. package/es/ThemeAntd/style/scrollbar.less +5 -3
  86. package/es/ThemeAntd/style/select.less +8 -8
  87. package/es/ThemeAntd/style/table.less +4 -4
  88. package/es/Tree/index.less +13 -12
  89. package/es/VList/index.d.ts +12 -18
  90. package/es/useSimpleState/index.js +1 -1
  91. package/package.json +12 -6
  92. package/tsconfig.json +12 -0
  93. package/es/Api/index.d.ts +0 -12
  94. package/es/AppContext/Sync.d.ts +0 -8
  95. package/es/AppContext/index.d.ts +0 -10
  96. package/es/AppContext/static.d.ts +0 -8
  97. package/es/Auth/index.d.ts +0 -8
  98. package/es/AutoExit/index.d.ts +0 -6
  99. package/es/Box/BetweenBox/index.d.ts +0 -12
  100. package/es/Box/InfoBox/index.d.ts +0 -12
  101. package/es/Box/TwoColumnBox/index.d.ts +0 -10
  102. package/es/Box/deps/content-grid.d.ts +0 -9
  103. package/es/Box/deps/grid-factory.d.ts +0 -10
  104. package/es/Box/deps/simple-grid.d.ts +0 -9
  105. package/es/Box/index.d.ts +0 -14
  106. package/es/CheckGroupFixed/demo.d.ts +0 -3
  107. package/es/CheckGroupFixed/index.d.ts +0 -18
  108. package/es/Config/index.d.ts +0 -4
  109. package/es/Config/utils.d.ts +0 -4
  110. package/es/ConfigContext/index.d.ts +0 -22
  111. package/es/CustomRenderSelect/index.d.ts +0 -12
  112. package/es/DisableMark/index.d.ts +0 -9
  113. package/es/DomMove/demo.d.ts +0 -2
  114. package/es/DomMove/index.d.ts +0 -16
  115. package/es/DomMove/utils.d.ts +0 -8
  116. package/es/Drag/DragAndDropItem.d.ts +0 -4
  117. package/es/Drag/DropItem.d.ts +0 -4
  118. package/es/Drag/index.less +0 -0
  119. package/es/Drawer/Footer.d.ts +0 -5
  120. package/es/Drawer/demo.d.ts +0 -3
  121. package/es/Drawer/index.d.ts +0 -38
  122. package/es/DynamicGridList/Demo.d.ts +0 -3
  123. package/es/DynamicGridList/index.d.ts +0 -27
  124. package/es/DynamicList/demo.d.ts +0 -2
  125. package/es/DynamicList/index.d.ts +0 -31
  126. package/es/DynamicList/utils.d.ts +0 -4
  127. package/es/ErrorFallback/index.d.ts +0 -9
  128. package/es/FrontendPlayer/index.d.ts +0 -2
  129. package/es/FullScreen/index.d.ts +0 -22
  130. package/es/GridList/Demo.d.ts +0 -3
  131. package/es/GridList/data.d.ts +0 -16
  132. package/es/GridList/hook.d.ts +0 -13
  133. package/es/GridList/index.d.ts +0 -15
  134. package/es/GridList/utils.d.ts +0 -9
  135. package/es/HightLevel/index.d.ts +0 -9
  136. package/es/IconFont/index.d.ts +0 -12
  137. package/es/ImageView/index.d.ts +0 -17
  138. package/es/Input/demo.d.ts +0 -3
  139. package/es/Input/index.d.ts +0 -19
  140. package/es/InstanceHistory/index.d.ts +0 -3
  141. package/es/LabelValue/index.d.ts +0 -23
  142. package/es/List/demo.d.ts +0 -3
  143. package/es/List/index.d.ts +0 -41
  144. package/es/ListWithSizeAnimate/demo.d.ts +0 -2
  145. package/es/ListWithSizeAnimate/index.d.ts +0 -15
  146. package/es/LoaderApp/index.d.ts +0 -31
  147. package/es/LoaderApp/loader.d.ts +0 -19
  148. package/es/LoaderApp/sandbox.back.d.ts +0 -18
  149. package/es/LoaderApp/sandbox.d.ts +0 -12
  150. package/es/LoaderApp/utils.d.ts +0 -19
  151. package/es/LoaderScript/index.d.ts +0 -26
  152. package/es/LoaderScript/utils.d.ts +0 -14
  153. package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
  154. package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
  155. package/es/Map/BasicMap/index.d.ts +0 -9
  156. package/es/Map/ClusterLayer/hook.d.ts +0 -5
  157. package/es/Map/ClusterLayer/index.d.ts +0 -6
  158. package/es/Map/Config/index.d.ts +0 -7
  159. package/es/Map/Config/utils.d.ts +0 -2
  160. package/es/Map/Context/index.d.ts +0 -11
  161. package/es/Map/FindPio/index.d.ts +0 -4
  162. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
  163. package/es/Map/InfoWindow/demo.d.ts +0 -3
  164. package/es/Map/InfoWindow/index.d.ts +0 -10
  165. package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
  166. package/es/Map/LevelCenter/demo.d.ts +0 -3
  167. package/es/Map/LevelCenter/index.d.ts +0 -16
  168. package/es/Map/LevelCenter/index.less +0 -2
  169. package/es/Map/LoaderMap/index.d.ts +0 -12
  170. package/es/Map/MapDrawSelect/demo.d.ts +0 -3
  171. package/es/Map/MapDrawSelect/index.d.ts +0 -16
  172. package/es/Map/MapDrawSelect/index.less +0 -2
  173. package/es/Map/MouseTool/index.d.ts +0 -10
  174. package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
  175. package/es/Map/ResetTools/index.d.ts +0 -10
  176. package/es/Map/SinglePoint/index.d.ts +0 -27
  177. package/es/Map/hook/useMapEvent.d.ts +0 -2
  178. package/es/Map/hook/useMapType.d.ts +0 -4
  179. package/es/Map/icon.d.ts +0 -2
  180. package/es/Map/index.d.ts +0 -24
  181. package/es/Map/useMarker/index.d.ts +0 -11
  182. package/es/Map/useMarker/index.less +0 -0
  183. package/es/Map/withMap/index.d.ts +0 -3
  184. package/es/Modal/demo.d.ts +0 -3
  185. package/es/Modal/index.d.ts +0 -44
  186. package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
  187. package/es/Picture/component/DefaultRects/index.d.ts +0 -13
  188. package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
  189. package/es/Picture/component/DrawRect/index.d.ts +0 -13
  190. package/es/Picture/component/RectMenu/index.d.ts +0 -12
  191. package/es/Picture/component/RectMenu/utils.d.ts +0 -12
  192. package/es/Picture/component/Tools/index.d.ts +0 -13
  193. package/es/Picture/component/WheelScale/index.d.ts +0 -7
  194. package/es/Picture/demo.d.ts +0 -2
  195. package/es/Picture/dragBound.d.ts +0 -5
  196. package/es/Picture/index.d.ts +0 -19
  197. package/es/Picture/loadCaptureRectImage.d.ts +0 -8
  198. package/es/Picture/useDraw.d.ts +0 -1
  199. package/es/Picture/utils.d.ts +0 -21
  200. package/es/Player/api/index.d.ts +0 -68
  201. package/es/Player/context.d.ts +0 -21
  202. package/es/Player/contraller_bar/bar.d.ts +0 -8
  203. package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
  204. package/es/Player/contraller_bar/index.d.ts +0 -14
  205. package/es/Player/contraller_bar/left_bar.d.ts +0 -10
  206. package/es/Player/contraller_bar/right_bar.d.ts +0 -8
  207. package/es/Player/contraller_bar/time.d.ts +0 -3
  208. package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
  209. package/es/Player/contraller_bar/volume.d.ts +0 -9
  210. package/es/Player/demo.d.ts +0 -3
  211. package/es/Player/event/errorEvent.d.ts +0 -16
  212. package/es/Player/event/eventName.d.ts +0 -18
  213. package/es/Player/event/index.d.ts +0 -24
  214. package/es/Player/fps_play.d.ts +0 -11
  215. package/es/Player/frontend_player.d.ts +0 -8
  216. package/es/Player/frontend_timeline.d.ts +0 -10
  217. package/es/Player/iconfont.d.ts +0 -5
  218. package/es/Player/index.d.ts +0 -2
  219. package/es/Player/live_heart.d.ts +0 -8
  220. package/es/Player/message.d.ts +0 -5
  221. package/es/Player/segment_player.d.ts +0 -9
  222. package/es/Player/segment_timeline.d.ts +0 -12
  223. package/es/Player/single_player.d.ts +0 -5
  224. package/es/Player/timeline.d.ts +0 -5
  225. package/es/Player/util.d.ts +0 -28
  226. package/es/PlayerExt/demo.d.ts +0 -3
  227. package/es/PlayerExt/index.d.ts +0 -48
  228. package/es/ROI/demo.d.ts +0 -3
  229. package/es/ROI/index.d.ts +0 -39
  230. package/es/ROI/utils.d.ts +0 -1
  231. package/es/ScreenPlayer/Live.d.ts +0 -10
  232. package/es/ScreenPlayer/LiveTools.d.ts +0 -29
  233. package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
  234. package/es/ScreenPlayer/RatePick.d.ts +0 -7
  235. package/es/ScreenPlayer/Record.d.ts +0 -10
  236. package/es/ScreenPlayer/RecordTools.d.ts +0 -37
  237. package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
  238. package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
  239. package/es/ScreenPlayer/TimeMode.d.ts +0 -7
  240. package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
  241. package/es/ScreenPlayer/demo.d.ts +0 -2
  242. package/es/ScreenPlayer/demo2.d.ts +0 -2
  243. package/es/ScreenPlayer/index.d.ts +0 -6
  244. package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
  245. package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
  246. package/es/ScreenPlayer/utils.d.ts +0 -19
  247. package/es/SegmentPlayer/index.d.ts +0 -2
  248. package/es/Service/fetch-adapter.d.ts +0 -12
  249. package/es/Service/http.d.ts +0 -6
  250. package/es/Service/index.d.ts +0 -3
  251. package/es/Service/middleware.d.ts +0 -5
  252. package/es/TableLayout/index.d.ts +0 -13
  253. package/es/ThemeAntd/demo.d.ts +0 -4
  254. package/es/ThemeAntd/index.d.ts +0 -7
  255. package/es/Timeout/index.d.ts +0 -32
  256. package/es/Tree/demo.d.ts +0 -3
  257. package/es/Tree/index.d.ts +0 -24
  258. package/es/VList/utils.d.ts +0 -14
  259. package/es/index.d.ts +0 -52
  260. package/es/useDrawROI/index.d.ts +0 -16
  261. package/es/useEventEmitterHandle/index.d.ts +0 -2
  262. package/es/useFullscreen/demo.d.ts +0 -2
  263. package/es/useFullscreen/index.d.ts +0 -12
  264. package/es/useHistory/index.d.ts +0 -3
  265. package/es/useInfiniteScroll/index.d.ts +0 -16
  266. package/es/useRafInterval/index.d.ts +0 -5
  267. package/es/useSimpleState/index.d.ts +0 -3
  268. package/es/useVirtualList/index.d.ts +0 -13
  269. package/es/utils.d.ts +0 -25
@@ -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
  }
@@ -1,10 +1,10 @@
1
1
  .lm-c-list-wrapper {
2
2
  display: flex;
3
- flex-direction: column;
4
- overflow: hidden;
5
3
  height: 100%;
4
+ overflow: hidden;
6
5
  cursor: auto;
7
6
  border: 1px solid var(--gray2);
7
+ flex-direction: column;
8
8
 
9
9
  .lm-c-base-list-layout {
10
10
  flex: 1;
@@ -63,7 +63,6 @@ export default function App() {
63
63
  },
64
64
  children: [/*#__PURE__*/_jsx(ListWithSizeAnimate, {
65
65
  ref: ref,
66
- headerSize: 200,
67
66
  header: /*#__PURE__*/_jsx("div", {
68
67
  children: /*#__PURE__*/_jsxs("ul", {
69
68
  children: [/*#__PURE__*/_jsx("li", {
@@ -1,5 +1,5 @@
1
1
  import _useEventListener from "ahooks/es/useEventListener";
2
- var _excluded = ["headerSize", "header", "children"];
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$current;
33
+ var _ref$current2;
34
34
 
35
- var headerSize = _ref.headerSize,
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 ? headerSize : 0;
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('wheel', function (event) {
56
- if (event.deltaY > 0 && state.open) {
57
- updateState({
58
- open: false
59
- });
60
- }
61
- }, {
62
- target: ref
63
- });
51
+ _useEventListener('scroll', function () {
52
+ var _ref$current;
64
53
 
65
- _useEventListener('scroll', function (event) {
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 (((_event$currentTarget = event.currentTarget) === null || _event$currentTarget === void 0 ? void 0 : _event$currentTarget.scrollTop) === 0) {
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$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.querySelector('.cloudapp-dynamic-grid-list')
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$current2, _ref$current2$querySe;
82
+ var _ref$current3, _ref$current3$querySe;
91
83
 
92
- return (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : (_ref$current2$querySe = _ref$current2.querySelector('.cloudapp-dynamic-grid-list')) === null || _ref$current2$querySe === void 0 ? void 0 : _ref$current2$querySe.scrollTo({
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
- height: headerHeight,
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
- height: 100%;
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
- background-color: gray;
7
- transition: height 0.3s;
9
+ transition: max-height .2s;
8
10
  }
11
+
9
12
  .list-animate-content {
10
- background-color: blue;
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
- position: relative;
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
- position: relative;
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 rgba(0, 0, 0, 0.3);
16
- text-align: center;
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,7 +1,7 @@
1
1
  .map-find-pio {
2
2
  position: absolute;
3
- width: 240px;
4
- left: 20px;
5
3
  top: 20px;
4
+ left: 20px;
6
5
  z-index: 2;
6
+ width: 240px;
7
7
  }
@@ -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 "./index.less";
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 "./index.less";
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: #ffffff;
7
+ background: #fff;
8
+
8
9
  .map-reset,
9
10
  .map-zoom {
10
- background: #ffffff;
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: vart(--icon);
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
@@ -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
- flex-direction: column;
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: inherit;
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
- .@{ant-prefix}-modal-close {
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, {
@@ -4,16 +4,19 @@
4
4
  border-top-color: @color;
5
5
  border-left-color: @color;
6
6
  }
7
+
7
8
  &::after {
8
9
  border-top-color: @color;
9
10
  border-right-color: @color;
10
11
  }
11
12
  }
13
+
12
14
  .border-bottom-decorator {
13
15
  &::before {
14
16
  border-bottom-color: @color;
15
17
  border-left-color: @color;
16
18
  }
19
+
17
20
  &::after {
18
21
  border-bottom-color: @color;
19
22
  border-right-color: @color;
@@ -25,6 +28,7 @@
25
28
  .rect-item {
26
29
  border-color: @lightColor;
27
30
  .border-decorator-color-mixin(@color);
31
+
28
32
  &:hover {
29
33
  border-color: @color;
30
34
  box-shadow: inset 0 0 24px 0 @shadowColor;
@@ -36,8 +40,8 @@
36
40
  .rect-info-list-wrapper {
37
41
  .data-type {
38
42
  .data-tag {
39
- border: 1px solid @color;
40
43
  background: @bgColor;
44
+ border: 1px solid @color;
41
45
  }
42
46
  }
43
47
  // border-color: @color;
@@ -53,24 +57,28 @@
53
57
  }
54
58
 
55
59
  .rect-item-face-wrapper {
56
- .rect-item-style-mixin(#ff5f57, rgba(255, 95, 87, 0.6), rgba(255, 95, 87, 0.4));
57
- .rect-info-list-mixin(#FF5F57, rgba(255,95,87,0.6), rgba(179,49,43,0.6));
60
+ .rect-item-style-mixin(#ff5f57, rgba(255, 95, 87, .6), rgba(255, 95, 87, .4));
61
+ .rect-info-list-mixin(#FF5F57, rgba(255,95,87,.6), rgba(179,49,43,.6));
58
62
  }
63
+
59
64
  .rect-item-body-wrapper {
60
- .rect-item-style-mixin(#ffbb22, rgba(255, 187, 34, 0.6), rgba(255, 187, 34, 0.4));
61
- .rect-info-list-mixin(#FFBB22, rgba(255,187,34,0.6), rgba(176,94,0,0.6));
65
+ .rect-item-style-mixin(#ffbb22, rgba(255, 187, 34, .6), rgba(255, 187, 34, .4));
66
+ .rect-info-list-mixin(#FFBB22, rgba(255,187,34,.6), rgba(176,94,0,.6));
62
67
  }
68
+
63
69
  .rect-item-vehicle-wrapper {
64
- .rect-item-style-mixin(#44aaff, rgba(68, 170, 255, 0.6), rgba(68, 170, 255, 0.4));
65
- .rect-info-list-mixin(#44aaff, rgba(68,170,255,0.6), rgba(31,114,183,0.6));
70
+ .rect-item-style-mixin(#44aaff, rgba(68, 170, 255, .6), rgba(68, 170, 255, .4));
71
+ .rect-info-list-mixin(#44aaff, rgba(68,170,255,.6), rgba(31,114,183,.6));
66
72
  }
73
+
67
74
  .rect-item-nonVehicle-wrapper {
68
- .rect-item-style-mixin(#50e9b2, rgba(80, 233, 178, 0.6), rgba(80, 233, 178, 0.4));
69
- .rect-info-list-mixin(#50e9b2, rgba(80,233,178,0.6), rgba(15,196,132,0.6));
75
+ .rect-item-style-mixin(#50e9b2, rgba(80, 233, 178, .6), rgba(80, 233, 178, .4));
76
+ .rect-info-list-mixin(#50e9b2, rgba(80,233,178,.6), rgba(15,196,132,.6));
70
77
  }
78
+
71
79
  .rect-item-thing-wrapper {
72
- .rect-item-style-mixin(#b946d2, rgba(185, 70, 210, 0.6), rgba(185, 70, 210, 0.4));
73
- .rect-info-list-mixin(#b946d2, rgba(185, 70, 210, 0.6), rgba(155, 58, 177, 0.4));
80
+ .rect-item-style-mixin(#b946d2, rgba(185, 70, 210, .6), rgba(185, 70, 210, .4));
81
+ .rect-info-list-mixin(#b946d2, rgba(185, 70, 210, .6), rgba(155, 58, 177, .4));
74
82
  }
75
83
 
76
84
  .rect-item {
@@ -78,42 +86,51 @@
78
86
  border-width: 1px;
79
87
  border-style: solid;
80
88
  cursor: pointer;
89
+
81
90
  .border-top-decorator,
82
91
  .border-bottom-decorator {
83
92
  position: absolute;
84
- pointer-events: none;
85
93
  width: 100%;
94
+ pointer-events: none;
95
+
86
96
  &::before,
87
97
  &::after {
88
- content: '';
89
98
  display: block;
90
99
  width: 8px;
91
100
  height: 8px;
92
101
  border: 2px solid transparent;
102
+ content: '';
93
103
  }
104
+
94
105
  &::before {
95
106
  float: left;
96
107
  margin-left: -1px;
97
108
  }
109
+
98
110
  &::after {
99
111
  float: right;
100
112
  margin-right: -1px;
101
113
  }
102
114
  }
115
+
103
116
  .border-top-decorator {
104
117
  top: 0;
118
+
105
119
  &::before,
106
120
  &::after {
107
121
  margin-top: -1px;
108
122
  }
109
123
  }
124
+
110
125
  .border-bottom-decorator {
111
126
  bottom: 0;
127
+
112
128
  &::before,
113
129
  &::after {
114
130
  margin-bottom: -1px;
115
131
  }
116
132
  }
133
+
117
134
  &:hover + .rect-info-list-wrapper {
118
135
  display: block;
119
136
  }
@@ -121,22 +138,22 @@
121
138
 
122
139
  // 结构化窗体
123
140
  .rect-info-list-wrapper {
124
- display: none;
125
- background: rgba(16, 21, 36, 0.8);
126
141
  position: absolute;
127
142
  z-index: 11;
128
- border: 1px solid transparent;
143
+ display: none;
129
144
  padding-top: 5px;
145
+ background: rgb(16 21 36 / 80%);
146
+ border: 1px solid transparent;
130
147
 
131
- /*高低质量*/
148
+ /* 高低质量 */
132
149
  .data-type {
133
150
  padding: 0 5px;
134
151
  color: #fff;
135
152
 
136
153
  .data-tag {
137
154
  padding: 4px;
138
- font-size: 12px;
139
155
  margin-right: 4px;
156
+ font-size: 12px;
140
157
 
141
158
  .anticon {
142
159
  margin-right: 4px;
@@ -144,42 +161,48 @@
144
161
  }
145
162
  }
146
163
  }
164
+
147
165
  .rect-card-corner {
148
166
  position: absolute;
149
167
  top: -9px;
150
168
  left: -1px;
151
169
  }
170
+
152
171
  .rect-info-arrow {
153
172
  position: absolute;
173
+ top: 6px;
174
+ left: -4px;
154
175
  display: block;
155
176
  background: transparent;
177
+ transform: rotate(45deg);
156
178
  border-style: solid;
157
179
  border-width: 4px;
158
- border-color: rgba(16, 21, 36, 0.8);
159
- transform: rotate(45deg);
160
- left: -4px;
161
- top: 6px;
180
+ border-color: rgb(16 21 36 / 80%);
162
181
  }
182
+
163
183
  .rect-info-list {
164
184
  height: 100%;
165
- border-radius: 2px;
166
185
  padding: 3px 10px;
186
+ border-radius: 2px;
187
+
167
188
  .info-item {
168
189
  padding: 3px 0;
169
- white-space: nowrap;
170
- text-overflow: ellipsis;
171
190
  overflow: hidden;
172
- line-height: 18px;
173
191
  font-size: var(--fs-small);
192
+ line-height: 18px;
174
193
  color: #fff;
194
+ text-overflow: ellipsis;
195
+ white-space: nowrap;
196
+
175
197
  .anticon {
176
198
  position: relative;
177
199
  top: 1px;
178
- cursor: default;
200
+ padding-right: 4px;
179
201
  font-size: 16px;
180
202
  color: #fff;
181
- padding-right: 4px;
203
+ cursor: default;
182
204
  }
205
+
183
206
  .item-label {
184
207
  margin: 0 4px;
185
208
  }