@qn-pandora/pandora-component 5.1.0 → 5.1.2

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 (280) hide show
  1. package/README.md +36 -36
  2. package/es/components/AutoComplete/index.js +2 -2
  3. package/es/components/AutoComplete/style.css +127 -39
  4. package/es/components/AutoComplete/style.less +8 -8
  5. package/es/components/Breadcrumb/style.css +13 -3
  6. package/es/components/Breadcrumb/style.less +9 -9
  7. package/es/components/Button/style.css +282 -176
  8. package/es/components/Button/style.less +51 -51
  9. package/es/components/Card/RowExtra/style.css +6 -0
  10. package/es/components/Card/RowExtra/style.less +8 -8
  11. package/es/components/Card/SearchInput/style.less +8 -8
  12. package/es/components/Card/style.css +61 -66
  13. package/es/components/Card/style.less +11 -11
  14. package/es/components/CheckTransformList/style.css +345 -121
  15. package/es/components/CheckTransformList/style.less +35 -35
  16. package/es/components/Checkbox/index.js +9 -1
  17. package/es/components/Checkbox/style.css +5 -0
  18. package/es/components/Checkbox/style.less +5 -5
  19. package/es/components/CheckboxList/style.css +10 -5
  20. package/es/components/CheckboxList/style.less +11 -11
  21. package/es/components/Collapse/style.css +35 -3
  22. package/es/components/Collapse/style.less +58 -58
  23. package/es/components/CollapsiblePanel/style.less +63 -63
  24. package/es/components/DateTimePicker/Base/index.d.ts +3 -0
  25. package/es/components/DateTimePicker/Base/index.js +51 -6
  26. package/es/components/DateTimePicker/Base/style.css +508 -112
  27. package/es/components/DateTimePicker/Base/style.less +167 -160
  28. package/es/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  29. package/es/components/DateTimePicker/BaseMobile/style.less +32 -32
  30. package/es/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  31. package/es/components/DateTimePicker/DisplayInput/index.js +3 -1
  32. package/es/components/DateTimePicker/DisplayInput/style.css +231 -53
  33. package/es/components/DateTimePicker/DisplayInput/style.less +9 -9
  34. package/es/components/DateTimePicker/constants.d.ts +9 -3
  35. package/es/components/DateTimePicker/constants.js +1 -0
  36. package/es/components/DateTimePicker/index.js +1 -1
  37. package/es/components/DateTimePicker/style.css +77 -46
  38. package/es/components/DateTimePicker/style.less +19 -19
  39. package/es/components/DateTimePicker/time.d.ts +1 -0
  40. package/es/components/DateTimePicker/time.js +1 -0
  41. package/es/components/DateTimePicker/transform.js +4 -2
  42. package/es/components/Descriptions/style.css +77 -46
  43. package/es/components/Descriptions/style.less +16 -16
  44. package/es/components/Drawer/CloseIcon/style.less +8 -8
  45. package/es/components/Drawer/index.d.ts +6 -6
  46. package/es/components/Drawer/index.js +4 -4
  47. package/es/components/Drawer/style.css +244 -169
  48. package/es/components/Drawer/style.less +69 -61
  49. package/es/components/FileResumable/index.js +2 -3
  50. package/es/components/FileResumable/style.css +20 -50
  51. package/es/components/FileResumable/style.less +94 -94
  52. package/es/components/FlameGraph/customTooltip.d.ts +22 -0
  53. package/es/components/FlameGraph/customTooltip.js +91 -0
  54. package/es/components/FlameGraph/index.d.ts +16 -0
  55. package/es/components/FlameGraph/index.js +96 -0
  56. package/es/components/FlameGraph/style.css +8 -0
  57. package/es/components/FlameGraph/style.less +14 -0
  58. package/es/components/Input/index.d.ts +1 -1
  59. package/es/components/Input/style.css +231 -53
  60. package/es/components/Input/style.less +12 -12
  61. package/es/components/KeyValuePair/style.less +25 -25
  62. package/es/components/Menu/Option.d.ts +1 -1
  63. package/es/components/Menu/Option.js +12 -4
  64. package/es/components/Menu/style.css +31 -22
  65. package/es/components/Menu/style.less +18 -18
  66. package/es/components/Modal/style.css +11 -8
  67. package/es/components/Modal/style.less +30 -30
  68. package/es/components/NameExplainTooltip/style.css +1 -1
  69. package/es/components/NameExplainTooltip/style.less +10 -10
  70. package/es/components/NameLimiter/index.js +1 -1
  71. package/es/components/NameLimiter/style.css +83 -55
  72. package/es/components/NameLimiter/style.less +19 -19
  73. package/es/components/OptionList/InlineOptionList/style.css +22 -9
  74. package/es/components/OptionList/InlineOptionList/style.less +16 -16
  75. package/es/components/OptionList/OptionItem/style.css +85 -57
  76. package/es/components/OptionList/OptionItem/style.less +25 -25
  77. package/es/components/OptionList/PopoverOptionList/index.js +1 -1
  78. package/es/components/OptionList/PopoverOptionList/style.css +80 -49
  79. package/es/components/OptionList/PopoverOptionList/style.less +30 -30
  80. package/es/components/OptionList/style.css +187 -115
  81. package/es/components/OptionList/style.less +3 -3
  82. package/es/components/RadioGroup/style.css +51 -40
  83. package/es/components/RadioGroup/style.less +41 -41
  84. package/es/components/RangeInput/style.css +604 -87
  85. package/es/components/RangeInput/style.less +37 -37
  86. package/es/components/RemarkName/style.css +83 -55
  87. package/es/components/RemarkName/style.less +2 -2
  88. package/es/components/Selector/style.css +127 -39
  89. package/es/components/Selector/style.less +99 -99
  90. package/es/components/Spin/style.css +10 -8
  91. package/es/components/Spin/style.less +26 -26
  92. package/es/components/Steps/ControlButton/style.less +5 -5
  93. package/es/components/Steps/style.css +59 -21
  94. package/es/components/Steps/style.less +48 -48
  95. package/es/components/Table/ColumnSetting/index.d.ts +1 -0
  96. package/es/components/Table/ColumnSetting/index.js +19 -14
  97. package/es/components/Table/ColumnSetting/style.css +2 -5
  98. package/es/components/Table/ColumnSetting/style.less +50 -51
  99. package/es/components/Table/ColumnTag/style.css +4 -4
  100. package/es/components/Table/ColumnTag/style.less +40 -40
  101. package/es/components/Table/EmptyText.d.ts +7 -0
  102. package/es/components/Table/EmptyText.js +22 -0
  103. package/es/components/Table/ResizableTitle/style.less +25 -25
  104. package/es/components/Table/index.d.ts +19 -88
  105. package/es/components/Table/index.js +142 -326
  106. package/es/components/Table/style.css +146 -98
  107. package/es/components/Table/style.less +364 -345
  108. package/es/components/Table/type.d.ts +63 -0
  109. package/es/components/Table/type.js +5 -0
  110. package/es/components/Table/util.d.ts +58 -0
  111. package/es/components/Table/util.js +218 -0
  112. package/es/components/Tabs/style.css +127 -78
  113. package/es/components/Tabs/style.less +33 -33
  114. package/es/components/TagList/Tag/style.css +5 -5
  115. package/es/components/TagList/Tag/style.less +72 -72
  116. package/es/components/TagList/TagSwitch/style.css +1 -1
  117. package/es/components/TagList/TagSwitch/style.less +28 -28
  118. package/es/components/TagList/style.css +6 -6
  119. package/es/components/TagList/style.less +28 -28
  120. package/es/components/Timeline/TimelineItem/style.css +1 -1
  121. package/es/components/Timeline/TimelineItem/style.less +49 -49
  122. package/es/components/Timeline/style.less +23 -23
  123. package/es/components/TopologyChart/index.d.ts +7 -0
  124. package/es/components/TopologyChart/index.js +19 -0
  125. package/es/components/TopologyChart/style.css +14 -0
  126. package/es/components/TopologyChart/style.less +14 -0
  127. package/es/components/Transfer/List/style.less +19 -19
  128. package/es/components/Transfer/ListBody/style.less +18 -18
  129. package/es/components/Transfer/style.less +14 -14
  130. package/es/components/TreeSelector/style.css +42 -30
  131. package/es/components/TreeSelector/style.less +56 -56
  132. package/es/constants/language/datetime/en.js +4 -2
  133. package/es/constants/language/datetime/type.d.ts +4 -2
  134. package/es/constants/language/datetime/zh.js +4 -2
  135. package/es/index.css +9067 -7963
  136. package/es/index.d.ts +2 -0
  137. package/es/index.js +2 -0
  138. package/es/index.less +56 -54
  139. package/es/style/mixin.less +45 -45
  140. package/es/style/theme.less +416 -416
  141. package/lib/components/AutoComplete/index.js +2 -2
  142. package/lib/components/AutoComplete/style.css +127 -39
  143. package/lib/components/AutoComplete/style.less +8 -8
  144. package/lib/components/Breadcrumb/style.css +13 -3
  145. package/lib/components/Breadcrumb/style.less +9 -9
  146. package/lib/components/Button/style.css +282 -176
  147. package/lib/components/Button/style.less +51 -51
  148. package/lib/components/Card/RowExtra/style.css +6 -0
  149. package/lib/components/Card/RowExtra/style.less +8 -8
  150. package/lib/components/Card/SearchInput/style.less +8 -8
  151. package/lib/components/Card/style.css +61 -66
  152. package/lib/components/Card/style.less +11 -11
  153. package/lib/components/CheckTransformList/style.css +345 -121
  154. package/lib/components/CheckTransformList/style.less +35 -35
  155. package/lib/components/Checkbox/index.js +9 -1
  156. package/lib/components/Checkbox/style.css +5 -0
  157. package/lib/components/Checkbox/style.less +5 -5
  158. package/lib/components/CheckboxList/style.css +10 -5
  159. package/lib/components/CheckboxList/style.less +11 -11
  160. package/lib/components/Collapse/style.css +35 -3
  161. package/lib/components/Collapse/style.less +58 -58
  162. package/lib/components/CollapsiblePanel/style.less +63 -63
  163. package/lib/components/DateTimePicker/Base/index.d.ts +3 -0
  164. package/lib/components/DateTimePicker/Base/index.js +51 -6
  165. package/lib/components/DateTimePicker/Base/style.css +508 -112
  166. package/lib/components/DateTimePicker/Base/style.less +167 -160
  167. package/lib/components/DateTimePicker/BaseMobile/Absolute/style.less +35 -35
  168. package/lib/components/DateTimePicker/BaseMobile/style.less +32 -32
  169. package/lib/components/DateTimePicker/Collapse/Panel/style.less +26 -26
  170. package/lib/components/DateTimePicker/DisplayInput/index.js +3 -1
  171. package/lib/components/DateTimePicker/DisplayInput/style.css +231 -53
  172. package/lib/components/DateTimePicker/DisplayInput/style.less +9 -9
  173. package/lib/components/DateTimePicker/constants.d.ts +9 -3
  174. package/lib/components/DateTimePicker/constants.js +1 -0
  175. package/lib/components/DateTimePicker/index.js +1 -1
  176. package/lib/components/DateTimePicker/style.css +77 -46
  177. package/lib/components/DateTimePicker/style.less +19 -19
  178. package/lib/components/DateTimePicker/time.d.ts +1 -0
  179. package/lib/components/DateTimePicker/time.js +1 -0
  180. package/lib/components/DateTimePicker/transform.js +4 -2
  181. package/lib/components/Descriptions/style.css +77 -46
  182. package/lib/components/Descriptions/style.less +16 -16
  183. package/lib/components/Drawer/CloseIcon/style.less +8 -8
  184. package/lib/components/Drawer/index.d.ts +6 -6
  185. package/lib/components/Drawer/index.js +4 -4
  186. package/lib/components/Drawer/style.css +244 -169
  187. package/lib/components/Drawer/style.less +69 -61
  188. package/lib/components/FileResumable/index.js +2 -3
  189. package/lib/components/FileResumable/style.css +20 -50
  190. package/lib/components/FileResumable/style.less +94 -94
  191. package/lib/components/FlameGraph/customTooltip.d.ts +22 -0
  192. package/lib/components/FlameGraph/customTooltip.js +114 -0
  193. package/lib/components/FlameGraph/index.d.ts +16 -0
  194. package/lib/components/FlameGraph/index.js +117 -0
  195. package/lib/components/FlameGraph/style.css +8 -0
  196. package/lib/components/FlameGraph/style.less +14 -0
  197. package/lib/components/Input/index.d.ts +1 -1
  198. package/lib/components/Input/style.css +231 -53
  199. package/lib/components/Input/style.less +12 -12
  200. package/lib/components/KeyValuePair/style.less +25 -25
  201. package/lib/components/Menu/Option.d.ts +1 -1
  202. package/lib/components/Menu/Option.js +17 -25
  203. package/lib/components/Menu/style.css +31 -22
  204. package/lib/components/Menu/style.less +18 -18
  205. package/lib/components/Modal/style.css +11 -8
  206. package/lib/components/Modal/style.less +30 -30
  207. package/lib/components/NameExplainTooltip/style.css +1 -1
  208. package/lib/components/NameExplainTooltip/style.less +10 -10
  209. package/lib/components/NameLimiter/index.js +1 -1
  210. package/lib/components/NameLimiter/style.css +83 -55
  211. package/lib/components/NameLimiter/style.less +19 -19
  212. package/lib/components/OptionList/InlineOptionList/style.css +22 -9
  213. package/lib/components/OptionList/InlineOptionList/style.less +16 -16
  214. package/lib/components/OptionList/OptionItem/style.css +85 -57
  215. package/lib/components/OptionList/OptionItem/style.less +25 -25
  216. package/lib/components/OptionList/PopoverOptionList/index.js +1 -1
  217. package/lib/components/OptionList/PopoverOptionList/style.css +80 -49
  218. package/lib/components/OptionList/PopoverOptionList/style.less +30 -30
  219. package/lib/components/OptionList/style.css +187 -115
  220. package/lib/components/OptionList/style.less +3 -3
  221. package/lib/components/RadioGroup/style.css +51 -40
  222. package/lib/components/RadioGroup/style.less +41 -41
  223. package/lib/components/RangeInput/style.css +604 -87
  224. package/lib/components/RangeInput/style.less +37 -37
  225. package/lib/components/RemarkName/style.css +83 -55
  226. package/lib/components/RemarkName/style.less +2 -2
  227. package/lib/components/Selector/style.css +127 -39
  228. package/lib/components/Selector/style.less +99 -99
  229. package/lib/components/Spin/style.css +10 -8
  230. package/lib/components/Spin/style.less +26 -26
  231. package/lib/components/Steps/ControlButton/style.less +5 -5
  232. package/lib/components/Steps/style.css +59 -21
  233. package/lib/components/Steps/style.less +48 -48
  234. package/lib/components/Table/ColumnSetting/index.d.ts +1 -0
  235. package/lib/components/Table/ColumnSetting/index.js +19 -14
  236. package/lib/components/Table/ColumnSetting/style.css +2 -5
  237. package/lib/components/Table/ColumnSetting/style.less +50 -51
  238. package/lib/components/Table/ColumnTag/style.css +4 -4
  239. package/lib/components/Table/ColumnTag/style.less +40 -40
  240. package/lib/components/Table/EmptyText.d.ts +7 -0
  241. package/lib/components/Table/EmptyText.js +27 -0
  242. package/lib/components/Table/ResizableTitle/style.less +25 -25
  243. package/lib/components/Table/index.d.ts +19 -88
  244. package/lib/components/Table/index.js +145 -327
  245. package/lib/components/Table/style.css +146 -98
  246. package/lib/components/Table/style.less +364 -345
  247. package/lib/components/Table/type.d.ts +63 -0
  248. package/lib/components/Table/type.js +8 -0
  249. package/lib/components/Table/util.d.ts +58 -0
  250. package/lib/components/Table/util.js +227 -0
  251. package/lib/components/Tabs/style.css +127 -78
  252. package/lib/components/Tabs/style.less +33 -33
  253. package/lib/components/TagList/Tag/style.css +5 -5
  254. package/lib/components/TagList/Tag/style.less +72 -72
  255. package/lib/components/TagList/TagSwitch/style.css +1 -1
  256. package/lib/components/TagList/TagSwitch/style.less +28 -28
  257. package/lib/components/TagList/style.css +6 -6
  258. package/lib/components/TagList/style.less +28 -28
  259. package/lib/components/Timeline/TimelineItem/style.css +1 -1
  260. package/lib/components/Timeline/TimelineItem/style.less +49 -49
  261. package/lib/components/Timeline/style.less +23 -23
  262. package/lib/components/TopologyChart/index.d.ts +7 -0
  263. package/lib/components/TopologyChart/index.js +28 -0
  264. package/lib/components/TopologyChart/style.css +14 -0
  265. package/lib/components/TopologyChart/style.less +14 -0
  266. package/lib/components/Transfer/List/style.less +19 -19
  267. package/lib/components/Transfer/ListBody/style.less +18 -18
  268. package/lib/components/Transfer/style.less +14 -14
  269. package/lib/components/TreeSelector/style.css +42 -30
  270. package/lib/components/TreeSelector/style.less +56 -56
  271. package/lib/constants/language/datetime/en.js +4 -2
  272. package/lib/constants/language/datetime/type.d.ts +4 -2
  273. package/lib/constants/language/datetime/zh.js +4 -2
  274. package/lib/index.css +4782 -3678
  275. package/lib/index.d.ts +2 -0
  276. package/lib/index.js +8 -1
  277. package/lib/index.less +56 -54
  278. package/lib/style/mixin.less +45 -45
  279. package/lib/style/theme.less +416 -416
  280. package/package.json +10 -6
