@cloud-app-dev/vidc 3.2.16 → 3.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) 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/DynamicGridList/Demo.js +1 -1
  18. package/es/DynamicList/index.less +2 -0
  19. package/es/FullScreen/index.less +6 -4
  20. package/es/GridList/Demo.js +2 -2
  21. package/es/GridList/index.js +2 -1
  22. package/es/GridList/index.less +1 -1
  23. package/es/ImageView/index.less +2 -1
  24. package/es/Input/index.less +1 -1
  25. package/es/LabelValue/index.less +5 -2
  26. package/es/List/index.less +2 -2
  27. package/es/ListWithSizeAnimate/demo.js +0 -1
  28. package/es/ListWithSizeAnimate/index.js +18 -28
  29. package/es/ListWithSizeAnimate/index.less +10 -6
  30. package/es/Map/BasicMap/index.less +8 -3
  31. package/es/Map/ClusterLayer/index.less +8 -6
  32. package/es/Map/FindPio/index.less +2 -2
  33. package/es/Map/LevelCenter/index.js +3 -4
  34. package/es/Map/MapDrawSelect/index.js +2 -3
  35. package/es/Map/ResetTools/index.less +10 -6
  36. package/es/Map/SinglePoint/index.less +3 -3
  37. package/es/Map/useMarker/index.js +1 -1
  38. package/es/Modal/index.js +17 -17
  39. package/es/Modal/index.less +10 -11
  40. package/es/Picture/component/DefaultRects/index.js +3 -1
  41. package/es/Picture/component/DefaultRects/index.less +51 -28
  42. package/es/Picture/component/DrawRect/index.js +3 -1
  43. package/es/Picture/component/DrawRect/index.less +2 -2
  44. package/es/Picture/component/RectMenu/index.less +11 -6
  45. package/es/Picture/component/Tools/index.js +1 -1
  46. package/es/Picture/component/Tools/index.less +12 -6
  47. package/es/Picture/index.js +50 -26
  48. package/es/Picture/index.less +3 -2
  49. package/es/Picture/useDraw.js +1 -1
  50. package/es/Picture/utils.js +35 -34
  51. package/es/Player/api/index.js +67 -35
  52. package/es/Player/contraller_bar/contraller_event.js +4 -4
  53. package/es/Player/contraller_bar/left_bar.js +12 -10
  54. package/es/Player/empty.js +6 -0
  55. package/es/Player/event/errorEvent.js +7 -8
  56. package/es/Player/event/index.js +1 -1
  57. package/es/Player/fps_play.js +10 -8
  58. package/es/Player/frontend_player.js +13 -10
  59. package/es/Player/frontend_timeline.js +41 -41
  60. package/es/Player/live_heart.js +15 -5
  61. package/es/Player/message.js +5 -5
  62. package/es/Player/segment_player.js +31 -24
  63. package/es/Player/segment_timeline.js +71 -71
  64. package/es/Player/single_player.js +17 -21
  65. package/es/Player/style/bar.less +13 -9
  66. package/es/Player/style/index.less +8 -4
  67. package/es/Player/style/message.less +22 -16
  68. package/es/Player/style/slider.less +40 -37
  69. package/es/Player/style/timeline.less +43 -33
  70. package/es/Player/style/volume.less +7 -4
  71. package/es/Player/timeline.js +16 -8
  72. package/es/Player/util.js +82 -58
  73. package/es/PlayerExt/index.less +2 -2
  74. package/es/Progress/index.d.ts +8 -11
  75. package/es/Progress/index.less +5 -4
  76. package/es/ROI/index.less +8 -4
  77. package/es/ScreenPlayer/index.less +49 -26
  78. package/es/TableLayout/index.less +1 -1
  79. package/es/ThemeAntd/demo.less +4 -3
  80. package/es/ThemeAntd/index.less +12 -12
  81. package/es/ThemeAntd/style/button.less +4 -4
  82. package/es/ThemeAntd/style/checkbox.less +3 -3
  83. package/es/ThemeAntd/style/input.less +7 -7
  84. package/es/ThemeAntd/style/pagination.less +4 -4
  85. package/es/ThemeAntd/style/picker.less +5 -5
  86. package/es/ThemeAntd/style/radio.less +2 -2
  87. package/es/ThemeAntd/style/scrollbar.less +5 -3
  88. package/es/ThemeAntd/style/select.less +8 -8
  89. package/es/ThemeAntd/style/table.less +4 -4
  90. package/es/Tree/index.less +13 -12
  91. package/es/VList/index.d.ts +12 -18
  92. package/es/useSimpleState/index.js +1 -1
  93. package/package.json +12 -6
  94. package/tsconfig.json +12 -0
  95. package/es/Api/index.d.ts +0 -12
  96. package/es/AppContext/Sync.d.ts +0 -8
  97. package/es/AppContext/index.d.ts +0 -10
  98. package/es/AppContext/static.d.ts +0 -8
  99. package/es/Auth/index.d.ts +0 -8
  100. package/es/AutoExit/index.d.ts +0 -6
  101. package/es/Box/BetweenBox/index.d.ts +0 -12
  102. package/es/Box/InfoBox/index.d.ts +0 -12
  103. package/es/Box/TwoColumnBox/index.d.ts +0 -10
  104. package/es/Box/deps/content-grid.d.ts +0 -9
  105. package/es/Box/deps/grid-factory.d.ts +0 -10
  106. package/es/Box/deps/simple-grid.d.ts +0 -9
  107. package/es/Box/index.d.ts +0 -14
  108. package/es/CheckGroupFixed/demo.d.ts +0 -3
  109. package/es/CheckGroupFixed/index.d.ts +0 -18
  110. package/es/Config/index.d.ts +0 -4
  111. package/es/Config/utils.d.ts +0 -4
  112. package/es/ConfigContext/index.d.ts +0 -22
  113. package/es/CustomRenderSelect/index.d.ts +0 -12
  114. package/es/DisableMark/index.d.ts +0 -9
  115. package/es/DomMove/demo.d.ts +0 -2
  116. package/es/DomMove/index.d.ts +0 -16
  117. package/es/DomMove/utils.d.ts +0 -8
  118. package/es/Drag/DragAndDropItem.d.ts +0 -4
  119. package/es/Drag/DropItem.d.ts +0 -4
  120. package/es/Drag/index.less +0 -0
  121. package/es/Drawer/Footer.d.ts +0 -5
  122. package/es/Drawer/demo.d.ts +0 -3
  123. package/es/Drawer/index.d.ts +0 -38
  124. package/es/DynamicGridList/Demo.d.ts +0 -3
  125. package/es/DynamicGridList/index.d.ts +0 -27
  126. package/es/DynamicList/demo.d.ts +0 -2
  127. package/es/DynamicList/index.d.ts +0 -31
  128. package/es/DynamicList/utils.d.ts +0 -4
  129. package/es/ErrorFallback/index.d.ts +0 -9
  130. package/es/FrontendPlayer/index.d.ts +0 -2
  131. package/es/FullScreen/index.d.ts +0 -22
  132. package/es/GridList/Demo.d.ts +0 -3
  133. package/es/GridList/data.d.ts +0 -16
  134. package/es/GridList/hook.d.ts +0 -13
  135. package/es/GridList/index.d.ts +0 -15
  136. package/es/GridList/utils.d.ts +0 -9
  137. package/es/HightLevel/index.d.ts +0 -9
  138. package/es/IconFont/index.d.ts +0 -12
  139. package/es/ImageView/index.d.ts +0 -17
  140. package/es/Input/demo.d.ts +0 -3
  141. package/es/Input/index.d.ts +0 -19
  142. package/es/InstanceHistory/index.d.ts +0 -3
  143. package/es/LabelValue/index.d.ts +0 -23
  144. package/es/List/demo.d.ts +0 -3
  145. package/es/List/index.d.ts +0 -41
  146. package/es/ListWithSizeAnimate/demo.d.ts +0 -2
  147. package/es/ListWithSizeAnimate/index.d.ts +0 -15
  148. package/es/LoaderApp/index.d.ts +0 -31
  149. package/es/LoaderApp/loader.d.ts +0 -19
  150. package/es/LoaderApp/sandbox.back.d.ts +0 -18
  151. package/es/LoaderApp/sandbox.d.ts +0 -12
  152. package/es/LoaderApp/utils.d.ts +0 -19
  153. package/es/LoaderScript/index.d.ts +0 -26
  154. package/es/LoaderScript/utils.d.ts +0 -14
  155. package/es/Map/BasicMap/AMapInstance.d.ts +0 -19
  156. package/es/Map/BasicMap/LeafletInstance.d.ts +0 -18
  157. package/es/Map/BasicMap/index.d.ts +0 -9
  158. package/es/Map/ClusterLayer/hook.d.ts +0 -5
  159. package/es/Map/ClusterLayer/index.d.ts +0 -6
  160. package/es/Map/Config/index.d.ts +0 -7
  161. package/es/Map/Config/utils.d.ts +0 -2
  162. package/es/Map/Context/index.d.ts +0 -11
  163. package/es/Map/FindPio/index.d.ts +0 -4
  164. package/es/Map/InfoWindow/MakerLikeWindow.d.ts +0 -4
  165. package/es/Map/InfoWindow/demo.d.ts +0 -3
  166. package/es/Map/InfoWindow/index.d.ts +0 -10
  167. package/es/Map/LevelCenter/DragMarker/index.d.ts +0 -10
  168. package/es/Map/LevelCenter/demo.d.ts +0 -3
  169. package/es/Map/LevelCenter/index.d.ts +0 -16
  170. package/es/Map/LevelCenter/index.less +0 -2
  171. package/es/Map/LoaderMap/index.d.ts +0 -12
  172. package/es/Map/MapDrawSelect/demo.d.ts +0 -3
  173. package/es/Map/MapDrawSelect/index.d.ts +0 -16
  174. package/es/Map/MapDrawSelect/index.less +0 -2
  175. package/es/Map/MouseTool/index.d.ts +0 -10
  176. package/es/Map/MouseTool/useMouseTools.d.ts +0 -7
  177. package/es/Map/ResetTools/index.d.ts +0 -10
  178. package/es/Map/SinglePoint/index.d.ts +0 -27
  179. package/es/Map/hook/useMapEvent.d.ts +0 -2
  180. package/es/Map/hook/useMapType.d.ts +0 -4
  181. package/es/Map/icon.d.ts +0 -2
  182. package/es/Map/index.d.ts +0 -24
  183. package/es/Map/useMarker/index.d.ts +0 -11
  184. package/es/Map/useMarker/index.less +0 -0
  185. package/es/Map/withMap/index.d.ts +0 -3
  186. package/es/Modal/demo.d.ts +0 -3
  187. package/es/Modal/index.d.ts +0 -44
  188. package/es/Picture/component/DefaultRects/RectInfo.d.ts +0 -8
  189. package/es/Picture/component/DefaultRects/index.d.ts +0 -13
  190. package/es/Picture/component/DefaultRects/utils.d.ts +0 -2
  191. package/es/Picture/component/DrawRect/index.d.ts +0 -13
  192. package/es/Picture/component/RectMenu/index.d.ts +0 -12
  193. package/es/Picture/component/RectMenu/utils.d.ts +0 -12
  194. package/es/Picture/component/Tools/index.d.ts +0 -13
  195. package/es/Picture/component/WheelScale/index.d.ts +0 -7
  196. package/es/Picture/demo.d.ts +0 -2
  197. package/es/Picture/dragBound.d.ts +0 -5
  198. package/es/Picture/index.d.ts +0 -19
  199. package/es/Picture/loadCaptureRectImage.d.ts +0 -8
  200. package/es/Picture/useDraw.d.ts +0 -1
  201. package/es/Picture/utils.d.ts +0 -21
  202. package/es/Player/api/index.d.ts +0 -68
  203. package/es/Player/context.d.ts +0 -21
  204. package/es/Player/contraller_bar/bar.d.ts +0 -8
  205. package/es/Player/contraller_bar/contraller_event.d.ts +0 -6
  206. package/es/Player/contraller_bar/index.d.ts +0 -14
  207. package/es/Player/contraller_bar/left_bar.d.ts +0 -10
  208. package/es/Player/contraller_bar/right_bar.d.ts +0 -8
  209. package/es/Player/contraller_bar/time.d.ts +0 -3
  210. package/es/Player/contraller_bar/useBarStatus.d.ts +0 -2
  211. package/es/Player/contraller_bar/volume.d.ts +0 -9
  212. package/es/Player/demo.d.ts +0 -3
  213. package/es/Player/event/errorEvent.d.ts +0 -16
  214. package/es/Player/event/eventName.d.ts +0 -18
  215. package/es/Player/event/index.d.ts +0 -24
  216. package/es/Player/fps_play.d.ts +0 -11
  217. package/es/Player/frontend_player.d.ts +0 -8
  218. package/es/Player/frontend_timeline.d.ts +0 -10
  219. package/es/Player/iconfont.d.ts +0 -5
  220. package/es/Player/index.d.ts +0 -2
  221. package/es/Player/live_heart.d.ts +0 -8
  222. package/es/Player/message.d.ts +0 -5
  223. package/es/Player/segment_player.d.ts +0 -9
  224. package/es/Player/segment_timeline.d.ts +0 -12
  225. package/es/Player/single_player.d.ts +0 -5
  226. package/es/Player/timeline.d.ts +0 -5
  227. package/es/Player/util.d.ts +0 -28
  228. package/es/PlayerExt/demo.d.ts +0 -3
  229. package/es/PlayerExt/index.d.ts +0 -48
  230. package/es/ROI/demo.d.ts +0 -3
  231. package/es/ROI/index.d.ts +0 -39
  232. package/es/ROI/utils.d.ts +0 -1
  233. package/es/ScreenPlayer/Live.d.ts +0 -10
  234. package/es/ScreenPlayer/LiveTools.d.ts +0 -29
  235. package/es/ScreenPlayer/PlayerWithExt.d.ts +0 -34
  236. package/es/ScreenPlayer/RatePick.d.ts +0 -7
  237. package/es/ScreenPlayer/Record.d.ts +0 -10
  238. package/es/ScreenPlayer/RecordTools.d.ts +0 -37
  239. package/es/ScreenPlayer/ScreenSelect.d.ts +0 -7
  240. package/es/ScreenPlayer/SegmentTimeLine.d.ts +0 -17
  241. package/es/ScreenPlayer/TimeMode.d.ts +0 -7
  242. package/es/ScreenPlayer/TimeSelect.d.ts +0 -7
  243. package/es/ScreenPlayer/demo.d.ts +0 -2
  244. package/es/ScreenPlayer/demo2.d.ts +0 -2
  245. package/es/ScreenPlayer/index.d.ts +0 -6
  246. package/es/ScreenPlayer/useTimeSlider.d.ts +0 -25
  247. package/es/ScreenPlayer/useVideoFit.d.ts +0 -5
  248. package/es/ScreenPlayer/utils.d.ts +0 -19
  249. package/es/SegmentPlayer/index.d.ts +0 -2
  250. package/es/Service/fetch-adapter.d.ts +0 -12
  251. package/es/Service/http.d.ts +0 -6
  252. package/es/Service/index.d.ts +0 -3
  253. package/es/Service/middleware.d.ts +0 -5
  254. package/es/TableLayout/index.d.ts +0 -13
  255. package/es/ThemeAntd/demo.d.ts +0 -4
  256. package/es/ThemeAntd/index.d.ts +0 -7
  257. package/es/Timeout/index.d.ts +0 -32
  258. package/es/Tree/demo.d.ts +0 -3
  259. package/es/Tree/index.d.ts +0 -24
  260. package/es/VList/utils.d.ts +0 -14
  261. package/es/index.d.ts +0 -52
  262. package/es/useDrawROI/index.d.ts +0 -16
  263. package/es/useEventEmitterHandle/index.d.ts +0 -2
  264. package/es/useFullscreen/demo.d.ts +0 -2
  265. package/es/useFullscreen/index.d.ts +0 -12
  266. package/es/useHistory/index.d.ts +0 -3
  267. package/es/useInfiniteScroll/index.d.ts +0 -16
  268. package/es/useRafInterval/index.d.ts +0 -5
  269. package/es/useSimpleState/index.d.ts +0 -3
  270. package/es/useVirtualList/index.d.ts +0 -13
  271. package/es/utils.d.ts +0 -25
