@regenbio/regenbio-components-react 1.2.14 → 1.2.16

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 (901) hide show
  1. package/.codecov.yml +6 -0
  2. package/.dumi/app.tsx +1 -0
  3. package/.dumi/tsconfig.json +4 -0
  4. package/.dumirc.ts +426 -0
  5. package/.eslintignore +12 -0
  6. package/.eslintrc.js +6 -0
  7. package/.fatherrc.base.ts +23 -0
  8. package/.github/ISSUE_TEMPLATE/bug_report.md +49 -0
  9. package/.github/ISSUE_TEMPLATE/feature_request.md +41 -0
  10. package/.github/ISSUE_TEMPLATE/question.md +29 -0
  11. package/.github/dependabot.yml +11 -0
  12. package/.github/workflows/build.yml +27 -0
  13. package/.github/workflows/codeql.yml +41 -0
  14. package/.github/workflows/coverage.yml +31 -0
  15. package/.github/workflows/issue-labeled.yml +37 -0
  16. package/.github/workflows/issue-open-check.yml +34 -0
  17. package/.github/workflows/pkg.pr.new.yml +37 -0
  18. package/.github/workflows/preview-build.yml +46 -0
  19. package/.github/workflows/preview-deploy.yml +92 -0
  20. package/.github/workflows/preview-start.yml +18 -0
  21. package/.github/workflows/rebase.yml +17 -0
  22. package/.prettierignore +9 -0
  23. package/.prettierrc.js +7 -0
  24. package/CONTRIBUTING.md +77 -0
  25. package/LICENSE.md +7 -0
  26. package/README.es-PR.md +199 -0
  27. package/README.md +203 -0
  28. package/README.zh-CN.md +203 -0
  29. package/docs/changelog.en-US.md +1115 -0
  30. package/docs/changelog.md +1136 -0
  31. package/docs/components/customization-value-type.tsx +222 -0
  32. package/docs/components/schema.$tab-api.md +8 -0
  33. package/docs/components/schema.en-US.md +477 -0
  34. package/docs/components/schema.md +477 -0
  35. package/docs/components/valueEnum-map.tsx +45 -0
  36. package/docs/components/valueType.tsx +299 -0
  37. package/docs/components.en-US.md +183 -0
  38. package/docs/components.md +78 -0
  39. package/docs/docs/faq.en-US.md +75 -0
  40. package/docs/docs/faq.md +75 -0
  41. package/docs/docs/index.en-US.md +53 -0
  42. package/docs/docs/index.md +56 -0
  43. package/docs/docs/intro.en-US.md +125 -0
  44. package/docs/docs/intro.md +126 -0
  45. package/docs/index.en-US.md +87 -0
  46. package/docs/index.md +56 -0
  47. package/docs/playground/index.en-US.md +14 -0
  48. package/docs/playground/index.md +14 -0
  49. package/docs/playground/pro-descriptions.en-US.md +10 -0
  50. package/docs/playground/pro-descriptions.md +10 -0
  51. package/docs/playground/pro-form.en-US.md +18 -0
  52. package/docs/playground/pro-form.md +19 -0
  53. package/docs/playground/pro-layout.en-US.md +16 -0
  54. package/docs/playground/pro-layout.md +17 -0
  55. package/docs/playground/pro-table.en-US.md +11 -0
  56. package/docs/playground/pro-table.md +11 -0
  57. package/lerna.json +21 -0
  58. package/package.json +164 -36
  59. package/packages/card/.fatherrc.ts +5 -0
  60. package/packages/card/CHANGELOG.md +1489 -0
  61. package/packages/card/README.md +19 -0
  62. package/packages/card/package.json +61 -0
  63. package/packages/card/src/ProCard.tsx +29 -0
  64. package/packages/card/src/components/Actions/index.tsx +40 -0
  65. package/packages/card/src/components/Actions/style.ts +102 -0
  66. package/packages/card/src/components/Card/index.tsx +293 -0
  67. package/packages/card/src/components/Card/style.ts +314 -0
  68. package/packages/card/src/components/CheckCard/Group.tsx +474 -0
  69. package/packages/card/src/components/CheckCard/demos/avatar.tsx +16 -0
  70. package/packages/card/src/components/CheckCard/demos/basic.tsx +18 -0
  71. package/packages/card/src/components/CheckCard/demos/compose.tsx +28 -0
  72. package/packages/card/src/components/CheckCard/demos/custom.tsx +9 -0
  73. package/packages/card/src/components/CheckCard/demos/defaultChecked.tsx +12 -0
  74. package/packages/card/src/components/CheckCard/demos/description.tsx +35 -0
  75. package/packages/card/src/components/CheckCard/demos/disabled.tsx +34 -0
  76. package/packages/card/src/components/CheckCard/demos/extra.tsx +41 -0
  77. package/packages/card/src/components/CheckCard/demos/form.tsx +58 -0
  78. package/packages/card/src/components/CheckCard/demos/grid.tsx +30 -0
  79. package/packages/card/src/components/CheckCard/demos/group.tsx +56 -0
  80. package/packages/card/src/components/CheckCard/demos/image.tsx +20 -0
  81. package/packages/card/src/components/CheckCard/demos/list.tsx +83 -0
  82. package/packages/card/src/components/CheckCard/demos/loading.tsx +3 -0
  83. package/packages/card/src/components/CheckCard/demos/multiple.tsx +51 -0
  84. package/packages/card/src/components/CheckCard/demos/single.tsx +23 -0
  85. package/packages/card/src/components/CheckCard/demos/size.tsx +23 -0
  86. package/packages/card/src/components/CheckCard/demos/title.tsx +22 -0
  87. package/packages/card/src/components/CheckCard/index.en-US.md +154 -0
  88. package/packages/card/src/components/CheckCard/index.md +154 -0
  89. package/packages/card/src/components/CheckCard/index.tsx +379 -0
  90. package/packages/card/src/components/CheckCard/style.ts +216 -0
  91. package/packages/card/src/components/Divider/index.tsx +42 -0
  92. package/packages/card/src/components/Divider/style.ts +48 -0
  93. package/packages/card/src/components/Loading/index.tsx +64 -0
  94. package/packages/card/src/components/Loading/style.ts +55 -0
  95. package/packages/card/src/components/Operation/index.tsx +38 -0
  96. package/packages/card/src/components/Operation/style.ts +33 -0
  97. package/packages/card/src/components/Statistic/index.tsx +129 -0
  98. package/packages/card/src/components/Statistic/style.ts +110 -0
  99. package/packages/card/src/components/StatisticCard/demos/basic.tsx +40 -0
  100. package/packages/card/src/components/StatisticCard/demos/chart.tsx +20 -0
  101. package/packages/card/src/components/StatisticCard/demos/fomula.tsx +37 -0
  102. package/packages/card/src/components/StatisticCard/demos/footer.tsx +42 -0
  103. package/packages/card/src/components/StatisticCard/demos/group-chart.tsx +65 -0
  104. package/packages/card/src/components/StatisticCard/demos/group.tsx +57 -0
  105. package/packages/card/src/components/StatisticCard/demos/horizontal-left.tsx +31 -0
  106. package/packages/card/src/components/StatisticCard/demos/horizontal.tsx +31 -0
  107. package/packages/card/src/components/StatisticCard/demos/icon.tsx +77 -0
  108. package/packages/card/src/components/StatisticCard/demos/layout.tsx +90 -0
  109. package/packages/card/src/components/StatisticCard/demos/status.tsx +46 -0
  110. package/packages/card/src/components/StatisticCard/demos/tabs-statistic.tsx +55 -0
  111. package/packages/card/src/components/StatisticCard/demos/tabs.tsx +55 -0
  112. package/packages/card/src/components/StatisticCard/demos/total-layout.tsx +136 -0
  113. package/packages/card/src/components/StatisticCard/demos/total.tsx +58 -0
  114. package/packages/card/src/components/StatisticCard/demos/trend.tsx +15 -0
  115. package/packages/card/src/components/StatisticCard/index.en-US.md +152 -0
  116. package/packages/card/src/components/StatisticCard/index.md +152 -0
  117. package/packages/card/src/components/StatisticCard/index.tsx +107 -0
  118. package/packages/card/src/components/StatisticCard/style.ts +48 -0
  119. package/packages/card/src/components/TabPane/index.tsx +94 -0
  120. package/packages/card/src/components/card.en-US.md +219 -0
  121. package/packages/card/src/components/card.md +212 -0
  122. package/packages/card/src/demos/actions.tsx +59 -0
  123. package/packages/card/src/demos/basic.tsx +54 -0
  124. package/packages/card/src/demos/bordered.tsx +15 -0
  125. package/packages/card/src/demos/collapsible.tsx +110 -0
  126. package/packages/card/src/demos/colspan.tsx +80 -0
  127. package/packages/card/src/demos/divider.tsx +36 -0
  128. package/packages/card/src/demos/group.tsx +19 -0
  129. package/packages/card/src/demos/gutter.tsx +29 -0
  130. package/packages/card/src/demos/headerBordered.tsx +15 -0
  131. package/packages/card/src/demos/headless.tsx +5 -0
  132. package/packages/card/src/demos/hoverable.tsx +11 -0
  133. package/packages/card/src/demos/inner.tsx +32 -0
  134. package/packages/card/src/demos/layout.tsx +18 -0
  135. package/packages/card/src/demos/loading.tsx +28 -0
  136. package/packages/card/src/demos/multipleLine.tsx +43 -0
  137. package/packages/card/src/demos/responsive.tsx +72 -0
  138. package/packages/card/src/demos/split.tsx +46 -0
  139. package/packages/card/src/demos/split2.tsx +30 -0
  140. package/packages/card/src/demos/split23.tsx +14 -0
  141. package/packages/card/src/demos/steps-v.tsx +59 -0
  142. package/packages/card/src/demos/tabs-card.tsx +18 -0
  143. package/packages/card/src/demos/tabs.tsx +56 -0
  144. package/packages/card/src/index.tsx +30 -0
  145. package/packages/card/src/typing.ts +100 -0
  146. package/packages/card/tsconfig.json +21 -0
  147. package/packages/components/.fatherrc.ts +15 -0
  148. package/packages/components/CHANGELOG.md +841 -0
  149. package/packages/components/README.md +19 -0
  150. package/packages/components/package.json +62 -0
  151. package/packages/components/src/index.tsx +12 -0
  152. package/packages/components/tsconfig.json +32 -0
  153. package/packages/descriptions/.fatherrc.ts +5 -0
  154. package/packages/descriptions/CHANGELOG.md +1740 -0
  155. package/packages/descriptions/README.md +53 -0
  156. package/packages/descriptions/package.json +60 -0
  157. package/packages/descriptions/src/components/descriptions.en-US.md +168 -0
  158. package/packages/descriptions/src/components/descriptions.md +173 -0
  159. package/packages/descriptions/src/demos/arrayDataIndex.tsx +66 -0
  160. package/packages/descriptions/src/demos/base.demo-test.tsx +36 -0
  161. package/packages/descriptions/src/demos/base.tsx +115 -0
  162. package/packages/descriptions/src/demos/columns.tsx +127 -0
  163. package/packages/descriptions/src/demos/customization-value-type.tsx +166 -0
  164. package/packages/descriptions/src/demos/dynamic-descriptions.tsx +319 -0
  165. package/packages/descriptions/src/demos/editable.tsx +138 -0
  166. package/packages/descriptions/src/demos/format.tsx +62 -0
  167. package/packages/descriptions/src/demos/request.tsx +37 -0
  168. package/packages/descriptions/src/demos/use-data-source.tsx +78 -0
  169. package/packages/descriptions/src/index.tsx +676 -0
  170. package/packages/descriptions/src/useFetchData.tsx +93 -0
  171. package/packages/descriptions/tsconfig.json +26 -0
  172. package/packages/field/.fatherrc.ts +5 -0
  173. package/packages/field/CHANGELOG.md +2017 -0
  174. package/packages/field/README.md +17 -0
  175. package/packages/field/package.json +56 -0
  176. package/packages/field/src/FieldHOC/index.tsx +55 -0
  177. package/packages/field/src/components/Cascader/index.tsx +167 -0
  178. package/packages/field/src/components/Checkbox/index.tsx +149 -0
  179. package/packages/field/src/components/Code/index.tsx +78 -0
  180. package/packages/field/src/components/ColorPicker/index.tsx +117 -0
  181. package/packages/field/src/components/ColorPicker/old.tsx +121 -0
  182. package/packages/field/src/components/DatePicker/index.tsx +143 -0
  183. package/packages/field/src/components/Digit/index.tsx +93 -0
  184. package/packages/field/src/components/DigitRange/index.tsx +150 -0
  185. package/packages/field/src/components/FromNow/index.tsx +67 -0
  186. package/packages/field/src/components/Image/index.tsx +61 -0
  187. package/packages/field/src/components/IndexColumn/index.tsx +54 -0
  188. package/packages/field/src/components/Money/index.tsx +454 -0
  189. package/packages/field/src/components/Options/index.tsx +89 -0
  190. package/packages/field/src/components/Password/index.tsx +71 -0
  191. package/packages/field/src/components/Percent/index.tsx +109 -0
  192. package/packages/field/src/components/Percent/util.ts +26 -0
  193. package/packages/field/src/components/Progress/index.tsx +81 -0
  194. package/packages/field/src/components/Radio/index.tsx +128 -0
  195. package/packages/field/src/components/RangePicker/index.tsx +166 -0
  196. package/packages/field/src/components/Rate/index.tsx +36 -0
  197. package/packages/field/src/components/Second/index.tsx +88 -0
  198. package/packages/field/src/components/Segmented/index.tsx +93 -0
  199. package/packages/field/src/components/Select/LightSelect/index.tsx +286 -0
  200. package/packages/field/src/components/Select/SearchSelect/index.tsx +334 -0
  201. package/packages/field/src/components/Select/index.tsx +562 -0
  202. package/packages/field/src/components/Slider/index.tsx +42 -0
  203. package/packages/field/src/components/Status/index.tsx +47 -0
  204. package/packages/field/src/components/Switch/index.tsx +77 -0
  205. package/packages/field/src/components/Text/index.tsx +68 -0
  206. package/packages/field/src/components/TextArea/index.tsx +53 -0
  207. package/packages/field/src/components/TextArea/readonly.tsx +46 -0
  208. package/packages/field/src/components/TimePicker/index.tsx +261 -0
  209. package/packages/field/src/components/TreeSelect/index.tsx +258 -0
  210. package/packages/field/src/components/field.md +42 -0
  211. package/packages/field/src/demos/base.tsx +431 -0
  212. package/packages/field/src/demos/base_test.tsx +509 -0
  213. package/packages/field/src/demos/search-value-autoClearSearchValue.tsx +41 -0
  214. package/packages/field/src/demos/search-value.tsx +96 -0
  215. package/packages/field/src/demos/select-request.tsx +30 -0
  216. package/packages/field/src/demos/tree-select-search-value.tsx +151 -0
  217. package/packages/field/src/index.tsx +678 -0
  218. package/packages/field/tsconfig.json +22 -0
  219. package/packages/form/.fatherrc.ts +5 -0
  220. package/packages/form/CHANGELOG.md +2781 -0
  221. package/packages/form/README.md +15 -0
  222. package/packages/form/package.json +70 -0
  223. package/packages/form/src/BaseForm/BaseForm.tsx +839 -0
  224. package/packages/form/src/BaseForm/EditOrReadOnlyContext.ts +7 -0
  225. package/packages/form/src/BaseForm/LightWrapper/index.tsx +159 -0
  226. package/packages/form/src/BaseForm/LightWrapper/style.ts +31 -0
  227. package/packages/form/src/BaseForm/createField.tsx +384 -0
  228. package/packages/form/src/BaseForm/index.ts +3 -0
  229. package/packages/form/src/FieldContext.tsx +39 -0
  230. package/packages/form/src/components/Captcha/index.tsx +156 -0
  231. package/packages/form/src/components/Cascader/index.tsx +36 -0
  232. package/packages/form/src/components/Checkbox/index.tsx +90 -0
  233. package/packages/form/src/components/ColorPicker/index.tsx +47 -0
  234. package/packages/form/src/components/DateMonthRangePicker/index.tsx +38 -0
  235. package/packages/form/src/components/DatePicker/DatePicker.tsx +35 -0
  236. package/packages/form/src/components/DatePicker/MonthPicker.tsx +35 -0
  237. package/packages/form/src/components/DatePicker/QuarterPicker.tsx +35 -0
  238. package/packages/form/src/components/DatePicker/WeekPicker.tsx +35 -0
  239. package/packages/form/src/components/DatePicker/YearPicker.tsx +35 -0
  240. package/packages/form/src/components/DatePicker/index.tsx +22 -0
  241. package/packages/form/src/components/DateQuarterRangePicker/index.tsx +39 -0
  242. package/packages/form/src/components/DateRangePicker/index.tsx +39 -0
  243. package/packages/form/src/components/DateTimePicker/index.tsx +36 -0
  244. package/packages/form/src/components/DateTimeRangePicker/index.tsx +39 -0
  245. package/packages/form/src/components/DateWeekRangePicker/index.tsx +38 -0
  246. package/packages/form/src/components/DateYearRangePicker/index.tsx +38 -0
  247. package/packages/form/src/components/Dependency/demos/dependency.tsx +112 -0
  248. package/packages/form/src/components/Dependency/demos/dependency2.tsx +106 -0
  249. package/packages/form/src/components/Dependency/index.en-US.md +54 -0
  250. package/packages/form/src/components/Dependency/index.md +52 -0
  251. package/packages/form/src/components/Dependency/index.tsx +111 -0
  252. package/packages/form/src/components/Digit/index.tsx +43 -0
  253. package/packages/form/src/components/DigitRange/index.tsx +51 -0
  254. package/packages/form/src/components/Field/index.tsx +144 -0
  255. package/packages/form/src/components/FieldSet/demos/captCha.tsx +67 -0
  256. package/packages/form/src/components/FieldSet/demos/components-other-readonly.tsx +465 -0
  257. package/packages/form/src/components/FieldSet/demos/components-other.tsx +336 -0
  258. package/packages/form/src/components/FieldSet/demos/datatime.tsx +89 -0
  259. package/packages/form/src/components/FieldSet/demos/fieldSet-light.tsx +58 -0
  260. package/packages/form/src/components/FieldSet/demos/form-fieldset.tsx +106 -0
  261. package/packages/form/src/components/FieldSet/demos/pro-form-captCha.tsx +70 -0
  262. package/packages/form/src/components/FieldSet/demos/search-select.tsx +90 -0
  263. package/packages/form/src/components/FieldSet/demos/upload.tsx +35 -0
  264. package/packages/form/src/components/FieldSet/index.en-US.md +529 -0
  265. package/packages/form/src/components/FieldSet/index.md +680 -0
  266. package/packages/form/src/components/FieldSet/index.tsx +151 -0
  267. package/packages/form/src/components/FormItem/index.tsx +445 -0
  268. package/packages/form/src/components/FormItemRender/index.tsx +219 -0
  269. package/packages/form/src/components/Group/demos/base-use.tsx +93 -0
  270. package/packages/form/src/components/Group/demos/countLimit.tsx +57 -0
  271. package/packages/form/src/components/Group/demos/customize.tsx +294 -0
  272. package/packages/form/src/components/Group/demos/dependency.tsx +70 -0
  273. package/packages/form/src/components/Group/demos/horizontal-layout.tsx +73 -0
  274. package/packages/form/src/components/Group/demos/list-tooltip.tsx +69 -0
  275. package/packages/form/src/components/Group/demos/list.tsx +127 -0
  276. package/packages/form/src/components/Group/demos/nested-list.tsx +66 -0
  277. package/packages/form/src/components/Group/demos/pro-form-list.tsx +126 -0
  278. package/packages/form/src/components/Group/index.en-US.md +326 -0
  279. package/packages/form/src/components/Group/index.md +373 -0
  280. package/packages/form/src/components/Group/index.tsx +182 -0
  281. package/packages/form/src/components/Group/style.ts +55 -0
  282. package/packages/form/src/components/List/ListContainer.tsx +187 -0
  283. package/packages/form/src/components/List/ListItem.tsx +569 -0
  284. package/packages/form/src/components/List/index.tsx +323 -0
  285. package/packages/form/src/components/List/style.ts +89 -0
  286. package/packages/form/src/components/LoginForm/demos/login-form-page.tsx +283 -0
  287. package/packages/form/src/components/LoginForm/demos/login-form.tsx +190 -0
  288. package/packages/form/src/components/LoginForm/index.en-US.md +45 -0
  289. package/packages/form/src/components/LoginForm/index.md +45 -0
  290. package/packages/form/src/components/ModalForm/demos/drawer-form-nested.tsx +265 -0
  291. package/packages/form/src/components/ModalForm/demos/drawer-form.tsx +129 -0
  292. package/packages/form/src/components/ModalForm/demos/modal-form-reset.tsx +112 -0
  293. package/packages/form/src/components/ModalForm/demos/modal-form-submitter.tsx +143 -0
  294. package/packages/form/src/components/ModalForm/demos/modal-form.tsx +112 -0
  295. package/packages/form/src/components/ModalForm/demos/visible-on-visible-change.tsx +187 -0
  296. package/packages/form/src/components/ModalForm/index.en-US.md +70 -0
  297. package/packages/form/src/components/ModalForm/index.md +68 -0
  298. package/packages/form/src/components/Money/index.tsx +47 -0
  299. package/packages/form/src/components/QueryFilter/demos/light-filter-bordered.tsx +149 -0
  300. package/packages/form/src/components/QueryFilter/demos/light-filter-collapse.tsx +28 -0
  301. package/packages/form/src/components/QueryFilter/demos/light-filter-footer.tsx +88 -0
  302. package/packages/form/src/components/QueryFilter/demos/light-filter-placement.tsx +89 -0
  303. package/packages/form/src/components/QueryFilter/demos/light-filter-test.tsx +92 -0
  304. package/packages/form/src/components/QueryFilter/demos/light-filter.tsx +215 -0
  305. package/packages/form/src/components/QueryFilter/demos/query-filter-collapsed.tsx +18 -0
  306. package/packages/form/src/components/QueryFilter/demos/query-filter-defaultColsNumber.tsx +18 -0
  307. package/packages/form/src/components/QueryFilter/demos/query-filter-test.tsx +158 -0
  308. package/packages/form/src/components/QueryFilter/demos/query-filter-vertical.tsx +44 -0
  309. package/packages/form/src/components/QueryFilter/demos/query-filter.tsx +31 -0
  310. package/packages/form/src/components/QueryFilter/demos/search-filter.tsx +126 -0
  311. package/packages/form/src/components/QueryFilter/index.en-US.md +93 -0
  312. package/packages/form/src/components/QueryFilter/index.md +90 -0
  313. package/packages/form/src/components/Radio/index.tsx +89 -0
  314. package/packages/form/src/components/Rate/index.tsx +28 -0
  315. package/packages/form/src/components/SchemaForm/demos/ModalAndDrawerForm.tsx +68 -0
  316. package/packages/form/src/components/SchemaForm/demos/customization-value-type.tsx +174 -0
  317. package/packages/form/src/components/SchemaForm/demos/dependencies.tsx +125 -0
  318. package/packages/form/src/components/SchemaForm/demos/dependency.tsx +90 -0
  319. package/packages/form/src/components/SchemaForm/demos/dynamic-rerender.tsx +127 -0
  320. package/packages/form/src/components/SchemaForm/demos/embed.tsx +121 -0
  321. package/packages/form/src/components/SchemaForm/demos/form-list-required.tsx +142 -0
  322. package/packages/form/src/components/SchemaForm/demos/schema.tsx +311 -0
  323. package/packages/form/src/components/SchemaForm/demos/steps-form.tsx +203 -0
  324. package/packages/form/src/components/SchemaForm/demos/valueType.tsx +150 -0
  325. package/packages/form/src/components/SchemaForm/index.en-US.md +92 -0
  326. package/packages/form/src/components/SchemaForm/index.md +84 -0
  327. package/packages/form/src/components/SchemaForm/index.tsx +241 -0
  328. package/packages/form/src/components/SchemaForm/layoutType/Embed.tsx +3 -0
  329. package/packages/form/src/components/SchemaForm/layoutType/StepsForm.tsx +54 -0
  330. package/packages/form/src/components/SchemaForm/layoutType/index.ts +2 -0
  331. package/packages/form/src/components/SchemaForm/typing.ts +171 -0
  332. package/packages/form/src/components/SchemaForm/valueType/dependency.tsx +34 -0
  333. package/packages/form/src/components/SchemaForm/valueType/divider.tsx +13 -0
  334. package/packages/form/src/components/SchemaForm/valueType/field.tsx +91 -0
  335. package/packages/form/src/components/SchemaForm/valueType/formList.tsx +27 -0
  336. package/packages/form/src/components/SchemaForm/valueType/formSet.tsx +27 -0
  337. package/packages/form/src/components/SchemaForm/valueType/group.tsx +22 -0
  338. package/packages/form/src/components/SchemaForm/valueType/ignore.tsx +13 -0
  339. package/packages/form/src/components/SchemaForm/valueType/index.tsx +46 -0
  340. package/packages/form/src/components/Segmented/index.tsx +36 -0
  341. package/packages/form/src/components/Select/index.tsx +173 -0
  342. package/packages/form/src/components/Slider/index.tsx +62 -0
  343. package/packages/form/src/components/StepsForm/demos/add-or-edit-step-form.tsx +90 -0
  344. package/packages/form/src/components/StepsForm/demos/customize-steps-from.tsx +176 -0
  345. package/packages/form/src/components/StepsForm/demos/modal-step-form.tsx +153 -0
  346. package/packages/form/src/components/StepsForm/demos/multi-card-step-form.tsx +201 -0
  347. package/packages/form/src/components/StepsForm/demos/steps-form-vertical.tsx +153 -0
  348. package/packages/form/src/components/StepsForm/demos/steps-from.tsx +157 -0
  349. package/packages/form/src/components/StepsForm/index.en-US.md +50 -0
  350. package/packages/form/src/components/StepsForm/index.md +56 -0
  351. package/packages/form/src/components/Submitter/index.tsx +144 -0
  352. package/packages/form/src/components/Switch/index.tsx +45 -0
  353. package/packages/form/src/components/Text/index.tsx +176 -0
  354. package/packages/form/src/components/TextArea/index.tsx +27 -0
  355. package/packages/form/src/components/TimePicker/index.tsx +72 -0
  356. package/packages/form/src/components/TreeSelect/index.tsx +49 -0
  357. package/packages/form/src/components/UploadButton/index.tsx +133 -0
  358. package/packages/form/src/components/UploadDragger/index.tsx +134 -0
  359. package/packages/form/src/components/form.en-US.md +320 -0
  360. package/packages/form/src/components/form.md +480 -0
  361. package/packages/form/src/components/index.ts +67 -0
  362. package/packages/form/src/demos/antd.modify.tsx +62 -0
  363. package/packages/form/src/demos/antd.nest.tsx +56 -0
  364. package/packages/form/src/demos/antd.tsx +103 -0
  365. package/packages/form/src/demos/base-test.tsx +256 -0
  366. package/packages/form/src/demos/base.tsx +334 -0
  367. package/packages/form/src/demos/components-test.tsx +64 -0
  368. package/packages/form/src/demos/config-provider.tsx +67 -0
  369. package/packages/form/src/demos/dependency.tsx +85 -0
  370. package/packages/form/src/demos/form-control-render.tsx +81 -0
  371. package/packages/form/src/demos/form-item-render.tsx +164 -0
  372. package/packages/form/src/demos/form-layout-grid.tsx +130 -0
  373. package/packages/form/src/demos/form-layout.tsx +97 -0
  374. package/packages/form/src/demos/formRef.tsx +98 -0
  375. package/packages/form/src/demos/label-col.tsx +48 -0
  376. package/packages/form/src/demos/labelInValue.tsx +34 -0
  377. package/packages/form/src/demos/layout-change.tsx +347 -0
  378. package/packages/form/src/demos/layout-footer.tsx +168 -0
  379. package/packages/form/src/demos/linkage-customization.tsx +179 -0
  380. package/packages/form/src/demos/modalform-test.tsx +121 -0
  381. package/packages/form/src/demos/money.tsx +139 -0
  382. package/packages/form/src/demos/params-formref.tsx +36 -0
  383. package/packages/form/src/demos/pro-form-dependency.debug.tsx +95 -0
  384. package/packages/form/src/demos/pro-form-editableTable.tsx +148 -0
  385. package/packages/form/src/demos/sync-to-url.tsx +68 -0
  386. package/packages/form/src/demos/typings.d.ts +5 -0
  387. package/packages/form/src/helpers/grid.tsx +96 -0
  388. package/packages/form/src/helpers/index.ts +1 -0
  389. package/packages/form/src/index.tsx +56 -0
  390. package/packages/form/src/layouts/DrawerForm/index.tsx +386 -0
  391. package/packages/form/src/layouts/DrawerForm/style.ts +42 -0
  392. package/packages/form/src/layouts/LightFilter/index.tsx +337 -0
  393. package/packages/form/src/layouts/LightFilter/style.ts +64 -0
  394. package/packages/form/src/layouts/LoginForm/index.tsx +153 -0
  395. package/packages/form/src/layouts/LoginForm/style.ts +89 -0
  396. package/packages/form/src/layouts/LoginFormPage/index.tsx +231 -0
  397. package/packages/form/src/layouts/LoginFormPage/style.ts +154 -0
  398. package/packages/form/src/layouts/ModalForm/index.tsx +296 -0
  399. package/packages/form/src/layouts/ProForm/index.tsx +44 -0
  400. package/packages/form/src/layouts/QueryFilter/Actions.tsx +104 -0
  401. package/packages/form/src/layouts/QueryFilter/index.tsx +624 -0
  402. package/packages/form/src/layouts/QueryFilter/style.ts +61 -0
  403. package/packages/form/src/layouts/StepsForm/StepForm.tsx +89 -0
  404. package/packages/form/src/layouts/StepsForm/index.tsx +569 -0
  405. package/packages/form/src/layouts/StepsForm/style.ts +43 -0
  406. package/packages/form/src/layouts/index.ts +19 -0
  407. package/packages/form/src/typing.ts +178 -0
  408. package/packages/form/tsconfig.json +24 -0
  409. package/packages/layout/.fatherrc.ts +5 -0
  410. package/packages/layout/CHANGELOG.md +2188 -0
  411. package/packages/layout/README.md +64 -0
  412. package/packages/layout/package.json +71 -0
  413. package/packages/layout/src/ProLayout.tsx +918 -0
  414. package/packages/layout/src/WrapContent.tsx +41 -0
  415. package/packages/layout/src/assert/Logo.tsx +80 -0
  416. package/packages/layout/src/components/AppsLogoComponents/AppsLogo.tsx +15 -0
  417. package/packages/layout/src/components/AppsLogoComponents/DefaultContent.tsx +64 -0
  418. package/packages/layout/src/components/AppsLogoComponents/SimpleContent.tsx +93 -0
  419. package/packages/layout/src/components/AppsLogoComponents/index.tsx +132 -0
  420. package/packages/layout/src/components/AppsLogoComponents/style/default.ts +78 -0
  421. package/packages/layout/src/components/AppsLogoComponents/style/index.ts +71 -0
  422. package/packages/layout/src/components/AppsLogoComponents/style/simple.ts +93 -0
  423. package/packages/layout/src/components/AppsLogoComponents/types.d.ts +10 -0
  424. package/packages/layout/src/components/CollapsedIcon/index.tsx +20 -0
  425. package/packages/layout/src/components/CollapsedIcon/style.ts +58 -0
  426. package/packages/layout/src/components/Footer.tsx +47 -0
  427. package/packages/layout/src/components/FooterToolbar/index.tsx +123 -0
  428. package/packages/layout/src/components/FooterToolbar/style/index.ts +56 -0
  429. package/packages/layout/src/components/FooterToolbar/style/stylish.ts +29 -0
  430. package/packages/layout/src/components/GlobalFooter/index.tsx +70 -0
  431. package/packages/layout/src/components/GlobalFooter/style.ts +46 -0
  432. package/packages/layout/src/components/GlobalHeader/ActionsContent.tsx +150 -0
  433. package/packages/layout/src/components/GlobalHeader/index.tsx +184 -0
  434. package/packages/layout/src/components/GlobalHeader/rightContentStyle.ts +74 -0
  435. package/packages/layout/src/components/GlobalHeader/style.ts +75 -0
  436. package/packages/layout/src/components/GridContent/index.tsx +54 -0
  437. package/packages/layout/src/components/GridContent/style.ts +29 -0
  438. package/packages/layout/src/components/Header/index.tsx +170 -0
  439. package/packages/layout/src/components/Header/style/header.ts +70 -0
  440. package/packages/layout/src/components/Header/style/stylish.ts +34 -0
  441. package/packages/layout/src/components/Help/AsyncContentPanel.tsx +62 -0
  442. package/packages/layout/src/components/Help/HelpProvide.tsx +187 -0
  443. package/packages/layout/src/components/Help/ProHelpContentPanel.tsx +162 -0
  444. package/packages/layout/src/components/Help/ProHelpDrawer.tsx +54 -0
  445. package/packages/layout/src/components/Help/ProHelpModal.tsx +51 -0
  446. package/packages/layout/src/components/Help/ProHelpPanel.tsx +310 -0
  447. package/packages/layout/src/components/Help/ProHelpPopover.tsx +78 -0
  448. package/packages/layout/src/components/Help/RenderContentPanel.tsx +156 -0
  449. package/packages/layout/src/components/Help/Search.tsx +172 -0
  450. package/packages/layout/src/components/Help/index.tsx +78 -0
  451. package/packages/layout/src/components/Help/style.ts +109 -0
  452. package/packages/layout/src/components/PageContainer/demos/basic.tsx +96 -0
  453. package/packages/layout/src/components/PageContainer/demos/fixHeader.tsx +59 -0
  454. package/packages/layout/src/components/PageContainer/demos/hideBreadMenu.tsx +38 -0
  455. package/packages/layout/src/components/PageContainer/demos/loading.tsx +144 -0
  456. package/packages/layout/src/components/PageContainer/demos/token.tsx +71 -0
  457. package/packages/layout/src/components/PageContainer/index.en-US.md +104 -0
  458. package/packages/layout/src/components/PageContainer/index.md +125 -0
  459. package/packages/layout/src/components/PageContainer/index.tsx +506 -0
  460. package/packages/layout/src/components/PageContainer/style/index.ts +137 -0
  461. package/packages/layout/src/components/PageContainer/style/stylish.ts +29 -0
  462. package/packages/layout/src/components/PageHeader/demo/actions.en-US.md +78 -0
  463. package/packages/layout/src/components/PageHeader/demo/actions.md +78 -0
  464. package/packages/layout/src/components/PageHeader/demo/basic.en-US.md +30 -0
  465. package/packages/layout/src/components/PageHeader/demo/basic.md +30 -0
  466. package/packages/layout/src/components/PageHeader/demo/breadcrumb.en-US.md +39 -0
  467. package/packages/layout/src/components/PageHeader/demo/breadcrumb.md +39 -0
  468. package/packages/layout/src/components/PageHeader/demo/content.en-US.md +206 -0
  469. package/packages/layout/src/components/PageHeader/demo/content.md +206 -0
  470. package/packages/layout/src/components/PageHeader/demo/ghost.en-US.md +52 -0
  471. package/packages/layout/src/components/PageHeader/demo/ghost.md +52 -0
  472. package/packages/layout/src/components/PageHeader/demo/responsive.en-US.md +114 -0
  473. package/packages/layout/src/components/PageHeader/demo/responsive.md +114 -0
  474. package/packages/layout/src/components/PageHeader/index.en-US.md +39 -0
  475. package/packages/layout/src/components/PageHeader/index.md +39 -0
  476. package/packages/layout/src/components/PageHeader/index.tsx +276 -0
  477. package/packages/layout/src/components/PageHeader/style/index.ts +180 -0
  478. package/packages/layout/src/components/PageLoading/index.tsx +18 -0
  479. package/packages/layout/src/components/SettingDrawer/BlockCheckbox.tsx +60 -0
  480. package/packages/layout/src/components/SettingDrawer/LayoutChange.tsx +122 -0
  481. package/packages/layout/src/components/SettingDrawer/RegionalChange.tsx +45 -0
  482. package/packages/layout/src/components/SettingDrawer/ThemeColor.tsx +68 -0
  483. package/packages/layout/src/components/SettingDrawer/icon/group.tsx +108 -0
  484. package/packages/layout/src/components/SettingDrawer/icon/sub.tsx +163 -0
  485. package/packages/layout/src/components/SettingDrawer/index.tsx +602 -0
  486. package/packages/layout/src/components/SettingDrawer/style/index.ts +149 -0
  487. package/packages/layout/src/components/SiderMenu/Arrow.tsx +15 -0
  488. package/packages/layout/src/components/SiderMenu/BaseMenu.tsx +741 -0
  489. package/packages/layout/src/components/SiderMenu/SiderMenu.tsx +541 -0
  490. package/packages/layout/src/components/SiderMenu/index.tsx +101 -0
  491. package/packages/layout/src/components/SiderMenu/style/index.ts +219 -0
  492. package/packages/layout/src/components/SiderMenu/style/menu.ts +177 -0
  493. package/packages/layout/src/components/SiderMenu/style/stylish.ts +33 -0
  494. package/packages/layout/src/components/TopNavHeader/index.tsx +202 -0
  495. package/packages/layout/src/components/TopNavHeader/style.ts +88 -0
  496. package/packages/layout/src/components/WaterMark/demos/custom.tsx +133 -0
  497. package/packages/layout/src/components/WaterMark/demos/frontend.tsx +135 -0
  498. package/packages/layout/src/components/WaterMark/demos/image.tsx +40 -0
  499. package/packages/layout/src/components/WaterMark/demos/text.tsx +8 -0
  500. package/packages/layout/src/components/WaterMark/demos/textRows.tsx +8 -0
  501. package/packages/layout/src/components/WaterMark/index.en-US.md +80 -0
  502. package/packages/layout/src/components/WaterMark/index.md +80 -0
  503. package/packages/layout/src/components/WaterMark/index.tsx +212 -0
  504. package/packages/layout/src/components/layout.$tab-api.md +120 -0
  505. package/packages/layout/src/components/layout.en-US.$tab-api.md +76 -0
  506. package/packages/layout/src/components/layout.en-US.md +465 -0
  507. package/packages/layout/src/components/layout.md +474 -0
  508. package/packages/layout/src/context/RouteContext.tsx +36 -0
  509. package/packages/layout/src/defaultSettings.ts +143 -0
  510. package/packages/layout/src/demos/AlwaysDefaultOpenAllMenu.tsx +88 -0
  511. package/packages/layout/src/demos/BreadcrumbsRepeat.tsx +57 -0
  512. package/packages/layout/src/demos/DefaultOpenAllMenu.tsx +26 -0
  513. package/packages/layout/src/demos/IconFont.tsx +39 -0
  514. package/packages/layout/src/demos/MenuGroup.tsx +24 -0
  515. package/packages/layout/src/demos/MultipleMenuOnePath.tsx +199 -0
  516. package/packages/layout/src/demos/Nested.tsx +65 -0
  517. package/packages/layout/src/demos/TopmenuNested.tsx +35 -0
  518. package/packages/layout/src/demos/_defaultProps.tsx +152 -0
  519. package/packages/layout/src/demos/antd@4MenuIconFormServe.tsx +67 -0
  520. package/packages/layout/src/demos/api.tsx +149 -0
  521. package/packages/layout/src/demos/appList-group-simple.tsx +104 -0
  522. package/packages/layout/src/demos/appList-group.tsx +131 -0
  523. package/packages/layout/src/demos/async-load-help.tsx +336 -0
  524. package/packages/layout/src/demos/background-context.tsx +146 -0
  525. package/packages/layout/src/demos/base.tsx +456 -0
  526. package/packages/layout/src/demos/classicMode.tsx +212 -0
  527. package/packages/layout/src/demos/collapsedShowTitle.tsx +155 -0
  528. package/packages/layout/src/demos/complexMenu.ts +101 -0
  529. package/packages/layout/src/demos/config-provider.tsx +153 -0
  530. package/packages/layout/src/demos/customMenu.ts +23 -0
  531. package/packages/layout/src/demos/customSider.tsx +140 -0
  532. package/packages/layout/src/demos/customize-collapsed.tsx +98 -0
  533. package/packages/layout/src/demos/customizeMenu.tsx +62 -0
  534. package/packages/layout/src/demos/dark.tsx +127 -0
  535. package/packages/layout/src/demos/debug-demo.tsx +154 -0
  536. package/packages/layout/src/demos/designMenuCss.tsx +204 -0
  537. package/packages/layout/src/demos/designSiderMenu.tsx +105 -0
  538. package/packages/layout/src/demos/draggableHelp.tsx +349 -0
  539. package/packages/layout/src/demos/dynamic-settings.tsx +155 -0
  540. package/packages/layout/src/demos/dynamicMenu.tsx +71 -0
  541. package/packages/layout/src/demos/error-boundaries.tsx +156 -0
  542. package/packages/layout/src/demos/footer-global-tools.tsx +211 -0
  543. package/packages/layout/src/demos/footer.tsx +31 -0
  544. package/packages/layout/src/demos/ghost.tsx +51 -0
  545. package/packages/layout/src/demos/help.tsx +683 -0
  546. package/packages/layout/src/demos/hideMenu.tsx +29 -0
  547. package/packages/layout/src/demos/immersive-navigation-top.tsx +106 -0
  548. package/packages/layout/src/demos/immersive-navigation.tsx +139 -0
  549. package/packages/layout/src/demos/menu-group.tsx +138 -0
  550. package/packages/layout/src/demos/mixMode.tsx +148 -0
  551. package/packages/layout/src/demos/morse_debug.tsx +234 -0
  552. package/packages/layout/src/demos/pageSimplify.tsx +153 -0
  553. package/packages/layout/src/demos/proHelpModal.tsx +367 -0
  554. package/packages/layout/src/demos/searchMenu.tsx +90 -0
  555. package/packages/layout/src/demos/siderMode.tsx +82 -0
  556. package/packages/layout/src/demos/siteMenu.tsx +148 -0
  557. package/packages/layout/src/demos/splitMenus.tsx +123 -0
  558. package/packages/layout/src/demos/theme.tsx +159 -0
  559. package/packages/layout/src/demos/top-breadcrumb.tsx +68 -0
  560. package/packages/layout/src/demos/topMode.tsx +351 -0
  561. package/packages/layout/src/getPageTitle.ts +138 -0
  562. package/packages/layout/src/index.tsx +93 -0
  563. package/packages/layout/src/locales/en-US/settingDrawer.ts +45 -0
  564. package/packages/layout/src/locales/en-US.ts +5 -0
  565. package/packages/layout/src/locales/index.ts +33 -0
  566. package/packages/layout/src/locales/it-IT/settingDrawer.ts +37 -0
  567. package/packages/layout/src/locales/it-IT.ts +5 -0
  568. package/packages/layout/src/locales/ko-KR/settingDrawer.ts +41 -0
  569. package/packages/layout/src/locales/ko-KR.ts +5 -0
  570. package/packages/layout/src/locales/zh-CN/settingDrawer.ts +45 -0
  571. package/packages/layout/src/locales/zh-CN.ts +5 -0
  572. package/packages/layout/src/locales/zh-TW/settingDrawer.ts +37 -0
  573. package/packages/layout/src/locales/zh-TW.ts +5 -0
  574. package/packages/layout/src/style/index.ts +280 -0
  575. package/packages/layout/src/typing.ts +77 -0
  576. package/packages/layout/src/utils/getBreadcrumbProps.tsx +204 -0
  577. package/packages/layout/src/utils/getMenuData.ts +42 -0
  578. package/packages/layout/src/utils/pathTools.ts +10 -0
  579. package/packages/layout/src/utils/useCurrentMenuLayoutProps.ts +36 -0
  580. package/packages/layout/src/utils/utils.ts +66 -0
  581. package/packages/layout/tsconfig.json +23 -0
  582. package/packages/list/.fatherrc.ts +5 -0
  583. package/packages/list/CHANGELOG.md +1840 -0
  584. package/packages/list/README.md +49 -0
  585. package/packages/list/package.json +62 -0
  586. package/packages/list/src/Item.tsx +389 -0
  587. package/packages/list/src/ListView.tsx +327 -0
  588. package/packages/list/src/components/list.en-US.md +147 -0
  589. package/packages/list/src/components/list.md +149 -0
  590. package/packages/list/src/constants.ts +17 -0
  591. package/packages/list/src/demos/ToolBar.tsx +195 -0
  592. package/packages/list/src/demos/base.tsx +85 -0
  593. package/packages/list/src/demos/card-list.tsx +117 -0
  594. package/packages/list/src/demos/editable.tsx +89 -0
  595. package/packages/list/src/demos/expand.tsx +92 -0
  596. package/packages/list/src/demos/filter.tsx +125 -0
  597. package/packages/list/src/demos/layout.tsx +95 -0
  598. package/packages/list/src/demos/pagination.tsx +64 -0
  599. package/packages/list/src/demos/search.tsx +123 -0
  600. package/packages/list/src/demos/selectedRow.tsx +86 -0
  601. package/packages/list/src/demos/size.tsx +126 -0
  602. package/packages/list/src/demos/special.tsx +109 -0
  603. package/packages/list/src/demos/testConfigProvider.tsx +66 -0
  604. package/packages/list/src/index.tsx +251 -0
  605. package/packages/list/src/style/index.ts +283 -0
  606. package/packages/list/tsconfig.json +33 -0
  607. package/packages/provider/.fatherrc.ts +5 -0
  608. package/packages/provider/CHANGELOG.md +824 -0
  609. package/packages/provider/README.md +19 -0
  610. package/packages/provider/package.json +58 -0
  611. package/packages/provider/src/index.tsx +484 -0
  612. package/packages/provider/src/intl.ts +183 -0
  613. package/packages/provider/src/locale/ar_EG.tsx +71 -0
  614. package/packages/provider/src/locale/ca_ES.tsx +71 -0
  615. package/packages/provider/src/locale/cs_CZ.tsx +74 -0
  616. package/packages/provider/src/locale/de_DE.tsx +71 -0
  617. package/packages/provider/src/locale/en_GB.tsx +73 -0
  618. package/packages/provider/src/locale/en_US.tsx +75 -0
  619. package/packages/provider/src/locale/es_ES.tsx +71 -0
  620. package/packages/provider/src/locale/fa_IR.tsx +71 -0
  621. package/packages/provider/src/locale/fr_FR.tsx +71 -0
  622. package/packages/provider/src/locale/he_IL.tsx +74 -0
  623. package/packages/provider/src/locale/hr_HR.tsx +71 -0
  624. package/packages/provider/src/locale/id_ID.tsx +71 -0
  625. package/packages/provider/src/locale/it_IT.tsx +71 -0
  626. package/packages/provider/src/locale/ja_JP.tsx +71 -0
  627. package/packages/provider/src/locale/ko_KR.tsx +71 -0
  628. package/packages/provider/src/locale/mn_MN.tsx +71 -0
  629. package/packages/provider/src/locale/ms_MY.tsx +71 -0
  630. package/packages/provider/src/locale/nl_NL.tsx +74 -0
  631. package/packages/provider/src/locale/pl_PL.tsx +71 -0
  632. package/packages/provider/src/locale/pt_BR.tsx +71 -0
  633. package/packages/provider/src/locale/ro_RO.tsx +74 -0
  634. package/packages/provider/src/locale/ru_RU.tsx +71 -0
  635. package/packages/provider/src/locale/sk_SK.tsx +74 -0
  636. package/packages/provider/src/locale/sr_RS.tsx +71 -0
  637. package/packages/provider/src/locale/sv_SE.tsx +74 -0
  638. package/packages/provider/src/locale/th_TH.tsx +74 -0
  639. package/packages/provider/src/locale/tr_TR.tsx +71 -0
  640. package/packages/provider/src/locale/uk_UA.tsx +74 -0
  641. package/packages/provider/src/locale/uz_UZ.tsx +71 -0
  642. package/packages/provider/src/locale/vi_VN.tsx +71 -0
  643. package/packages/provider/src/locale/zh_CN.tsx +74 -0
  644. package/packages/provider/src/locale/zh_TW.tsx +74 -0
  645. package/packages/provider/src/typing/layoutToken.ts +175 -0
  646. package/packages/provider/src/useStyle/index.ts +141 -0
  647. package/packages/provider/src/useStyle/token.ts +412 -0
  648. package/packages/provider/src/utils/merge.ts +28 -0
  649. package/packages/provider/tsconfig.json +18 -0
  650. package/packages/skeleton/.fatherrc.ts +5 -0
  651. package/packages/skeleton/CHANGELOG.md +253 -0
  652. package/packages/skeleton/README.md +19 -0
  653. package/packages/skeleton/package.json +54 -0
  654. package/packages/skeleton/src/components/Descriptions/index.tsx +328 -0
  655. package/packages/skeleton/src/components/List/index.tsx +310 -0
  656. package/packages/skeleton/src/components/Result/index.tsx +54 -0
  657. package/packages/skeleton/src/components/skeleton.en-US.md +49 -0
  658. package/packages/skeleton/src/components/skeleton.md +41 -0
  659. package/packages/skeleton/src/demos/descriptions.tsx +14 -0
  660. package/packages/skeleton/src/demos/list.static.tsx +12 -0
  661. package/packages/skeleton/src/demos/list.tsx +12 -0
  662. package/packages/skeleton/src/demos/result.tsx +12 -0
  663. package/packages/skeleton/src/index.tsx +48 -0
  664. package/packages/skeleton/tsconfig.json +18 -0
  665. package/packages/table/.fatherrc.ts +5 -0
  666. package/packages/table/CHANGELOG.md +2622 -0
  667. package/packages/table/README.md +167 -0
  668. package/packages/table/package.json +75 -0
  669. package/packages/table/src/Store/Provide.tsx +261 -0
  670. package/packages/table/src/Table.tsx +1043 -0
  671. package/packages/table/src/components/Alert/index.tsx +96 -0
  672. package/packages/table/src/components/Alert/style.ts +45 -0
  673. package/packages/table/src/components/ColumnSetting/index.tsx +535 -0
  674. package/packages/table/src/components/ColumnSetting/style.ts +104 -0
  675. package/packages/table/src/components/DragSortTable/demos/drag-sort-table.tsx +164 -0
  676. package/packages/table/src/components/DragSortTable/demos/drag.tsx +74 -0
  677. package/packages/table/src/components/DragSortTable/index.en-US.md +28 -0
  678. package/packages/table/src/components/DragSortTable/index.md +26 -0
  679. package/packages/table/src/components/DragSortTable/index.tsx +112 -0
  680. package/packages/table/src/components/DragSortTable/style.ts +35 -0
  681. package/packages/table/src/components/Dropdown/index.tsx +86 -0
  682. package/packages/table/src/components/EditableTable/CellEditorTable.tsx +67 -0
  683. package/packages/table/src/components/EditableTable/RowEditorTable.tsx +60 -0
  684. package/packages/table/src/components/EditableTable/demos/basic.tsx +219 -0
  685. package/packages/table/src/components/EditableTable/demos/cell-editor-table.tsx +101 -0
  686. package/packages/table/src/components/EditableTable/demos/children.tsx +202 -0
  687. package/packages/table/src/components/EditableTable/demos/custom.tsx +257 -0
  688. package/packages/table/src/components/EditableTable/demos/form-item.tsx +254 -0
  689. package/packages/table/src/components/EditableTable/demos/form-linkage.tsx +259 -0
  690. package/packages/table/src/components/EditableTable/demos/real-time-editing.tsx +155 -0
  691. package/packages/table/src/components/EditableTable/demos/row-editor-table.tsx +100 -0
  692. package/packages/table/src/components/EditableTable/index.en-US.md +303 -0
  693. package/packages/table/src/components/EditableTable/index.md +303 -0
  694. package/packages/table/src/components/EditableTable/index.tsx +562 -0
  695. package/packages/table/src/components/Form/FormRender.tsx +262 -0
  696. package/packages/table/src/components/Form/index.tsx +194 -0
  697. package/packages/table/src/components/ListToolBar/HeaderMenu.tsx +132 -0
  698. package/packages/table/src/components/ListToolBar/index.tsx +420 -0
  699. package/packages/table/src/components/ListToolBar/style.ts +127 -0
  700. package/packages/table/src/components/ToolBar/DensityIcon.tsx +47 -0
  701. package/packages/table/src/components/ToolBar/FullscreenIcon.tsx +29 -0
  702. package/packages/table/src/components/ToolBar/index.tsx +419 -0
  703. package/packages/table/src/components/table.$tab-api.md +243 -0
  704. package/packages/table/src/components/table.en-US.$tab-api.md +210 -0
  705. package/packages/table/src/components/table.en-US.md +333 -0
  706. package/packages/table/src/components/table.md +338 -0
  707. package/packages/table/src/demos/ListToolBar/basic.tsx +124 -0
  708. package/packages/table/src/demos/ListToolBar/menu.tsx +148 -0
  709. package/packages/table/src/demos/ListToolBar/multipleLine.tsx +139 -0
  710. package/packages/table/src/demos/ListToolBar/no-title.tsx +108 -0
  711. package/packages/table/src/demos/ListToolBar/tabs.tsx +176 -0
  712. package/packages/table/src/demos/batchOption.tsx +180 -0
  713. package/packages/table/src/demos/card-title.tsx +93 -0
  714. package/packages/table/src/demos/columns-setting-custom-icon.tsx +55 -0
  715. package/packages/table/src/demos/columnsStateMap.tsx +113 -0
  716. package/packages/table/src/demos/config-provider.tsx +139 -0
  717. package/packages/table/src/demos/crud.tsx +168 -0
  718. package/packages/table/src/demos/customization-value-type.tsx +174 -0
  719. package/packages/table/src/demos/dataSource.tsx +178 -0
  720. package/packages/table/src/demos/dateFormatter.tsx +130 -0
  721. package/packages/table/src/demos/dynamic-columns-state.tsx +151 -0
  722. package/packages/table/src/demos/dynamic-settings.tsx +723 -0
  723. package/packages/table/src/demos/edittable-rules.tsx +106 -0
  724. package/packages/table/src/demos/error-boundaries-false.tsx +81 -0
  725. package/packages/table/src/demos/error-boundaries.tsx +201 -0
  726. package/packages/table/src/demos/form.tsx +82 -0
  727. package/packages/table/src/demos/intl.tsx +119 -0
  728. package/packages/table/src/demos/lightfilter.tsx +81 -0
  729. package/packages/table/src/demos/linkage_form.tsx +175 -0
  730. package/packages/table/src/demos/listToolBar.tsx +184 -0
  731. package/packages/table/src/demos/no-option.tsx +113 -0
  732. package/packages/table/src/demos/no-title.tsx +167 -0
  733. package/packages/table/src/demos/normal.tsx +124 -0
  734. package/packages/table/src/demos/open-rules.tsx +187 -0
  735. package/packages/table/src/demos/pollinga.tsx +129 -0
  736. package/packages/table/src/demos/renderTable.tsx +159 -0
  737. package/packages/table/src/demos/rtl_table.tsx +137 -0
  738. package/packages/table/src/demos/search.tsx +46 -0
  739. package/packages/table/src/demos/search_option.tsx +66 -0
  740. package/packages/table/src/demos/single-test.tsx +254 -0
  741. package/packages/table/src/demos/single.tsx +242 -0
  742. package/packages/table/src/demos/split.tsx +200 -0
  743. package/packages/table/src/demos/table-nested.tsx +162 -0
  744. package/packages/table/src/demos/theme.tsx +235 -0
  745. package/packages/table/src/demos/valueType.tsx +136 -0
  746. package/packages/table/src/demos/valueTypeDate.tsx +138 -0
  747. package/packages/table/src/demos/valueTypeNumber.tsx +117 -0
  748. package/packages/table/src/demos/valueType_select.tsx +188 -0
  749. package/packages/table/src/index.tsx +96 -0
  750. package/packages/table/src/style/index.ts +178 -0
  751. package/packages/table/src/typing.ts +585 -0
  752. package/packages/table/src/useFetchData.tsx +464 -0
  753. package/packages/table/src/utils/cellRenderToFromItem.tsx +360 -0
  754. package/packages/table/src/utils/columnRender.tsx +220 -0
  755. package/packages/table/src/utils/columnSort.ts +26 -0
  756. package/packages/table/src/utils/genProColumnToColumn.tsx +192 -0
  757. package/packages/table/src/utils/index.ts +224 -0
  758. package/packages/table/src/utils/useDragSort.tsx +210 -0
  759. package/packages/table/tsconfig.json +26 -0
  760. package/packages/utils/.fatherrc.ts +5 -0
  761. package/packages/utils/CHANGELOG.md +1747 -0
  762. package/packages/utils/README.md +19 -0
  763. package/packages/utils/package.json +65 -0
  764. package/packages/utils/src/compareVersions/coverToNewToken.ts +44 -0
  765. package/packages/utils/src/compareVersions/index.ts +84 -0
  766. package/packages/utils/src/compareVersions/menuOverlayCompatible.tsx +20 -0
  767. package/packages/utils/src/compareVersions/openVisibleCompatible.ts +25 -0
  768. package/packages/utils/src/compatible/compatibleBorder.ts +21 -0
  769. package/packages/utils/src/components/DropdownFooter/index.tsx +79 -0
  770. package/packages/utils/src/components/DropdownFooter/style.ts +30 -0
  771. package/packages/utils/src/components/ErrorBoundary/index.tsx +37 -0
  772. package/packages/utils/src/components/FieldLabel/index.tsx +222 -0
  773. package/packages/utils/src/components/FieldLabel/style.ts +121 -0
  774. package/packages/utils/src/components/FilterDropdown/index.tsx +100 -0
  775. package/packages/utils/src/components/FilterDropdown/style.ts +28 -0
  776. package/packages/utils/src/components/InlineErrorFormItem/index.tsx +196 -0
  777. package/packages/utils/src/components/InlineErrorFormItem/style.ts +76 -0
  778. package/packages/utils/src/components/LabelIconTip/index.tsx +63 -0
  779. package/packages/utils/src/components/LabelIconTip/style.ts +49 -0
  780. package/packages/utils/src/components/ProFormContext/index.tsx +45 -0
  781. package/packages/utils/src/conversionMomentValue/index.ts +203 -0
  782. package/packages/utils/src/dateArrayFormatter/index.tsx +60 -0
  783. package/packages/utils/src/genCopyable/index.tsx +71 -0
  784. package/packages/utils/src/getFieldPropsOrFormItemProps/index.tsx +22 -0
  785. package/packages/utils/src/hooks/useDebounceFn/index.ts +47 -0
  786. package/packages/utils/src/hooks/useDebounceValue/index.ts +32 -0
  787. package/packages/utils/src/hooks/useDeepCompareEffect/index.ts +42 -0
  788. package/packages/utils/src/hooks/useDeepCompareMemo/index.ts +22 -0
  789. package/packages/utils/src/hooks/useDocumentTitle/index.ts +19 -0
  790. package/packages/utils/src/hooks/useFetchData/index.tsx +60 -0
  791. package/packages/utils/src/hooks/useForceRender/index.ts +9 -0
  792. package/packages/utils/src/hooks/useLatest/index.ts +10 -0
  793. package/packages/utils/src/hooks/usePrevious/index.ts +11 -0
  794. package/packages/utils/src/hooks/useReactiveRef/index.ts +21 -0
  795. package/packages/utils/src/hooks/useRefCallback/index.ts +42 -0
  796. package/packages/utils/src/hooks/useRefFunction/index.ts +11 -0
  797. package/packages/utils/src/index.tsx +158 -0
  798. package/packages/utils/src/isBrowser/index.ts +24 -0
  799. package/packages/utils/src/isDeepEqualReact/index.ts +96 -0
  800. package/packages/utils/src/isDropdownValueType/index.ts +13 -0
  801. package/packages/utils/src/isImg/index.ts +4 -0
  802. package/packages/utils/src/isNil/index.ts +2 -0
  803. package/packages/utils/src/isUrl/index.ts +17 -0
  804. package/packages/utils/src/merge/index.ts +38 -0
  805. package/packages/utils/src/nanoid/index.ts +41 -0
  806. package/packages/utils/src/omitBoolean/index.ts +11 -0
  807. package/packages/utils/src/omitUndefined/index.ts +18 -0
  808. package/packages/utils/src/omitUndefinedAndEmptyArr/index.ts +15 -0
  809. package/packages/utils/src/parseValueToMoment/index.ts +39 -0
  810. package/packages/utils/src/pickProFormItemProps/index.tsx +44 -0
  811. package/packages/utils/src/pickProProps/index.tsx +16 -0
  812. package/packages/utils/src/proFieldParsingText/index.tsx +142 -0
  813. package/packages/utils/src/runFunction/index.ts +7 -0
  814. package/packages/utils/src/stringify/index.ts +13 -0
  815. package/packages/utils/src/transformKeySubmitValue/index.ts +207 -0
  816. package/packages/utils/src/typing.ts +767 -0
  817. package/packages/utils/src/useEditableArray/index.tsx +1134 -0
  818. package/packages/utils/src/useEditableMap/index.tsx +236 -0
  819. package/packages/utils/src/useMediaQuery/index.ts +109 -0
  820. package/packages/utils/src/useMediaQuery/query.ts +19 -0
  821. package/packages/utils/src/useMountMergeState/index.ts +3 -0
  822. package/packages/utils/tsconfig.json +21 -0
  823. package/pnpm-workspace.yaml +2 -0
  824. package/public/CNAME +1 -0
  825. package/public/favicon.ico +0 -0
  826. package/public/icon.png +0 -0
  827. package/public/sitemap.xml +458 -0
  828. package/scripts/bootstrap.js +108 -0
  829. package/scripts/changelogs.js +10 -0
  830. package/scripts/checkDeps.js +166 -0
  831. package/scripts/checkPublish.js +10 -0
  832. package/scripts/createRelease.js +125 -0
  833. package/scripts/gen_version.js +34 -0
  834. package/scripts/generateSizeLimit.js +38 -0
  835. package/scripts/issue.js +91 -0
  836. package/scripts/preDeploy.js +18 -0
  837. package/scripts/readApi.mjs +145 -0
  838. package/scripts/release.js +184 -0
  839. package/scripts/replaceEs.js +22 -0
  840. package/scripts/replaceLib.js +22 -0
  841. package/scripts/replaceLodash.js +21 -0
  842. package/scripts/syncTNPM.js +19 -0
  843. package/scripts/utils/exec.js +23 -0
  844. package/scripts/utils/getPackages.js +8 -0
  845. package/scripts/utils/isNextVersion.js +7 -0
  846. package/scripts/verifyCommit.js +28 -0
  847. package/tsconfig.json +39 -9
  848. package/typings.d.ts +6 -0
  849. package/vercel.json +7 -0
  850. package/vitest.config.ts +48 -0
  851. package/.idea/modules.xml +0 -8
  852. package/.idea/test-components.iml +0 -12
  853. package/.idea/vcs.xml +0 -6
  854. package/build/components/ActionBar/index.d.ts +0 -17
  855. package/build/components/ActionBar/type.d.ts +0 -82
  856. package/build/components/DataChart/index.d.ts +0 -7
  857. package/build/components/DataChart/type.d.ts +0 -50
  858. package/build/components/DataTable/index.d.ts +0 -9
  859. package/build/components/DataTable/locales/en-US.d.ts +0 -4
  860. package/build/components/DataTable/locales/zh-CN.d.ts +0 -4
  861. package/build/components/DataTable/type.d.ts +0 -117
  862. package/build/components/DragTable/index.d.ts +0 -9
  863. package/build/components/DragTable/type.d.ts +0 -22
  864. package/build/components/FileTag/index.d.ts +0 -9
  865. package/build/components/FileTag/locales/en-US.d.ts +0 -5
  866. package/build/components/FileTag/locales/zh-CN.d.ts +0 -5
  867. package/build/components/FileTag/type.d.ts +0 -35
  868. package/build/components/HtmlRender/index.d.ts +0 -10
  869. package/build/components/HtmlRender/type.d.ts +0 -13
  870. package/build/components/IconRender/index.d.ts +0 -9
  871. package/build/components/IconRender/type.d.ts +0 -9
  872. package/build/components/ThemeListener/index.d.ts +0 -10
  873. package/build/components/ThemeListener/type.d.ts +0 -10
  874. package/build/components/ThemeSetter/index.d.ts +0 -9
  875. package/build/components/UserCard/index.d.ts +0 -9
  876. package/build/components/UserCard/locales/en-US.d.ts +0 -10
  877. package/build/components/UserCard/locales/zh-CN.d.ts +0 -10
  878. package/build/components/UserCard/type.d.ts +0 -52
  879. package/build/components/UserSelector/index.d.ts +0 -8
  880. package/build/components/UserSelector/locales/en-US.d.ts +0 -5
  881. package/build/components/UserSelector/locales/zh-CN.d.ts +0 -5
  882. package/build/components/UserSelector/type.d.ts +0 -60
  883. package/build/index.d.ts +0 -78
  884. package/build/index.js +0 -28
  885. package/build/index.js.LICENSE.txt +0 -1733
  886. package/build/locales/en-US.d.ts +0 -20
  887. package/build/locales/zh-CN.d.ts +0 -20
  888. package/build/services/constants/commonConstant.d.ts +0 -6
  889. package/build/services/constants/dbConstant.d.ts +0 -4
  890. package/build/services/constants/iconConstant.d.ts +0 -4
  891. package/build/services/constants/locales/en-US.d.ts +0 -8
  892. package/build/services/constants/locales/zh-CN.d.ts +0 -8
  893. package/build/services/enums/eventEnum.d.ts +0 -10
  894. package/build/services/enums/storageEnum.d.ts +0 -10
  895. package/build/services/types/commonType.d.ts +0 -42
  896. package/build/services/utils/dbUtil.d.ts +0 -5
  897. package/build/services/utils/eventUtil.d.ts +0 -5
  898. package/build/services/utils/objectUtil.d.ts +0 -5
  899. package/build/services/utils/renderUtil.d.ts +0 -6
  900. package/build/services/utils/resourceUtil.d.ts +0 -12
  901. package/build/services/utils/storageUtil.d.ts +0 -5