@@ -1,61 +1,69 @@
1
- @import 'antd/lib/drawer/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-drawer {
5
- .@{ant-prefix}-drawer-content-wrapper {
6
- width: 50%;
7
- min-width: 300px;
8
- }
9
- .@{ant-prefix}-drawer-content > div {
10
- position: relative;
11
- }
12
- .@{ant-prefix}-drawer-close-x {
13
- width: 60px;
14
- height: 60px;
15
- line-height: 60px;
16
- }
17
- .@{ant-prefix}-drawer-header-title {
18
- overflow: hidden;
19
- }
20
- }
21
-
22
- .@{sdk-prefix}-drawer-size-small {
23
- max-width: 38%;
24
- }
25
- .@{sdk-prefix}-drawer-size-default {
26
- max-width: 50%;
27
- }
28
- .@{sdk-prefix}-drawer-size-large {
29
- max-width: 75%;
30
- }
31
-
32
- .@{sdk-prefix}-drawer-no-mask {
33
- .@{ant-prefix}-drawer-content-wrapper {
34
- width: 100%;
35
- }
36
- }
37
-
38
- .@{sdk-prefix}-scroll-handler {
39
- position: absolute;
40
- width: 5px;
41
- padding: 4px 0 0;
42
- top: 0;
43
- left: 0;
44
- bottom: 0;
45
- z-index: 100;
46
- cursor: ew-resize;
47
- }
48
-
49
- .@{sdk-prefix}-drawer-close-icon {
50
- margin-left: 24px;
51
- }
52
-
53
- .@{sdk-prefix}-drawer-header-full-icon {
54
- margin-left: 24px;
55
- color: @font-color-7;
56
- font-size: 14px;
57
- }
58
-
59
- .@{sdk-prefix}-drawer-no-mask {
60
- background-color: @normal-color;
61
- }
1
+ @import 'antd/lib/drawer/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-drawer.@{sdk-prefix}-drawer-no-mask {
5
+ background-color: transparent;
6
+ }
7
+
8
+ .@{sdk-prefix}-drawer {
9
+ .@{ant-prefix}-drawer-content-wrapper {
10
+ width: 50%;
11
+ min-width: 300px;
12
+ }
13
+ .@{ant-prefix}-drawer-content > div {
14
+ position: relative;
15
+ }
16
+ .@{ant-prefix}-drawer-close-x {
17
+ width: 60px;
18
+ height: 60px;
19
+ line-height: 60px;
20
+ }
21
+ .@{ant-prefix}-drawer-header-title {
22
+ overflow: hidden;
23
+ }
24
+
25
+ .@{ant-prefix}-drawer-body {
26
+ font-size: 14px; // 原来的版本直接设置了font-size,升级后没有了,导致字号不对,暂时先使用此方案
27
+ }
28
+ }
29
+
30
+ .@{sdk-prefix}-drawer-size-small {
31
+ max-width: 38%;
32
+ }
33
+ .@{sdk-prefix}-drawer-size-default {
34
+ max-width: 50%;
35
+ }
36
+ .@{sdk-prefix}-drawer-size-large {
37
+ max-width: 75%;
38
+ }
39
+
40
+ .@{sdk-prefix}-drawer-no-mask {
41
+ .@{ant-prefix}-drawer-content-wrapper {
42
+ width: 100%;
43
+ }
44
+ }
45
+
46
+ .@{sdk-prefix}-scroll-handler {
47
+ position: absolute;
48
+ width: 5px;
49
+ padding: 4px 0 0;
50
+ top: 0;
51
+ left: 0;
52
+ bottom: 0;
53
+ z-index: 100;
54
+ cursor: ew-resize;
55
+ }
56
+
57
+ .@{sdk-prefix}-drawer-close-icon {
58
+ margin-left: 24px;
59
+ }
60
+
61
+ .@{sdk-prefix}-drawer-header-full-icon {
62
+ margin-left: 24px;
63
+ color: @font-color-7;
64
+ font-size: 14px;
65
+ }
66
+
67
+ .@{sdk-prefix}-drawer-no-mask {
68
+ background-color: @normal-color;
69
+ }
@@ -266,6 +266,7 @@ export default function FileResumable(props) {
266
266
  switch (_d.label) {
267
267
  case 0:
268
268
  params = __assign(__assign({}, query), { persistence: persistence });
269
+ setShowTool(true);
269
270
  if (!(fileList.length === 1)) return [3 /*break*/, 6];
270
271
  realFile = fileList[0];
271
272
  extension = realFile.name.split('.').pop().toLowerCase();
@@ -309,9 +310,7 @@ export default function FileResumable(props) {
309
310
  (_c = resumable.current) === null || _c === void 0 ? void 0 : _c.cancel();
310
311
  }
311
312
  _d.label = 6;
312
- case 6:
313
- setShowTool(true);
314
- return [2 /*return*/];
313
+ case 6: return [2 /*return*/];
315
314
  }
316
315
  });