package/es/ROI/index.less CHANGED
@@ -1,25 +1,29 @@
1
1
  .rio-layout {
2
+ position: relative;
2
3
  width: 100%;
3
4
  height: 100%;
4
- position: relative;
5
+
5
6
  canvas {
6
7
  position: absolute;
7
- left: 0;
8
8
  top: 0;
9
+ left: 0;
9
10
  width: 100%;
10
11
  height: 100%;
11
12
  }
13
+
12
14
  .rio-debug-box {
13
15
  position: absolute;
14
- left: 0;
15
16
  top: 0;
17
+ left: 0;
18
+ display: flex;
16
19
  width: 100%;
17
20
  height: 100%;
18
- display: flex;
19
21
  flex-direction: column;
22
+
20
23
  & > div {
21
24
  display: flex;
22
25
  flex: 1;
26
+
23
27
  span {
24
28
  flex: 1;
25
29
  border: 1px solid #eee;
@@ -4,15 +4,19 @@
4
4
  box-sizing: border-box;
5
5
  user-select: none;
6
6
  min-width: 600px;
7
+
7
8
  .player-layout {
8
9
  height: calc(100% - 88px);
10
+
9
11
  .player-with-ext-layout {
10
12
  float: left;
13
+
11
14
  .lm-player-ext-layout {
12
- border: 1px solid var(--gray12);
13
15
  height: 100%;
16
+ border: 1px solid var(--gray12);
14
17
  box-sizing: border-box;
15
18
  }
19
+
16
20
  &.player-current-index {
17
21
  .lm-player-ext-layout {
18
22
  border: 1px solid var(--primary);
@@ -20,91 +24,105 @@
20
24
  }
21
25
  }
22
26
  }
27
+
23
28
  &.split-screen-player-live-wrapper {
24
29
  .player-layout {
25
30
  height: calc(100% - 42px);
26
31
  }
27
32
  }
33
+
28
34
  .player-tools-group {
29
- height: 88px;
30
35
  position: relative;
36
+ height: 88px;
31
37
  }
38
+
32
39
  .player-record-time {
33
- text-align: center;
34
- background-color: var(--gray11);
35
- line-height: 42px;
36
40
  padding: 0 16px;
41
+ margin: 0 20px;
37
42
  font-size: 16px;
43
+ line-height: 42px;
38
44
  color: var(--gray1);
39
- margin: 0 20px;
45
+ text-align: center;
46
+ background-color: var(--gray11);
40
47
  }
48
+
41
49
  .icon-chajian {
42
50
  position: relative;
43
51
  top: 1px;
44
52
  left: 1px;
45
53
  font-size: 22px !important;
46
54
  }
55
+
47
56
  .player-tools {
57
+ position: relative;
58
+ display: flex;
48
59
  height: 42px;
49
- background-color: #242c3d;
50
60
  padding: 0 10px;
51
- display: flex;
61
+ background-color: #242c3d;
52
62
  align-items: center;
53
63
  justify-content: space-between;
54
- position: relative;
64
+
55
65
  .player-tools-left,
56
66
  .player-tools-right {
57
- width: 35%;
58
67
  display: grid;
68
+ width: 35%;
59
69
  grid-template-columns: repeat(auto-fill, 32px);
60
70
  grid-gap: 10px;
61
71
  }
72
+
62
73
  .player-tools-right {
63
74
  display: flex;
64
75
  justify-content: flex-end;
65
76
  margin-right: 0;
66
77
  margin-left: 4px;
67
78
  }
79
+
68
80
  .player-tools-mid {
69
81
  display: flex;
70
82
  align-items: center;
71
83
  justify-self: center;
72
84
  height: 100%;
85
+
73
86
  .player-tools-item {
74
87
  margin: 0;
75
88
  }
76
89
  }
77
90
 
78
91
  .player-tools-item {
79
- font-size: 18px;
92
+ display: flex;
80
93
  width: 32px;
81
94
  height: 32px;
95
+ font-size: 18px;
82
96
  color: var(--gray1);
83
97
  cursor: pointer;
84
- display: flex;
85
98
  align-items: center;
86
99
  justify-content: center;
100
+
87
101
  .lm-player-iconfont {
88
102
  font-size: 20px;
89
103
  }
104
+
90
105
  &:hover {
91
106
  background-color: var(--gray11);
92
107
  border-radius: var(--radius1);
93
108
  }
94
109
  }
110
+
95
111
  .select-current-screen-item {
96
- font-size: 18px;
112
+ display: flex;
97
113
  width: 32px;
98
114
  height: 32px;
115
+ font-size: 18px;
99
116
  color: var(--gray1);
100
117
  text-align: center;
101
118
  cursor: pointer;
102
- display: flex;
103
119
  align-items: center;
104
120
  justify-content: center;
121
+
105
122
  .lm-player-iconfont {
106
123
  font-size: 20px;
107
124
  }
125
+
108
126
  &:hover {
109
127
  background-color: var(--gray11);
110
128
  border-radius: var(--radius1);
@@ -115,9 +133,10 @@
115
133
  // 录像
116
134
  &.split-screen-player-wrapper-record {
117
135
  .record-time-line {
136
+ position: relative;
118
137
  width: 100%;
119
138
  height: 46px;
120
- position: relative;
139
+
121
140
  canvas {
122
141
  box-sizing: border-box;
123
142
  width: 100%;
@@ -125,13 +144,14 @@
125
144
  cursor: pointer;
126
145
  background-color: #030917;
127
146
  }
147
+
128
148
  .time-line-mask {
129
149
  position: absolute;
130
- left: 0;
131
150
  top: 0;
151
+ left: 0;
152
+ z-index: 5;
132
153
  width: 100%;
133
154
  height: 100%;
134
- z-index: 5;
135
155
  cursor: not-allowed;
136
156
  }
137
157
  }
@@ -139,8 +159,8 @@
139
159
  }
140
160
 
141
161
  .player-time-select {
142
- width: 190px;
143
162
  display: flex;
163
+ width: 190px;
144
164
  justify-content: space-around;
145
165
  align-items: center;
146
166
  }
@@ -152,27 +172,30 @@
152
172
  background-color: transparent !important;
153
173
  border-radius: var(--radius1) !important;
154
174
  }
175
+
155
176
  .anticon {
156
177
  color: var(--gray1);
157
178
  }
158
179
  }
180
+
159
181
  .custom-select-dropdown {
160
182
  font-size: var(--fs-small);
183
+
161
184
  .cloudapp-select-item {
162
185
  font-size: var(--fs-small);
163
186
  }
164
187
  }
165
188
 
166
189
  .select-current-rate-item {
167
- color: var(--gray1);
168
- font-size: 12px;
169
- border: 1px solid var(--gray1);
170
- padding: 2px 0;
190
+ position: relative;
191
+ top: 4px;
171
192
  display: inline-block;
172
193
  width: 64px;
173
- border-radius: 2px;
174
- cursor: pointer;
194
+ padding: 2px 0;
195
+ font-size: 12px;
196
+ color: var(--gray1);
175
197
  text-align: center;
176
- position: relative;
177
- top: 4px;
198
+ cursor: pointer;
199
+ border: 1px solid var(--gray1);
200
+ border-radius: 2px;
178
201
  }
@@ -1,4 +1,4 @@
1
1
  .table-layout {
2
- padding-top: 20px;
3
2
  height: calc(100% - 32px);
3
+ padding-top: 20px;
4
4
  }
@@ -1,16 +1,17 @@
1
1
  .theme-antd-demo {
2
+ padding: 40px;
2
3
  color: #fff;
3
4
  background-color: #0f2e61;
4
- padding: 40px;
5
+
5
6
  a {
6
7
  color: inherit;
7
8
  }
8
9
 
9
10
  --form-bg: #1d4788;
10
- --form-bd: rgba(255, 255, 255, 0.3);
11
+ --form-bd: rgb(255 255 255 / 30%);
11
12
  --form-active-bg: #e8b127;
12
13
  --table-bg: #0f2e61;
13
- --table-bd: rgba(255, 255, 255, 0.3);
14
+ --table-bd: rgb(255 255 255 / 30%);
14
15
  --table-head-bg: #1d4788;
15
16
  --table-row-hover-color: #1d4788;
16
17
  --radius1: 4px;
@@ -1,15 +1,15 @@
1
- @import './style/button.less';
2
- @import './style/checkbox.less';
3
- @import './style/form.less';
4
- @import './style/input.less';
5
- @import './style/pagination.less';
6
- @import './style/picker.less';
7
- @import './style/popover.less';
8
- @import './style/radio.less';
9
- @import './style/scrollbar.less';
10
- @import './style/select.less';
11
- @import './style/tree.less';
12
- @import './style/table.less';
1
+ @import url('./style/button.less');
2
+ @import url('./style/checkbox.less');
3
+ @import url('./style/form.less');
4
+ @import url('./style/input.less');
5
+ @import url('./style/pagination.less');
6
+ @import url('./style/picker.less');
7
+ @import url('./style/popover.less');
8
+ @import url('./style/radio.less');
9
+ @import url('./style/scrollbar.less');
10
+ @import url('./style/select.less');
11
+ @import url('./style/tree.less');
12
+ @import url('./style/table.less');
13
13
 
14
14
  :root {
15
15
  color: var(--color);
@@ -16,19 +16,19 @@ div {
16
16
 
17
17
  .@{ant-prefix}-btn-primary:hover,
18
18
  .@{ant-prefix}-btn-primary:focus {
19
+ color: var(--color);
19
20
  background: var(--primary-dark);
20
21
  border-color: var(--primary-dark);
21
- color: var(--color);
22
22
  }
23
23
 
24
24
  .@{ant-prefix}-btn-primary[disabled],
25
25
  .@{ant-prefix}-btn-primary[disabled]:hover,
26
26
  .@{ant-prefix}-btn-primary[disabled]:focus,
27
27
  .@{ant-prefix}-btn-primary[disabled]:active {
28
+ color: var(--color);
28
29
  background: var(--primary-dark);
30
+ opacity: .8;
29
31
  border-color: var(--primary-dark);
30
- color: var(--color);
31
- opacity: 0.8;
32
32
  }
33
33
 
34
34
  .@{ant-prefix}-btn-background-ghost.@{ant-prefix}-btn-primary {
@@ -49,9 +49,9 @@ div {
49
49
 
50
50
  .@{ant-prefix}-btn-danger:hover,
51
51
  .@{ant-prefix}-btn-danger:focus {
52
+ color: var(--color);
52
53
  background: var(--danger-dark);
53
54
  border-color: var(--danger-dark);
54
- color: var(--color);
55
55
  }
56
56
 
57
57
  .@{ant-prefix}-btn-background-ghost.@{ant-prefix}-btn-danger {
@@ -7,8 +7,8 @@ div {
7
7
  background-color: var(--form-active-bg);
8
8
  }
9
9
  .@{ant-prefix}-checkbox-inner {
10
- border-radius: var(--radius1);
11
10
  background-color: var(--form-bg);
11
+ border-radius: var(--radius1);
12
12
  border-color: var(--form-bd);
13
13
  }
14
14
  .@{ant-prefix}-checkbox-wrapper {
@@ -16,7 +16,7 @@ div {
16
16
  }
17
17
  .@{ant-prefix}-checkbox-disabled + span {
18
18
  color: inherit;
19
- opacity: 0.8;
19
+ opacity: .8;
20
20
  }
21
21
  .@{ant-prefix}-checkbox-disabled.@{ant-prefix}-checkbox-checked .@{ant-prefix}-checkbox-inner::after {
22
22
  border-color: var(--form-bd);
@@ -34,7 +34,7 @@ div {
34
34
 
35
35
  .@{ant-prefix}-checkbox-disabled .@{ant-prefix}-checkbox-inner {
36
36
  background-color: var(--form-bg);
37
- opacity: 0.8;
37
+ opacity: .8;
38
38
  }
39
39
  .@{ant-prefix}-checkbox-indeterminate .@{ant-prefix}-checkbox-inner {
40
40
  background-color: #fff;
@@ -1,9 +1,9 @@
1
1
  div {
2
2
  .@{ant-prefix}-input {
3
3
  color: inherit;
4
+ background-color: var(--form-bg);
4
5
  border-radius: var(--radius1);
5
6
  border-color: var(--form-bd);
6
- background-color: var(--form-bg);
7
7
  }
8
8
 
9
9
  .@{ant-prefix}-input-affix-wrapper:not(.@{ant-prefix}-input-affix-wrapper-disabled):hover {
@@ -21,8 +21,8 @@ div {
21
21
  }
22
22
 
23
23
  .@{ant-prefix}-input-affix-wrapper {
24
- background-color: var(--form-bg);
25
24
  color: inherit;
25
+ background-color: var(--form-bg);
26
26
  border-radius: var(--radius1);
27
27
  border-color: var(--form-bd);
28
28
  }
@@ -38,17 +38,17 @@ div {
38
38
  }
39
39
 
40
40
  .@{ant-prefix}-input[disabled] {
41
- background-color: var(--form-bd);
42
41
  color: inherit;
42
+ background-color: var(--form-bd);
43
+ opacity: .7;
43
44
  border-color: var(--form-bd);
44
- opacity: 0.7;
45
45
  }
46
46
 
47
47
  .@{ant-prefix}-input-number {
48
48
  color: inherit;
49
+ background-color: var(--form-bg);
49
50
  border-radius: var(--radius1);
50
51
  border-color: var(--form-bd);
51
- background-color: var(--form-bg);
52
52
  }
53
53
 
54
54
  .@{ant-prefix}-input-number:hover {
@@ -62,9 +62,9 @@ div {
62
62
  }
63
63
 
64
64
  .@{ant-prefix}-input-number-handler-wrap {
65
- border-radius: 0 var(--radius1) var(---redius1) 0;
66
- background-color: var(--form-bg);
67
65
  color: inherit;
66
+ background-color: var(--form-bg);
67
+ border-radius: 0 var(--radius1) var(--redius1) 0;
68
68
  }
69
69
 
70
70
  .@{ant-prefix}-input-number-handler {
@@ -7,14 +7,14 @@ div {
7
7
  .@{ant-prefix}-pagination-next,
8
8
  .@{ant-prefix}-pagination-jump-prev,
9
9
  .@{ant-prefix}-pagination-jump-next {
10
- border-radius: var(--radius1);
11
10
  line-height: 28px;
11
+ border-radius: var(--radius1);
12
12
  }
13
13
 
14
14
  .@{ant-prefix}-pagination-prev .@{ant-prefix}-pagination-item-link,
15
15
  .@{ant-prefix}-pagination-next .@{ant-prefix}-pagination-item-link {
16
- border-radius: var(--radius1);
17
16
  background-color: var(--form-bg);
17
+ border-radius: var(--radius1);
18
18
  border-color: var(--form-bd);
19
19
  }
20
20
 
@@ -24,8 +24,8 @@ div {
24
24
  }
25
25
 
26
26
  .@{ant-prefix}-pagination-item {
27
- border-radius: var(--radius1);
28
27
  background-color: var(--form-bg);
28
+ border-radius: var(--radius1);
29
29
  border-color: var(--form-bd);
30
30
  }
31
31
 
@@ -51,9 +51,9 @@ div {
51
51
  .@{ant-prefix}-pagination-next:focus:not(.@{ant-prefix}-pagination-disabled) .@{ant-prefix}-pagination-item-link,
52
52
  .@{ant-prefix}-pagination-prev:hover:not(.@{ant-prefix}-pagination-disabled) .@{ant-prefix}-pagination-item-link,
53
53
  .@{ant-prefix}-pagination-next:hover:not(.@{ant-prefix}-pagination-disabled) .@{ant-prefix}-pagination-item-link {
54
+ color: #fff;
54
55
  background-color: var(--form-active-bg);
55
56
  border-color: var(--form-active-bg);
56
- color: #fff;
57
57
  }
58
58
 
59
59
  .@{ant-prefix}-pagination-disabled .@{ant-prefix}-pagination-item-link,
@@ -1,9 +1,9 @@
1
1
  div {
2
2
  .@{ant-prefix}-picker {
3
+ color: inherit;
3
4
  background-color: var(--form-bg);
4
5
  border-radius: var(--radius1);
5
6
  border-color: var(--form-bd);
6
- color: inherit;
7
7
  }
8
8
 
9
9
  .@{ant-prefix}-picker:hover,
@@ -38,7 +38,7 @@ div {
38
38
 
39
39
  .@{ant-prefix}-picker-cell {
40
40
  color: inherit;
41
- opacity: 0.6;
41
+ opacity: .6;
42
42
  }
43
43
  .@{ant-prefix}-picker-cell-in-view {
44
44
  color: inherit;
@@ -60,7 +60,7 @@ div {
60
60
  }
61
61
  .@{ant-prefix}-picker-cell:hover:not(.@{ant-prefix}-picker-cell-in-view) .@{ant-prefix}-picker-cell-inner,
62
62
  .@{ant-prefix}-picker-cell:hover:not(.@{ant-prefix}-picker-cell-selected):not(.@{ant-prefix}-picker-cell-range-start):not(.@{ant-prefix}-picker-cell-range-end):not(.@{ant-prefix}-picker-cell-range-hover-start):not(.@{ant-prefix}-picker-cell-range-hover-end)
63
- .@{ant-prefix}-picker-cell-inner {
63
+ .@{ant-prefix}-picker-cell-inner {
64
64
  background-color: var(--form-bg);
65
65
  }
66
66
  .@{ant-prefix}-picker-input > input {
@@ -77,11 +77,11 @@ div {
77
77
  .@{ant-prefix}-picker-cell-in-view.@{ant-prefix}-picker-cell-range-start:not(.@{ant-prefix}-picker-cell-range-start-single)::before,
78
78
  .@{ant-prefix}-picker-cell-in-view.@{ant-prefix}-picker-cell-range-end:not(.@{ant-prefix}-picker-cell-range-end-single)::before {
79
79
  background-color: var(--form-active-bg);
80
- opacity: 0.8;
80
+ opacity: .8;
81
81
  }
82
82
  .@{ant-prefix}-picker-cell-in-view.@{ant-prefix}-picker-cell-in-range::before {
83
83
  background-color: var(--form-active-bg);
84
- opacity: 0.8;
84
+ opacity: .8;
85
85
  }
86
86
  .@{ant-prefix}-picker-focused .@{ant-prefix}-picker-separator {
87
87
  color: inherit;
@@ -25,7 +25,7 @@ div {
25
25
  }
26
26
  .@{ant-prefix}-radio-disabled .@{ant-prefix}-radio-inner {
27
27
  background-color: var(--form-bg);;
28
- opacity: 0.8;
28
+ opacity: .8;
29
29
  }
30
30
  .@{ant-prefix}-radio-button-wrapper:hover {
31
31
  color: var(--form-active-bg);
@@ -48,7 +48,7 @@ div {
48
48
  }
49
49
  .@{ant-prefix}-radio-disabled + span {
50
50
  color: inherit;
51
- opacity: 0.8;
51
+ opacity: .8;
52
52
  }
53
53
  .@{ant-prefix}-radio-wrapper:hover .@{ant-prefix}-radio,
54
54
  .@{ant-prefix}-radio:hover .@{ant-prefix}-radio-inner,
@@ -4,18 +4,20 @@
4
4
  height: var(--scrollbar-width);
5
5
  } // 滚动条滑槽样式
6
6
  ::-webkit-scrollbar-track {
7
- -webkit-box-shadow: var(--scrollbar-track-shadow);
7
+ box-shadow: var(--scrollbar-track-shadow);
8
8
  border-radius: var(--scrollbar-width);
9
9
  }
10
10
  // 滚动条样式
11
11
  ::-webkit-scrollbar-thumb {
12
- border-radius: var(--scrollbar-width);
13
12
  background: var(--scrollbar-thumb-bg);
14
- -webkit-box-shadow: var(--scrollbar-thumb-shadow);
13
+ border-radius: var(--scrollbar-width);
14
+ box-shadow: var(--scrollbar-thumb-shadow);
15
15
  }
16
+
16
17
  ::-webkit-scrollbar-thumb:hover {
17
18
  background: var(--scrollbar-thumb-hover-bg);
18
19
  }
20
+
19
21
  ::-webkit-scrollbar-thumb:active {
20
22
  background: var(--scrollbar-thumb-bg);
21
23
  } // 浏览器失焦的样式
@@ -1,18 +1,18 @@
1
1
  div {
2
2
  .@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector {
3
+ background-color: var(--form-bg);
3
4
  border-radius: var(--radius1);
4
5
  border-color: var(--form-bd);
5
- background-color: var(--form-bg);
6
6
  }
7
7
  .@{ant-prefix}-select-multiple .@{ant-prefix}-select-selector {
8
+ background-color: var(--form-bg);
8
9
  border-radius: var(--radius1);
9
10
  border-color: var(--form-bd);
10
- background-color: var(--form-bg);
11
11
  }
12
12
  .@{ant-prefix}-select-multiple .@{ant-prefix}-select-selection-item {
13
+ background-color: var(--form-bg);
13
14
  border-radius: var(--radius1);
14
15
  border-color: var(--form-bd);
15
- background-color: var(--form-bg);
16
16
  }
17
17
  .@{ant-prefix}-select:not(.@{ant-prefix}-select-disabled):hover .@{ant-prefix}-select-selector {
18
18
  border-color: var(--form-active-bg);
@@ -30,15 +30,15 @@ div {
30
30
  color: var(--form-active-bg);
31
31
  }
32
32
  .@{ant-prefix}-select {
33
- color: inherit;
34
33
  font-size: var(--fs);
34
+ color: inherit;
35
35
  }
36
36
  .@{ant-prefix}-select-arrow {
37
37
  color: inherit;
38
38
  }
39
39
  .@{ant-prefix}-select-dropdown {
40
- background-color: var(--form-bg);
41
40
  color: inherit;
41
+ background-color: var(--form-bg);
42
42
  }
43
43
  .@{ant-prefix}-select-item {
44
44
  color: inherit;
@@ -54,14 +54,14 @@ div {
54
54
  background-color: transparent;
55
55
  }
56
56
  .@{ant-prefix}-select-focused:not(.@{ant-prefix}-select-disabled).@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input)
57
- .@{ant-prefix}-select-selector {
57
+ .@{ant-prefix}-select-selector {
58
58
  border-color: var(--form-active-bg);
59
59
  box-shadow: unset;
60
60
  }
61
61
  .@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector{
62
+ background-color: var(--form-bg);
62
63
  border-radius: var(--radius1);
63
64
  border-color: var(--form-bd);
64
- background-color: var(--form-bg);
65
65
  }
66
66
 
67
67
  .@{ant-prefix}-select-focused:not(.@{ant-prefix}-select-disabled).@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector{
@@ -73,7 +73,7 @@ div {
73
73
  color:inherit;
74
74
  border-color: var(--form-bd);
75
75
  background-color: var(--form-bg);
76
- opacity: 0.8;
76
+ opacity: .8;
77
77
  }
78
78
  .@{ant-prefix}-select-status-error.@{ant-prefix}-select:not(.@{ant-prefix}-select-disabled):not(.@{ant-prefix}-select-customize-input):not(.@{ant-prefix}-pagination-size-changer) .@{ant-prefix}-select-selector{
79
79
  background-color: var(--form-bg);
@@ -1,8 +1,8 @@
1
1
  div {
2
2
  .@{ant-prefix}-table {
3
- background-color: var(--table-bg);
4
- color: inherit;
5
3
  font-size: var(--fs);
4
+ color: inherit;
5
+ background-color: var(--table-bg);
6
6
  }
7
7
  .@{ant-prefix}-table-tbody > tr.@{ant-prefix}-table-row:hover > td {
8
8
  background: var(--table-row-hover-color);
@@ -14,9 +14,9 @@ div {
14
14
  }
15
15
 
16
16
  .@{ant-prefix}-table-thead > tr > th:not(.@{ant-prefix}-table-cell-scrollbar) {
17
+ color: inherit;
17
18
  background-color: var(--table-head-bg);
18
19
  border-bottom-color: var(--table-bd);
19
- color: inherit;
20
20
  }
21
21
 
22
22
  .@{ant-prefix}-table-thead > tr > th.@{ant-prefix}-table-cell-scrollbar {
@@ -39,8 +39,8 @@ div {
39
39
  }
40
40
 
41
41
  .@{ant-prefix}-table-row-expand-icon {
42
- border-radius: var(--radius1);
43
42
  color: var(--primary);
43
+ border-radius: var(--radius1);
44
44
  }
45
45
 
46
46
  .@{ant-prefix}-table-row-expand-icon:focus,
@@ -13,35 +13,36 @@
13
13
  flex: 1 1;
14
14
  }
15
15
  .@{ant-prefix}-tree-treenode {
16
- width: 100%;
17
- white-space: nowrap;
18
- font-size: var(--fs-small);
19
- min-width: max-content;
20
16
  position: relative;
21
17
  display: inline-flex;
22
18
  width: calc(100% - 32px);
19
+ min-width: max-content;
20
+ font-size: var(--fs-small);
21
+ white-space: nowrap;
23
22
  span.@{ant-prefix}-tree-node-content-wrapper {
24
- font-size: var(--fs-small);
25
- min-width: max-content;
26
23
  position: relative;
27
24
  display: inline-flex;
28
25
  width: calc(~'100% - 32px');
26
+ min-width: max-content;
27
+ font-size: var(--fs-small);
29
28
  &:hover,
30
29
  &.@{ant-prefix}-tree-node-selected {
31
- background: transparent;
32
- color: var(--primary);
33
30
  position: relative;
34
- &:after {
35
- content: '';
36
- width: 100%;
31
+ color: var(--primary);
32
+ background: transparent;
33
+
34
+ &::after {
35
+ position: absolute;
37
36
  bottom: 0;
38
37
  left: 0;
39
- position: absolute;
38
+ width: 100%;
39
+ content: '';
40
40
  border-bottom: 1px solid var(--primary);
41
41
  }
42
42
  .@{ant-prefix}-tree-switcher,
43
43
  .@{ant-prefix}-tree-iconEle {
44
44
  color: var(--primary);
45
+
45
46
  .anticon {
46
47
  color: var(--primary);
47
48
  }