@fle-ui/next 1.0.0 → 1.0.4-alpha.0

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 (198) hide show
  1. package/.history/.gitignore_20210922213827 +27 -0
  2. package/.history/.gitignore_20211029154108 +29 -0
  3. package/.history/.gitignore_20211029154109 +29 -0
  4. package/.history/.gitignore_20211029173434 +29 -0
  5. package/.history/.umirc_20210922213827.ts +153 -0
  6. package/.history/.umirc_20211018162341.ts +153 -0
  7. package/.history/{package_20211018113630.json → package_20211213140100.json} +7 -3
  8. package/.history/{package_20211018113634.json → package_20211223145956.json} +8 -3
  9. package/.history/{package_20211013165524.json → package_20211223211341.json} +9 -4
  10. package/.history/{package_20211018101440.json → package_20211223220710.json} +9 -4
  11. package/.history/package_20211223221147.json +146 -0
  12. package/.history/package_20211223221328.json +146 -0
  13. package/.history/package_20211223221445.json +146 -0
  14. package/.umirc.ts +2 -0
  15. package/dist/@fle-ui/next.css +2304 -2261
  16. package/dist/@fle-ui/next.css.map +1 -1
  17. package/dist/@fle-ui/next.js +1166 -1248
  18. package/dist/@fle-ui/next.js.map +1 -1
  19. package/dist/@fle-ui/next.min.css +3 -3
  20. package/dist/@fle-ui/next.min.css.map +1 -1
  21. package/dist/@fle-ui/next.min.js +3 -3
  22. package/dist/@fle-ui/next.min.js.map +1 -1
  23. package/docs-dist/{components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~00d1741d.js → components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~31d645aa.js} +2690 -1940
  24. package/docs-dist/components__avatar__avatar.md.js +227 -372
  25. package/docs-dist/components__button__button.md.js +27 -27
  26. package/docs-dist/components__form__form.md.js +1 -1
  27. package/docs-dist/components__layout__layout.md.js +1 -1
  28. package/docs-dist/components__modal__modal.md.js +17 -11
  29. package/docs-dist/components__popconfirm__popconfirm.md.js +51 -51
  30. package/docs-dist/components__skeleton__skeleton.md.chunk.css +1 -0
  31. package/docs-dist/components__skeleton__skeleton.md.js +1080 -0
  32. package/docs-dist/components__slider__slider.md.js +1 -1
  33. package/docs-dist/components__space__space.md.js +1 -1
  34. package/docs-dist/components__spin__spin.md.js +1 -1
  35. package/docs-dist/components__statistic__statistic.md.js +1 -1
  36. package/docs-dist/components__steps__steps.md.js +1 -1
  37. package/docs-dist/components__switch__switch.md.js +1 -1
  38. package/docs-dist/components__table__table.md.js +1 -1
  39. package/docs-dist/components__tabs__tabs.md.js +1 -1
  40. package/docs-dist/components__tag__tag.md.js +1 -1
  41. package/docs-dist/components__time-picker__time-picker.md.js +1 -1
  42. package/docs-dist/components__timeline__timeline.md.js +1 -1
  43. package/docs-dist/components__tooltip__tooltip.md.js +1 -1
  44. package/docs-dist/components__transfer__transfer.md.js +1 -1
  45. package/docs-dist/components__tree-select__tree-select.md.js +1 -1
  46. package/docs-dist/components__tree__tree.md.chunk.css +1 -0
  47. package/docs-dist/components__tree__tree.md.js +1775 -0
  48. package/docs-dist/components__typography__typography.md.js +1 -1
  49. package/docs-dist/components__upload__upload.md.js +7 -11
  50. package/docs-dist/demos_bmurcdaerb.js +1 -1
  51. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.chunk.css +2 -0
  52. package/docs-dist/{demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.js → demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_eert~demos_egami~demos_egas~1a5cf206.js} +1536 -1843
  53. package/docs-dist/demos_citsitats.js +1 -1
  54. package/docs-dist/demos_daolpu.chunk.css +2 -2
  55. package/docs-dist/demos_daolpu.js +2598 -2905
  56. package/docs-dist/demos_dirg.js +1 -1
  57. package/docs-dist/demos_drac.js +1 -1
  58. package/docs-dist/demos_ecaps.js +1 -1
  59. package/docs-dist/demos_eert.chunk.css +1 -0
  60. package/docs-dist/demos_eert.js +1203 -0
  61. package/docs-dist/demos_egami.js +1 -1
  62. package/docs-dist/demos_egassem.js +1 -1
  63. package/docs-dist/demos_egdab.js +1 -1
  64. package/docs-dist/demos_elbat.chunk.css +2 -2
  65. package/docs-dist/demos_elbat.js +649 -956
  66. package/docs-dist/demos_enilemit.js +1 -1
  67. package/docs-dist/demos_espalloc.js +1 -1
  68. package/docs-dist/demos_etar.js +75 -70
  69. package/docs-dist/demos_etelpmoc-otua.js +1 -1
  70. package/docs-dist/demos_gat.js +1 -1
  71. package/docs-dist/demos_hctiws.js +1 -1
  72. package/docs-dist/demos_ladom.js +1 -1
  73. package/docs-dist/demos_lesuorac.js +1 -1
  74. package/docs-dist/demos_mrifnocpop.js +2 -2
  75. package/docs-dist/demos_mrof.js +1 -2
  76. package/docs-dist/demos_nips.js +1 -1
  77. package/docs-dist/demos_noitacifiton.js +2 -2
  78. package/docs-dist/demos_noitanigap.js +1 -1
  79. package/docs-dist/demos_noteleks.js +691 -0
  80. package/docs-dist/demos_nottub.js +1 -1
  81. package/docs-dist/demos_nwodpord.js +1 -1
  82. package/docs-dist/demos_oidar.js +1 -1
  83. package/docs-dist/demos_pitloot.js +1 -1
  84. package/docs-dist/demos_pot-kcab.js +10 -10
  85. package/docs-dist/demos_radnelac.js +1 -1
  86. package/docs-dist/demos_ratava.js +4 -4
  87. package/docs-dist/demos_rebmun-tupni.js +1 -1
  88. package/docs-dist/demos_redacsac.js +1 -1
  89. package/docs-dist/demos_redaeh-egap.js +1 -1
  90. package/docs-dist/demos_redils.js +1 -1
  91. package/docs-dist/demos_redivid.js +1 -1
  92. package/docs-dist/demos_redivorp-gifnoc.js +6 -6
  93. package/docs-dist/demos_refsnart.js +1 -1
  94. package/docs-dist/demos_rekcip-emit.js +1 -1
  95. package/docs-dist/demos_rekcip-etad.js +3 -3
  96. package/docs-dist/demos_revopop.js +1 -1
  97. package/docs-dist/demos_reward.js +1 -1
  98. package/docs-dist/demos_rohcna.js +1 -1
  99. package/docs-dist/demos_sbat.chunk.css +2 -2
  100. package/docs-dist/demos_sbat.js +2302 -2609
  101. package/docs-dist/demos_snoitnem.js +1 -1
  102. package/docs-dist/demos_snoitpircsed.js +1 -1
  103. package/docs-dist/demos_spets.js +1 -1
  104. package/docs-dist/demos_ssergorp.js +1 -1
  105. package/docs-dist/demos_tceles.js +1 -1
  106. package/docs-dist/demos_tluser.js +1 -1
  107. package/docs-dist/demos_tnemmoc.js +1 -1
  108. package/docs-dist/demos_trela.js +1 -1
  109. package/docs-dist/demos_tsil.js +1 -1
  110. package/docs-dist/demos_tuoyal.js +1 -1
  111. package/docs-dist/demos_tupni.js +2 -2
  112. package/docs-dist/demos_unem.js +1 -1
  113. package/docs-dist/demos_xiffa.js +1 -1
  114. package/docs-dist/demos_xobkcehc.js +1 -1
  115. package/docs-dist/demos_yhpargopyt.js +1 -1
  116. package/docs-dist/demos_ytpme.js +1 -1
  117. package/docs-dist/docs__document__getting-started.md.js +1 -1
  118. package/docs-dist/docs__document__introduce.md.js +1 -1
  119. package/docs-dist/docs__document__practical-projects.md.js +1 -1
  120. package/docs-dist/docs__index.md.js +1 -1
  121. package/docs-dist/docs__story__index.md.js +23 -1
  122. package/docs-dist/dumi_demos.js +1 -1
  123. package/docs-dist/umi.js +475 -242
  124. package/docs-dist/{vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.chunk.css → vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~06d8f7d3.chunk.css} +0 -0
  125. package/docs-dist/{vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.js → vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~06d8f7d3.js} +0 -0
  126. package/docs-dist/{vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~ac3aca9a.js → vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~11c8b8d8.js} +0 -0
  127. package/docs-dist/{vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~3ba4f4a1.js → vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~44483e31.js} +0 -0
  128. package/docs-dist/{vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_egami~~4cc402e9.js → vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_eert~d~f20ff6ec.js} +9204 -8936
  129. package/docs-dist/vendors~demos_gat.js +1 -1
  130. package/docs-dist/vendors~demos_ladom.js +1 -1
  131. package/docs-dist/vendors~demos_redivorp-gifnoc.js +1 -1
  132. package/docs-dist/vendors~demos_sbat.js +1 -1
  133. package/docs-dist/vendors~demos_trela.js +1 -1
  134. package/docs-dist/vendors~demos_tsil.js +1 -1
  135. package/docs-dist/vendors~demos_tuoyal.js +1 -1
  136. package/docs-dist/vendors~wrappers.js +1 -1
  137. package/docs-dist/wrappers.js +2 -2
  138. package/es/badge/style/index.css +5 -5
  139. package/es/cascader/index.d.ts +11 -129
  140. package/es/cascader/index.js +151 -534
  141. package/es/cascader/style/css.js +1 -1
  142. package/es/cascader/style/index.css +205 -180
  143. package/es/cascader/style/index.d.ts +1 -1
  144. package/es/cascader/style/index.js +1 -1
  145. package/es/cascader/style/index.less +66 -205
  146. package/es/cascader/style/rtl.less +10 -84
  147. package/es/drawer/style/index.css +1 -1
  148. package/es/input-number/style/index.css +18 -4
  149. package/es/input-number/style/index.less +15 -2
  150. package/es/input-number/style/rtl.less +24 -7
  151. package/es/modal/style/index.css +10 -9
  152. package/es/modal/style/modal.less +3 -2
  153. package/es/popover/style/index.css +2 -2
  154. package/es/progress/style/index.css +3 -3
  155. package/es/result/noFound.js +1 -1
  156. package/es/result/style/index.css +1 -1
  157. package/es/style/color/colors.less +3 -3
  158. package/es/style/theme.less +7 -4
  159. package/es/table/demo/drag-sorting/index.less +2 -2
  160. package/es/table/style/index.css +3 -0
  161. package/es/tag/style/index.css +5 -5
  162. package/es/tooltip/style/index.css +2 -2
  163. package/es/upload/style/index.css +2 -2
  164. package/es/upload/style/index.less +5 -3
  165. package/lib/badge/style/index.css +5 -5
  166. package/lib/cascader/index.d.ts +11 -129
  167. package/lib/cascader/index.js +153 -545
  168. package/lib/cascader/style/css.js +1 -1
  169. package/lib/cascader/style/index.css +205 -180
  170. package/lib/cascader/style/index.d.ts +1 -1
  171. package/lib/cascader/style/index.js +1 -1
  172. package/lib/cascader/style/index.less +66 -205
  173. package/lib/cascader/style/rtl.less +10 -84
  174. package/lib/drawer/style/index.css +1 -1
  175. package/lib/input-number/style/index.css +18 -4
  176. package/lib/input-number/style/index.less +15 -2
  177. package/lib/input-number/style/rtl.less +24 -7
  178. package/lib/modal/style/index.css +10 -9
  179. package/lib/modal/style/modal.less +3 -2
  180. package/lib/popover/style/index.css +2 -2
  181. package/lib/progress/style/index.css +3 -3
  182. package/lib/result/noFound.js +1 -1
  183. package/lib/result/style/index.css +1 -1
  184. package/lib/style/color/colors.less +3 -3
  185. package/lib/style/theme.less +7 -4
  186. package/lib/table/demo/drag-sorting/index.less +2 -2
  187. package/lib/table/style/index.css +3 -0
  188. package/lib/tag/style/index.css +5 -5
  189. package/lib/tooltip/style/index.css +2 -2
  190. package/lib/upload/style/index.css +2 -2
  191. package/lib/upload/style/index.less +5 -3
  192. package/package.json +3 -2
  193. package/report.html +2 -2
  194. package/.history/package_20211011190148.json +0 -141
  195. package/.history/package_20211011193053.json +0 -141
  196. package/.history/package_20211018113658.json +0 -141
  197. package/.history/package_20211018113740.json +0 -141
  198. package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.chunk.css +0 -2