317
316
  }); }, [
@@ -31,6 +31,7 @@
31
31
  display: inline-block;
32
32
  }
33
33
  .ant-upload.ant-upload-disabled {
34
+ color: rgba(0, 0, 0, 0.25);
34
35
  cursor: not-allowed;
35
36
  }
36
37
  .ant-upload.ant-upload-select-picture-card {
@@ -61,7 +62,7 @@
61
62
  text-align: center;
62
63
  }
63
64
  .ant-upload.ant-upload-select-picture-card:hover {
64
- border-color: #7a869a;
65
+ border-color: #436bff;
65
66
  }
66
67
  .ant-upload-disabled.ant-upload.ant-upload-select-picture-card:hover {
67
68
  border-color: #e5e5e5;
@@ -82,7 +83,7 @@
82
83
  padding: 16px 0;
83
84
  }
84
85
  .ant-upload.ant-upload-drag.ant-upload-drag-hover:not(.ant-upload-disabled) {
85
- border-color: #555f73;
86
+ border-color: #2e4dd9;
86
87
  }
87
88
  .ant-upload.ant-upload-drag.ant-upload-disabled {
88
89
  cursor: not-allowed;
@@ -96,13 +97,13 @@
96
97
  vertical-align: middle;
97
98
  }
98
99
  .ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover {
99
- border-color: #9ca0a6;
100
+ border-color: #6b90ff;
100
101
  }
