@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
package/.prettierrc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  pluginSearchDirs: false,
3
3
  plugins: [require.resolve('prettier-plugin-organize-imports'), require.resolve('prettier-plugin-packagejson')],
4
- printWidth: 140,
4
+ printWidth: 180,
5
5
  proseWrap: 'never',
6
6
  singleQuote: true,
7
7
  trailingComma: 'all',
@@ -0,0 +1,113 @@
1
+ // .stylelintrc.js
2
+ module.exports = {
3
+ processors: [],
4
+ plugins: ['stylelint-order'],
5
+ extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
6
+ rules: {
7
+ 'selector-class-pattern': [
8
+ // 命名规范 -
9
+ '^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',
10
+ {
11
+ message: 'Expected class selector to be kebab-case',
12
+ severity: 'warning',
13
+ },
14
+ ],
15
+ 'string-quotes': 'single', // 单引号
16
+ 'at-rule-empty-line-before': null,
17
+ 'at-rule-no-unknown': null,
18
+ 'at-rule-name-case': 'lower', // 指定@规则名的大小写
19
+ 'length-zero-no-unit': true, // 禁止零长度的单位(可自动修复)
20
+ 'shorthand-property-no-redundant-values': true, // 简写属性
21
+ 'number-leading-zero': 'never', // 小数不带0
22
+ 'declaration-block-no-duplicate-properties': true, // 禁止声明快重复属性
23
+ 'no-descending-specificity': [true, { severity: 'warning' }], // 禁止在具有较高优先级的选择器后出现被其覆盖的较低优先级的选择器。
24
+ 'no-duplicate-selectors': [true, { severity: 'warning' }], // 选择器内部重复
25
+ 'selector-max-id': 1, // 限制一个选择器中 ID 选择器的数量
26
+ 'max-nesting-depth': 10, // 选择器层级
27
+ indentation: [
28
+ 2,
29
+ {
30
+ // 指定缩进 warning 提醒
31
+ severity: 'warning',
32
+ },
33
+ ],
34
+ 'order/properties-order': [
35
+ // 规则顺序
36
+ 'position',
37
+ 'top',
38
+ 'right',
39
+ 'bottom',
40
+ 'left',
41
+ 'z-index',
42
+ 'display',
43
+ 'float',
44
+ 'width',
45
+ 'height',
46
+ 'max-width',
47
+ 'max-height',
48
+ 'min-width',
49
+ 'min-height',
50
+ 'padding',
51
+ 'padding-top',
52
+ 'padding-right',
53
+ 'padding-bottom',
54
+ 'padding-left',
55
+ 'margin',
56
+ 'margin-top',
57
+ 'margin-right',
58
+ 'margin-bottom',
59
+ 'margin-left',
60
+ 'margin-collapse',
61
+ 'margin-top-collapse',
62
+ 'margin-right-collapse',
63
+ 'margin-bottom-collapse',
64
+ 'margin-left-collapse',
65
+ 'overflow',
66
+ 'overflow-x',
67
+ 'overflow-y',
68
+ 'clip',
69
+ 'clear',
70
+ 'font',
71
+ 'font-family',
72
+ 'font-size',
73
+ 'font-smoothing',
74
+ 'osx-font-smoothing',
75
+ 'font-style',
76
+ 'font-weight',
77
+ 'line-height',
78
+ 'letter-spacing',
79
+ 'word-spacing',
80
+ 'color',
81
+ 'text-align',
82
+ 'text-decoration',
83
+ 'text-indent',
84
+ 'text-overflow',
85
+ 'text-rendering',
86
+ 'text-size-adjust',
87
+ 'text-shadow',
88
+ 'text-transform',
89
+ 'word-break',
90
+ 'word-wrap',
91
+ 'white-space',
92
+ 'vertical-align',
93
+ 'list-style',
94
+ 'list-style-type',
95
+ 'list-style-position',
96
+ 'list-style-image',
97
+ 'pointer-events',
98
+ 'cursor',
99
+ 'background',
100
+ 'background-color',
101
+ 'border',
102
+ 'border-radius',
103
+ 'content',
104
+ 'outline',
105
+ 'outline-offset',
106
+ 'opacity',
107
+ 'filter',
108
+ 'visibility',
109
+ 'size',
110
+ 'transform',
111
+ ],
112
+ },
113
+ };
@@ -20,10 +20,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
20
20
 
21
21
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
22
 
