@cloud-app-dev/vidc 3.2.10 → 3.2.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (421) hide show
  1. package/.dumi/tmp/core/EmptyRoute.tsx +9 -0
  2. package/.dumi/tmp/core/defineApp.ts +16 -0
  3. package/.dumi/tmp/core/history.ts +61 -0
  4. package/.dumi/tmp/core/plugin.ts +42 -0
  5. package/.dumi/tmp/core/pluginConfig.d.ts +276 -0
  6. package/.dumi/tmp/core/polyfill.ts +202 -0
  7. package/.dumi/tmp/core/route.tsx +38 -0
  8. package/.dumi/tmp/core/terminal.ts +38 -0
  9. package/.dumi/tmp/dumi/exports.ts +5 -0
  10. package/.dumi/tmp/dumi/locales/config.ts +56 -0
  11. package/.dumi/tmp/dumi/locales/runtime.tsx +38 -0
  12. package/.dumi/tmp/dumi/meta/atoms.ts +4 -0
  13. package/.dumi/tmp/dumi/meta/index.ts +186 -0
  14. package/.dumi/tmp/dumi/meta/runtime.ts +18 -0
  15. package/.dumi/tmp/dumi/meta/tabs.ts +8 -0
  16. package/.dumi/tmp/dumi/theme/ContextWrapper.tsx +41 -0
  17. package/.dumi/tmp/dumi/theme/builtins/API.ts +4 -0
  18. package/.dumi/tmp/dumi/theme/builtins/Badge.ts +4 -0
  19. package/.dumi/tmp/dumi/theme/builtins/Container.ts +4 -0
  20. package/.dumi/tmp/dumi/theme/builtins/Previewer.ts +4 -0
  21. package/.dumi/tmp/dumi/theme/builtins/SourceCode.ts +4 -0
  22. package/.dumi/tmp/dumi/theme/builtins/Table.ts +4 -0
  23. package/.dumi/tmp/dumi/theme/layouts/DocLayout.ts +4 -0
  24. package/.dumi/tmp/dumi/theme/slots/Content.ts +4 -0
  25. package/.dumi/tmp/dumi/theme/slots/ContentTabs.ts +4 -0
  26. package/.dumi/tmp/dumi/theme/slots/Features.ts +4 -0
  27. package/.dumi/tmp/dumi/theme/slots/Footer.ts +4 -0
  28. package/.dumi/tmp/dumi/theme/slots/Header.ts +4 -0
  29. package/.dumi/tmp/dumi/theme/slots/Hero.ts +4 -0
  30. package/.dumi/tmp/dumi/theme/slots/HeroTitle.ts +4 -0
  31. package/.dumi/tmp/dumi/theme/slots/LangSwitch.ts +4 -0
  32. package/.dumi/tmp/dumi/theme/slots/Logo.ts +4 -0
  33. package/.dumi/tmp/dumi/theme/slots/Navbar.ts +4 -0
  34. package/.dumi/tmp/dumi/theme/slots/NotFound.ts +4 -0
  35. package/.dumi/tmp/dumi/theme/slots/PreviewerActions.ts +4 -0
  36. package/.dumi/tmp/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
  37. package/.dumi/tmp/dumi/theme/slots/RtlSwitch.ts +4 -0
  38. package/.dumi/tmp/dumi/theme/slots/SearchBar.ts +4 -0
  39. package/.dumi/tmp/dumi/theme/slots/SearchResult.ts +4 -0
  40. package/.dumi/tmp/dumi/theme/slots/Sidebar.ts +4 -0
  41. package/.dumi/tmp/dumi/theme/slots/Toc.ts +4 -0
  42. package/.dumi/tmp/exports.ts +15 -0
  43. package/.dumi/tmp/testBrowser.tsx +82 -0
  44. package/.dumi/tmp/tsconfig.json +35 -0
  45. package/.dumi/tmp/typings.d.ts +136 -0
  46. package/.dumi/tmp/umi.ts +77 -0
  47. package/.dumi/tmp-production/core/EmptyRoute.tsx +9 -0
  48. package/.dumi/tmp-production/core/defineApp.ts +16 -0
  49. package/.dumi/tmp-production/core/history.ts +61 -0
  50. package/.dumi/tmp-production/core/plugin.ts +42 -0
  51. package/.dumi/tmp-production/core/pluginConfig.d.ts +276 -0
  52. package/.dumi/tmp-production/core/polyfill.ts +202 -0
  53. package/.dumi/tmp-production/core/route.tsx +38 -0
  54. package/.dumi/tmp-production/core/terminal.ts +38 -0
  55. package/.dumi/tmp-production/dumi/exports.ts +5 -0
  56. package/.dumi/tmp-production/dumi/locales/config.ts +56 -0
  57. package/.dumi/tmp-production/dumi/locales/runtime.tsx +38 -0
  58. package/.dumi/tmp-production/dumi/meta/atoms.ts +4 -0
  59. package/.dumi/tmp-production/dumi/meta/index.ts +178 -0
  60. package/.dumi/tmp-production/dumi/meta/runtime.ts +18 -0
  61. package/.dumi/tmp-production/dumi/meta/tabs.ts +5 -0
  62. package/.dumi/tmp-production/dumi/theme/ContextWrapper.tsx +41 -0
  63. package/.dumi/tmp-production/dumi/theme/builtins/API.ts +4 -0
  64. package/.dumi/tmp-production/dumi/theme/builtins/Badge.ts +4 -0
  65. package/.dumi/tmp-production/dumi/theme/builtins/Container.ts +4 -0
  66. package/.dumi/tmp-production/dumi/theme/builtins/Previewer.ts +4 -0
  67. package/.dumi/tmp-production/dumi/theme/builtins/SourceCode.ts +4 -0
  68. package/.dumi/tmp-production/dumi/theme/builtins/Table.ts +4 -0
  69. package/.dumi/tmp-production/dumi/theme/layouts/DocLayout.ts +4 -0
  70. package/.dumi/tmp-production/dumi/theme/slots/Content.ts +4 -0
  71. package/.dumi/tmp-production/dumi/theme/slots/ContentTabs.ts +4 -0
  72. package/.dumi/tmp-production/dumi/theme/slots/Features.ts +4 -0
  73. package/.dumi/tmp-production/dumi/theme/slots/Footer.ts +4 -0
  74. package/.dumi/tmp-production/dumi/theme/slots/Header.ts +4 -0
  75. package/.dumi/tmp-production/dumi/theme/slots/Hero.ts +4 -0
  76. package/.dumi/tmp-production/dumi/theme/slots/HeroTitle.ts +4 -0
  77. package/.dumi/tmp-production/dumi/theme/slots/LangSwitch.ts +4 -0
  78. package/.dumi/tmp-production/dumi/theme/slots/Logo.ts +4 -0
  79. package/.dumi/tmp-production/dumi/theme/slots/Navbar.ts +4 -0
  80. package/.dumi/tmp-production/dumi/theme/slots/NotFound.ts +4 -0
  81. package/.dumi/tmp-production/dumi/theme/slots/PreviewerActions.ts +4 -0
  82. package/.dumi/tmp-production/dumi/theme/slots/PreviewerActionsExtra.ts +4 -0
  83. package/.dumi/tmp-production/dumi/theme/slots/RtlSwitch.ts +4 -0
  84. package/.dumi/tmp-production/dumi/theme/slots/SearchBar.ts +4 -0
  85. package/.dumi/tmp-production/dumi/theme/slots/SearchResult.ts +4 -0
  86. package/.dumi/tmp-production/dumi/theme/slots/Sidebar.ts +4 -0
  87. package/.dumi/tmp-production/dumi/theme/slots/Toc.ts +4 -0
  88. package/.dumi/tmp-production/exports.ts +14 -0
  89. package/.dumi/tmp-production/testBrowser.tsx +82 -0
  90. package/.dumi/tmp-production/tsconfig.json +35 -0
  91. package/.dumi/tmp-production/typings.d.ts +136 -0
  92. package/.dumi/tmp-production/umi.ts +77 -0
  93. package/.dumirc.ts +71 -0
  94. package/.editorconfig +0 -3
  95. package/.eslintrc.js +3 -0
  96. package/.fatherrc.ts +19 -0
  97. package/.husky/commit-msg +5 -0
  98. package/.husky/pre-commit +4 -0
  99. package/.prettierrc.js +16 -0
  100. package/.stylelintrc +3 -0
  101. package/README.md +14 -26
  102. package/es/Api/index.js +100 -30
  103. package/es/AppContext/Sync.js +19 -3
  104. package/es/AppContext/index.js +86 -42
  105. package/es/AppContext/static.js +7 -0
  106. package/es/Auth/index.js +11 -4
  107. package/es/AutoExit/index.js +11 -3
  108. package/es/Box/BetweenBox/index.js +19 -10
  109. package/es/Box/BetweenBox/{index.css → index.less} +0 -0
  110. package/es/Box/InfoBox/index.js +24 -18
  111. package/es/Box/InfoBox/index.less +22 -0
  112. package/es/Box/TwoColumnBox/index.js +42 -25
  113. package/es/Box/TwoColumnBox/index.less +70 -0
  114. package/es/Box/deps/grid-factory.d.ts +2 -2
  115. package/es/Box/deps/grid-factory.js +12 -0
  116. package/es/Box/index.js +29 -16
  117. package/es/Box/{index.css → index.less} +5 -4
  118. package/es/CheckGroupFixed/demo.d.ts +3 -0
  119. package/es/CheckGroupFixed/demo.js +28 -0
  120. package/es/CheckGroupFixed/index.js +117 -82
  121. package/es/CheckGroupFixed/index.less +50 -0
  122. package/es/Config/index.js +5 -1
  123. package/es/Config/utils.js +18 -3
  124. package/es/ConfigContext/index.js +8 -4
  125. package/es/CustomRenderSelect/index.js +71 -36
  126. package/es/CustomRenderSelect/index.less +25 -0
  127. package/es/DisableMark/index.js +14 -11
  128. package/es/DisableMark/{index.css → index.less} +0 -0
  129. package/es/DomMove/demo.js +14 -10
  130. package/es/DomMove/index.js +52 -30
  131. package/es/DomMove/utils.js +8 -3
  132. package/es/Drag/DragAndDropItem.js +44 -20
  133. package/es/Drag/DropItem.js +22 -6
  134. package/es/Drag/index.js +2 -2
  135. package/es/Drag/{index.css → index.less} +0 -0
  136. package/es/Drawer/Footer.js +22 -15
  137. package/es/Drawer/{Demo.d.ts → demo.d.ts} +0 -0
  138. package/es/Drawer/demo.js +109 -0
  139. package/es/Drawer/index.js +98 -60
  140. package/es/Drawer/index.less +42 -0
  141. package/es/ErrorFallback/index.js +23 -14
  142. package/es/FrontendPlayer/index.js +1 -1
  143. package/es/FullScreen/index.js +30 -17
  144. package/es/FullScreen/index.less +16 -0
  145. package/es/HightLevel/index.js +11 -4
  146. package/es/HightLevel/{index.css → index.less} +0 -0
  147. package/es/IconFont/index.js +39 -18
  148. package/es/ImageView/index.js +37 -13
  149. package/es/ImageView/index.less +10 -0
  150. package/es/Input/demo.d.ts +3 -0
  151. package/es/Input/demo.js +16 -0
  152. package/es/Input/index.js +46 -22
  153. package/es/Input/index.less +12 -0
  154. package/es/InstanceHistory/index.js +2 -0
  155. package/es/LabelValue/index.js +25 -18
  156. package/es/LabelValue/index.less +20 -0
  157. package/es/List/DynamicGridList/Demo.d.ts +1 -0
  158. package/es/List/DynamicGridList/Demo.js +52 -32
  159. package/es/List/DynamicGridList/index.js +37 -22
  160. package/es/List/DynamicList/index.js +76 -56
  161. package/es/List/DynamicList/index.less +15 -0
  162. package/es/List/GridList/Demo.d.ts +1 -0
  163. package/es/List/GridList/Demo.js +60 -38
  164. package/es/List/GridList/hook.d.ts +1 -1
  165. package/es/List/GridList/hook.js +66 -35
  166. package/es/List/GridList/index.js +33 -29
  167. package/es/List/GridList/{index.css → index.less} +0 -0
  168. package/es/List/GridList/utils.d.ts +2 -2
  169. package/es/List/GridList/utils.js +1 -0
  170. package/es/List/VList/index.d.ts +1 -1
  171. package/es/List/VList/index.js +32 -19
  172. package/es/List/VList/{index.css → index.less} +0 -0
  173. package/es/List/VList/utils.d.ts +2 -2
  174. package/es/List/VList/utils.js +8 -6
  175. package/es/List/demo.d.ts +3 -0
  176. package/es/List/demo.js +26 -0
  177. package/es/List/index.d.ts +1 -1
  178. package/es/List/index.js +31 -23
  179. package/es/List/{index.css → index.less} +5 -4
  180. package/es/LoaderApp/index.js +59 -25
  181. package/es/LoaderApp/{index.css → index.less} +0 -0
  182. package/es/LoaderApp/loader.js +40 -23
  183. package/es/LoaderApp/sandbox.back.js +101 -24
  184. package/es/LoaderApp/sandbox.js +26 -9
  185. package/es/LoaderApp/utils.d.ts +1 -1
  186. package/es/LoaderApp/utils.js +68 -25
  187. package/es/LoaderScript/index.js +25 -10
  188. package/es/LoaderScript/utils.js +151 -87
  189. package/es/Map/BasicMap/AMapInstance.d.ts +1 -1
  190. package/es/Map/BasicMap/AMapInstance.js +25 -3
  191. package/es/Map/BasicMap/LeafletInstance.js +28 -11
  192. package/es/Map/BasicMap/index.js +67 -27
  193. package/es/Map/BasicMap/index.less +24 -0
  194. package/es/Map/ClusterLayer/hook.d.ts +2 -2
  195. package/es/Map/ClusterLayer/hook.js +51 -23
  196. package/es/Map/ClusterLayer/index.d.ts +1 -1
  197. package/es/Map/ClusterLayer/index.js +14 -6
  198. package/es/Map/ClusterLayer/index.less +27 -0
  199. package/es/Map/Config/index.js +44 -16
  200. package/es/Map/Config/utils.js +17 -3
  201. package/es/Map/Context/index.js +43 -9
  202. package/es/Map/FindPio/index.js +5 -2
  203. package/es/Map/FindPio/{index.css → index.less} +0 -0
  204. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +1 -1
  205. package/es/Map/InfoWindow/MakerLikeWindow.js +41 -18
  206. package/es/Map/InfoWindow/demo.d.ts +1 -0
  207. package/es/Map/InfoWindow/demo.js +51 -29
  208. package/es/Map/InfoWindow/index.d.ts +1 -1
  209. package/es/Map/InfoWindow/index.js +39 -18
  210. package/es/Map/LevelCenter/DragMarker/index.js +16 -10
  211. package/es/Map/LevelCenter/demo.d.ts +1 -0
  212. package/es/Map/LevelCenter/demo.js +41 -22
  213. package/es/Map/LevelCenter/index.js +41 -29
  214. package/es/Map/LevelCenter/index.less +2 -0
  215. package/es/Map/LoaderMap/index.js +38 -22
  216. package/es/Map/MapDrawSelect/demo.d.ts +1 -0
  217. package/es/Map/MapDrawSelect/demo.js +65 -46
  218. package/es/Map/MapDrawSelect/index.js +43 -31
  219. package/es/Map/MapDrawSelect/index.less +2 -0
  220. package/es/Map/MouseTool/index.js +32 -18
  221. package/es/Map/MouseTool/useMouseTools.js +37 -8
  222. package/es/Map/ResetTools/index.js +58 -44
  223. package/es/Map/ResetTools/index.less +35 -0
  224. package/es/Map/SinglePoint/index.js +39 -27
  225. package/es/Map/SinglePoint/index.less +41 -0
  226. package/es/Map/hook/useMapEvent.js +8 -4
  227. package/es/Map/hook/useMapType.js +3 -2
  228. package/es/Map/index.d.ts +1 -0
  229. package/es/Map/index.js +11 -11
  230. package/es/Map/useMarker/index.d.ts +1 -1
  231. package/es/Map/useMarker/index.js +33 -13
  232. package/es/Map/{LevelCenter/index.css → useMarker/index.less} +0 -0
  233. package/es/Map/withMap/index.d.ts +1 -0
  234. package/es/Map/withMap/index.js +14 -4
  235. package/es/Modal/demo.d.ts +3 -0
  236. package/es/Modal/demo.js +106 -0
  237. package/es/Modal/index.js +94 -57
  238. package/es/Modal/index.less +45 -0
  239. package/es/Picture/component/DefaultRects/RectInfo.js +59 -37
  240. package/es/Picture/component/DefaultRects/index.js +46 -32
  241. package/es/Picture/component/DefaultRects/index.less +188 -0
  242. package/es/Picture/component/DrawRect/index.js +37 -24
  243. package/es/Picture/component/DrawRect/{index.css → index.less} +0 -0
  244. package/es/Picture/component/RectMenu/index.js +35 -26
  245. package/es/Picture/component/RectMenu/index.less +31 -0
  246. package/es/Picture/component/RectMenu/utils.js +6 -3
  247. package/es/Picture/component/Tools/index.js +91 -69
  248. package/es/Picture/component/Tools/index.less +43 -0
  249. package/es/Picture/component/WheelScale/index.js +9 -4
  250. package/es/Picture/demo.js +14 -11
  251. package/es/Picture/dragBound.d.ts +1 -1
  252. package/es/Picture/dragBound.js +17 -4
  253. package/es/Picture/index.d.ts +2 -2
  254. package/es/Picture/index.js +202 -139
  255. package/es/Picture/index.less +14 -0
  256. package/es/Picture/loadCaptureRectImage.d.ts +1 -1
  257. package/es/Picture/loadCaptureRectImage.js +39 -14
  258. package/es/Picture/useDraw.js +40 -20
  259. package/es/Picture/utils.d.ts +9 -9
  260. package/es/Picture/utils.js +18 -3
  261. package/es/Player/api/index.d.ts +3 -3
  262. package/es/Player/api/index.js +117 -82
  263. package/es/Player/context.js +21 -7
  264. package/es/Player/contraller_bar/bar.d.ts +1 -1
  265. package/es/Player/contraller_bar/bar.js +28 -10
  266. package/es/Player/contraller_bar/contraller_event.js +34 -12
  267. package/es/Player/contraller_bar/index.js +30 -22
  268. package/es/Player/contraller_bar/left_bar.js +62 -39
  269. package/es/Player/contraller_bar/right_bar.js +34 -18
  270. package/es/Player/contraller_bar/time.js +19 -8
  271. package/es/Player/contraller_bar/useBarStatus.js +29 -11
  272. package/es/Player/contraller_bar/volume.js +43 -21
  273. package/es/Player/demo.d.ts +1 -0
  274. package/es/Player/demo.js +258 -215
  275. package/es/Player/event/errorEvent.js +41 -16
  276. package/es/Player/event/eventName.js +12 -1
  277. package/es/Player/event/index.js +66 -24
  278. package/es/Player/fps_play.js +33 -15
  279. package/es/Player/frontend_player.js +42 -20
  280. package/es/Player/frontend_timeline.js +95 -55
  281. package/es/Player/iconfont.js +23 -8
  282. package/es/Player/index.js +1 -1
  283. package/es/Player/live_heart.js +15 -3
  284. package/es/Player/message.js +68 -37
  285. package/es/Player/segment_player.js +113 -62
  286. package/es/Player/segment_timeline.js +145 -97
  287. package/es/Player/single_player.js +153 -111
  288. package/es/Player/style/bar.less +39 -0
  289. package/es/Player/style/iconfont.js +17 -10
  290. package/es/Player/style/index.less +30 -0
  291. package/es/Player/style/message.less +50 -0
  292. package/es/Player/style/slider.less +103 -0
  293. package/es/Player/style/timeline.less +106 -0
  294. package/es/Player/style/volume.less +21 -0
  295. package/es/Player/timeline.d.ts +1 -1
  296. package/es/Player/timeline.js +59 -32
  297. package/es/Player/util.js +46 -7
  298. package/es/PlayerExt/demo.d.ts +1 -0
  299. package/es/PlayerExt/demo.js +145 -112
  300. package/es/PlayerExt/index.d.ts +1 -1
  301. package/es/PlayerExt/index.js +135 -82
  302. package/es/PlayerExt/{index.css → index.less} +0 -0
  303. package/es/Progress/index.js +18 -5
  304. package/es/Progress/index.less +20 -0
  305. package/es/ROI/demo.d.ts +1 -0
  306. package/es/ROI/demo.js +12 -8
  307. package/es/ROI/index.js +45 -35
  308. package/es/ROI/index.less +29 -0
  309. package/es/ScreenPlayer/Live.d.ts +1 -1
  310. package/es/ScreenPlayer/Live.js +159 -103
  311. package/es/ScreenPlayer/LiveTools.js +153 -116
  312. package/es/ScreenPlayer/PlayerWithExt.js +168 -113
  313. package/es/ScreenPlayer/RatePick.js +35 -22
  314. package/es/ScreenPlayer/Record.js +291 -185
  315. package/es/ScreenPlayer/RecordTools.js +192 -148
  316. package/es/ScreenPlayer/ScreenSelect.js +33 -26
  317. package/es/ScreenPlayer/SegmentTimeLine.js +23 -16
  318. package/es/ScreenPlayer/TimeMode.js +22 -16
  319. package/es/ScreenPlayer/TimeSelect.js +84 -63
  320. package/es/ScreenPlayer/demo.js +16 -18
  321. package/es/ScreenPlayer/demo2.js +192 -177
  322. package/es/ScreenPlayer/index.d.ts +1 -0
  323. package/es/ScreenPlayer/index.js +3 -3
  324. package/es/ScreenPlayer/index.less +178 -0
  325. package/es/ScreenPlayer/useTimeSlider.js +148 -49
  326. package/es/ScreenPlayer/useVideoFit.js +18 -5
  327. package/es/ScreenPlayer/utils.js +6 -0
  328. package/es/SegmentPlayer/index.js +1 -1
  329. package/es/Service/fetch-adapter.d.ts +1 -1
  330. package/es/Service/fetch-adapter.js +48 -5
  331. package/es/Service/http.js +46 -16
  332. package/es/Service/index.js +2 -2
  333. package/es/TableLayout/index.js +18 -12
  334. package/es/TableLayout/{index.css → index.less} +0 -0
  335. package/es/ThemeAntd/demo.d.ts +1 -0
  336. package/es/ThemeAntd/demo.js +126 -76
  337. package/es/ThemeAntd/{demo.css → demo.less} +4 -3
  338. package/es/ThemeAntd/index.js +6 -2
  339. package/es/ThemeAntd/index.less +16 -0
  340. package/es/ThemeAntd/style/button.less +67 -0
  341. package/es/ThemeAntd/style/checkbox.less +72 -0
  342. package/es/ThemeAntd/style/form.less +12 -0
  343. package/es/ThemeAntd/style/input.less +83 -0
  344. package/es/ThemeAntd/style/pagination.less +95 -0
  345. package/es/ThemeAntd/style/picker.less +106 -0
  346. package/es/ThemeAntd/style/popover.less +5 -0
  347. package/es/ThemeAntd/style/radio.less +87 -0
  348. package/es/ThemeAntd/style/{scrollbar.css → scrollbar.less} +4 -2
  349. package/es/ThemeAntd/style/select.less +81 -0
  350. package/es/ThemeAntd/style/table.less +57 -0
  351. package/es/ThemeAntd/style/tree.less +18 -0
  352. package/es/Timeout/index.js +36 -12
  353. package/es/Tree/demo.js +26 -21
  354. package/es/Tree/index.js +51 -30
  355. package/es/Tree/index.less +59 -0
  356. package/es/index.js +47 -47
  357. package/es/useDrawROI/index.js +130 -65
  358. package/es/useEventEmitterHandle/index.js +6 -2
  359. package/es/useFullscreen/demo.js +44 -27
  360. package/es/useFullscreen/index.js +30 -8
  361. package/es/useHistory/index.js +3 -1
  362. package/es/useInfiniteScroll/index.js +50 -19
  363. package/es/useRafInterval/index.js +28 -4
  364. package/es/useSimpleState/index.js +23 -6
  365. package/es/useVirtualList/index.js +58 -20
  366. package/es/utils.d.ts +1 -1
  367. package/es/utils.js +53 -14
  368. package/package.json +42 -32
  369. package/tsconfig.json +8 -32
  370. package/.eslintrc +0 -4
  371. package/.fatherrc.js +0 -25
  372. package/.prettierrc +0 -11
  373. package/.umirc.ts +0 -55
  374. package/es/Box/InfoBox/index.css +0 -22
  375. package/es/Box/TwoColumnBox/index.css +0 -70
  376. package/es/CheckGroupFixed/index.css +0 -49
  377. package/es/CustomRenderSelect/index.css +0 -20
  378. package/es/Drawer/Demo.js +0 -59
  379. package/es/Drawer/index.css +0 -40
  380. package/es/FullScreen/index.css +0 -16
  381. package/es/ImageView/index.css +0 -10
  382. package/es/Input/index.css +0 -8
  383. package/es/LabelValue/index.css +0 -18
  384. package/es/List/DynamicList/index.css +0 -15
  385. package/es/Map/BasicMap/index.css +0 -24
  386. package/es/Map/ClusterLayer/index.css +0 -26
  387. package/es/Map/MapDrawSelect/index.css +0 -0
  388. package/es/Map/ResetTools/index.css +0 -32
  389. package/es/Map/SinglePoint/icon/Place_icon_OnLine_Hover.svg +0 -15
  390. package/es/Map/SinglePoint/icon/Place_icon_OnLine_Normal.svg +0 -15
  391. package/es/Map/SinglePoint/icon/Place_icon_OutLine_Hover.svg +0 -15
  392. package/es/Map/SinglePoint/icon/Place_icon_OutLine_Normal.svg +0 -15
  393. package/es/Map/SinglePoint/index.css +0 -29
  394. package/es/Map/useMarker/index.css +0 -0
  395. package/es/Modal/index.css +0 -43
  396. package/es/Picture/component/DefaultRects/index.css +0 -247
  397. package/es/Picture/component/RectMenu/index.css +0 -31
  398. package/es/Picture/component/Tools/index.css +0 -42
  399. package/es/Picture/index.css +0 -12
  400. package/es/Player/style/bar.css +0 -38
  401. package/es/Player/style/index.css +0 -30
  402. package/es/Player/style/message.css +0 -49
  403. package/es/Player/style/slider.css +0 -96
  404. package/es/Player/style/timeline.css +0 -99
  405. package/es/Player/style/volume.css +0 -19
  406. package/es/Progress/index.css +0 -20
  407. package/es/ROI/index.css +0 -29
  408. package/es/ScreenPlayer/index.css +0 -166
  409. package/es/ThemeAntd/index.css +0 -620
  410. package/es/ThemeAntd/style/button.css +0 -55
  411. package/es/ThemeAntd/style/checkbox.css +0 -64
  412. package/es/ThemeAntd/style/form.css +0 -10
  413. package/es/ThemeAntd/style/input.css +0 -68
  414. package/es/ThemeAntd/style/pagination.css +0 -82
  415. package/es/ThemeAntd/style/picker.css +0 -98
  416. package/es/ThemeAntd/style/popover.css +0 -3
  417. package/es/ThemeAntd/style/radio.css +0 -80
  418. package/es/ThemeAntd/style/select.css +0 -76
  419. package/es/ThemeAntd/style/table.css +0 -46
  420. package/es/ThemeAntd/style/tree.css +0 -16
  421. package/es/Tree/index.css +0 -64