101
102
  .ant-upload.ant-upload-drag p.ant-upload-drag-icon {
102
103
  margin-bottom: 20px;
103
104
  }
104
105
  .ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon {
105
- color: #9ca0a6;
106
+ color: #6b90ff;
106
107
  font-size: 48px;
107
108
  }
108
109
  .ant-upload.ant-upload-drag p.ant-upload-text {
@@ -184,8 +185,9 @@
184
185
  opacity: 0;
185
186
  }
186
187
  .ant-upload-list-item-card-actions-btn.ant-btn-sm {
187
- height: 20px;
188
+ height: 22.001px;
188
189
  line-height: 1;
190
+ vertical-align: top;
189
191
  }
190
192
  .ant-upload-list-item-card-actions.picture {
191
193
  top: 22px;
@@ -197,10 +199,14 @@
197
199
  }
198
200
  .ant-upload-list-item-card-actions .anticon {
199
201
  color: rgba(0, 0, 0, 0.45);
202
+ -webkit-transition: all 0.3s;
203
+ transition: all 0.3s;
204
+ }
205
+ .ant-upload-list-item-card-actions:hover .anticon {
206
+ color: rgba(0, 0, 0, 0.65);
200
207
  }
201
208
  .ant-upload-list-item-info {
202
209
  height: 100%;
203
- padding: 0 4px;
204
210
  -webkit-transition: background-color 0.3s;
205
211
  transition: background-color 0.3s;
206
212
  }