@@ -35,7 +35,7 @@
35
35
  transition: all 0.3s;
36
36
  }
37
37
  .ant-progress-steps-item-active {
38
- background: #1890ff;
38
+ background: #2c68ff;
39
39
  }
40
40
  .ant-progress-small.ant-progress-line,
41
41
  .ant-progress-small.ant-progress-line .ant-progress-text .anticon {
@@ -68,12 +68,12 @@
68
68
  animation: ant-progress-appear 0.3s;
69
69
  }
70
70
  .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path {
71
- stroke: #1890ff;
71
+ stroke: #2c68ff;
72
72
  }
73
73
  .ant-progress-success-bg,
74
74
  .ant-progress-bg {
75
75
  position: relative;
76
- background-color: #1890ff;
76
+ background-color: #2c68ff;
77
77
  border-radius: 100px;
78
78
  transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
79
79
  }
@@ -50,7 +50,7 @@ var NoFound = function NoFound() {
50
50
  fill: "#FFF"
51
51
  }), /*#__PURE__*/React.createElement("path", {
52
52
  d: "M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",
53
- fill: "#1890FF"
53
+ fill: "#2c68ff"
54
54
  }), /*#__PURE__*/React.createElement("path", {
55
55
  d: "M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",
56
56
  fill: "#FFF"
@@ -8,7 +8,7 @@
8
8
  color: #ff4d4f;
9
9
  }
10
10
  .ant-result-info .ant-result-icon > .anticon {
11
- color: #1890ff;
11
+ color: #2c68ff;
12
12
  }
13
13
  .ant-result-warning .ant-result-icon > .anticon {
14
14
  color: #faad14;
@@ -1,7 +1,7 @@
1
1
  @import 'colorPalette';
2
2
 
3
3
  // color palettes
4
- @blue-base: #1890ff;
4
+ @blue-base: #2c68ff;
5
5
  @blue-1: color(~`colorPalette('@{blue-6}', 1) `);
6
6
  @blue-2: color(~`colorPalette('@{blue-6}', 2) `);
7
7
  @blue-3: color(~`colorPalette('@{blue-6}', 3) `);
@@ -158,5 +158,5 @@
158
158
  @gold-9: color(~`colorPalette('@{gold-6}', 9) `);
159
159
  @gold-10: color(~`colorPalette('@{gold-6}', 10) `);
160
160
 
161
- @preset-colors: pink, magenta, red, volcano, orange, yellow, gold, cyan, lime, green, blue, geekblue,
162
- purple;
161
+ @preset-colors: pink, magenta, red, volcano, orange, yellow, gold, cyan, lime,
162
+ green, blue, geekblue, purple;
@@ -15,10 +15,13 @@
15
15
  @disabled-color: @text-color-secondary;
16
16
  @disabled-bg: #f1f1f1;
17
17
 
18
- @modal-header-padding: 13px 20px;
19
- @modal-body-padding: 20px;
20
- @modal-confirm-body-padding: 28px 28px 20px;
21
- @modal-header-close-size: 49px;
18
+ @modal-header-padding: 20px 20px;
19
+ // @modal-body-padding: 20px;
20
+ // @modal-confirm-body-padding: 28px 28px 20px;
21
+ @modal-header-close-size: 63px;
22
+ @modal-footer-padding: 20px 20px;
23
+ @modal-footer-padding-vertical: 16px;
24
+ @modal-footer-padding-horizontal: 24px;
22
25
 
23
26
  @pagination-item-bg-active: @primary-color;
24
27
  @pagination-item-color-active: #ffffff;
@@ -1,7 +1,7 @@
1
1
  .components-table-demo-drag-sorting tr.drop-over-downward td {
2
- border-bottom: 2px dashed #1890ff;
2
+ border-bottom: 2px dashed #2c68ff;
3
3
  }
4
4
 
5
5
  .components-table-demo-drag-sorting tr.drop-over-upward td {
6
- border-top: 2px dashed #1890ff;
6
+ border-top: 2px dashed #2c68ff;
7
7
  }
@@ -618,6 +618,7 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
618
618
  }
619
619
  .ant-table-cell-fix-left,
620
620
  .ant-table-cell-fix-right {
621
+ position: -webkit-sticky !important;
621
622
  position: sticky !important;
622
623
  z-index: 2;
623
624
  background: #fff;
@@ -687,11 +688,13 @@ tr.ant-table-expanded-row .ant-descriptions-view table {
687
688
  box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, 0.15);
688
689
  }
689
690
  .ant-table-sticky-holder {
691
+ position: -webkit-sticky;
690
692
  position: sticky;
691
693
  z-index: calc(2 + 1);
692
694
  background: #fff;
693
695
  }
694
696
  .ant-table-sticky-scroll {
697
+ position: -webkit-sticky;
695
698
  position: sticky;
696
699
  bottom: 0;
697
700
  z-index: calc(2 + 1);
@@ -177,14 +177,14 @@
177
177
  border-color: #52c41a;
178
178
  }
179
179
  .ant-tag-blue {
180
- color: #096dd9;
181
- background: #e6f7ff;
182
- border-color: #91d5ff;
180
+ color: #1a4ad9;
181
+ background: #f0f7ff;
182
+ border-color: #a6c8ff;
183
183
  }
184
184
  .ant-tag-blue-inverse {
185
185
  color: #fff;
186
- background: #1890ff;
187
- border-color: #1890ff;
186
+ background: #2c68ff;
187
+ border-color: #2c68ff;
188
188
  }
189
189
  .ant-tag-geekblue {
190
190
  color: #1d39c4;
@@ -224,10 +224,10 @@
224
224
  background-color: #52c41a;
225
225
  }
226
226
  .ant-tooltip-blue .ant-tooltip-inner {
227
- background-color: #1890ff;
227
+ background-color: #2c68ff;
228
228
  }
229
229
  .ant-tooltip-blue .ant-tooltip-arrow-content {
230
- background-color: #1890ff;
230
+ background-color: #2c68ff;
231
231
  }
232
232
  .ant-tooltip-geekblue .ant-tooltip-inner {
233
233
  background-color: #2f54eb;
@@ -288,8 +288,8 @@
288
288
  .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#e6f7ff'] {
289
289
  fill: #fff2f0;
290
290
  }
291
- .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'],
292
- .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#1890ff'] {
291
+ .ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#2c68ff'],
292
+ .ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill='#2c68ff'] {
293
293
  fill: #f42d2d;
294
294
  }