23
+ import { isEmpty } from 'lodash-es';
23
24
  import React, { useCallback, useMemo, useState } from 'react';
24
- import Sync from "./Sync";
25
25
  import * as Static from "./static";
26
- import { isEmpty } from 'lodash-es';
26
+ import Sync from "./Sync";
27
27
  import { jsx as _jsx } from "react/jsx-runtime";
28
28
  import { jsxs as _jsxs } from "react/jsx-runtime";
29
29
  var _USER_SESSION_ = Static._USER_SESSION_,
@@ -177,8 +177,7 @@ function Provider(_ref) {
177
177
  storeChange: storeChange
178
178
  })]
179
179
  });
180
- } // eslint-disable-next-line import/no-anonymous-default-export
181
-
180
+ }
182
181
 
183
182
  export default {
184
183
  Provider: Provider,
@@ -1,19 +1,21 @@
1
1
  .info-box-layout {
2
+ display: flex;
2
3
  width: 100%;
3
4
  margin-bottom: 20px;
4
- display: flex;
5
5
  flex-direction: column;
6
+
6
7
  .info-box-title-wrapper {
7
- background-color: var(--gray2);
8
- border: 1px solid var(--gray3);
9
- border-bottom: none;
8
+ display: flex;
10
9
  height: 3em;
11
10
  min-height: max-content;
12
- display: flex;
13
- align-items: center;
14
11
  padding: 0 10px;
15
12
  font-weight: 700;
13
+ background-color: var(--gray2);
14
+ border: 1px solid var(--gray3);
15
+ border-bottom: none;
16
+ align-items: center;
16
17
  }
18
+
17
19
  .info-box-content-wrapper {
18
20
  background-color: var(--gray1);
19
21
  border: 1px solid var(--gray3);
@@ -1,70 +1,80 @@
1
1
  .two-column-layout-container {
2
+ position: relative;
2
3
  width: 100%;
3
4
  height: 100%;
4
- position: relative;
5
5
  color: var(--color1);
6
+
6
7
  .two-column-aside {
7
- transition: width 0.1s ease-in;
8
- width: 30%;
9
- height: 100%;
10
- z-index: 9;
11
8
  position: absolute;
12
- left: 0;
13
9
  top: 0;
14
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
10
+ left: 0;
11
+ z-index: 9;
12
+ width: 30%;
13
+ height: 100%;
14
+ transition: width .1s ease-in;
15
+ box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
16
+
15
17
  .two-colum-left-wrapper {
16
18
  width: 100%;
17
19
  height: 100%;
18
20
  overflow: hidden;
19
21
  }
22
+
20
23
  .two-colum-left-content {
21
24
  width: 100%;
22
25
  height: 100%;
23
26
  background-color: var(--gray1);
24
27
  }
28
+
25
29
  .left-aside-slider-btn {
26
30
  position: absolute;
31
+ top: 50%;
32
+ right: -8px;
33
+ z-index: 9;
27
34
  width: 8px;
28
35
  height: 20px;
29
- right: -8px;
30
- top: 50%;
31
36
  margin-top: -8px;
32
37
  font-size: var(--fs-large);
33
- background-color: var(--gray5);
34
38
  cursor: pointer;
35
- z-index: 9;
36
- &:before,
37
- &:after {
38
- content: '';
39
+ background-color: var(--gray5);
40
+
41
+ &::before,
42
+ &::after {
43
+ position: absolute;
44
+ z-index: 2;
39
45
  width: 1px;
40
46
  height: 16px;
41
- z-index: 2;
42
47
  background-color: var(--gray1);
43
- position: absolute;
48
+ content: '';
44
49
  }
45
- &:before {
46
- left: 2px;
50
+
51
+ &::before {
47
52
  bottom: 2px;
53
+ left: 2px;
48
54
  }
49
- &:after {
50
- right: 2px;
55
+
56
+ &::after {
51
57
  top: 2px;
58
+ right: 2px;
52
59
  }
53
60
  }
61
+
54
62
  &.hide-left-aside {
55
63
  width: 0;
64
+
56
65
  & + .two-column-content {
57
66
  padding-left: 0;
58
67
  }
59
68
  }
60
69
  }
70
+
61
71
  .two-column-content {
62
72
  width: 100%;
63
73
  height: 100%;
64
- overflow: hidden;
65
74
  padding-left: 30%;
75
+ overflow: hidden;
66
76
  background-color: var(--gray2);
67
- transition: padding-left 0.3s ease-in-out;
77
+ transition: padding-left .3s ease-in-out;
68
78
  box-sizing: border-box;
69
79
  }
70
80
  }
package/es/Box/index.less CHANGED
@@ -4,7 +4,7 @@
4
4
  background-color: var(--gray1);
5
5
 
6
6
  .single-column-content {
7
- margin: 0 auto;
8
7
  height: 100%;
8
+ margin: 0 auto;
9
9
  }
10
10
  }
@@ -1,50 +1,53 @@
1
1
  .c-check-group-layout {
2
2
  position: relative;
3
+
3
4
  .c-check-group-box {
4
- padding: 10px;
5
5
  display: flex;
6
+ padding: 10px;
6
7
  }
8
+
7
9
  .check-label-box {
8
10
  width: 80px;
9
11
  color: #999;
10
12
  }
13
+
11
14
  .check-content-box {
12
15
  width: 100%;
13
- flex: 1;
14
- overflow: hidden;
15
16
  height: 30px;
17
+ overflow: hidden;
18
+ flex: 1;
16
19
  .@{ant-prefix}-checkbox-group {
17
20
  display: grid;
18
21
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
19
- grid-row-gap: 10px;
20
- grid-column-gap: 10px;
22
+ grid-gap: 10px;
21
23
  .@{ant-prefix}-checkbox-wrapper {
24
+ display: flex;
22
25
  width: 120px;
23
- margin-left: 0;
24
26
  height: 30px;
25
- display: flex;
27
+ margin-left: 0;
26
28
  > span:not(.@{ant-prefix}-checkbox) {
27
- flex: 1;
28
- overflow: hidden;
29
- white-space: nowrap;
30
29
  overflow: hidden;
31
30
  text-overflow: ellipsis;
31
+ white-space: nowrap;
32
+ flex: 1;
32
33
  }
33
34
  }
34
35
  }
35
36
  }
37
+
36
38
  .sider-mask {
37
39
  position: fixed;
40
+ top: 0;
41
+ left: 0;
38
42
  z-index: 98;
39
43
  width: 100%;
40
44
  height: 100%;
41
- left: 0;
42
- top: 0;
43
45
  }
46
+
44
47
  .slice-btn {
45
- color: var(--primary);
46
- cursor: pointer;
47
48
  position: relative;
48
49
  top: 4px;
50
+ color: var(--primary);
51
+ cursor: pointer;
49
52
  }
50
53
  }
@@ -1,22 +1,22 @@
1
1
  .custom-render-select {
2
- display: inline-block;
3
2
  position: relative;
3
+ display: inline-block;
4
4
  width: max-content;
5
5
  overflow: hidden;
6
+
6
7
  .custom-render-box {
7
- display: inline-block;
8
8
  position: relative;
9
9
  z-index: 22;
10
- &:hover{
11
-
12
- }
10
+ display: inline-block;
11
+
12
+
13
13
  }
14
14
  .@{ant-prefix}-select{
15
15
  position: absolute;
16
+ top:50%;
17
+ left: 50%;
16
18
  width: max-content;
17
19
  height: 100%;
18
- left: 50%;
19
- top:50%;
20
20
  opacity: 0;
21
21
  transform: translate(-50%,-50%);
22
22
 
@@ -1,9 +1,9 @@
1
1
  .disable-mark {
2
2
  position: absolute;
3
- cursor: not-allowed;
4
- width: 100%;
5
- height: 100%;
6
3
  top: 0;
7
4
  left: 0;
8
5
  z-index: 999;
6
+ width: 100%;
7
+ height: 100%;
8
+ cursor: not-allowed;
9
9
  }
@@ -9,7 +9,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
9
9
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
10
 
11
11
  import React, { useEffect, useImperativeHandle, useRef } from 'react';
12
- import { getPosition, getMouseXY } from "./utils";
12
+ import { getMouseXY, getPosition } from "./utils";
13
13
  import { jsx as _jsx } from "react/jsx-runtime";
14
14
 
15
15
  function DomMove(_ref) {
@@ -123,8 +123,8 @@ function DomMove(_ref) {
123
123
  });
124
124
 
125
125
  var _ref3 = onDrag ? {
126
- x: position.x,
127
- y: position.y
126
+ x: position === null || position === void 0 ? void 0 : position.x,
127
+ y: position === null || position === void 0 ? void 0 : position.y
128
128
  } : {
129
129
  x: ref.current.position.x,
130
130
  y: ref.current.position.y
@@ -137,8 +137,8 @@ function DomMove(_ref) {
137
137
  className: "drag-move-Content ".concat(className),
138
138
  style: {
139
139
  transform: "translate(".concat(x, "px,").concat(y, "px)"),
140
- width: size.width,
141
- height: size.height
140
+ width: size === null || size === void 0 ? void 0 : size.width,
141
+ height: size === null || size === void 0 ? void 0 : size.height
142
142
  },
143
143
  children: children
144
144
  });
@@ -18,8 +18,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
18
18
 
19
19
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
20
 
21
- import React, { useState, useCallback } from 'react';
22
- import { useRef, useMemo } from 'react';
21
+ import React, { useCallback, useMemo, useRef, useState } from 'react';
23
22
 
24
23
  function DragAndDropItem(_ref) {
25
24
  var children = _ref.children,
@@ -16,8 +16,8 @@ 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
- import React, { useState, useCallback } from 'react';
20
- import { useRef } from 'react';
19
+ /* eslint-disable @typescript-eslint/no-unused-expressions */
20
+ import React, { useCallback, useRef, useState } from 'react';
21
21
 
22
22
  function DropItem(_ref) {
23
23
  var children = _ref.children,
@@ -1,7 +1,9 @@
1
- import DragAndDropItem from './DragAndDropItem';
2
- import DropItem from './DropItem';
3
- declare const Drag: {
4
- DragAndDropItem: typeof DragAndDropItem;
5
- DropItem: typeof DropItem;
6
- };
7
- export default Drag;
1
+ import React from 'react';
2
+ import { IDragAndDropItemProps, IDropItemProps } from './interface';
3
+
4
+ interface IDragInterface<T> {
5
+ DragAndDropItemProps: React.FC<IDragAndDropItemProps<T>>;
6
+ DropItem: React.FC<IDropItemProps<T>>;
7
+ }
8
+
9
+ export default IDragInterface;
@@ -26,12 +26,11 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
26
26
 
27
27
  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; }
28
28
 
29
- import Footer from "./Footer";
30
29
  import React, { useContext, useEffect, useImperativeHandle, useMemo, useState } from 'react';
31
30
  import * as ReactDOMClient from 'react-dom/client';
32
- import CC from "../ConfigContext";
31
+ import { default as CC, default as ConfigContext } from "../ConfigContext";
32
+ import Footer from "./Footer";
33
33
  import "./index.less";
34
- import ConfigContext from "../ConfigContext";
35
34
  import { jsx as _jsx } from "react/jsx-runtime";
36
35
 
37
36
  function Drawer(_ref) {
@@ -99,6 +98,23 @@ function useDrawer() {
99
98
  onRecoverableError: console.error
100
99
  });
101
100
  }, []);
101
+
102
+ var open = function open(options) {
103
+ setState(function (old) {
104
+ return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
105
+ visible: true
106
+ });
107
+ });
108
+ };
109
+
110
+ var close = function close() {
111
+ setState(function (old) {
112
+ return _objectSpread(_objectSpread({}, old), {}, {
113
+ visible: false
114
+ });
115
+ });
116
+ };
117
+
102
118
  useEffect(function () {
103
119
  container.appendChild(div);
104
120
  return function () {
@@ -126,23 +142,6 @@ function useDrawer() {
126
142
  })
127
143
  }));
128
144
  }, [state.content, state.visible, state.title, state.onOk, state.width, state.className]);
129
-
130
- var open = function open(options) {
131
- setState(function (old) {
132
- return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
133
- visible: true
134
- });
135
- });
136
- };
137
-
138
- var close = function close() {
139
- setState(function (old) {
140
- return _objectSpread(_objectSpread({}, old), {}, {
141
- visible: false
142
- });
143
- });
144
- };
145
-
146
145
  return {
147
146
  open: open,
148
147
  close: close
@@ -5,36 +5,36 @@
5
5
  height: 100%;
6
6
  }