@@ -216,26 +222,8 @@
216
222
  color: rgba(0, 0, 0, 0.45);
217
223
  font-size: 14px;
218
224
  }
219
- .ant-upload-list-item .anticon-close {
220
- position: absolute;
221
- top: 6px;
222
- right: 4px;
223
- color: rgba(0, 0, 0, 0.45);
224
- font-size: 10px;
225
- line-height: 0;
226
- cursor: pointer;
227
- opacity: 0;
228
- -webkit-transition: all 0.3s;
229
- transition: all 0.3s;
230
- }
231
- .ant-upload-list-item .anticon-close:hover {
232
- color: rgba(0, 0, 0, 0.65);
233
- }
234
225
  .ant-upload-list-item:hover .ant-upload-list-item-info {
235
- background-color: rgba(44, 109, 210, 0.05);
236
- }
237
- .ant-upload-list-item:hover .anticon-close {
238
- opacity: 1;
226
+ background-color: rgba(67, 107, 255, 0.05);
239
227
  }
240
228
  .ant-upload-list-item:hover .ant-upload-list-item-card-actions-btn {
241
229
  opacity: 1;
@@ -358,14 +346,6 @@
358
346
  margin-top: 0;
359
347
  padding-left: 56px;
360
348
  }
361
- .ant-upload-list-picture .anticon-close,
362
- .ant-upload-list-picture-card .anticon-close {
363
- position: absolute;
364
- top: 8px;
365
- right: 8px;
366
- line-height: 1;
367
- opacity: 1;
368
- }
369
349
  .ant-upload-list-picture-card-container {
370
350
  display: inline-block;
371
351
  width: 104px;
@@ -373,9 +353,6 @@
373
353
  margin: 0 8px 8px 0;
374
354
  vertical-align: top;
375
355
  }