@@ -0,0 +1,75 @@
1
+ ---
2
+ title: FAQ
3
+ order: 3
4
+
5
+ nav:
6
+ title: FAQ
7
+ path: /docs
8
+ ---
9
+
10
+ ## FAQ
11
+
12
+ 以下整理了一些 ProComponents 社区常见的问题和官方答复,在提问之前建议找找有没有类似的问题。此外我们也维护了一个反馈较多 [how to use 标签](https://github.com/ant-design/pro-components/issues?q=is%3Aissue+label%3A%22%F0%9F%A4%B7%F0%9F%8F%BC+How+to+use%22+) 亦可参考。
13
+
14
+ ### ProTable request 返回的数据格式可以自定义吗?
15
+
16
+ 不行的,你可以在 request 中转化一下,或者写个拦截器。
17
+
18
+ [示例](https://beta-pro.ant.design/docs/request-cn)
19
+
20
+ ### 如何隐藏 ProTable 生成的搜索的 label?
21
+
22
+ columns 的 title 支持 function 的,你可以这样写:
23
+
24
+ ```typescript
25
+ title: (_, type) => {
26
+ if (type === 'table') {
27
+ return '标题';
28
+ }
29
+ return null;
30
+ };
31
+ ```
32
+
33
+ ### 我没法安装 `ProComponents` 和 `ProComponents` 的依赖,顺便提一句,我在中国大陆。
34
+
35
+ 那啥,试试 [cnpm](http://npm.taobao.org/)和[yarn](https://www.npmjs.com/package/yarn)。
36
+
37
+ ### `Form` 当中的 `initialValues`
38
+
39
+ `ProComponents` 底层也是封装的 [antd](https://ant.design/index-cn) ,所以用法也和 [antd](https://ant.design/index-cn) 相同。注意 `initialValues` 不能被 `setState` 动态更新,所以你需要用 `setFieldsValue` 来更新。 `initialValues` 只在 `form` 初始化时生效且只生效一次,如果你需要异步加载,推荐使用 `request`,或者 `initialValues ? <Form/> : null`
40
+
41
+ ### Chrome88 以下浏览器兼容问题
42
+
43
+ 因为 `ProComponent` 使用了较新的 css 属性,会导致在低版本浏览器无法达到预设的兼容效果(即使项目配置了 polyfill)。
44
+
45
+ 因此,需要进行一些额外的兼容性配置:
46
+
47
+ 1. 按这个文档配置 <https://ant.design/docs/react/compatible-style-cn>
48
+
49
+ 2. 如果是 umi 项目,可以在 app.ts 中配置:
50
+
51
+ ```typescript
52
+ import {
53
+ StyleProvider,
54
+ legacyLogicalPropertiesTransformer,
55
+ } from '@ant-design/cssinjs';
56
+
57
+ export function rootContainer(container: React.ReactElement) {
58
+ return React.createElement(
59
+ StyleProvider,
60
+ {
61
+ hashPriority: 'high',
62
+ transformers: [legacyLogicalPropertiesTransformer],
63
+ },
64
+ container,
65
+ );
66
+ }
67
+ ```
68
+
69
+ ## 错误和警告
70
+
71
+ 这里是一些你在使用 ProComponents 的过程中可能会遇到的错误和警告,但是其中一些并不是 ProComponents 的 bug。
72
+
73
+ ### Cannot read property 'Provider' of undefined
74
+
75
+ 请确保 antd 的版本 >= `4.11.1`
@@ -0,0 +1,53 @@
1
+ ---
2
+ title: Quick Start
3
+ order: 2
4
+
5
+ nav:
6
+ title: Documentation
7
+ path: /docs
8
+ ---
9
+
10
+ ## ProComponents
11
+
12
+ ProComponents is a template component based on Ant Design that provides a higher level of abstraction support out of the box. It can significantly improve the efficiency of creating CRUD pages and focus more on them.
13
+
14
+ - [ProLayout](/components/layout) solves layout problems, provides out-of-the-box menu and breadcrumb functionality
15
+ - [ProTable](/components/table) Form template component, abstracting web requests and form formatting
16
+ - [ProForm](/components/form) Form template component, presets common layouts and behaviors
17
+ - [ProCard](/components/card) provides card slicing and raster layout capabilities
18
+ - [ProDescriptions](/components/descriptions) Definition list template component, a companion component to ProTable
19
+ - [ProSkeleton](/components/skeleton) Page level skeleton screen
20
+
21
+ ProComponents is focused on middle and backend CRUD and has a lot of pre-defined styles and behaviors. These behaviors and styles can be difficult to change, so if your business requires rich customization it is recommended to use Ant Design directly.
22
+
23
+ ## Installation
24
+
25
+ Currently each component of ProComponents is a separate package, you need to install the corresponding npm package in your project and use it.
26
+
27
+ ```shell
28
+ $ npm i @ant-design/pro-components --save
29
+ ```
30
+
31
+ Current ProComponents provides the following components for direct use.
32
+
33
+ - `npm i @ant-design/pro-components --save`
34
+
35
+ ## Using in a project
36
+
37
+ Each package is a separate component package, and is used in the following example.
38
+
39
+ ```tsx | pure
40
+ import { ProForm, ProFormText } from '@ant-design/pro-components';
41
+
42
+ export default () => {
43
+ return (
44
+ <ProForm
45
+ onFinish={async (values) => {
46
+ console.log(values);
47
+ }}
48
+ >
49
+ <ProFormText name="name" label="姓名" />
50
+ </ProForm>
51
+ );
52
+ };
53
+ ```
@@ -0,0 +1,56 @@
1
+ ---
2
+ title: 快速开始
3
+ order: 2
4
+
5
+ nav:
6
+ title: 文档
7
+ path: /docs
8
+ ---
9
+
10
+ ## ProComponents
11
+
12
+ ProComponents 是基于 Ant Design 而开发的模板组件,提供了更高级别的抽象支持,开箱即用。可以显著地提升制作 CRUD 页面的效率,更加专注于页面。
13
+
14
+ - [ProLayout](/components/layout) 解决布局的问题,提供开箱即用的菜单和面包屑功能
15
+ - [ProTable](/components/table) 表格模板组件,抽象网络请求和表格格式化
16
+ - [ProForm](/components/form) 表单模板组件,预设常见布局和行为
17
+ - [ProCard](/components/card) 提供卡片切分以及栅格布局能力
18
+ - [ProDescriptions](/components/descriptions) 定义列表模板组件,ProTable 的配套组件
19
+ - [ProSkeleton](/components/skeleton) 页面级别的骨架屏
20
+
21
+ 在使用之前可以查看一下典型的 Demo 来判断组件是否适合你们的业务。ProComponents 专注于中后台的 CRUD, 预设了相当多的样式和行为。这些行为和样式更改起来会比较困难,如果你的业务需要丰富的自定义建议直接使用 Ant Design。
22
+
23
+ ## 安装
24
+
25
+ 当前 ProComponents 每一个组件都是一个独立的包,你需要在你的项目中安装对应的 npm 包并使用。
26
+
27
+ ```shell
28
+ $ npm i @ant-design/pro-components --save
29
+ ```
30
+
31
+ 当前 ProComponents 提供了如下组件可直接使用:
32
+
33
+ - `npm i @ant-design/pro-components --save`
34
+
35
+ ## 在项目中使用
36
+
37
+ 每一个包都是一个独立的组件包,使用示例如下 :
38
+
39
+ ```jsx
40
+ import React from 'react';
41
+ import { ProForm, ProFormText } from '@ant-design/pro-components';
42
+
43
+ export default () => {
44
+ return (
45
+ <ProForm
46
+ onFinish={async (values) => {
47
+ console.log(values);
48
+ }}
49
+ >
50
+ <ProFormText name="name" label="姓名" />
51
+ </ProForm>
52
+ );
53
+ };
54
+ ```
55
+
56
+ 我们所有的包都使用 CSS-in-JS 管理样式,只需引入 js 即可。
@@ -0,0 +1,125 @@
1
+ ---
2
+ title: Introduction
3
+ order: 1
4
+
5
+ nav:
6
+ title: Documentation
7
+ order: 1
8
+ path: /docs
9
+ ---
10
+
11
+ ![banner](https://gw.alipayobjects.com/zos/antfincdn/7VBnGHwjaW/bianzu%2525202.svg)
12
+
13
+ ## The concept of #ProComponents
14
+
15
+ Ant Design defines the basic design specification and provides a large number of basic components. However, for middle and backend applications, we want to provide a higher level of abstraction, provide higher level design specifications, and provide corresponding components so that developers can quickly build high quality pages.
16
+
17
+ In ProComponents, we have a series of built-in design specifications and pre-defined common logic. For example, you can use ProTable as an Ant Design Table, and ProForm as a base component of Ant Design or as a custom component. We hope to further extend the capabilities of Ant Design by providing the ability to build high quality middle and backend applications quickly and efficiently with the Pro series components.
18
+
19
+ ## Design Ideas
20
+
21
+ For almost any business, what we do is actually define a series of behaviors based on a state, take the table above as an example, first we need a state `dataSource` for storing the data requested from the server, and for optimizing the experience, we also need a `loading`. So we have a series of behaviors, we need to set `loading=true` first, then launch a network request, after the network request is completed, set `dataSource` for the requested data, `loading=false`, a network request is completed, although very simple, but a business system has a considerable number of tables, and each table is defined so once, the workload is very large.
22
+
23
+ If you want to re-request the network, we need to encapsulate the behavior, the above behavior into a method, click to reload the data, if you have paging, then you need a new variable page, we need to go before the re-request according to the need to determine whether to reset the page to the first page, which introduces another variable. If your form also has to control the number of pages per page, then it will be even more cumbersome. This kind of repetitive work can waste a lot of our time.
24
+
25
+ ### One state plus a series of behaviors
26
+
27
+ The above logic exists in almost all middle and backend development, each added state requires a series of behaviors to manage, and each behavior can be complex if coupled with too many states.
28
+
29
+ Based on the same idea, ProTable wants to abstract a layer to solve the problem of complex state. The most common states in table are `loading` and `dataSource`, including the extended `page`, `pageSize`, which are actually So table abstracts a `request` api that encapsulates the loading and dataSource states and all their behaviors, such as previous page, next page, refresh, modify per-page size, and so on.
30
+
31
+ This wrapping pattern allows the front-end to get away from all kinds of state management and focus on business development, and is more intuitive without the need for data flow solutions like dva, redux, etc. The developer only needs to define a state and the heavy component will automatically generate a set of behaviors.
32
+
33
+ > For incremental use we also provide the same api as Ant Design, which can be completely downgraded to an Ant Design table.
34
+
35
+ ### A component ≈ a page
36
+
37
+ Heavy components differ from traditional components in that they are abstracted as a page, so ProTable supports network requests and automatic query form generation, while ProLayout supports automatic menu generation, both based on the same idea of providing page-level abstraction.
38
+
39
+ A list page should be done with ProLayout + ProTable, an edit page should be done with ProLayout + ProForm, and a detail page can be done with ProLayout + ProDescriptions. A page only needs to focus on a few heavy components in the development project, reducing the mental load and focusing on the more core business logic.
40
+
41
+ ### Design and style
42
+
43
+ In actual development we often encounter design issues, such as whether the classic button should be placed on the left or right, how to layout the query form, how to format the date, and how to align the numbers, all of which are abstracted in the heavy component. For various behaviors and styles we have discussed and designed by designers, the default looks good and works well.
44
+
45
+ ## Contribute
46
+
47
+ We welcome your contributions, and you can build with us by in the following ways 😊 :
48
+
49
+ - Using Ant Design Pro, umi and ProComponents in your company or personal projects.
50
+ - Report bugs or make inquiries via [Issue](http://github.com/ant-design/pro-components/issues).
51
+ - Submit a [Pull Request](http://github.com/ant-design/pro-components/pulls) to improve the code of ProComponents.
52
+
53
+ ### Scaffolding overview
54
+
55
+ When we clone the project we will see the following directory structure.
56
+
57
+ ```bash
58
+ - .dumi * Configuration for dumi, mainly themes, etc.
59
+ - .github * github actions and related issue configuration
60
+ - docs * the public documentation
61
+ - packages * The packages we maintain, if you want to contribute code, this is where you need to focus most
62
+ - README.md * The code that is displayed on the github homepage
63
+ - tests * The place to write test cases
64
+ - public * static files used to deploy the website
65
+ - scripts * scripts used for development or deployment
66
+ - .prettierrc.js * Configuration for prettier
67
+ - .eslintrc.js * configuration for eslint
68
+ - .fatherrc.ts * configuration for compile scaffolding
69
+ - .umirc.js * core configuration for dumi
70
+ - webpack.config.js * configuration file for compiling the umd package
71
+ - vitest.config.js * configuration for the test environment
72
+ - lerna.json * configuration for multiple packages
73
+ - package.json * configuration for the project
74
+ - tsconfig.json * configuration for typescript
75
+ - pnpm-lock.yaml * dependency lock file
76
+
77
+ ```
78
+
79
+ The `coverage` and `.umi` folders are special in that `coverage` is a test coverage file that appears after running test coverage, and `.umi` is some temporary files at runtime that are generated when `npm run start` is executed.
80
+
81
+ ### Source code overview
82
+
83
+ The packages folder contains all our components, each of which generally has a `src`, `package.json` and `README.md`. `package.json` and `README.md` can be generated by running `npm run bootstrap` after creating a new folder.
84
+
85
+ The real source code is in `src`, and we have agreed that the demos folder under `src` will store all the demos, and the `${package name}.md` file will be used to introduce the component and introduce the demos and API documentation.
86
+
87
+ > We use the dumi syntax and require all external components to be introduced in code, which makes debugging easier.
88
+
89
+ ### Style Guide
90
+
91
+ We use the automated code formatting software [`Prettier`](https://prettier.io/). After making changes to the code, run `npm run prettier`. Of course we recommend the prettier plugin to format the code whenever you want.
92
+
93
+ > Our CI will check if the code is prettier, so it's a good idea to run `npm run prettier` before committing the code.
94
+
95
+ After that, `linter` will catch most of the problems that may occur in the code. You can run `npm run lint` to check the code style status.
96
+
97
+ However, there are some styles that `linter` can't handle. If you're not sure about something, check out [Airbnb's Style Guide](https://github.com/airbnb/javascript) to guide yourself.
98
+
99
+ ### Developing workflows
100
+
101
+ We use [monorepo](https://danluu.com/monorepo/) to manage our repository in a way that the repository contains multiple separate packages so that changes can be co-located together, so that we can run test cases together, and if there is a problem with a change, we can quickly pinpoint the problem.
102
+
103
+ The [`pnpm-workspace.yaml`](https://pnpm.io/pnpm-workspace_yaml) can help us share dependencies across multiple packages.
104
+
105
+ After the installation is complete you can use the following command.
106
+
107
+ - `pnpm start` to preview your changes
108
+ - `pnpm lint` to check the code style
109
+ - `pnpm tsc` to check if TypeScript conforms to the specification
110
+ - `pnpm test` Test if the code passes the test case
111
+ - `pnpm test:coverage` Test the test coverage of the repository
112
+ - `pnpm build` Compile the current component library
113
+
114
+ We recommend running `pnpm test` or the aforementioned linter to make sure that your code changes do not affect the original functionality and that every line of code you write is tested correctly, which will improve the overall quality of the component library anyway.
115
+
116
+ If you add a new feature, please add tests before committing pr, so we can make sure your code doesn't have problems in the future.
117
+
118
+ ### Some conventions
119
+
120
+ ProComponents is developed on top of antd. In order to maintain compatibility with antd's ecosystem, we require that styles that override antd must use `. @{ant-prefix}` variable to generate class names, which is configured in the js with the following code.
121
+
122
+ ```tsx | pure
123
+ const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);
124
+ const prefixCls = getPrefixCls('pro-${package name}');
125
+ ```
@@ -0,0 +1,126 @@
1
+ ---
2
+ title: 简介
3
+ order: 1
4
+
5
+ nav:
6
+ title: 文档
7
+ order: 1
8
+ path: /docs
9
+ ---
10
+
11
+ ![banner](https://gw.alipayobjects.com/zos/antfincdn/7VBnGHwjaW/bianzu%2525202.svg)
12
+
13
+ ## ProComponents 的理念
14
+
15
+ Ant Design 定义了基础的设计规范,对应也提供了大量的基础组件。但是对于中后台类应用,我们希望提供更高程度的抽象,提供更上层的设计规范,并且提供相应的组件使得开发者可以快速搭建出高质量的页面。
16
+
17
+ 在 ProComponents 中我们内置了一系列的设计规范,预设了常用的逻辑。在这个基础上我们同样提供了灵活的支持,比如对于 ProTable 来说你也可以把它完全当做 Ant Design 的 Table 来用,对于 ProForm 来说你也可以直接使用 Ant Design 的基础组件或者你的自定义组件。我们希望通过 Pro 系列组件提供快速高效搭建高质量中后台应用的能力,进一步扩展 Ant Design 的能力,欢迎使用并提出宝贵的意见。
18
+
19
+ ## 设计思路
20
+
21
+ 对于几乎所有的业务来说,我们做的其实就是根据一个状态定义一系列的行为,以上面的 table 为例,首先我们需要一个状态 `dataSource` 用于存储从服务器请求的数据,为了优化体验,我们还需要一个 `loading`。于是我们就有了一系列的行为,我们需要先设置 `loading=true`,然后发起网络请求,网络请求完成之后就设置 `dataSource` 为请求回来的数据,`loading=false`,一个网络请求就完成了,虽然非常简单,但是一个业务系统有相当多的表格,每个表格都定义这么一次,这个工作量就非常大了。
22
+
23
+ 如果要重新请求网络,我们就需要封装一下行为,将以上的行为封装成一个方法,点击一下重新加载数据,如果你有分页,那么就需要新的变量 page,我们在重新请求之前需要去根据需要来判断一下是否将页面重置为第一页,这又引入了一个变量。如果你的表格还要控制每页的数量,那么将会更加繁杂。这种重复性的劳动会浪费掉我们的很多时间。
24
+
25
+ ### 一个状态加一系列行为
26
+
27
+ 以上的逻辑几乎存在于所有中后台开发中,每增加一个状态我们就需要一系列的行为来进行管理,每个行为如果耦合了太多的状态也会复杂到无以复加。
28
+
29
+ 碰上这种情况,几乎所有程序员都会想办法进行分层,基于同样的思路,ProTable 希望抽象出一层来解决掉复杂状态的问题,table 中最常用的状态就是 `loading` 和 `dataSource`,包括扩展的 `page`,`pageSize` 其实都是服务于网络状态,于是 table 抽象出了一个 `request` 的 api,在其中封装了 `loading` 和 `dataSource` 状态以及他们所有的行为,如上一页、下一页、重新刷新、修改每页大小等。
30
+
31
+ 这种封装模式可以让前端从各种状态管理中脱身出来,专注于业务开发,也不需要 dva,redux 等数据流的方案,更加符合直觉。开发者只需要定义一个状态,重型组件会自动生成一系列行为。
32
+
33
+ > 为了渐进式使用我们也提供了与 Ant Design 相同的 api,完全可以降级成为一个 Ant Design 的 table 使用。
34
+
35
+ ### 一个组件 ≈ 一个页面
36
+
37
+ 重型组件区别于传统组件有个很大的不同,重型组件在抽象时是将其当成一个页面来进行处理,所以 ProTable 会支持网络请求和自动生成查询表单,而 ProLayout 会支持自动生成菜单,两者都基于同样的思想也就是提供页面级别的抽象。
38
+
39
+ 一个列表页应该可以用 ProLayout + ProTable 完成,一个编辑页应该使用 ProLayout + ProForm 完成,详情页可以用 ProLayout + ProDescriptions 完成。 一个页面在开发过程中只需要关注几个重型组件,降低心智负担,专注于更核心的业务逻辑。
40
+
41
+ ### 设计与样式
42
+
43
+ 在实际开发中我们也经常会碰到一些设计问题,比如经典的按钮应该放在左面还是右面,查询表单怎么布局,日期怎么格式化,数字的对齐问题,在重型组件中都进行了抽象,对于各种行为与样式我们都经过了设计师的讨论与设计,可以达到默认好看及好用。
44
+
45
+ 如果你还是想自定义相关渲染,可以通过自定义 valueType 的方式来实现。默认的不一定是最好的,但是一定不差。如果你要自定义,最好考虑一下投入产出比,毛坯房里雕花真的好吗?
46
+
47
+ ## 参与贡献
48
+
49
+ 我们非常欢迎你的贡献,你可以通过以下方式和我们一起共建 😊 :
50
+
51
+ - 在你的公司或个人项目中使用 Ant Design Pro,umi 和 ProComponents。
52
+ - 通过 [Issue](http://github.com/ant-design/pro-components/issues) 报告 bug 或进行咨询。
53
+ - 提交 [Pull Request](http://github.com/ant-design/pro-components/pulls) 改进 ProComponents 的代码。
54
+
55
+ ### 脚手架概览
56
+
57
+ 当我们 clone 完项目之后会看到如下的目录结构。
58
+
59
+ ```bash
60
+ - .dumi * dumi 的相关配置,主要是主题等
61
+ - .github * github 的 action 和相关的 issue 配置
62
+ - docs * 存放公用的文档
63
+ - packages * 我们维护的包, 如果你想贡献代码,这里是你最需要关注的
64
+ - README.md * 展示在 github 主页的代码
65
+ - tests * 编写测试用例的地方
66
+ - public * 部署官网所用的静态文件
67
+ - scripts * 开发或者部署所用的脚本
68
+ - .prettierrc.js * prettier 的相关配置
69
+ - .eslintrc.js * eslint 的配置
70
+ - .fatherrc.ts * 编译脚手架的配置
71
+ - .umirc.js * dumi 的核心配置
72
+ - webpack.config.js * 编译 umd 包的配置文件
73
+ - vitest.config.js * 测试环境的配置
74
+ - lerna.json * 多包的配置
75
+ - package.json * 项目的配置
76
+ - tsconfig.json * typescript 的配置
77
+ - pnpm-lock.yaml * 依赖 lock 文件
78
+ ```
79
+
80
+ `coverage` 和 `.umi` 这两个文件夹比较特殊,`coverage` 是测试覆盖率文件,在跑完测试覆盖率后才会出现,`.umi` 是运行时的一些临时文件,在执行 `npm run start` 时生成。
81
+
82
+ ### 源码概览
83
+
84
+ 在 packages 文件夹中包含了我们所有的组件,每个组件一般都有一个 `src`,`package.json` 和 `README.md`。`package.json` 和 `README.md` 可以在新建文件夹后通过执行 `npm run bootstrap` 来生成。
85
+
86
+ `src` 中就是我们真正的源码,我们约定 `src` 下会有 demos 文件夹里面会存储所有的 demo,并且 `${包名}.md` 的文件用于介绍这个组件,同时引入 demo 和 API 文档。
87
+
88
+ > 我们使用了 dumi 的语法,要求全部使用外置组件,用 code 引入,调试起来会更加方便。
89
+
90
+ ### 风格指南
91
+
92
+ 我们使用自动化代码格式化软件 [`Prettier`](https://prettier.io/)。 对代码做出更改后,运行 `npm run prettier`。当然我们更推荐 prettier 的插件,随时格式化代码。
93
+
94
+ > 我们的 CI 会检查代码是否被 prettier,在提交代码前最好执行一下 `npm run prettier`。
95
+
96
+ 之后,`linter` 会捕获代码中可能出现的多数问题。 你可以运行 `npm run lint` 来检查代码风格状态。
97
+
98
+ 不过,`linter` 也有不能搞定的一些风格。如果有些东西不确定,请查看 [Airbnb’s Style Guide](https://github.com/airbnb/javascript) 来指导自己。
99
+
100
+ ### 开发工作流
101
+
102
+ 我们使用了 [monorepo](https://danluu.com/monorepo/) 的方式来管理我们的仓库,仓库中包含多个独立的包,以便于更改可以一起联调,这样可以一起跑测试用例,如果变更出现问题,我们可以很快地定位到问题。
103
+
104
+ [`pnpm-workspace.yaml`](https://pnpm.io/zh/pnpm-workspace_yaml) 可以帮助我们在多个包中共享依赖。
105
+
106
+ 安装完成后你可以使用以下命令:
107
+
108
+ - `pnpm start` 预览你的改动
109
+ - `pnpm lint` 检查代码风格
110
+ - `pnpm tsc` 检查 TypeScript 是否符合规范
111
+ - `pnpm test` 测试代码是否可以通过测试用例
112
+ - `pnpm test:coverage` 测试仓库的测试覆盖率
113
+ - `pnpm build` 编译当前组件库
114
+
115
+ 我们建议运行 `pnpm test` 或前文提及的 linter 以确保你的代码变更有没有影响原有功能,同时保证你写的每行代码都被正确地测试到,不管怎样这样都会提升组件库的整体质量。
116
+
117
+ 如果你增加了一个新功能,请添加测试后再提交 pr,这样我们能确保以后你的代码不出问题。
118
+
119
+ ### 一些约定
120
+
121
+ ProComponents 基于 Ant Design 来开发,为了与 Ant Design 的生态保持兼容性,我们要求覆盖 Ant Design 的样式必须要使用 `${token.antCls}` 变量来生成类名,在 js 中使用如下代码来配置实现。
122
+
123
+ ```tsx | pure
124
+ const { getPrefixCls } = useContext(ConfigProvider.ConfigContext);
125
+ const prefixCls = getPrefixCls('pro-${包名}');
126
+ ```
@@ -0,0 +1,87 @@
1
+ ---
2
+ title: ProComponents - Front-end components at page level
3
+ hero:
4
+ title: ProComponents
5
+ description: 🏆 Make the development of middle and back office easier
6
+ actions:
7
+ - text: 🏮🏮 Introduction →
8
+ link: /en-US/docs
9
+
10
+ features:
11
+ - image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/q48YQ5X4ytAAAAAAAAAAAAAAFl94AQBr
12
+ title: Easy to use
13
+ description: It has its own packaging on Ant Design, which is easier to use
14
+
15
+ - image: https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg
16
+ title: Ant Design
17
+ description: It is in the same line with Ant Design design system and seamlessly connects with ant project
18
+
19
+ - image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/UKqDTIp55HYAAAAAAAAAAAAAFl94AQBr
20
+ title: Internationalization
21
+ description: Provide complete internationalization and connect with Ant Design system
22
+
23
+ - image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/Y_NMQKxw7OgAAAAAAAAAAAAAFl94AQBr
24
+ title: Preset Style
25
+ description: The style and style are in one continuous line with ant d, without magic modification, and naturally
26
+
27
+ - image: https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/U3XjS5IA1tUAAAAAAAAAAAAAFl94AQBr
28
+ title: Preset behavior
29
+ description: Less code, fewer bugs
30
+
31
+ - image: https://gw.alipayobjects.com/zos/antfincdn/Eb8IHpb9jE/Typescript_logo_2020.svg
32
+ title: TypeScript
33
+ description: Use TypeScript development to provide a complete type definition file
34
+
35
+ footer: Open-source MIT Licensed | © 2017-present
36
+ ---
37
+
38
+ ProComponents is a UI component library designed for enterprise-level applications using React. Some of the advantages of ProComponents include:
39
+
40
+ - Rich component library: ProComponents provides a vast set of UI components, including tables, forms, charts, maps, tree views, and more, capable of meeting most of the requirements for enterprise applications.
41
+
42
+ - Powerful features: ProComponents' components not only provide basic UI display functions but also have complex data manipulation and business logic processing capabilities, allowing rapid development of robust enterprise applications.
43
+
44
+ - Easy to use: ProComponents has a simple, user-friendly API and comprehensive documentation, enabling developers to quickly learn and use the components.
45
+
46
+ - Visual configuration support: ProComponents provides visual configuration tools for some components, making it easier for developers to complete simple component configuration work.
47
+
48
+ - Highly customizable: ProComponents' components support multiple configurations and custom styles to meet the needs of different projects.
49
+
50
+ In summary, ProComponents is a powerful, easy-to-use, customizable, and enterprise-level UI component library suitable for applications of all scales and types.
51
+
52
+ ### shortcoming
53
+
54
+ ProComponents is a UI component library based on React and designed for enterprise-level applications. Although ProComponents has many advantages, there are also some disadvantages to consider:
55
+
56
+ -Limited customization: ProComponents provides a rich set of components, but the customization options are relatively limited. It may be challenging to customize the components to meet specific project requirements.
57
+
58
+ -Steep learning curve: ProComponents has a complex API and documentation, which can be challenging for beginners to understand and use. The learning curve may be steep, and it may take some time to become proficient in using the library.
59
+
60
+ -Limited browser compatibility: ProComponents relies on modern browser features and may not work correctly on older browsers. This can limit the reach of the application and require additional development time to ensure cross-browser compatibility.
61
+
62
+ -Heavy codebase: ProComponents has a large codebase, which can slow down the development process and make it more challenging to maintain the codebase over time.
63
+
64
+ In summary, ProComponents is a powerful UI component library for enterprise applications, but it also has some limitations, such as limited customization, a steep learning curve, limited browser compatibility, and a heavy codebase. Developers should carefully evaluate their project requirements and constraints before choosing to use ProComponents.
65
+
66
+ ## Component Kanban
67
+
68
+ | Components | Downloads | Versions |
69
+ | --- | --- | --- |
70
+ | pro-components | [![layout](https://img.shields.io/npm/dw/@ant-design/pro-components.svg)](https://www.npmjs.com/package/@ant-design/pro-components) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-components.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-components) |
71
+ | pro-layout | [![layout](https://img.shields.io/npm/dw/@ant-design/pro-layout.svg)](https://www.npmjs.com/package/@ant-design/pro-layout) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-layout.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-layout) |
72
+ | pro-table | [![table](https://img.shields.io/npm/dw/@ant-design/pro-table.svg)](https://www.npmjs.com/package/@ant-design/pro-table) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-table.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-table) |
73
+ | pro-field | [![field](https://img.shields.io/npm/dw/@ant-design/pro-field.svg)](https://www.npmjs.com/package/@ant-design/pro-field) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-field.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-field) |
74
+ | pro-form | [![form](https://img.shields.io/npm/dw/@ant-design/pro-form.svg)](https://www.npmjs.com/package/@ant-design/pro-form) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-form.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-form) |
75
+ | pro-skeleton | [![skeleton](https://img.shields.io/npm/dw/@ant-design/pro-skeleton.svg)](https://www.npmjs.com/package/@ant-design/pro-skeleton) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-skeleton.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-skeleton) |
76
+ | pro-list | [![list](https://img.shields.io/npm/dw/@ant-design/pro-list.svg)](https://www.npmjs.com/package/@ant-design/pro-list) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-list.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-list) |
77
+ | pro-card | [![card](https://img.shields.io/npm/dw/@ant-design/pro-card.svg)](https://www.npmjs.com/package/@ant-design/pro-card) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-card.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-card) |
78
+ | pro-descriptions | [![descriptions](https://img.shields.io/npm/dw/@ant-design/pro-card.svg)](https://www.npmjs.com/package/@ant-design/pro-descriptions) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-descriptions.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-descriptions) |
79
+
80
+ ## 🖥 Browser Compatibility
81
+
82
+ - Modern browsers and Internet Explorer 11 (with [polyfills](https://stackoverflow.com/questions/57020976/polyfills-in-2019-for-ie11))
83
+ - [Electron](https://www.electronjs.org/)
84
+
85
+ | [![edge](https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png)](http://godban.github.io/browsers-support-badges/) | [![Edge](https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png)](http://godban.github.io/browsers-support-badges/) | [![chrome](https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png)](http://godban.github.io/browsers-support-badges/) | [![safari](https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png)](http://godban.github.io/browsers-support-badges/) | [![electron_48x48](https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png)](http://godban.github.io/browsers-support-badges/) |
86
+ | --- | --- | --- | --- | --- |
87
+ | Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
package/docs/index.md ADDED
@@ -0,0 +1,56 @@
1
+ ---
2
+ title: ProComponents - 页面级别的前端组件
3
+ hero:
4
+ title: ProComponents
5
+ description: 🏆 让中后台开发更简单
6
+ actions:
7
+ - text: 🏮🏮 快速开始 →
8
+ link: /docs/intro
9
+
10
+ footer: Open-source MIT Licensed | © 2017-present
11
+ ---
12
+
13
+ ProComponents 是一个基于 React 的企业级 UI 组件库,它具有以下优点:
14
+
15
+ - 丰富的组件库:ProComponents 提供了大量的 UI 组件,包括表格、表单、图表、地图、树形控件等,能够满足大多数企业应用的需求。
16
+
17
+ - 功能强大:ProComponents 的组件不仅提供了基本的 UI 展示功能,还具备了复杂的数据操作和业务逻辑处理能力,能够快速构建出功能强大的企业应用。
18
+
19
+ - 易于使用:ProComponents 提供了简单易用的 API 和完善的文档,使得开发者能够快速上手并使用其中的组件。
20
+
21
+ - 支持可视化配置:ProComponents 提供了一些组件的可视化配置工具,能够使开发者更快速地完成一些简单的组件配置工作。
22
+
23
+ - 高度可定制:ProComponents 的组件支持多种配置和样式自定义,能够满足不同项目的需求。
24
+
25
+ 总之,ProComponents 是一个功能丰富、易于使用、支持可视化配置和高度可定制的企业级 UI 组件库,适用于各种规模和类型的企业应用开发。
26
+
27
+ ### 缺点
28
+
29
+ ProComponents 是一个基于 React 和 Ant Design 的组件库,它提供了很多常用的 UI 组件和业务组件,可以方便地帮助开发者快速搭建前端页面。虽然 ProComponents 具有很多优点,但是也有以下一些缺点:
30
+
31
+ - 学习成本高:ProComponents 的组件库非常庞大,学习所有组件可能需要花费较长时间。因此,对于新手开发者来说,学习成本可能会比较高。
32
+
33
+ - 样式定制难度大:ProComponents 组件库提供了很多可定制的属性,但是如果需要修改样式的话,可能需要较高的 CSS 技能水平,因为 Ant Design 的样式风格非常复杂,需要深入了解其样式系统才能进行定制。
34
+
35
+ - 依赖项过多:ProComponents 依赖了很多第三方库和组件,这可能会增加项目的体积和加载时间。
36
+
37
+ - 不支持 IE8 及以下浏览器:由于 ProComponents 采用了现代化的技术栈,所以不支持 IE8 及以下的浏览器,这可能会影响一些用户的体验。
38
+
39
+ - 组件更新不够及时:虽然 ProComponents 提供了很多常用组件,但是一些新的 UI 组件可能不会及时添加到组件库中。
40
+
41
+ 总之,ProComponents 是一个非常优秀的组件库,但是也有一些缺点,开发者需要根据自己的具体情况权衡其利弊。
42
+
43
+ ## 组件看板
44
+
45
+ | 组件 | 下载量 | 版本 |
46
+ | --- | --- | --- |
47
+ | pro-components | [![layout](https://img.shields.io/npm/dw/@ant-design/pro-components.svg)](https://www.npmjs.com/package/@ant-design/pro-components) | [![npm package](https://img.shields.io/npm/v/@ant-design/pro-components.svg?style=flat-square?style=flat-square)](https://www.npmjs.com/package/@ant-design/pro-components) |
48
+
49
+ ## 🖥 浏览器兼容性
50
+
51
+ - 现代浏览器
52
+ - [Electron](https://www.electronjs.org/)
53
+
54
+ | [![edge](https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png)](http://godban.github.io/browsers-support-badges/) | [![Edge](https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png)](http://godban.github.io/browsers-support-badges/) | [![chrome](https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png)](http://godban.github.io/browsers-support-badges/) | [![safari](https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png)](http://godban.github.io/browsers-support-badges/) | [![electron_48x48](https://raw.githubusercontent.com/alrra/browser-logos/master/src/electron/electron_48x48.png)](http://godban.github.io/browsers-support-badges/) |
55
+ | --- | --- | --- | --- | --- |
56
+ | Edge | last 2 versions | last 2 versions | last 2 versions | last 2 versions |
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: CRUD
3
+ nav:
4
+ title: Playground
5
+ path: /playground
6
+ ---
7
+
8
+ # CRUD
9
+
10
+ ProTable,ProDescriptions,ProForm 都是基于 ProField 来进行封装。ProTable 和 ProDescriptions 根据 valueType 来渲染不同的 ProField,Form 则是通过不同的 FormField 来实现封装。
11
+
12
+ 使用同样的底层实现为 ProTable,ProDescriptions,ProForm 打通带来了便利。ProForm 可以很方便的实现只读模式,ProTable 可以快速实现查询表单和可编辑表格。ProDescriptions 可以实现节点编辑,以下有个例子可以切换三个组件。
13
+
14
+ <code src="../../packages/table/src/demos/crud.tsx" iframe="650"></code>
@@ -0,0 +1,14 @@
1
+ ---
2
+ title: CRUD
3
+ nav:
4
+ title: Playground
5
+ path: /playground
6
+ ---
7
+
8
+ # CRUD
9
+
10
+ ProTable,ProDescriptions,ProForm 都是基于 ProField 来进行封装。ProTable 和 ProDescriptions 根据 valueType 来渲染不同的 ProField,Form 则是通过不同的 FormField 来实现封装。
11
+
12
+ 使用同样的底层实现为 ProTable,ProDescriptions,ProForm 打通带来了便利。ProForm 可以很方便的实现只读模式,ProTable 可以快速实现查询表单和可编辑表格。ProDescriptions 可以实现节点编辑,以下有个例子可以切换三个组件。
13
+
14
+ <code src="../../packages/table/src/demos/crud.tsx" iframe="650"></code>
@@ -0,0 +1,10 @@
1
+ ---
2
+ title: ProDescriptions
3
+ nav:
4
+ title: Playground
5
+ path: /playground
6
+ ---
7
+
8
+ # ProDescriptions Playground
9
+
10
+ <code src="../../packages/descriptions/src/demos/dynamic-descriptions.tsx" background="var(--main-bg-color)" title="属性展示"></code>
@@ -0,0 +1,10 @@
1
+ ---
2
+ title: ProDescriptions
3
+ nav:
4
+ title: Playground
5
+ path: /playground
6
+ ---
7
+
8
+ # ProDescriptions Playground
9
+
10
+ <code src="../../packages/descriptions/src/demos/dynamic-descriptions.tsx" background="var(--main-bg-color)" title="属性展示"></code>