7
7
  .@{ant-prefix}-drawer-header {
8
+ position: relative;
8
9
  display: flex;
9
- justify-content: space-between;
10
- align-items: center;
10
+ height: var(--drawer-title-height);
11
11
  padding: 0 24px;
12
12
  color: inherit;
13
- height: var(--drawer-title-height);
14
13
  background-color: var(--drawer-title-bg);
14
+ justify-content: space-between;
15
+ align-items: center;
15
16
  border-bottom-color: var(--drawer-divider-color);
16
- position: relative;
17
17
  .@{ant-prefix}-drawer-title {
18
- color: inherit;
19
18
  font-size: var(--fs-large);
20
19
  line-height: 2em;
20
+ color: inherit;
21
21
  }
22
22
  .@{ant-prefix}-drawer-close {
23
- padding: 0;
24
23
  position: absolute;
25
24
  right: 0;
25
+ padding: 0;
26
26
  color: inherit;
27
27
  }
28
28
  }
29
29
  .@{ant-prefix}-drawer-body {
30
+ overflow: auto;
30
31
  background: var(--drawer-content-bg);
31
32
  flex: 1;
32
- overflow: auto;
33
33
  }
34
34
  .@{ant-prefix}-drawer-footer {
35
35
  height: var(--drawer-footer-height);
36
- overflow: hidden;
37
36
  padding: 0 24px;
37
+ overflow: hidden;
38
38
  line-height: var(--drawer-footer-height);
39
39
  background: var(--drawer-footer-bg);
40
40
  border-top-color: var(--drawer-divider-color);
@@ -1,9 +1,10 @@
1
1
  import type { DrawerProps } from 'antd';
2
+ import React from 'react';
2
3
 
3
4
  export interface IDrawerProps extends DrawerProps {
4
5
  cancelText?: string;
5
6
 
6
- onOk?: (e: any) => void;
7
+ onOk?: (e: React.MouseEvent) => void;
7
8
 
8
9
  /**
9
10
  * @description 确认按钮文本
@@ -14,8 +15,8 @@ export interface IDrawerProps extends DrawerProps {
14
15
  }
15
16
 
16
17
  export interface IFooterProps {
17
- onClose: (e: any) => void;
18
+ onClose: (e: React.MouseEvent) => void;
18
19
  cancelText: string;
19
20
  okText: string;
20
- onOk: (e: any) => void;
21
+ onOk: (e: React.MouseEvent) => void;
21
22
  }
@@ -4,9 +4,11 @@
4
4
  width: 100%;
5
5
  height: 100%;
6
6
  border: 1px solid var(--gray2);
7
+
7
8
  .dynamic-list-item {
8
9
  padding: 0 10px;
9
10
  }
11
+
10
12
  .l-c-dynamic-box {
11
13
  flex: 1;
12
14
  overflow: auto;
@@ -1,13 +1,15 @@
1
1
  .tools-screen-layer {
2
- flex: 1;
3
- align-self: center;
4
- text-align: center;
5
- font-size: var(--fs-small);
6
2
  position: relative;
3
+ font-size: var(--fs-small);
4
+ text-align: center;
7
5
  cursor: pointer;
6
+ flex: 1;
7
+ align-self: center;
8
+
8
9
  .anticon {
9
10
  padding-right: 5px;
10
11
  }
12
+
11
13
  .defualt-fullscreen-icon {
12
14
  position: relative;
13
15
  top: 1px;
@@ -34,7 +34,7 @@ var GridList = /*#__PURE__*/React.forwardRef(function GridList(props, ref) {
34
34
  style: {
35
35
  height: cell.height,
36
36
  // maxWidth: cell.width,
37
- width: "100%",
37
+ width: '100%',
38
38
  gridColumnStart: "".concat(cell.columnNumber),
39
39
  gridRowStart: getGridRowStart(cell, renderData)
40
40
  },
@@ -1,8 +1,8 @@
1
1
  .cloudapp-grid-list {
2
2
  width: 100%;
3
3
  height: 100%;
4
- overflow: auto;
5
4
  padding: 20px;
5
+ overflow: auto;
6
6
  contain: strict;
7
7
  box-sizing: border-box;
8
8
  }
@@ -2,9 +2,10 @@
2
2
  width: 100%;
3
3
  height: 100%;
4
4
  object-fit: cover;
5
+
5
6
  &.lm-t-c-image-card-placeholder {
7
+ padding: 20%;
6
8
  background-color: var(--gray4);
7
9
  object-fit: contain;
8
- padding: 20%;
9
10
  }
10
11
  }
@@ -5,8 +5,8 @@
5
5
  .@{ant-prefix}-input-prefix,
6
6
  .@{ant-prefix}-input-suffix {
7
7
  > i {
8
- color: var(--icon);
9
8
  font-size: 16px;
9
+ color: var(--icon);
10
10
  }
11
11
  }
12
12
  }