376
- .ant-upload-list-picture-card.ant-upload-list::after {
377
- display: none;
378
- }
379
356
  .ant-upload-list-picture-card .ant-upload-list-item {
380
357
  height: 100%;
381
358
  margin: 0;
@@ -523,8 +500,10 @@
523
500
  .ant-upload-list .ant-upload-animate-inline-leave {
524
501
  -webkit-animation-duration: 0.3s;
525
502
  animation-duration: 0.3s;
526
- -webkit-animation-fill-mode: cubic-bezier(0.78, 0.14, 0.15, 0.86);
527
- animation-fill-mode: cubic-bezier(0.78, 0.14, 0.15, 0.86);
503
+ -webkit-animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);
504
+ animation-timing-function: cubic-bezier(0.78, 0.14, 0.15, 0.86);
505
+ -webkit-animation-fill-mode: forwards;
506
+ animation-fill-mode: forwards;
528
507
  }
529
508
  .ant-upload-list .ant-upload-animate-inline-appear,
530
509
  .ant-upload-list .ant-upload-animate-inline-enter {
@@ -607,10 +586,6 @@
607
586
  .ant-upload-list-rtl .ant-upload-list-item-info {
608
587
  padding: 0 4px 0 12px;
609
588
  }
610
- .ant-upload-list-rtl .ant-upload-list-item .anticon-close {
611
- right: auto;
612
- left: 4px;
613
- }
614
589
  .ant-upload-list-rtl .ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon {
615
590
  padding-right: 0;
616
591
  padding-left: 5px;
@@ -656,11 +631,6 @@
656
631
  padding-right: 0;
657
632
  padding-left: 0;
658
633
  }
659
- .ant-upload-list-rtl.ant-upload-list-picture .anticon-close,
660
- .ant-upload-list-rtl.ant-upload-list-picture-card .anticon-close {
661
- right: auto;
662
- left: 8px;
663
- }
664
634
  .ant-upload-list-rtl .ant-upload-list-picture-card-container {
665
635
  margin: 0 0 8px 8px;
666
636
  }
@@ -681,7 +651,7 @@
681
651
  text-align: right;
682
652
  }
683
653
  .pandora-sdk-file-resumable-run-container .pandora-sdk-file-resumable-run-container-icon {
684
- color: #2c6dd2;
654
+ color: #436bff;
685
655
  cursor: pointer;
686
656
  font-size: 14px;
687
657
  margin: 0 6px;
@@ -697,12 +667,12 @@
697
667
  color: #bfbfbf;
698
668
  }
699
669
  .downloadIcon {
700
- color: #2c6dd2;
670
+ color: #436bff;
701
671
  cursor: pointer;
702
672
  font-size: 20px;
703
673
  }
704
674
  .pandora-sdk-file-resumable:hover {
705
- border-color: #2c6dd2;
675
+ border-color: #436bff;
706
676
  }
