@cloud-app-dev/vidc 4.0.14 → 4.0.17

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 (415) hide show
  1. package/.dumirc.ts +2 -18
  2. package/.fatherrc.ts +0 -1
  3. package/.prettierrc.js +1 -1
  4. package/package.json +41 -33
  5. package/release-build.sh +1 -2
  6. package/es/AppContext/Sync.d.ts +0 -8
  7. package/es/AppContext/Sync.js +0 -44
  8. package/es/AppContext/index.d.ts +0 -10
  9. package/es/AppContext/index.js +0 -144
  10. package/es/AppContext/interface.d.ts +0 -41
  11. package/es/AppContext/static.d.ts +0 -8
  12. package/es/AppContext/static.js +0 -9
  13. package/es/Auth/index.d.ts +0 -8
  14. package/es/Auth/index.js +0 -18
  15. package/es/AutoExit/index.d.ts +0 -6
  16. package/es/AutoExit/index.js +0 -23
  17. package/es/CheckGroupFixed/demo.d.ts +0 -3
  18. package/es/CheckGroupFixed/demo.js +0 -25
  19. package/es/CheckGroupFixed/index.d.ts +0 -18
  20. package/es/CheckGroupFixed/index.js +0 -150
  21. package/es/CheckGroupFixed/index.less +0 -53
  22. package/es/Config/index.d.ts +0 -4
  23. package/es/Config/index.js +0 -77
  24. package/es/Config/interface.d.ts +0 -65
  25. package/es/Config/utils.d.ts +0 -4
  26. package/es/Config/utils.js +0 -33
  27. package/es/ConfigContext/index.d.ts +0 -22
  28. package/es/ConfigContext/index.js +0 -25
  29. package/es/CustomRenderSelect/index.d.ts +0 -12
  30. package/es/CustomRenderSelect/index.js +0 -83
  31. package/es/CustomRenderSelect/index.less +0 -25
  32. package/es/DBTools/index.d.ts +0 -25
  33. package/es/DBTools/index.js +0 -337
  34. package/es/DisableMark/index.d.ts +0 -9
  35. package/es/DisableMark/index.js +0 -22
  36. package/es/DisableMark/index.less +0 -9
  37. package/es/DomMove/demo.d.ts +0 -2
  38. package/es/DomMove/demo.js +0 -20
  39. package/es/DomMove/index.d.ts +0 -16
  40. package/es/DomMove/index.js +0 -149
  41. package/es/DomMove/utils.d.ts +0 -8
  42. package/es/DomMove/utils.js +0 -33
  43. package/es/Drag/DragAndDropItem.d.ts +0 -4
  44. package/es/Drag/DragAndDropItem.js +0 -133
  45. package/es/Drag/DropItem.d.ts +0 -4
  46. package/es/Drag/DropItem.js +0 -50
  47. package/es/Drag/index.d.ts +0 -7
  48. package/es/Drag/index.js +0 -7
  49. package/es/Drag/interface.d.ts +0 -16
  50. package/es/DynamicGridList/Demo.d.ts +0 -3
  51. package/es/DynamicGridList/Demo.js +0 -86
  52. package/es/DynamicGridList/index.d.ts +0 -27
  53. package/es/DynamicGridList/index.js +0 -71
  54. package/es/DynamicList/demo.d.ts +0 -2
  55. package/es/DynamicList/demo.js +0 -50
  56. package/es/DynamicList/index.d.ts +0 -31
  57. package/es/DynamicList/index.js +0 -96
  58. package/es/DynamicList/index.less +0 -17
  59. package/es/DynamicList/interface.d.ts +0 -19
  60. package/es/DynamicList/utils.d.ts +0 -4
  61. package/es/DynamicList/utils.js +0 -6
  62. package/es/ErrorFallback/index.d.ts +0 -9
  63. package/es/ErrorFallback/index.js +0 -38
  64. package/es/ErrorFallback/inerface.d.ts +0 -48
  65. package/es/EventTools/index.d.ts +0 -3
  66. package/es/EventTools/index.js +0 -12
  67. package/es/FrontendPlayer/index.d.ts +0 -4
  68. package/es/FrontendPlayer/index.js +0 -2
  69. package/es/FullScreen/index.d.ts +0 -22
  70. package/es/FullScreen/index.js +0 -36
  71. package/es/FullScreen/index.less +0 -18
  72. package/es/GridList/Demo.d.ts +0 -3
  73. package/es/GridList/Demo.js +0 -89
  74. package/es/GridList/data.d.ts +0 -16
  75. package/es/GridList/data.js +0 -609
  76. package/es/GridList/hook.d.ts +0 -13
  77. package/es/GridList/hook.js +0 -270
  78. package/es/GridList/index.d.ts +0 -15
  79. package/es/GridList/index.js +0 -48
  80. package/es/GridList/index.less +0 -8
  81. package/es/GridList/interface.d.ts +0 -59
  82. package/es/GridList/utils.d.ts +0 -9
  83. package/es/GridList/utils.js +0 -42
  84. package/es/HightLevel/index.d.ts +0 -9
  85. package/es/HightLevel/index.js +0 -21
  86. package/es/HightLevel/index.less +0 -3
  87. package/es/IconFont/index.d.ts +0 -12
  88. package/es/IconFont/index.js +0 -63
  89. package/es/ImageView/index.d.ts +0 -17
  90. package/es/ImageView/index.js +0 -58
  91. package/es/ImageView/index.less +0 -11
  92. package/es/InstanceHistory/index.d.ts +0 -3
  93. package/es/InstanceHistory/index.js +0 -7
  94. package/es/LabelPlayer/111.png +0 -0
  95. package/es/LabelPlayer/demo.d.ts +0 -2
  96. package/es/LabelPlayer/demo.js +0 -123
  97. package/es/LabelPlayer/index.d.ts +0 -21
  98. package/es/LabelPlayer/index.js +0 -169
  99. package/es/LabelPlayer/index.less +0 -24
  100. package/es/LabelValue/index.d.ts +0 -15
  101. package/es/LabelValue/index.js +0 -32
  102. package/es/LabelValue/index.less +0 -23
  103. package/es/List/demo.d.ts +0 -3
  104. package/es/List/demo.js +0 -26
  105. package/es/List/index.d.ts +0 -28
  106. package/es/List/index.js +0 -30
  107. package/es/List/index.less +0 -13
  108. package/es/ListWithSizeAnimate/demo.d.ts +0 -2
  109. package/es/ListWithSizeAnimate/demo.js +0 -128
  110. package/es/ListWithSizeAnimate/index.d.ts +0 -14
  111. package/es/ListWithSizeAnimate/index.js +0 -97
  112. package/es/ListWithSizeAnimate/index.less +0 -23
  113. package/es/LoaderScript/index.d.ts +0 -47
  114. package/es/LoaderScript/index.js +0 -38
  115. package/es/LoaderScript/utils.d.ts +0 -13
  116. package/es/LoaderScript/utils.js +0 -179
  117. package/es/Map/AMap.d.ts +0 -7109
  118. package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
  119. package/es/Map/BasicMap/AMapInstance.js +0 -98
  120. package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
  121. package/es/Map/BasicMap/LeafletInstance.js +0 -111
  122. package/es/Map/BasicMap/index.d.ts +0 -9
  123. package/es/Map/BasicMap/index.js +0 -98
  124. package/es/Map/BasicMap/index.less +0 -29
  125. package/es/Map/ClusterLayer/demo.d.ts +0 -3
  126. package/es/Map/ClusterLayer/demo.js +0 -22
  127. package/es/Map/ClusterLayer/hook.d.ts +0 -5
  128. package/es/Map/ClusterLayer/hook.js +0 -124
  129. package/es/Map/ClusterLayer/index.d.ts +0 -6
  130. package/es/Map/ClusterLayer/index.js +0 -32
  131. package/es/Map/ClusterLayer/index.less +0 -29
  132. package/es/Map/ClusterLayer/props.d.ts +0 -8
  133. package/es/Map/Config/index.d.ts +0 -9
  134. package/es/Map/Config/index.js +0 -52
  135. package/es/Map/Config/utils.d.ts +0 -2
  136. package/es/Map/Config/utils.js +0 -65
  137. package/es/Map/Context/index.d.ts +0 -11
  138. package/es/Map/Context/index.js +0 -56
  139. package/es/Map/FindPio/index.d.ts +0 -4
  140. package/es/Map/FindPio/index.js +0 -14
  141. package/es/Map/FindPio/index.less +0 -7
  142. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
  143. package/es/Map/InfoWindow/MakerLikeWindow.js +0 -113
  144. package/es/Map/InfoWindow/demo.d.ts +0 -3
  145. package/es/Map/InfoWindow/demo.js +0 -76
  146. package/es/Map/InfoWindow/index.d.ts +0 -11
  147. package/es/Map/InfoWindow/index.js +0 -67
  148. package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
  149. package/es/Map/LevelCenter/DragMarker/index.js +0 -44
  150. package/es/Map/LevelCenter/demo.d.ts +0 -3
  151. package/es/Map/LevelCenter/demo.js +0 -46
  152. package/es/Map/LevelCenter/index.d.ts +0 -15
  153. package/es/Map/LevelCenter/index.js +0 -71
  154. package/es/Map/LoaderMap/index.d.ts +0 -12
  155. package/es/Map/LoaderMap/index.js +0 -71
  156. package/es/Map/MapDrawSelect/demo.d.ts +0 -3
  157. package/es/Map/MapDrawSelect/demo.js +0 -79
  158. package/es/Map/MapDrawSelect/index.d.ts +0 -15
  159. package/es/Map/MapDrawSelect/index.js +0 -62
  160. package/es/Map/MouseTool/index.d.ts +0 -10
  161. package/es/Map/MouseTool/index.js +0 -44
  162. package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
  163. package/es/Map/MouseTool/useMouseTools.js +0 -83
  164. package/es/Map/ResetTools/index.d.ts +0 -10
  165. package/es/Map/ResetTools/index.js +0 -67
  166. package/es/Map/ResetTools/index.less +0 -39
  167. package/es/Map/SinglePoint/demo.d.ts +0 -3
  168. package/es/Map/SinglePoint/demo.js +0 -16
  169. package/es/Map/SinglePoint/index.d.ts +0 -27
  170. package/es/Map/SinglePoint/index.js +0 -57
  171. package/es/Map/SinglePoint/index.less +0 -41
  172. package/es/Map/hook/useMapEvent.d.ts +0 -2
  173. package/es/Map/hook/useMapEvent.js +0 -19
  174. package/es/Map/hook/useMapType.d.ts +0 -4
  175. package/es/Map/hook/useMapType.js +0 -12
  176. package/es/Map/icon.d.ts +0 -2
  177. package/es/Map/icon.js +0 -10
  178. package/es/Map/index.d.ts +0 -24
  179. package/es/Map/index.js +0 -25
  180. package/es/Map/interface.d.ts +0 -74
  181. package/es/Map/points.d.ts +0 -74
  182. package/es/Map/points.js +0 -1
  183. package/es/Map/useMarker/index.d.ts +0 -10
  184. package/es/Map/useMarker/index.js +0 -71
  185. package/es/Map/withMap/index.d.ts +0 -3
  186. package/es/Map/withMap/index.js +0 -18
  187. package/es/Map3D/demo.d.ts +0 -3
  188. package/es/Map3D/demo.js +0 -13
  189. package/es/Map3D/index.d.ts +0 -4
  190. package/es/Map3D/index.js +0 -84
  191. package/es/Map3D/index.less +0 -4
  192. package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
  193. package/es/Picture/component/DefaultRects/RectInfo.js +0 -88
  194. package/es/Picture/component/DefaultRects/index.d.ts +0 -13
  195. package/es/Picture/component/DefaultRects/index.js +0 -58
  196. package/es/Picture/component/DefaultRects/index.less +0 -211
  197. package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
  198. package/es/Picture/component/DefaultRects/utils.js +0 -11
  199. package/es/Picture/component/DrawRect/index.d.ts +0 -13
  200. package/es/Picture/component/DrawRect/index.js +0 -51
  201. package/es/Picture/component/DrawRect/index.less +0 -8
  202. package/es/Picture/component/RectMenu/index.d.ts +0 -12
  203. package/es/Picture/component/RectMenu/index.js +0 -79
  204. package/es/Picture/component/RectMenu/index.less +0 -36
  205. package/es/Picture/component/RectMenu/utils.d.ts +0 -12
  206. package/es/Picture/component/RectMenu/utils.js +0 -19
  207. package/es/Picture/component/Tools/index.d.ts +0 -12
  208. package/es/Picture/component/Tools/index.js +0 -93
  209. package/es/Picture/component/Tools/index.less +0 -49
  210. package/es/Picture/component/WheelScale/index.d.ts +0 -7
  211. package/es/Picture/component/WheelScale/index.js +0 -29
  212. package/es/Picture/demo.d.ts +0 -2
  213. package/es/Picture/demo.js +0 -113
  214. package/es/Picture/index.d.ts +0 -19
  215. package/es/Picture/index.js +0 -354
  216. package/es/Picture/index.less +0 -20
  217. package/es/Picture/interface.d.ts +0 -196
  218. package/es/Picture/loadCaptureRectImage.d.ts +0 -3
  219. package/es/Picture/loadCaptureRectImage.js +0 -99
  220. package/es/Picture/useDraw.d.ts +0 -1
  221. package/es/Picture/useDraw.js +0 -103
  222. package/es/Picture/utils.d.ts +0 -26
  223. package/es/Picture/utils.js +0 -143
  224. package/es/Player/api/index.d.ts +0 -68
  225. package/es/Player/api/index.js +0 -283
  226. package/es/Player/context.d.ts +0 -21
  227. package/es/Player/context.js +0 -25
  228. package/es/Player/contraller_bar/bar.d.ts +0 -8
  229. package/es/Player/contraller_bar/bar.js +0 -28
  230. package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
  231. package/es/Player/contraller_bar/contraller_event.js +0 -53
  232. package/es/Player/contraller_bar/index.d.ts +0 -14
  233. package/es/Player/contraller_bar/index.js +0 -33
  234. package/es/Player/contraller_bar/left_bar.d.ts +0 -10
  235. package/es/Player/contraller_bar/left_bar.js +0 -88
  236. package/es/Player/contraller_bar/right_bar.d.ts +0 -8
  237. package/es/Player/contraller_bar/right_bar.js +0 -37
  238. package/es/Player/contraller_bar/time.d.ts +0 -3
  239. package/es/Player/contraller_bar/time.js +0 -21
  240. package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
  241. package/es/Player/contraller_bar/useBarStatus.js +0 -43
  242. package/es/Player/contraller_bar/volume.d.ts +0 -9
  243. package/es/Player/contraller_bar/volume.js +0 -65
  244. package/es/Player/demo.d.ts +0 -3
  245. package/es/Player/demo.js +0 -277
  246. package/es/Player/empty.d.ts +0 -2
  247. package/es/Player/empty.js +0 -6
  248. package/es/Player/event/errorEvent.d.ts +0 -14
  249. package/es/Player/event/errorEvent.js +0 -88
  250. package/es/Player/event/eventName.d.ts +0 -18
  251. package/es/Player/event/eventName.js +0 -30
  252. package/es/Player/event/index.d.ts +0 -24
  253. package/es/Player/event/index.js +0 -204
  254. package/es/Player/fps_play.d.ts +0 -11
  255. package/es/Player/fps_play.js +0 -84
  256. package/es/Player/frontend_player.d.ts +0 -8
  257. package/es/Player/frontend_player.js +0 -72
  258. package/es/Player/frontend_timeline.d.ts +0 -10
  259. package/es/Player/frontend_timeline.js +0 -145
  260. package/es/Player/iconfont.d.ts +0 -5
  261. package/es/Player/iconfont.js +0 -22
  262. package/es/Player/index.d.ts +0 -2
  263. package/es/Player/index.js +0 -2
  264. package/es/Player/live_heart.d.ts +0 -8
  265. package/es/Player/live_heart.js +0 -46
  266. package/es/Player/message.d.ts +0 -5
  267. package/es/Player/message.js +0 -138
  268. package/es/Player/player.d.ts +0 -231
  269. package/es/Player/segment_player.d.ts +0 -9
  270. package/es/Player/segment_player.js +0 -230
  271. package/es/Player/segment_timeline.d.ts +0 -12
  272. package/es/Player/segment_timeline.js +0 -190
  273. package/es/Player/single_player.d.ts +0 -5
  274. package/es/Player/single_player.js +0 -290
  275. package/es/Player/style/bar.less +0 -43
  276. package/es/Player/style/iconfont.js +0 -43
  277. package/es/Player/style/index.less +0 -34
  278. package/es/Player/style/message.less +0 -56
  279. package/es/Player/style/slider.less +0 -106
  280. package/es/Player/style/timeline.less +0 -116
  281. package/es/Player/style/volume.less +0 -24
  282. package/es/Player/timeline.d.ts +0 -5
  283. package/es/Player/timeline.js +0 -98
  284. package/es/Player/util.d.ts +0 -42
  285. package/es/Player/util.js +0 -172
  286. package/es/PlayerExt/demo.d.ts +0 -3
  287. package/es/PlayerExt/demo.js +0 -170
  288. package/es/PlayerExt/index.d.ts +0 -48
  289. package/es/PlayerExt/index.js +0 -207
  290. package/es/PlayerExt/index.less +0 -10
  291. package/es/Progress/index.d.ts +0 -12
  292. package/es/Progress/index.js +0 -56
  293. package/es/Progress/index.less +0 -21
  294. package/es/ROI/demo.d.ts +0 -3
  295. package/es/ROI/demo.js +0 -18
  296. package/es/ROI/index.d.ts +0 -33
  297. package/es/ROI/index.js +0 -57
  298. package/es/ROI/index.less +0 -33
  299. package/es/RefDrawer/Footer.d.ts +0 -9
  300. package/es/RefDrawer/Footer.js +0 -27
  301. package/es/RefDrawer/demo.d.ts +0 -3
  302. package/es/RefDrawer/demo.js +0 -32
  303. package/es/RefDrawer/index.d.ts +0 -26
  304. package/es/RefDrawer/index.js +0 -73
  305. package/es/RefModal/demo.d.ts +0 -3
  306. package/es/RefModal/demo.js +0 -32
  307. package/es/RefModal/index.d.ts +0 -17
  308. package/es/RefModal/index.js +0 -71
  309. package/es/ScreenPlayer/Live.d.ts +0 -10
  310. package/es/ScreenPlayer/Live.js +0 -220
  311. package/es/ScreenPlayer/LiveTools.d.ts +0 -29
  312. package/es/ScreenPlayer/LiveTools.js +0 -167
  313. package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
  314. package/es/ScreenPlayer/PlayerWithExt.js +0 -240
  315. package/es/ScreenPlayer/RatePick.d.ts +0 -8
  316. package/es/ScreenPlayer/RatePick.js +0 -30
  317. package/es/ScreenPlayer/Record.d.ts +0 -10
  318. package/es/ScreenPlayer/Record.js +0 -447
  319. package/es/ScreenPlayer/RecordTools.d.ts +0 -38
  320. package/es/ScreenPlayer/RecordTools.js +0 -216
  321. package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
  322. package/es/ScreenPlayer/ScreenSelect.js +0 -51
  323. package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
  324. package/es/ScreenPlayer/SegmentTimeLine.js +0 -38
  325. package/es/ScreenPlayer/TimeMode.d.ts +0 -7
  326. package/es/ScreenPlayer/TimeMode.js +0 -30
  327. package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
  328. package/es/ScreenPlayer/TimeSelect.js +0 -94
  329. package/es/ScreenPlayer/demo.d.ts +0 -2
  330. package/es/ScreenPlayer/demo.js +0 -24
  331. package/es/ScreenPlayer/demo2.d.ts +0 -2
  332. package/es/ScreenPlayer/demo2.js +0 -200
  333. package/es/ScreenPlayer/index.d.ts +0 -6
  334. package/es/ScreenPlayer/index.js +0 -9
  335. package/es/ScreenPlayer/index.less +0 -335
  336. package/es/ScreenPlayer/interface.d.ts +0 -216
  337. package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
  338. package/es/ScreenPlayer/useTimeSlider.js +0 -450
  339. package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
  340. package/es/ScreenPlayer/useVideoFit.js +0 -35
  341. package/es/ScreenPlayer/utils.d.ts +0 -17
  342. package/es/ScreenPlayer/utils.js +0 -85
  343. package/es/SegmentPlayer/index.d.ts +0 -2
  344. package/es/SegmentPlayer/index.js +0 -2
  345. package/es/Service/http.d.ts +0 -6
  346. package/es/Service/http.js +0 -125
  347. package/es/Service/index.d.ts +0 -3
  348. package/es/Service/index.js +0 -10
  349. package/es/Service/interface.d.ts +0 -22
  350. package/es/Service/middleware.d.ts +0 -5
  351. package/es/Service/middleware.js +0 -15
  352. package/es/SocketEmitter/eventEmitter.d.ts +0 -27
  353. package/es/SocketEmitter/eventEmitter.js +0 -88
  354. package/es/SocketEmitter/index.d.ts +0 -24
  355. package/es/SocketEmitter/index.js +0 -125
  356. package/es/SocketEmitter/interface.d.ts +0 -4
  357. package/es/TableLayout/index.d.ts +0 -10
  358. package/es/TableLayout/index.js +0 -29
  359. package/es/TableLayout/index.less +0 -4
  360. package/es/ThemeAntd/demo.d.ts +0 -4
  361. package/es/ThemeAntd/demo.js +0 -129
  362. package/es/ThemeAntd/demo.less +0 -20
  363. package/es/ThemeAntd/index.d.ts +0 -7
  364. package/es/ThemeAntd/index.js +0 -23
  365. package/es/ThemeAntd/index.less +0 -4
  366. package/es/Timeout/index.d.ts +0 -32
  367. package/es/Timeout/index.js +0 -70
  368. package/es/VList/index.d.ts +0 -11
  369. package/es/VList/index.js +0 -42
  370. package/es/VList/index.less +0 -6
  371. package/es/VList/utils.d.ts +0 -14
  372. package/es/VList/utils.js +0 -17
  373. package/es/bigNumberTransformCN/index.d.ts +0 -5
  374. package/es/bigNumberTransformCN/index.js +0 -60
  375. package/es/cache/index.d.ts +0 -34
  376. package/es/cache/index.js +0 -94
  377. package/es/copy/index.d.ts +0 -1
  378. package/es/copy/index.js +0 -9
  379. package/es/core.d.ts +0 -0
  380. package/es/getThemeStyle/index.d.ts +0 -2
  381. package/es/getThemeStyle/index.js +0 -5
  382. package/es/index.d.ts +0 -61
  383. package/es/index.js +0 -61
  384. package/es/logger/index.d.ts +0 -7
  385. package/es/logger/index.js +0 -30
  386. package/es/nextTick/index.d.ts +0 -1
  387. package/es/nextTick/index.js +0 -7
  388. package/es/submidstr/index.d.ts +0 -5
  389. package/es/submidstr/index.js +0 -14
  390. package/es/treeHelper/index.d.ts +0 -11
  391. package/es/treeHelper/index.js +0 -189
  392. package/es/typings.d.ts +0 -2
  393. package/es/useDrawROI/index.d.ts +0 -16
  394. package/es/useDrawROI/index.js +0 -322
  395. package/es/useEventEmitterHandle/index.d.ts +0 -2
  396. package/es/useEventEmitterHandle/index.js +0 -17
  397. package/es/useFullscreen/demo.d.ts +0 -2
  398. package/es/useFullscreen/demo.js +0 -48
  399. package/es/useFullscreen/index.d.ts +0 -12
  400. package/es/useFullscreen/index.js +0 -76
  401. package/es/useHistory/index.d.ts +0 -3
  402. package/es/useHistory/index.js +0 -9
  403. package/es/useHistory/interface.d.ts +0 -3
  404. package/es/useInfiniteScroll/index.d.ts +0 -16
  405. package/es/useInfiniteScroll/index.js +0 -101
  406. package/es/useRafInterval/index.d.ts +0 -5
  407. package/es/useRafInterval/index.js +0 -70
  408. package/es/useSimpleState/index.d.ts +0 -3
  409. package/es/useSimpleState/index.js +0 -36
  410. package/es/useVirtualList/index.d.ts +0 -13
  411. package/es/useVirtualList/index.js +0 -139
  412. package/es/utils.d.ts +0 -14
  413. package/es/utils.js +0 -75
  414. package/es/uuid/index.d.ts +0 -4
  415. package/es/uuid/index.js +0 -15