@@ -2,66 +2,91 @@ import _useRafInterval from "ahooks/es/useRafInterval";
2
2
  import _useUpdateEffect from "ahooks/es/useUpdateEffect";
3
3
  import _useUpdate from "ahooks/es/useUpdate";
4
4
  import _useToggle3 from "ahooks/es/useToggle";
5
+ var _excluded = ["containerRef", "screenNum", "timeMode", "mode", "fit", "time", "oneWinExtTools", "allWinExtTools", "hasPlugin"];
6
+
5
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+
6
9
  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."); }
10
+
7
11
  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); }
12
+
8
13
  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; }
14
+
9
15
  function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16
+
10
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import { __rest } from "tslib";
18
+
19
+ 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; }
20
+
21
+ 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; }
22
+
12
23
  import React from 'react';
13
- import IconFont from '../Player/iconfont';
14
- import ScreenSelect from './ScreenSelect';
15
- import TimeSelect from './TimeSelect';
16
- import useFullscreen from '../useFullscreen';
17
- import Volume from '../Player/contraller_bar/volume';
18
- import RatePick from './RatePick';
19
- function RecordTools(_a) {
20
- var _b, _c, _d;
21
- var containerRef = _a.containerRef,
22
- screenNum = _a.screenNum,
23
- timeMode = _a.timeMode,
24
- _a$mode = _a.mode,
25
- mode = _a$mode === void 0 ? 1 : _a$mode,
26
- fit = _a.fit,
27
- time = _a.time,
28
- oneWinExtTools = _a.oneWinExtTools,
29
- allWinExtTools = _a.allWinExtTools,
30
- hasPlugin = _a.hasPlugin,
31
- props = __rest(_a, ["containerRef", "screenNum", "timeMode", "mode", "fit", "time", "oneWinExtTools", "allWinExtTools", "hasPlugin"]);
24
+ import IconFont from "../Player/iconfont";
25
+ import ScreenSelect from "./ScreenSelect";
26
+ import TimeSelect from "./TimeSelect";
27
+ import useFullscreen from "../useFullscreen";
28
+ import Volume from "../Player/contraller_bar/volume";
29
+ import RatePick from "./RatePick";
30
+ import { jsx as _jsx } from "react/jsx-runtime";
31
+ import { jsxs as _jsxs } from "react/jsx-runtime";
32
+
33
+ function RecordTools(_ref) {
34
+ var _player$video$playbac, _player$video, _player$video2;
35
+
36
+ var containerRef = _ref.containerRef,
37
+ screenNum = _ref.screenNum,
38
+ timeMode = _ref.timeMode,
39
+ _ref$mode = _ref.mode,
40
+ mode = _ref$mode === void 0 ? 1 : _ref$mode,
41
+ fit = _ref.fit,
42
+ time = _ref.time,
43
+ oneWinExtTools = _ref.oneWinExtTools,
44
+ allWinExtTools = _ref.allWinExtTools,
45
+ hasPlugin = _ref.hasPlugin,
46
+ props = _objectWithoutProperties(_ref, _excluded);
47
+
32
48
  var _useFullscreen = useFullscreen(containerRef),
33
- _useFullscreen2 = _slicedToArray(_useFullscreen, 2),
34
- isFullscreen = _useFullscreen2[0],
35
- toggleFullscreen = _useFullscreen2[1].toggleFullscreen;
49
+ _useFullscreen2 = _slicedToArray(_useFullscreen, 2),
50
+ isFullscreen = _useFullscreen2[0],
51
+ toggleFullscreen = _useFullscreen2[1].toggleFullscreen;
52
+
36
53
  var _useToggle = _useToggle3(false),
37
- _useToggle2 = _slicedToArray(_useToggle, 2),
38
- isFpsPlay = _useToggle2[0],
39
- toggle = _useToggle2[1].toggle;
40
- var update = _useUpdate();
41
- // 播放状态控制
54
+ _useToggle2 = _slicedToArray(_useToggle, 2),
55
+ isFpsPlay = _useToggle2[0],
56
+ toggle = _useToggle2[1].toggle;
57
+
58
+ var update = _useUpdate(); // 播放状态控制
59
+
60
+
42
61
  var playToggle = function playToggle() {
43
- var player = props.getPlayerItem();
44
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
62
+ var player = props.getPlayerItem(); // eslint-disable-next-line @typescript-eslint/no-unused-expressions
63
+
45
64
  player ? player.video.paused ? player.api.play() : player.api.pause() : undefined;
46
65
  update();
47
- };
48
- // 重连
66
+ }; // 重连
67
+
68
+
49
69
  var reload = function reload() {
50
- var player = props.getPlayerItem();
51
- // eslint-disable-next-line @typescript-eslint/no-unused-expressions
70
+ var player = props.getPlayerItem(); // eslint-disable-next-line @typescript-eslint/no-unused-expressions
71
+
52
72
  player ? player.reload ? player.reload() : player.api.reload() : undefined;
53
73
  };
74
+
54
75
  var snapshotaction = function snapshotaction() {
55
- var _a;
76
+ var _props$snapshot;
77
+
56
78
  var player = props.getPlayerItem();
57
- (_a = props.snapshot) === null || _a === void 0 ? void 0 : _a.call(props, player === null || player === void 0 ? void 0 : player.api.snapshot());
79
+ (_props$snapshot = props.snapshot) === null || _props$snapshot === void 0 ? void 0 : _props$snapshot.call(props, player === null || player === void 0 ? void 0 : player.api.snapshot());
58
80
  };
81
+
59
82
  var ratechange = function ratechange(value) {
60
83
  var player = props.getPlayerItem();
61
84
  player === null || player === void 0 ? void 0 : player.api.setPlaybackRate(value);
62
85
  update();
63
86
  };
87
+
64
88
  var player = props.getPlayerItem();
89
+
65
90
  _useUpdateEffect(function () {
66
91
  var player = props.getPlayerItem();
67
92
  isFpsPlay ? player.api.openFpsPlay() : player.api.closeFpsPlay();
@@ -69,120 +94,139 @@ function RecordTools(_a) {
69
94
  /**
70
95
  * 定时获取play状态
71
96
  */
97
+
98
+
72
99
  _useRafInterval(function () {
73
100
  return update();
74
101
  }, 2000);
75
- return /*#__PURE__*/React.createElement("div", {
76
- className: "player-tools"
77
- }, /*#__PURE__*/React.createElement("div", {
78
- className: "player-tools-left"
79
- }, /*#__PURE__*/React.createElement("span", {
80
- className: "player-tools-item"
81
- }, /*#__PURE__*/React.createElement(Volume, {
82
- api: player === null || player === void 0 ? void 0 : player.api
83
- })), /*#__PURE__*/React.createElement("span", {
84
- className: "player-tools-item"
85
- }, /*#__PURE__*/React.createElement(IconFont, {
86
- type: "lm-player-xiangji1fill",
87
- title: "\u622A\u56FE",
88
- onClick: snapshotaction
89
- })), /*#__PURE__*/React.createElement("span", {
90
- className: "player-tools-item",
91
- onClick: reload
92
- }, /*#__PURE__*/React.createElement(IconFont, {
93
- type: "lm-player-Refresh_Main",
94
- title: "\u91CD\u8F7D"
95
- })), /*#__PURE__*/React.createElement("span", {
96
- className: "player-tools-item",
97
- onClick: props.download
98
- }, /*#__PURE__*/React.createElement(IconFont, {
99
- type: "lm-player-xiazai",
100
- title: "\u4E0B\u8F7D\u5F53\u524D\u5F55\u50CF"
101
- })), hasPlugin && /*#__PURE__*/React.createElement("span", {
102
- className: "player-tools-item",
103
- onClick: function onClick() {
104
- return props.updateState({
105
- mode: mode !== 2 ? 2 : 1
106
- });
107
- }
108
- }, /*#__PURE__*/React.createElement(IconFont, {
109
- type: "lm-player-S_Device_shezhi",
110
- style: mode === 2 ? {
111
- color: 'var(--primary)'
112
- } : null,
113
- className: "icon-chajian",
114
- title: "\u5207\u6362".concat(mode === 1 ? '插件' : '浏览器', "\u6A21\u5F0F")
115
- })), /*#__PURE__*/React.createElement("span", {
116
- className: "player-tools-item",
117
- onClick: toggle
118
- }, /*#__PURE__*/React.createElement(IconFont, {
119
- type: "lm-player-zhuzhenplay",
120
- style: isFpsPlay ? {
121
- color: 'var(--primary)'
122
- } : null,
123
- title: "\u9010\u5E27\u64AD\u653E"
124
- })), /*#__PURE__*/React.createElement(RatePick, {
125
- onChange: ratechange,
126
- value: (_c = (_b = player === null || player === void 0 ? void 0 : player.video) === null || _b === void 0 ? void 0 : _b.playbackRate) !== null && _c !== void 0 ? _c : 1
127
- }), oneWinExtTools), /*#__PURE__*/React.createElement("div", {
128
- className: "player-tools-mid"
129
- }, /*#__PURE__*/React.createElement("div", {
130
- className: "player-tools-item",
131
- onClick: props.onClose
132
- }, /*#__PURE__*/React.createElement(IconFont, {
133
- type: "lm-player-tingzhi",
134
- title: "\u505C\u6B62",
135
- style: {
136
- fontSize: 16
137
- }
138
- })), /*#__PURE__*/React.createElement(TimeSelect, {
139
- time: time,
140
- onChange: function onChange(time) {
141
- return props.onTimeChange({
142
- curentTime: time
143
- });
144
- }
145
- }), /*#__PURE__*/React.createElement("div", {
146
- className: "player-tools-item",
147
- onClick: playToggle
148
- }, player && !((_d = player.video) === null || _d === void 0 ? void 0 : _d.paused) ? /*#__PURE__*/React.createElement(IconFont, {
149
- type: "lm-player-Pause_Main",
150
- title: "\u6682\u505C",
151
- style: {
152
- fontSize: 22
153
- }
154
- }) : /*#__PURE__*/React.createElement(IconFont, {
155
- type: "lm-player-bofang",
156
- title: "\u64AD\u653E"
157
- }))), /*#__PURE__*/React.createElement("div", {
158
- className: "player-tools-right"
159
- }, allWinExtTools, /*#__PURE__*/React.createElement("span", {
160
- className: "player-tools-item",
161
- onClick: props.onCloseAll
162
- }, /*#__PURE__*/React.createElement(IconFont, {
163
- type: "lm-player-quanbuguanbi",
164
- title: "\u5173\u95ED\u6240\u6709"
165
- })), /*#__PURE__*/React.createElement("span", {
166
- className: "player-tools-item",
167
- onClick: props.toggleFit
168
- }, fit === 'fill' ? /*#__PURE__*/React.createElement(IconFont, {
169
- type: "lm-player-huamianshiying",
170
- title: "\u81EA\u9002\u5E94"
171
- }) : /*#__PURE__*/React.createElement(IconFont, {
172
- type: "lm-player-huamianshiying",
173
- title: "\u586B\u5145"
174
- })), /*#__PURE__*/React.createElement(ScreenSelect, {
175
- screenNum: screenNum,
176
- updateState: props.updateState
177
- }), /*#__PURE__*/React.createElement("span", {
178
- className: "player-tools-item",
179
- onClick: toggleFullscreen
180
- }, isFullscreen ? /*#__PURE__*/React.createElement(IconFont, {
181
- type: "lm-player-quanping",
182
- title: "\u5168\u5C4F"
183
- }) : /*#__PURE__*/React.createElement(IconFont, {
184
- type: "lm-player-quanping",
185
- title: "\u5168\u5C4F"
186
- }))));
102
+
103
+ return /*#__PURE__*/_jsxs("div", {
104
+ className: "player-tools",
105
+ children: [/*#__PURE__*/_jsxs("div", {
106
+ className: "player-tools-left",
107
+ children: [/*#__PURE__*/_jsx("span", {
108
+ className: "player-tools-item",
109
+ children: /*#__PURE__*/_jsx(Volume, {
110
+ api: player === null || player === void 0 ? void 0 : player.api
111
+ })
112
+ }), /*#__PURE__*/_jsx("span", {
113
+ className: "player-tools-item",
114
+ children: /*#__PURE__*/_jsx(IconFont, {
115
+ type: "lm-player-xiangji1fill",
116
+ title: "\u622A\u56FE",
117
+ onClick: snapshotaction
118
+ })
119
+ }), /*#__PURE__*/_jsx("span", {
120
+ className: "player-tools-item",
121
+ onClick: reload,
122
+ children: /*#__PURE__*/_jsx(IconFont, {
123
+ type: "lm-player-Refresh_Main",
124
+ title: "\u91CD\u8F7D"
125
+ })
126
+ }), /*#__PURE__*/_jsx("span", {
127
+ className: "player-tools-item",
128
+ onClick: props.download,
129
+ children: /*#__PURE__*/_jsx(IconFont, {
130
+ type: "lm-player-xiazai",
131
+ title: "\u4E0B\u8F7D\u5F53\u524D\u5F55\u50CF"
132
+ })
133
+ }), hasPlugin && /*#__PURE__*/_jsx("span", {
134
+ className: "player-tools-item",
135
+ onClick: function onClick() {
136
+ return props.updateState({
137
+ mode: mode !== 2 ? 2 : 1
138
+ });
139
+ },
140
+ children: /*#__PURE__*/_jsx(IconFont, {
141
+ type: "lm-player-S_Device_shezhi",
142
+ style: mode === 2 ? {
143
+ color: 'var(--primary)'
144
+ } : null,
145
+ className: "icon-chajian",
146
+ title: "\u5207\u6362".concat(mode === 1 ? '插件' : '浏览器', "\u6A21\u5F0F")
147
+ })
148
+ }), /*#__PURE__*/_jsx("span", {
149
+ className: "player-tools-item",
150
+ onClick: toggle,
151
+ children: /*#__PURE__*/_jsx(IconFont, {
152
+ type: "lm-player-zhuzhenplay",
153
+ style: isFpsPlay ? {
154
+ color: 'var(--primary)'
155
+ } : null,
156
+ title: "\u9010\u5E27\u64AD\u653E"
157
+ })
158
+ }), /*#__PURE__*/_jsx(RatePick, {
159
+ onChange: ratechange,
160
+ value: (_player$video$playbac = player === null || player === void 0 ? void 0 : (_player$video = player.video) === null || _player$video === void 0 ? void 0 : _player$video.playbackRate) !== null && _player$video$playbac !== void 0 ? _player$video$playbac : 1
161
+ }), oneWinExtTools]
162
+ }), /*#__PURE__*/_jsxs("div", {
163
+ className: "player-tools-mid",
164
+ children: [/*#__PURE__*/_jsx("div", {
165
+ className: "player-tools-item",
166
+ onClick: props.onClose,
167
+ children: /*#__PURE__*/_jsx(IconFont, {
168
+ type: "lm-player-tingzhi",
169
+ title: "\u505C\u6B62",
170
+ style: {
171
+ fontSize: 16
172
+ }
173
+ })
174
+ }), /*#__PURE__*/_jsx(TimeSelect, {
175
+ time: time,
176
+ onChange: function onChange(time) {
177
+ return props.onTimeChange({
178
+ curentTime: time
179
+ });
180
+ }
181
+ }), /*#__PURE__*/_jsx("div", {
182
+ className: "player-tools-item",
183
+ onClick: playToggle,
184
+ children: player && !((_player$video2 = player.video) !== null && _player$video2 !== void 0 && _player$video2.paused) ? /*#__PURE__*/_jsx(IconFont, {
185
+ type: "lm-player-Pause_Main",
186
+ title: "\u6682\u505C",
187
+ style: {
188
+ fontSize: 22
189
+ }
190
+ }) : /*#__PURE__*/_jsx(IconFont, {
191
+ type: "lm-player-bofang",
192
+ title: "\u64AD\u653E"
193
+ })
194
+ })]
195
+ }), /*#__PURE__*/_jsxs("div", {
196
+ className: "player-tools-right",
197
+ children: [allWinExtTools, /*#__PURE__*/_jsx("span", {
198
+ className: "player-tools-item",
199
+ onClick: props.onCloseAll,
200
+ children: /*#__PURE__*/_jsx(IconFont, {
201
+ type: "lm-player-quanbuguanbi",
202
+ title: "\u5173\u95ED\u6240\u6709"
203
+ })
204
+ }), /*#__PURE__*/_jsx("span", {
205
+ className: "player-tools-item",
206
+ onClick: props.toggleFit,
207
+ children: fit === 'fill' ? /*#__PURE__*/_jsx(IconFont, {
208
+ type: "lm-player-huamianshiying",
209
+ title: "\u81EA\u9002\u5E94"
210
+ }) : /*#__PURE__*/_jsx(IconFont, {
211
+ type: "lm-player-huamianshiying",
212
+ title: "\u586B\u5145"
213
+ })
214
+ }), /*#__PURE__*/_jsx(ScreenSelect, {
215
+ screenNum: screenNum,
216
+ updateState: props.updateState
217
+ }), /*#__PURE__*/_jsx("span", {
218
+ className: "player-tools-item",
219
+ onClick: toggleFullscreen,
220
+ children: isFullscreen ? /*#__PURE__*/_jsx(IconFont, {
221
+ type: "lm-player-quanping",
222
+ title: "\u5168\u5C4F"
223
+ }) : /*#__PURE__*/_jsx(IconFont, {
224
+ type: "lm-player-quanping",
225
+ title: "\u5168\u5C4F"
226
+ })
227
+ })]
228
+ })]
229
+ });
187
230
  }
231
+
188
232
  export default RecordTools;
@@ -1,47 +1,54 @@
1
1
  import "antd/lib/select/style";
2
2
  import _Select from "antd/lib/select";
3
3
  import React, { useMemo } from 'react';
4
- import CustomRenderSelect from '../CustomRenderSelect';
5
- import { ScreenType } from './utils';
6
- import IconFont from '../Player/iconfont';
4
+ import CustomRenderSelect from "../CustomRenderSelect";
5
+ import { ScreenType } from "./utils";
6
+ import IconFont from "../Player/iconfont";
7
+ import { jsx as _jsx } from "react/jsx-runtime";
8
+ import { jsxs as _jsxs } from "react/jsx-runtime";
9
+
7
10
  function ScreenSelect(_ref) {
8
11
  var screenNum = _ref.screenNum,
9
- updateState = _ref.updateState;
12
+ updateState = _ref.updateState;
10
13
  var icon = useMemo(function () {
11
14
  return ScreenType.find(function (v) {
12
15
  return v.name === screenNum;
13
16
  }).icon;
14
17
  }, [screenNum]);
15
- return /*#__PURE__*/React.createElement(CustomRenderSelect, {
18
+ return /*#__PURE__*/_jsx(CustomRenderSelect, {
16
19
  value: screenNum,
17
20
  popupClassName: "custom-select-dropdown ",
18
21
  customRender: function customRender() {
19
- return /*#__PURE__*/React.createElement("span", {
20
- className: "select-current-screen-item"
21
- }, /*#__PURE__*/React.createElement(IconFont, {
22
- type: icon
23
- }));
22
+ return /*#__PURE__*/_jsx("span", {
23
+ className: "select-current-screen-item",
24
+ children: /*#__PURE__*/_jsx(IconFont, {
25
+ type: icon
26
+ })
27
+ });
24
28
  },
25
29
  onChange: function onChange(v) {
26
30
  return updateState({
27
31
  screenNum: v
28
32
  });
29
33
  },
30
- placement: "topLeft"
31
- }, ScreenType.map(function (item) {
32
- return /*#__PURE__*/React.createElement(_Select.Option, {
33
- key: "".concat(item.name),
34
- value: item.name
35
- }, /*#__PURE__*/React.createElement("span", {
36
- style: {
37
- paddingRight: 4,
38
- color: 'var(--icon)',
39
- position: 'relative',
40
- top: 1
41
- }
42
- }, /*#__PURE__*/React.createElement(IconFont, {
43
- type: item.icon
44
- })), item.name, "\u5206\u5C4F");
45
- }));
34
+ placement: "topLeft",
35
+ children: ScreenType.map(function (item) {
36
+ return /*#__PURE__*/_jsxs(_Select.Option, {
37
+ value: item.name,
38
+ children: [/*#__PURE__*/_jsx("span", {
39
+ style: {
40
+ paddingRight: 4,
41
+ color: 'var(--icon)',
42
+ position: 'relative',
43
+ top: 1
44
+ },
45
+ children: /*#__PURE__*/_jsx(IconFont, {
46
+ type: item.icon
47
+ })
48
+ }), item.name, "\u5206\u5C4F"]
49
+ }, "".concat(item.name));
50
+ })
51
+ });
46
52
  }
53
+
47
54
  export default ScreenSelect;
@@ -1,27 +1,32 @@
1
1
  import _useThrottleFn2 from "ahooks/es/useThrottleFn";
2
2
  import moment from 'moment';
3
3
  import React, { useRef } from 'react';
4
- import useTimeSlider from './useTimeSlider';
4
+ import useTimeSlider from "./useTimeSlider";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+
5
7
  function SegmentTimeLine(_ref) {
8
+ var _ref2;
9
+
6
10
  var begin = _ref.begin,
7
- segments = _ref.segments,
8
- onTimeChange = _ref.onTimeChange,
9
- timeMode = _ref.timeMode,
10
- updateState = _ref.updateState,
11
- currentTime = _ref.currentTime;
12
- var _a;
11
+ segments = _ref.segments,
12
+ onTimeChange = _ref.onTimeChange,
13
+ timeMode = _ref.timeMode,
14
+ updateState = _ref.updateState,
15
+ currentTime = _ref.currentTime;
13
16
  var ref = useRef();
17
+
14
18
  var _useThrottleFn = _useThrottleFn2(onTimeChange, {
15
- wait: 300
16
- }),
17
- run = _useThrottleFn.run;
19
+ wait: 300
20
+ }),
21
+ run = _useThrottleFn.run;
22
+
18
23
  useTimeSlider(ref, {
19
24
  begin: begin !== null && begin !== void 0 ? begin : moment().set({
20
25
  hours: 0,
21
26
  minutes: 0,
22
27
  seconds: 0
23
28
  }).valueOf() - timeMode / 2 * 3600 * 1000,
24
- currentTime: (_a = currentTime !== null && currentTime !== void 0 ? currentTime : begin) !== null && _a !== void 0 ? _a : moment().set({
29
+ currentTime: (_ref2 = currentTime !== null && currentTime !== void 0 ? currentTime : begin) !== null && _ref2 !== void 0 ? _ref2 : moment().set({
25
30
  hours: 0,
26
31
  minutes: 0,
27
32
  seconds: 0
@@ -35,10 +40,12 @@ function SegmentTimeLine(_ref) {
35
40
  });
36
41
  }
37
42
  });
38
- return /*#__PURE__*/React.createElement("div", {
39
- className: "record-time-line"
40
- }, /*#__PURE__*/React.createElement("canvas", {
41
- ref: ref
42
- }));
43
+ return /*#__PURE__*/_jsx("div", {
44
+ className: "record-time-line",
45
+ children: /*#__PURE__*/_jsx("canvas", {
46
+ ref: ref
47
+ })
48
+ });
43
49
  }
50
+
44
51
  export default SegmentTimeLine;
@@ -1,27 +1,33 @@
1
1
  import "antd/lib/select/style";
2
2
  import _Select from "antd/lib/select";
3
3
  import React from 'react';
4
- import { TimeModeLibs } from './utils';
4
+ import { TimeModeLibs } from "./utils";
5
+ import { jsx as _jsx } from "react/jsx-runtime";
6
+ import { jsxs as _jsxs } from "react/jsx-runtime";
7
+
5
8
  function TimeMode(_ref) {
6
9
  var timeMode = _ref.timeMode,
7
- onChange = _ref.onChange;
8
- return /*#__PURE__*/React.createElement(_Select, {
10
+ onChange = _ref.onChange;
11
+ return /*#__PURE__*/_jsx(_Select, {
9
12
  value: timeMode,
10
13
  onChange: onChange,
11
14
  className: "time-mode-select",
12
15
  popupClassName: "custom-select-dropdown",
13
- placement: "topLeft"
14
- }, TimeModeLibs.map(function (item) {
15
- return /*#__PURE__*/React.createElement(_Select.Option, {
16
- value: item.name,
17
- key: item.name
18
- }, /*#__PURE__*/React.createElement("span", {
19
- style: {
20
- display: 'inline-block',
21
- width: 20,
22
- textAlign: 'center'
23
- }
24
- }, item.name), "\u5C0F\u65F6");
25
- }));
16
+ placement: "topLeft",
17
+ children: TimeModeLibs.map(function (item) {
18
+ return /*#__PURE__*/_jsxs(_Select.Option, {
19
+ value: item.name,
20
+ children: [/*#__PURE__*/_jsx("span", {
21
+ style: {
22
+ display: 'inline-block',
23
+ width: 20,
24
+ textAlign: 'center'
25
+ },
26
+ children: item.name
27
+ }), "\u5C0F\u65F6"]
28
+ }, item.name);
29
+ })
30
+ });
26
31
  }
32
+
27
33
  export default TimeMode;