707
677
  .pandora-sdk-file-resumable-img-container {
708
678
  background: #ffffff;
@@ -1,94 +1,94 @@
1
- @import 'antd/lib/upload/style/index.less';
2
- @import '../../style/theme.less';
3
-
4
- .@{sdk-prefix}-file-resumable {
5
- cursor: pointer;
6
- }
7
-
8
- .@{sdk-prefix}-file-resumable-run-container {
9
- text-align: right;
10
- .@{sdk-prefix}-file-resumable-run-container-icon {
11
- color: @theme-color;
12
- cursor: pointer;
13
- font-size: 14px;
14
- margin: 0 6px;
15
- }
16
-
17
- .@{sdk-prefix}-file-resumable-run-container-icon-disabled {
18
- color: @font-disable-color;
19
- &:hover {
20
- cursor: not-allowed;
21
- }
22
- }
23
- }
24
-
25
- .@{sdk-prefix}-file-resumable-upload-icon {
26
- font-size: 50px;
27
- color: @icon-color;
28
- }
29
-
30
- .downloadIcon {
31
- color: @theme-color;
32
- cursor: pointer;
33
- font-size: 20px;
34
- }
35
-
36
- .@{sdk-prefix}-file-resumable:hover {
37
- border-color: @theme-color;
38
- }
39
-
40
- .@{sdk-prefix}-file-resumable-img-container {
41
- background: @normal-color;
42
- border: 1px dashed @border-color-1;
43
- width: 50px;
44
- height: 50px;
45
- padding: 4px;
46
- border-radius: 2px;
47
- align-items: center;
48
- cursor: pointer;
49
- position: relative;
50
- font-size: 16px;
51
- display: flex;
52
- justify-content: center;
53
- .@{sdk-prefix}-file-resumable-img-operator {
54
- display: flex;
55
- justify-content: center;
56
- align-items: center;
57
- position: absolute;
58
- top: 4px;
59
- left: 4px;
60
- right: 4px;
61
- bottom: 4px;
62
- .anticon {
63
- font-size: 16px;
64
- }
65
- }
66
- .@{sdk-prefix}-file-resumable-img-hidden-plus-icon {
67
- display: none;
68
- }
69
-
70
- .@{sdk-prefix}-file-resumable-img-box {
71
- max-width: 100%;
72
- max-height: 100%;
73
- padding: 4px;
74
- }
75
-
76
- &:hover {
77
- .@{sdk-prefix}-file-resumable-img-operator {
78
- background: @image-operator-hover-bg;
79
- display: flex;
80
- .anticon {
81
- font-size: 16px;
82
- color: @normal-color;
83
- }
84
- }
85
- }
86
- }
87
- .@{sdk-prefix}-file-resumable-img.ant-upload.ant-upload-drag {
88
- width: 50px;
89
- height: 50px;
90
- border: none;
91
- .@{ant-prefix}-upload-btn {
92
- padding: 0;
93
- }
94
- }
1
+ @import 'antd/lib/upload/style/index.less';
2
+ @import '../../style/theme.less';
3
+
4
+ .@{sdk-prefix}-file-resumable {
5
+ cursor: pointer;
6
+ }
7
+
8
+ .@{sdk-prefix}-file-resumable-run-container {
9
+ text-align: right;
10
+ .@{sdk-prefix}-file-resumable-run-container-icon {
11
+ color: @theme-color;
12
+ cursor: pointer;
13
+ font-size: 14px;
14
+ margin: 0 6px;
15
+ }
16
+
17
+ .@{sdk-prefix}-file-resumable-run-container-icon-disabled {
18
+ color: @font-disable-color;
19
+ &:hover {
20
+ cursor: not-allowed;
21
+ }
22
+ }
23
+ }
24
+
25
+ .@{sdk-prefix}-file-resumable-upload-icon {
26
+ font-size: 50px;
27
+ color: @icon-color;
28
+ }
29
+
30
+ .downloadIcon {
31
+ color: @theme-color;
32
+ cursor: pointer;
33
+ font-size: 20px;
34
+ }
35
+
36
+ .@{sdk-prefix}-file-resumable:hover {
37
+ border-color: @theme-color;
38
+ }
39
+
40
+ .@{sdk-prefix}-file-resumable-img-container {
41
+ background: @normal-color;
42
+ border: 1px dashed @border-color-1;
43
+ width: 50px;
44
+ height: 50px;
45
+ padding: 4px;
46
+ border-radius: 2px;
47
+ align-items: center;
48
+ cursor: pointer;
49
+ position: relative;
50
+ font-size: 16px;
51
+ display: flex;
52
+ justify-content: center;
53
+ .@{sdk-prefix}-file-resumable-img-operator {
54
+ display: flex;
55
+ justify-content: center;
56
+ align-items: center;
57
+ position: absolute;
58
+ top: 4px;
59
+ left: 4px;
60
+ right: 4px;
61
+ bottom: 4px;
62
+ .anticon {
63
+ font-size: 16px;
64
+ }
65
+ }
66
+ .@{sdk-prefix}-file-resumable-img-hidden-plus-icon {
67
+ display: none;
68
+ }
69
+
70
+ .@{sdk-prefix}-file-resumable-img-box {
71
+ max-width: 100%;
72
+ max-height: 100%;
73
+ padding: 4px;
74
+ }
75
+
76
+ &:hover {
77
+ .@{sdk-prefix}-file-resumable-img-operator {
78
+ background: @image-operator-hover-bg;
79
+ display: flex;
80
+ .anticon {
81
+ font-size: 16px;
82
+ color: @normal-color;
83
+ }
84
+ }
85
+ }
86
+ }
87
+ .@{sdk-prefix}-file-resumable-img.ant-upload.ant-upload-drag {
88
+ width: 50px;
89
+ height: 50px;
90
+ border: none;
91
+ .@{ant-prefix}-upload-btn {
92
+ padding: 0;
93
+ }
94
+ }
@@ -0,0 +1,22 @@
1
+ declare function defaultLabel(d: any): string;
2
+ export declare function defaultFlamegraphTooltip(): {
3
+ (): void;
4
+ show(d: any): any;
5
+ hide(): any;
6
+ /**
7
+ * Gets/sets a function converting the d3 data into the tooltip's textContent.
8
+ *
9
+ * Cannot be combined with tip.html().
10
+ */
11
+ text(_: any): typeof defaultLabel | any;
12
+ /**
13
+ * Gets/sets a function converting the d3 data into the tooltip's innerHTML.
14
+ *
15
+ * Cannot be combined with tip.text().
16
+ *
17
+ * @deprecated prefer tip.text().
18
+ */
19
+ html(_: any): typeof defaultLabel | any;
20
+ destroy(): void;
21
+ };
22
+ export {};
@@ -0,0 +1,91 @@
1
+ /**
2
+ * 库里面copy 出来,修改了 tooltip 的展示内容
3
+ * https://github.com/spiermar/d3-flame-graph/blob/master/src/tooltip.js
4
+ */
5
+ import * as d3 from 'd3';
6
+ function defaultLabel(d) {
7
+ if (d.data.name === 'root') {
8
+ return "\n <div>\n <span>Name:" + d.data.name + "</span>\n </div>";
9
+ }
10
+ var percentofParent = d.parent
11
+ ? ((d.value / d.parent.value) * 100).toFixed(2)
12
+ : 100;
13
+ var siblingPercentage = d.data.depthPercentage.toFixed(2);
14
+ return "\n <div>\n <span>Name:" + d.data.name + "</span><br/>\n <span>File:" + d.data.source.file + "</span><br/>\n <span>Line:" + d.data.source.line + "</span><br/>\n <span>" + siblingPercentage + "% of all " + percentofParent + "% of parent</span>\n </div>";
15
+ }
16
+ export function defaultFlamegraphTooltip() {
17
+ var rootElement = d3.select('body');
18
+ var tooltip = null;
19
+ // Function to get HTML content from data.
20
+ var html = defaultLabel;
21
+ // Function to get text content from data.
22
+ var text = defaultLabel;
23
+ // Whether to use d3's .html() to set content, otherwise use .text().
24
+ var contentIsHTML = true;
25
+ function tip() {
26
+ tooltip = rootElement
27
+ .append('div')
28
+ .style('display', 'none')
29
+ .style('position', 'absolute')
30
+ .style('opacity', 0)
31
+ .style('pointer-events', 'none')
32
+ .style('z-index', 2000)
33
+ .attr('class', 'd3-flame-graph-tip');
34
+ }
35
+ tip.show = function (d) {
36
+ tooltip
37
+ .style('display', 'block')
38
+ .style('left', event.pageX + 5 + 'px')
39
+ .style('top', event.pageY + 5 + 'px')
40
+ .transition()
41
+ .duration(200)
42
+ .style('opacity', 1)
43
+ .style('pointer-events', 'all');
44
+ if (contentIsHTML) {
45
+ tooltip.html(html(d));
46
+ }
47
+ else {
48
+ tooltip.text(text(d));
49
+ }
50
+ return tip;
51
+ };
52
+ tip.hide = function () {
53
+ tooltip
54
+ .style('display', 'none')
55
+ .transition()
56
+ .duration(200)
57
+ .style('opacity', 0)
58
+ .style('pointer-events', 'none');
59
+ return tip;
60
+ };
61
+ /**
62
+ * Gets/sets a function converting the d3 data into the tooltip's textContent.
63
+ *
64
+ * Cannot be combined with tip.html().
65
+ */
66
+ tip.text = function (_) {
67
+ if (!arguments.length)
68
+ return text;
69
+ text = _;
70
+ contentIsHTML = false;
71
+ return tip;
72
+ };
73
+ /**
74
+ * Gets/sets a function converting the d3 data into the tooltip's innerHTML.
75
+ *
76
+ * Cannot be combined with tip.text().
77
+ *
78
+ * @deprecated prefer tip.text().
79
+ */
80
+ tip.html = function (_) {
81
+ if (!arguments.length)
82
+ return html;
83
+ html = _;
84
+ contentIsHTML = true;
85
+ return tip;
86
+ };
87
+ tip.destroy = function () {
88
+ tooltip.remove();
89
+ };
90
+ return tip;
91
+ }
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import 'd3-flame-graph/dist/d3-flamegraph.css';
3
+ export interface IFlameGraphData {
4
+ name: string;
5
+ count: number;
6
+ source?: IKeyValues;
7
+ children?: IFlameGraphData[];
8
+ }
9
+ declare const FlameGraph: ({ data, width, height, depth, searchFilters }: {
10
+ data: IFlameGraphData;
11
+ width: number;
12
+ height?: number | undefined;
13
+ depth?: number | undefined;
14
+ searchFilters?: IKeyValues<any>[] | undefined;
15
+ }) => React.JSX.Element;
16
+ export default FlameGraph;