295
295
  .ant-upload-list-picture .ant-upload-list-item-icon,
@@ -269,7 +269,8 @@
269
269
  position: relative;
270
270
  height: 66px;
271
271
  padding: @padding-xs;
272
- border: @border-width-base @upload-picture-card-border-style @border-color-base;
272
+ border: @border-width-base @upload-picture-card-border-style
273
+ @border-color-base;
273
274
  border-radius: @border-radius-base;
274
275
 
275
276
  &:hover {
@@ -313,7 +314,7 @@
313
314
  fill: @error-color-deprecated-bg;
314
315
  }
315
316
 
316
- &[fill='#1890ff'] {
317
+ &[fill='#2c68ff'] {
317
318
  fill: @error-color;
318
319
  }
319
320
  }
@@ -499,7 +500,8 @@
499
500
  &-text,
500
501
  &-picture {
501
502
  &-container {
502
- transition: opacity @animation-duration-slow, height @animation-duration-slow;
503
+ transition: opacity @animation-duration-slow,
504
+ height @animation-duration-slow;
503
505
 
504
506
  &::before {
505
507
  display: table;
@@ -1874,7 +1874,7 @@ html {
1874
1874
  }
1875
1875
  .ant-badge-status-processing {
1876
1876
  position: relative;
1877
- background-color: #1890ff;
1877
+ background-color: #2c68ff;
1878
1878
  }
1879
1879
  .ant-badge-status-processing::after {
1880
1880
  position: absolute;
@@ -1882,7 +1882,7 @@ html {
1882
1882
  left: 0;
1883
1883
  width: 100%;
1884
1884
  height: 100%;
1885
- border: 1px solid #1890ff;
1885
+ border: 1px solid #2c68ff;
1886
1886
  border-radius: 50%;
1887
1887
  -webkit-animation: antStatusProcessing 1.2s infinite ease-in-out;
1888
1888
  animation: antStatusProcessing 1.2s infinite ease-in-out;
@@ -1928,7 +1928,7 @@ html {
1928
1928
  background: #52c41a;
1929
1929
  }
1930
1930
  .ant-badge-status-blue {
1931
- background: #1890ff;
1931
+ background: #2c68ff;
1932
1932
  }
1933
1933
  .ant-badge-status-geekblue {
1934
1934
  background: #2f54eb;
@@ -2196,8 +2196,8 @@ html {
2196
2196
  background: #52c41a;
2197
2197
  }
2198
2198
  .ant-ribbon-color-blue {
2199
- color: #1890ff;
2200
- background: #1890ff;
2199
+ color: #2c68ff;
2200
+ background: #2c68ff;
2201
2201
  }
2202
2202
  .ant-ribbon-color-geekblue {
2203
2203
  color: #2f54eb;
@@ -1,135 +1,17 @@
1
1
  import * as React from 'react';
2
- import Input from '../input';
3
- import { ConfigConsumerProps, RenderEmptyHandler, DirectionType } from '../config-provider';
4
- import { SizeType } from '../config-provider/SizeContext';
5
- export interface CascaderOptionType {
6
- value?: string | number;
7
- label?: React.ReactNode;
8
- disabled?: boolean;
9
- isLeaf?: boolean;
10
- loading?: boolean;
11
- children?: Array<CascaderOptionType>;
12
- [key: string]: any;
13
- }
14
- export interface FieldNamesType {
15
- value?: string | number;
16
- label?: string;
17
- children?: string;
18
- }
19
- export interface FilledFieldNamesType {
20
- value: string | number;
21
- label: string;
22
- children: string;
23
- }
24
- export declare type CascaderExpandTrigger = 'click' | 'hover';
25
- export declare type CascaderValueType = (string | number)[];
26
- export interface ShowSearchType {
27
- filter?: (inputValue: string, path: CascaderOptionType[], names: FilledFieldNamesType) => boolean;
28
- render?: (inputValue: string, path: CascaderOptionType[], prefixCls: string | undefined, names: FilledFieldNamesType) => React.ReactNode;
29
- sort?: (a: CascaderOptionType[], b: CascaderOptionType[], inputValue: string, names: FilledFieldNamesType) => number;
30
- matchInputWidth?: boolean;
31
- limit?: number | false;
32
- }
33
- export interface CascaderProps {
34
- /** 可选项数据源 */
35
- options: CascaderOptionType[];
36
- /** 默认的选中项 */
37
- defaultValue?: CascaderValueType;
38
- /** 指定选中项 */
39
- value?: CascaderValueType;
40
- /** 选择完成后的回调 */
41
- onChange?: (value: CascaderValueType, selectedOptions?: CascaderOptionType[]) => void;
42
- /** 选择后展示的渲染函数 */
43
- displayRender?: (label: string[], selectedOptions?: CascaderOptionType[]) => React.ReactNode;
44
- /** 自定义样式 */
45
- style?: React.CSSProperties;
46
- /** 自定义类名 */
47
- className?: string;
48
- /** 自定义浮层类名 */
49
- popupClassName?: string;
50
- /** 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` */
51
- popupPlacement?: string;
52
- /** 输入框占位文本 */
53
- placeholder?: string;
54
- /** 输入框大小,可选 `large` `default` `small` */
2
+ import type { CascaderProps as RcCascaderProps } from 'rc-cascader';
3
+ import type { FieldNames } from 'rc-cascader/lib/interface';
4
+ import type { SizeType } from '../config-provider/SizeContext';
5
+ export declare type FieldNamesType = FieldNames;
6
+ export declare type FilledFieldNamesType = Required<FieldNamesType>;
7
+ export interface CascaderProps extends Omit<RcCascaderProps, 'checkable'> {
8
+ multiple?: boolean;
55
9
  size?: SizeType;
56
- /** 输入框 name */
57
- name?: string;
58
- /** 输入框 id */
59
- id?: string;
60
- /** Whether has border style */
61
10
  bordered?: boolean;
62
- /** 禁用 */
63
- disabled?: boolean;
64
- /** 是否支持清除 */
65
- allowClear?: boolean;
66
- /** 自动获取焦点 */
67
- autoFocus?: boolean;
68
- showSearch?: boolean | ShowSearchType;
69
- notFoundContent?: React.ReactNode;
70
- loadData?: (selectedOptions?: CascaderOptionType[]) => void;
71
- /** 次级菜单的展开方式,可选 'click' 和 'hover' */
72
- expandTrigger?: CascaderExpandTrigger;
73
- expandIcon?: React.ReactNode;
74
- /** 当此项为 true 时,点选每级菜单选项值都会发生变化 */
75
- changeOnSelect?: boolean;
76
- /** 浮层可见变化时回调 */
77
- onPopupVisibleChange?: (popupVisible: boolean) => void;
78
- prefixCls?: string;
79
- inputPrefixCls?: string;
80
- getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
81
- popupVisible?: boolean;
82
- /** Use this after antd@3.7.0 */
83
- fieldNames?: FieldNamesType;
84
- suffixIcon?: React.ReactNode;
85
- dropdownRender?: (menus: React.ReactNode) => React.ReactNode;
86
- autoComplete?: string;
87
- transitionName?: string;
88
- children?: React.ReactElement;
89
- }
90
- export interface CascaderState {
91
- inputFocused: boolean;
92
- inputValue: string;
93
- value: CascaderValueType;
94
- popupVisible: boolean | undefined;
95
- flattenOptions: CascaderOptionType[][] | undefined;
96
- prevProps: CascaderProps;
97
- }
98
- interface CascaderLocale {
99
- placeholder?: string;
100
11
  }
101
- declare class Cascader extends React.Component<CascaderProps, CascaderState> {
102
- static defaultProps: {
103
- options: never[];
104
- disabled: boolean;
105
- allowClear: boolean;
106
- bordered: boolean;
107
- };
108
- static getDerivedStateFromProps(nextProps: CascaderProps, { prevProps }: CascaderState): Partial<CascaderState>;
109
- cachedOptions: CascaderOptionType[];
110
- clearSelectionTimeout: any;
111
- private input;
112
- constructor(props: CascaderProps);
113
- componentWillUnmount(): void;
114
- setValue: (value: CascaderValueType, selectedOptions?: CascaderOptionType[]) => void;
115
- getLabel(): any;
116
- saveInput: (node: Input) => void;
117
- handleChange: (value: any, selectedOptions: CascaderOptionType[]) => void;
118
- handlePopupVisibleChange: (popupVisible: boolean) => void;
119
- handleInputBlur: () => void;
120
- handleInputClick: (e: React.MouseEvent<HTMLInputElement>) => void;
121
- handleKeyDown: (e: React.KeyboardEvent<HTMLInputElement>) => void;
122
- handleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
123
- clearSelection: (e: React.MouseEvent<HTMLElement>) => void;
124
- generateFilteredOptions(prefixCls: string | undefined, renderEmpty: RenderEmptyHandler): CascaderOptionType[] | {
125
- [x: string]: {} | null | undefined;
126
- disabled: boolean;
127
- isEmptyNode: boolean;
128
- }[];
129
- focus(): void;
130
- blur(): void;
131
- getPopupPlacement(direction?: DirectionType): string;
132
- renderCascader: ({ getPopupContainer: getContextPopupContainer, getPrefixCls, renderEmpty, direction, }: ConfigConsumerProps, locale: CascaderLocale) => JSX.Element;
133
- render(): JSX.Element;
12
+ interface CascaderRef {
13
+ focus: () => void;
14
+ blur: () => void;
134
15
  }
16
+ declare const Cascader: React.ForwardRefExoticComponent<CascaderProps & React.RefAttributes<CascaderRef>>;
135
17
  export default Cascader;