@@ -1,150 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- import _useUpdateEffect from "ahooks/es/useUpdateEffect";
3
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
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
- 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); }
11
- 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; }
12
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
13
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
- import { Badge, Checkbox } from 'antd';
15
- import React, { useLayoutEffect, useMemo, useRef, useState } from 'react';
16
- import "./index.less";
17
- import { jsxs as _jsxs } from "react/jsx-runtime";
18
- import { jsx as _jsx } from "react/jsx-runtime";
19
- function CheckGroupFixed(_ref) {
20
- var label = _ref.label,
21
- _ref$source = _ref.source,
22
- source = _ref$source === void 0 ? [] : _ref$source,
23
- _ref$checboxSize = _ref.checboxSize,
24
- checboxSize = _ref$checboxSize === void 0 ? 120 : _ref$checboxSize,
25
- _ref$cutRow = _ref.cutRow,
26
- cutRow = _ref$cutRow === void 0 ? 1 : _ref$cutRow,
27
- _ref$labelSize = _ref.labelSize,
28
- labelSize = _ref$labelSize === void 0 ? 100 : _ref$labelSize,
29
- value = _ref.value,
30
- onChange = _ref.onChange;
31
- var _useState = useState({
32
- visible: false,
33
- sider: false,
34
- pos: [0, 0],
35
- w: 0,
36
- selectKeys: value || []
37
- }),
38
- _useState2 = _slicedToArray(_useState, 2),
39
- state = _useState2[0],
40
- setState = _useState2[1];
41
- var domRef = useRef(null);
42
- useLayoutEffect(function () {
43
- var _domRef$current;
44
- var contentEle = (_domRef$current = domRef.current) === null || _domRef$current === void 0 ? void 0 : _domRef$current.querySelector('.check-content-box');
45
- var contentRect = (contentEle === null || contentEle === void 0 ? void 0 : contentEle.getBoundingClientRect()) || {
46
- width: 0
47
- };
48
- if (contentRect.width < checboxSize * source.length) {
49
- var _domRef$current2;
50
- var lr = (_domRef$current2 = domRef.current) === null || _domRef$current2 === void 0 ? void 0 : _domRef$current2.getBoundingClientRect();
51
- setState(function (old) {
52
- return _objectSpread(_objectSpread({}, old), {}, {
53
- visible: true,
54
- w: (lr === null || lr === void 0 ? void 0 : lr.width) || 0
55
- });
56
- });
57
- }
58
- }, [checboxSize, source.length, state.visible]);
59
- var fixedStyle = useMemo(function () {
60
- return state.sider ? {
61
- position: 'absolute',
62
- width: state.w,
63
- height: 'auto',
64
- left: state.pos[0],
65
- top: state.pos[1],
66
- backgroundColor: 'white',
67
- zIndex: 99,
68
- boxShadow: ' 0 0 10px rgba(0,0,0,0.1)'
69
- } : {};
70
- }, [state.sider, state.w, state.pos]);
71
- _useUpdateEffect(function () {
72
- return onChange === null || onChange === void 0 ? void 0 : onChange(state.selectKeys);
73
- }, [state.selectKeys]);
74
- useLayoutEffect(function () {
75
- var _domRef$current3;
76
- var dom = (_domRef$current3 = domRef.current) === null || _domRef$current3 === void 0 ? void 0 : _domRef$current3.querySelector('.check-box-group-layout');
77
- dom === null || dom === void 0 ? void 0 : dom.setAttribute('style', "grid-template-columns:repeat(auto-fill, minmax(".concat(checboxSize, "px, 1fr));"));
78
- }, [checboxSize]);
79
- return /*#__PURE__*/_jsxs("div", {
80
- className: "c-check-group-layout",
81
- ref: domRef,
82
- style: {
83
- height: state.sider ? cutRow * 30 + 20 : 'auto'
84
- },
85
- children: [/*#__PURE__*/_jsxs("div", {
86
- className: "c-check-group-box",
87
- style: fixedStyle,
88
- children: [/*#__PURE__*/_jsxs("span", {
89
- className: "check-label-box",
90
- style: {
91
- width: labelSize
92
- },
93
- children: [label, "\uFF1A"]
94
- }), /*#__PURE__*/_jsx("div", {
95
- className: "check-content-box",
96
- style: {
97
- height: state.sider ? 'auto' : cutRow * 30
98
- },
99
- children: /*#__PURE__*/_jsx(Checkbox.Group, {
100
- value: state.selectKeys,
101
- className: "check-box-group-layout",
102
- onChange: function onChange(keys) {
103
- return setState(function (old) {
104
- return _objectSpread(_objectSpread({}, old), {}, {
105
- selectKeys: keys
106
- });
107
- });
108
- },
109
- children: source.map(function (v) {
110
- return /*#__PURE__*/_jsx(Checkbox, {
111
- style: {
112
- width: checboxSize
113
- },
114
- value: v.value,
115
- children: /*#__PURE__*/_jsx("span", {
116
- title: v.label,
117
- children: v.label
118
- })
119
- }, v.value);
120
- })
121
- })
122
- }), state.visible && /*#__PURE__*/_jsx(Badge, {
123
- count: state.sider ? 0 : state.selectKeys.length,
124
- size: "small",
125
- offset: [10, 0],
126
- children: /*#__PURE__*/_jsx("span", {
127
- className: "slice-btn",
128
- onClick: function onClick() {
129
- return setState(function (old) {
130
- return _objectSpread(_objectSpread({}, old), {}, {
131
- sider: !state.sider
132
- });
133
- });
134
- },
135
- children: state.sider ? '收起' : '展开'
136
- })
137
- })]
138
- }), state.sider && /*#__PURE__*/_jsx("div", {
139
- className: "sider-mask",
140
- onClick: function onClick() {
141
- return setState(function (old) {
142
- return _objectSpread(_objectSpread({}, old), {}, {
143
- sider: false
144
- });
145
- });
146
- }
147
- })]
148
- });
149
- }
150
- export default CheckGroupFixed;
@@ -1,53 +0,0 @@
1
- .c-check-group-layout {
2
- position: relative;
3
-
4
- .c-check-group-box {
5
- display: flex;
6
- padding: 10px;
7
- }
8
-
9
- .check-label-box {
10
- width: 80px;
11
- color: #999;
12
- }
13
-
14
- .check-content-box {
15
- width: 100%;
16
- height: 30px;
17
- overflow: hidden;
18
- flex: 1;
19
- .@{ant-prefix}-checkbox-group {
20
- display: grid;
21
- grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
22
- grid-gap: 10px;
23
- .@{ant-prefix}-checkbox-wrapper {
24
- display: flex;
25
- width: 120px;
26
- height: 30px;
27
- margin-left: 0;
28
- > span:not(.@{ant-prefix}-checkbox) {
29
- overflow: hidden;
30
- text-overflow: ellipsis;
31
- white-space: nowrap;
32
- flex: 1;
33
- }
34
- }
35
- }
36
- }
37
-
38
- .sider-mask {
39
- position: fixed;
40
- top: 0;
41
- left: 0;
42
- z-index: 98;
43
- width: 100%;
44
- height: 100%;
45
- }
46
-
47
- .slice-btn {
48
- position: relative;
49
- top: 4px;
50
- color: var(--primary);
51
- cursor: pointer;
52
- }
53
- }
@@ -1,4 +0,0 @@
1
- import { ConfigJOSN } from './interface';
2
- declare const Config: ConfigJOSN;
3
- declare const LMConfig: typeof Config;
4
- export default LMConfig;
@@ -1,77 +0,0 @@
1
- import produce from 'immer';
2
- import { insertThemeStyle, lock } from "./utils";
3
- var Config = {
4
- app: produce({}, function () {}),
5
- bs: produce({}, function () {}),
6
- features: produce([], function () {}),
7
- featureIds: produce([], function () {}),
8
- theme: produce({}, function () {}),
9
- registerAppConfig: function registerAppConfig() {
10
- var app = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
11
- Config.app = produce(Config.app, function (draft) {
12
- app.forEach(function (item) {
13
- draft[item.routerPrefix] = item;
14
- });
15
- });
16
- },
17
- registerFeatrueIds: function registerFeatrueIds() {
18
- var featureIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
19
- Config.featureIds = produce(Config.featureIds, function (draft) {
20
- featureIds.forEach(function (id) {
21
- var index = draft.findIndex(function (v) {
22
- return v === id;
23
- });
24
- if (index === -1) {
25
- draft.push(id);
26
- } else {
27
- draft[index] = id;
28
- }
29
- });
30
- });
31
- },
32
- registerBSConfig: function registerBSConfig() {
33
- var bs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
34
- Config.bs = produce(Config.bs, function (draft) {
35
- Object.keys(bs).forEach(function (key) {
36
- draft[key] = bs[key];
37
- });
38
- });
39
- },
40
- registerPlatformFeature: function registerPlatformFeature() {
41
- var features = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
42
- Config.features = produce(Config.features, function (draft) {
43
- features.forEach(function (item) {
44
- var index = draft.findIndex(function (v) {
45
- return v.id === item.id;
46
- });
47
- if (index === -1) {
48
- draft.push(item);
49
- } else {
50
- draft[index] = item;
51
- }
52
- });
53
- });
54
- },
55
- registerThemeConfig: function registerThemeConfig() {
56
- var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
57
- insertThemeStyle(theme);
58
- Config.theme = produce(Config.theme, function (draft) {
59
- for (var _key in theme) {
60
- if (theme[_key]) {
61
- draft[_key] = theme[_key];
62
- }
63
- }
64
- });
65
- }
66
- };
67
- var LMConfig = function () {
68
- var _global = window;
69
- if (_global['_CONFIG_']) {
70
- return _global['_CONFIG_'];
71
- } else {
72
- _global['_CONFIG_'] = Config;
73
- lock();
74
- return Config;
75
- }
76
- }();
77
- export default LMConfig;
@@ -1,65 +0,0 @@
1
- export type AppItemType = {
2
- id: string;
3
- routerPrefix: string;
4
- version: string;
5
- status: 0 | 1 | 2; //App状态1:正常,2:下架,0:删除,微应用下架或者删除时对应的功能项全部停用
6
- resource: string[]; //App对应脚本静态资源文件路径[js,css]
7
- icon: string;
8
- name: string;
9
- ext?: any;
10
- html: string;
11
- devHtml?: string;
12
- };
13
- export type FeatureItemType = {
14
- id: string;
15
- appId: string;
16
- name: string;
17
- status: 0 | 1 | 2; //功能项状态1,正常,2,停用,0删除,当App更新了版后是可能出现功能项缩减的情况
18
- type: 1 | 2 | 3; //功能类型1:实际菜单,2:权限,3:虚拟分组
19
- interfaceCodes: string[];
20
- icon: string;
21
- routerUrl: string;
22
- sort: number;
23
- children?: FeatureItemType[];
24
- parentId?: string;
25
- level?: number;
26
- functionName?: string;
27
- };
28
-
29
- export type BSConfigType = {
30
- systemLogo: string;
31
- systemName: string;
32
- parterLogo: string[];
33
- loginBG: string;
34
- icp: string[];
35
- openSocket: boolean;
36
- chromeDownloadUrl: string;
37
- AppTimeOut: number;
38
- shortcut: string;
39
- download: { chrome: string; player: string };
40
- [key: string]: any;
41
- };
42
-
43
- export interface ThemeInfoType {
44
- vars: { [key: string]: string[] };
45
- style: {
46
- menuType: 'inline' | 'horizontal';
47
- hasTab: boolean;
48
- };
49
- }
50
-
51
- export type ConfigKey = 'app' | 'feature' | 'featureIds' | 'bs' | 'theme';
52
-
53
- export type ConfigJOSN = {
54
- app: { [key: string]: AppItemType };
55
- features: FeatureItemType[];
56
- featureIds: string[];
57
- bs: BSConfigType;
58
- theme: ThemeInfoType;
59
- registerAppConfig: (conf: AppItemType[]) => void;
60
- registerFeatrueIds: (conf: string[]) => void;
61
- registerBSConfig: (conf: BSConfigType) => void;
62
- registerPlatformFeature: (conf: FeatureItemType[]) => void;
63
- registerThemeConfig: (conf: ThemeInfoType) => void;
64
- [key: string]: any;
65
- };
@@ -1,4 +0,0 @@
1
- import { ThemeInfoType } from './interface';
2
- export declare function insertThemeStyle(options: ThemeInfoType): void;
3
- export declare function lock(): void;
4
- export declare function unlock(): void;
@@ -1,33 +0,0 @@
1
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
- 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."); }
3
- 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); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
- var style = document.createElement('style');
8
- var isInit = false;
9
- export function insertThemeStyle(options) {
10
- var tplStr = ':root{<content>}';
11
- var attrArr = Object.values(options.vars).flat();
12
- style.innerHTML = tplStr.replace('<content>', attrArr.reduce(function (a, b) {
13
- var _b$split = b.split(':'),
14
- _b$split2 = _slicedToArray(_b$split, 2),
15
- key = _b$split2[0],
16
- value = _b$split2[1];
17
- return a + "--".concat(key, ":").concat(value, ";\n");
18
- }, ''));
19
- if (!isInit) {
20
- isInit = true;
21
- document.head.appendChild(style);
22
- }
23
- }
24
- export function lock() {
25
- Object.defineProperty(window, '_CONFIG_', {
26
- writable: false
27
- });
28
- }
29
- export function unlock() {
30
- Object.defineProperty(window, '_CONFIG_', {
31
- writable: true
32
- });
33
- }
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- export interface IConfigContextProps {
3
- /**
4
- * @description 用于获取微应用顶层的dom节点
5
- */
6
- root: HTMLElement;
7
- }
8
- interface IProviderProps {
9
- getContainer: () => HTMLElement;
10
- children: React.ReactNode;
11
- }
12
- declare function Provider({ getContainer, children }: IProviderProps): JSX.Element;
13
- declare namespace Provider {
14
- var defaultProps: {
15
- getContainer: () => HTMLElement;
16
- };
17
- }
18
- declare const _default: {
19
- Context: React.Context<IConfigContextProps>;
20
- Provider: typeof Provider;
21
- };
22
- export default _default;
@@ -1,25 +0,0 @@
1
- import React, { useMemo } from 'react';
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- var Context = /*#__PURE__*/React.createContext(null);
4
- function Provider(_ref) {
5
- var getContainer = _ref.getContainer,
6
- children = _ref.children;
7
- var root = useMemo(function () {
8
- return getContainer();
9
- }, [getContainer]);
10
- return /*#__PURE__*/_jsx(Context.Provider, {
11
- value: {
12
- root: root
13
- },
14
- children: children
15
- });
16
- }
17
- Provider.defaultProps = {
18
- getContainer: function getContainer() {
19
- return document.body;
20
- }
21
- };
22
- export default {
23
- Context: Context,
24
- Provider: Provider
25
- };
@@ -1,12 +0,0 @@
1
- import { SelectProps } from 'antd';
2
- import React from 'react';
3
- import './index.less';
4
- interface ICustomRenderSelectProps extends SelectProps {
5
- children?: React.ReactNode;
6
- value: any;
7
- customRender: (value: any) => JSX.Element;
8
- onChange: (value: any) => void;
9
- selectAotoClose?: boolean;
10
- }
11
- declare function CustomRenderSelect({ children, value, customRender, popupClassName, getPopupContainer, onChange, selectAotoClose, ...props }: ICustomRenderSelectProps): JSX.Element;
12
- export default CustomRenderSelect;
@@ -1,83 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- import _useClickAway from "ahooks/es/useClickAway";
3
- import _useToggle3 from "ahooks/es/useToggle";
4
- var _excluded = ["children", "value", "customRender", "popupClassName", "getPopupContainer", "onChange", "selectAotoClose"];
5
- 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; }
6
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
8
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
9
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
10
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
- 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."); }
12
- 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); }
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
- function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
15
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
- 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; }
17
- 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; }
18
- import { Select } from 'antd';
19
- import React, { useMemo, useRef } from 'react';
20
- import uuid from "../uuid";
21
- import "./index.less";
22
- import { jsx as _jsx } from "react/jsx-runtime";
23
- import { jsxs as _jsxs } from "react/jsx-runtime";
24
- function CustomRenderSelect(_ref) {
25
- var children = _ref.children,
26
- value = _ref.value,
27
- customRender = _ref.customRender,
28
- popupClassName = _ref.popupClassName,
29
- getPopupContainer = _ref.getPopupContainer,
30
- onChange = _ref.onChange,
31
- _ref$selectAotoClose = _ref.selectAotoClose,
32
- selectAotoClose = _ref$selectAotoClose === void 0 ? true : _ref$selectAotoClose,
33
- props = _objectWithoutProperties(_ref, _excluded);
34
- var classname = useMemo(function () {
35
- return "custom-render-select-dropdown-".concat(uuid());
36
- }, []);
37
- var domRef = useRef(null);
38
- var _useToggle = _useToggle3(),
39
- _useToggle2 = _slicedToArray(_useToggle, 2),
40
- open = _useToggle2[0],
41
- _useToggle2$ = _useToggle2[1],
42
- toggle = _useToggle2$.toggle,
43
- set = _useToggle2$.set;
44
- var getDoms = useMemo(function () {
45
- return [function () {
46
- var _domRef$current;
47
- return (_domRef$current = domRef.current) === null || _domRef$current === void 0 ? void 0 : _domRef$current.querySelector('.custom-render-box');
48
- }, function () {
49
- return document.querySelector(".".concat(classname));
50
- }];
51
- }, [classname]);
52
- _useClickAway(function () {
53
- return set(false);
54
- }, getDoms, ['click']);
55
- var onSelectChange = function onSelectChange(v) {
56
- onChange === null || onChange === void 0 ? void 0 : onChange(v);
57
- if (selectAotoClose) {
58
- set(false);
59
- }
60
- };
61
- return /*#__PURE__*/_jsxs("div", {
62
- className: "custom-render-select",
63
- ref: domRef,
64
- children: [/*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({}, props), {}, {
65
- value: value,
66
- popupClassName: "custom-render-select-dropdown ".concat(classname, " ").concat(popupClassName),
67
- getPopupContainer: getPopupContainer ? getPopupContainer : function () {
68
- var _domRef$current$paren, _domRef$current2, _domRef$current2$pare;
69
- return (_domRef$current$paren = (_domRef$current2 = domRef.current) === null || _domRef$current2 === void 0 ? void 0 : (_domRef$current2$pare = _domRef$current2.parentElement) === null || _domRef$current2$pare === void 0 ? void 0 : _domRef$current2$pare.parentElement) !== null && _domRef$current$paren !== void 0 ? _domRef$current$paren : document.body;
70
- },
71
- open: open,
72
- onChange: onSelectChange,
73
- children: children
74
- })), /*#__PURE__*/_jsx("div", {
75
- className: "custom-render-box",
76
- onClick: toggle,
77
- children: customRender(value)
78
- }), /*#__PURE__*/_jsx("div", {
79
- className: "popup-container"
80
- })]
81
- });
82
- }
83
- export default CustomRenderSelect;
@@ -1,25 +0,0 @@
1
- .custom-render-select {
2
- position: relative;
3
- display: inline-block;
4
- width: max-content;
5
- overflow: hidden;
6
-
7
- .custom-render-box {
8
- position: relative;
9
- z-index: 22;
10
- display: inline-block;
11
-
12
-
13
- }
14
- .@{ant-prefix}-select{
15
- position: absolute;
16
- top:50%;
17
- left: 50%;
18
- width: max-content;
19
- height: 100%;
20
- opacity: 0;
21
- transform: translate(-50%,-50%);
22
-
23
- }
24
-
25
- }
@@ -1,25 +0,0 @@
1
- declare class DBInstance {
2
- LM_DB_SERVER: any;
3
- schemaName: string;
4
- version: number;
5
- constructor(schemaName: string);
6
- _init(): Promise<void>;
7
- get isClosed(): any;
8
- get({ id }: {
9
- id: string;
10
- }): Promise<{
11
- [key: string]: any;
12
- }>;
13
- put(data: {
14
- [key: string]: any;
15
- id: string;
16
- expireTime?: number;
17
- } & any): Promise<null>;
18
- remove(ids: string[]): Promise<any[]>;
19
- removeExpireData(): Promise<any[]>;
20
- clear(): Promise<any>;
21
- count(): Promise<any>;
22
- update(...args: any): Promise<any>;
23
- query(): Promise<any>;
24
- }
25
- export default DBInstance;