feffery_antd_components 0.1.16 → 0.2.0-rc1

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 (250) hide show
  1. package/DESCRIPTION +1 -1
  2. package/NAMESPACE +1 -0
  3. package/Project.toml +1 -1
  4. package/README-en_US.md +51 -0
  5. package/README.md +14 -5
  6. package/build/lib/feffery_antd_components/AntdAccordion.py +66 -0
  7. package/build/lib/feffery_antd_components/AntdAccordionItem.py +60 -0
  8. package/build/lib/feffery_antd_components/AntdAffix.py +58 -0
  9. package/build/lib/feffery_antd_components/AntdAlert.py +64 -0
  10. package/build/lib/feffery_antd_components/AntdAnchor.py +64 -0
  11. package/build/lib/feffery_antd_components/AntdAvatar.py +83 -0
  12. package/build/lib/feffery_antd_components/AntdBackTop.py +56 -0
  13. package/build/lib/feffery_antd_components/AntdBadge.py +74 -0
  14. package/build/lib/feffery_antd_components/AntdBreadcrumb.py +78 -0
  15. package/build/lib/feffery_antd_components/AntdButton.py +76 -0
  16. package/build/lib/feffery_antd_components/AntdCalendar.py +79 -0
  17. package/build/lib/feffery_antd_components/AntdCard.py +90 -0
  18. package/build/lib/feffery_antd_components/AntdCardGrid.py +56 -0
  19. package/build/lib/feffery_antd_components/AntdCarousel.py +60 -0
  20. package/build/lib/feffery_antd_components/AntdCascader.py +103 -0
  21. package/build/lib/feffery_antd_components/AntdCheckCard.py +64 -0
  22. package/build/lib/feffery_antd_components/AntdCheckCardGroup.py +64 -0
  23. package/build/lib/feffery_antd_components/AntdCheckbox.py +75 -0
  24. package/build/lib/feffery_antd_components/AntdCheckboxGroup.py +83 -0
  25. package/build/lib/feffery_antd_components/AntdCol.py +150 -0
  26. package/build/lib/feffery_antd_components/AntdCollapse.py +85 -0
  27. package/build/lib/feffery_antd_components/AntdComment.py +90 -0
  28. package/build/lib/feffery_antd_components/AntdContent.py +54 -0
  29. package/build/lib/feffery_antd_components/AntdCopyText.py +58 -0
  30. package/build/lib/feffery_antd_components/AntdCountdown.py +76 -0
  31. package/build/lib/feffery_antd_components/AntdCustomSkeleton.py +64 -0
  32. package/build/lib/feffery_antd_components/AntdDatePicker.py +107 -0
  33. package/build/lib/feffery_antd_components/AntdDateRangePicker.py +109 -0
  34. package/build/lib/feffery_antd_components/AntdDescriptionItem.py +62 -0
  35. package/build/lib/feffery_antd_components/AntdDescriptions.py +80 -0
  36. package/build/lib/feffery_antd_components/AntdDivider.py +66 -0
  37. package/build/lib/feffery_antd_components/AntdDraggerUpload.py +126 -0
  38. package/build/lib/feffery_antd_components/AntdDrawer.py +78 -0
  39. package/build/lib/feffery_antd_components/AntdDropdown.py +90 -0
  40. package/build/lib/feffery_antd_components/AntdEmpty.py +60 -0
  41. package/build/lib/feffery_antd_components/AntdFooter.py +54 -0
  42. package/build/lib/feffery_antd_components/AntdForm.py +76 -0
  43. package/build/lib/feffery_antd_components/AntdFormItem.py +88 -0
  44. package/build/lib/feffery_antd_components/AntdHeader.py +54 -0
  45. package/build/lib/feffery_antd_components/AntdIcon.py +56 -0
  46. package/build/lib/feffery_antd_components/AntdImage.py +66 -0
  47. package/build/lib/feffery_antd_components/AntdInput.py +121 -0
  48. package/build/lib/feffery_antd_components/AntdInputNumber.py +109 -0
  49. package/build/lib/feffery_antd_components/AntdLayout.py +54 -0
  50. package/build/lib/feffery_antd_components/AntdMentions.py +80 -0
  51. package/build/lib/feffery_antd_components/AntdMenu.py +85 -0
  52. package/build/lib/feffery_antd_components/AntdMessage.py +60 -0
  53. package/build/lib/feffery_antd_components/AntdModal.py +94 -0
  54. package/build/lib/feffery_antd_components/AntdNotification.py +64 -0
  55. package/build/lib/feffery_antd_components/AntdPageHeader.py +66 -0
  56. package/build/lib/feffery_antd_components/AntdPagination.py +99 -0
  57. package/build/lib/feffery_antd_components/AntdParagraph.py +74 -0
  58. package/build/lib/feffery_antd_components/AntdPasteImage.py +56 -0
  59. package/build/lib/feffery_antd_components/AntdPictureUpload.py +148 -0
  60. package/build/lib/feffery_antd_components/AntdPopconfirm.py +86 -0
  61. package/build/lib/feffery_antd_components/AntdPopover.py +78 -0
  62. package/build/lib/feffery_antd_components/AntdPopupCard.py +72 -0
  63. package/build/lib/feffery_antd_components/AntdProgress.py +92 -0
  64. package/{feffery_antd_components → build/lib/feffery_antd_components}/AntdRadio.py +0 -0
  65. package/build/lib/feffery_antd_components/AntdRadioGroup.py +93 -0
  66. package/build/lib/feffery_antd_components/AntdRate.py +64 -0
  67. package/build/lib/feffery_antd_components/AntdResult.py +58 -0
  68. package/build/lib/feffery_antd_components/AntdRibbon.py +58 -0
  69. package/build/lib/feffery_antd_components/AntdRow.py +76 -0
  70. package/build/lib/feffery_antd_components/AntdSegmented.py +91 -0
  71. package/build/lib/feffery_antd_components/AntdSegmentedColoring.py +86 -0
  72. package/build/lib/feffery_antd_components/AntdSelect.py +127 -0
  73. package/build/lib/feffery_antd_components/AntdSider.py +72 -0
  74. package/build/lib/feffery_antd_components/AntdSkeleton.py +90 -0
  75. package/build/lib/feffery_antd_components/AntdSkeletonAvatar.py +50 -0
  76. package/build/lib/feffery_antd_components/AntdSkeletonButton.py +52 -0
  77. package/build/lib/feffery_antd_components/AntdSkeletonImage.py +44 -0
  78. package/build/lib/feffery_antd_components/AntdSkeletonInput.py +48 -0
  79. package/build/lib/feffery_antd_components/AntdSlider.py +74 -0
  80. package/build/lib/feffery_antd_components/AntdSpace.py +64 -0
  81. package/build/lib/feffery_antd_components/AntdSpin.py +72 -0
  82. package/build/lib/feffery_antd_components/AntdStatistic.py +78 -0
  83. package/build/lib/feffery_antd_components/AntdSteps.py +76 -0
  84. package/build/lib/feffery_antd_components/AntdSwitch.py +81 -0
  85. package/build/lib/feffery_antd_components/AntdTabPane.py +68 -0
  86. package/build/lib/feffery_antd_components/AntdTable.py +361 -0
  87. package/build/lib/feffery_antd_components/AntdTabs.py +97 -0
  88. package/build/lib/feffery_antd_components/AntdTag.py +58 -0
  89. package/{feffery_antd_components → build/lib/feffery_antd_components}/AntdTestLink.py +0 -0
  90. package/build/lib/feffery_antd_components/AntdText.py +76 -0
  91. package/build/lib/feffery_antd_components/AntdTimePicker.py +99 -0
  92. package/build/lib/feffery_antd_components/AntdTimeRangePicker.py +99 -0
  93. package/build/lib/feffery_antd_components/AntdTimeline.py +72 -0
  94. package/build/lib/feffery_antd_components/AntdTitle.py +78 -0
  95. package/build/lib/feffery_antd_components/AntdTooltip.py +68 -0
  96. package/build/lib/feffery_antd_components/AntdTransfer.py +103 -0
  97. package/build/lib/feffery_antd_components/AntdTree.py +109 -0
  98. package/build/lib/feffery_antd_components/AntdTreeSelect.py +115 -0
  99. package/{feffery_antd_components → build/lib/feffery_antd_components}/AntdTypography.py +0 -0
  100. package/build/lib/feffery_antd_components/AntdUpload.py +124 -0
  101. package/build/lib/feffery_antd_components/AntdWatermark.py +68 -0
  102. package/{feffery_antd_components → build/lib/feffery_antd_components}/Link.py +0 -0
  103. package/build/lib/feffery_antd_components/__init__.py +53 -0
  104. package/build/lib/feffery_antd_components/_imports_.py +189 -0
  105. package/build/lib/feffery_antd_components/feffery_antd_components.min.js +1 -0
  106. package/build/lib/feffery_antd_components/metadata.json +19958 -0
  107. package/build/lib/feffery_antd_components/package-info.json +89 -0
  108. package/feffery_antd_components/AntdAlert.py +1 -1
  109. package/feffery_antd_components/AntdAnchor.py +1 -1
  110. package/feffery_antd_components/AntdAvatar.py +1 -1
  111. package/feffery_antd_components/AntdBackTop.py +1 -1
  112. package/feffery_antd_components/AntdButton.py +10 -6
  113. package/feffery_antd_components/AntdCarousel.py +1 -1
  114. package/feffery_antd_components/AntdCascader.py +9 -5
  115. package/feffery_antd_components/AntdCol.py +1 -1
  116. package/feffery_antd_components/AntdContent.py +1 -1
  117. package/feffery_antd_components/AntdCustomSkeleton.py +1 -1
  118. package/feffery_antd_components/AntdDraggerUpload.py +1 -1
  119. package/feffery_antd_components/AntdDrawer.py +1 -1
  120. package/feffery_antd_components/AntdFooter.py +1 -1
  121. package/feffery_antd_components/AntdHeader.py +1 -1
  122. package/feffery_antd_components/AntdIcon.py +8 -4
  123. package/feffery_antd_components/AntdImage.py +1 -1
  124. package/feffery_antd_components/AntdInput.py +16 -8
  125. package/feffery_antd_components/AntdInputNumber.py +11 -7
  126. package/feffery_antd_components/AntdLayout.py +1 -1
  127. package/feffery_antd_components/AntdModal.py +10 -4
  128. package/feffery_antd_components/AntdParagraph.py +1 -1
  129. package/feffery_antd_components/AntdPasteImage.py +1 -1
  130. package/feffery_antd_components/AntdPopupCard.py +72 -0
  131. package/feffery_antd_components/AntdRibbon.py +3 -3
  132. package/feffery_antd_components/AntdRow.py +1 -1
  133. package/feffery_antd_components/AntdSegmented.py +5 -3
  134. package/feffery_antd_components/AntdSegmentedColoring.py +7 -3
  135. package/feffery_antd_components/AntdSider.py +1 -1
  136. package/feffery_antd_components/AntdSkeleton.py +1 -1
  137. package/feffery_antd_components/AntdSpace.py +1 -1
  138. package/feffery_antd_components/AntdSpin.py +2 -2
  139. package/feffery_antd_components/AntdStatistic.py +1 -1
  140. package/feffery_antd_components/AntdTabPane.py +1 -1
  141. package/feffery_antd_components/AntdTable.py +55 -7
  142. package/feffery_antd_components/AntdTag.py +1 -1
  143. package/feffery_antd_components/AntdText.py +1 -1
  144. package/feffery_antd_components/AntdTitle.py +1 -1
  145. package/feffery_antd_components/AntdTree.py +6 -4
  146. package/feffery_antd_components/AntdTreeSelect.py +8 -6
  147. package/feffery_antd_components/_imports_.py +2 -0
  148. package/feffery_antd_components/feffery_antd_components.min.js +1 -1
  149. package/feffery_antd_components/metadata.json +1042 -93
  150. package/feffery_antd_components/package-info.json +6 -2
  151. package/git-operations.md +0 -1
  152. package/images//345/233/275/351/231/205/345/214/226/347/244/272/344/276/213.png +0 -0
  153. package/package.json +6 -2
  154. package/setup.py +0 -1
  155. package/src/FefferyAntdComponents.jl +4 -3
  156. package/src/jl/'feffery'_antdalert.jl +1 -1
  157. package/src/jl/'feffery'_antdanchor.jl +1 -1
  158. package/src/jl/'feffery'_antdavatar.jl +1 -1
  159. package/src/jl/'feffery'_antdbacktop.jl +1 -1
  160. package/src/jl/'feffery'_antdbutton.jl +4 -2
  161. package/src/jl/'feffery'_antdcarousel.jl +1 -1
  162. package/src/jl/'feffery'_antdcascader.jl +4 -2
  163. package/src/jl/'feffery'_antdcol.jl +1 -1
  164. package/src/jl/'feffery'_antdcontent.jl +1 -1
  165. package/src/jl/'feffery'_antdcustomskeleton.jl +1 -1
  166. package/src/jl/'feffery'_antddraggerupload.jl +1 -1
  167. package/src/jl/'feffery'_antddrawer.jl +1 -1
  168. package/src/jl/'feffery'_antdfooter.jl +1 -1
  169. package/src/jl/'feffery'_antdheader.jl +1 -1
  170. package/src/jl/'feffery'_antdicon.jl +4 -2
  171. package/src/jl/'feffery'_antdimage.jl +1 -1
  172. package/src/jl/'feffery'_antdinput.jl +8 -4
  173. package/src/jl/'feffery'_antdinputnumber.jl +5 -3
  174. package/src/jl/'feffery'_antdlayout.jl +1 -1
  175. package/src/jl/'feffery'_antdmodal.jl +5 -2
  176. package/src/jl/'feffery'_antdparagraph.jl +1 -1
  177. package/src/jl/'feffery'_antdpasteimage.jl +1 -1
  178. package/src/jl/'feffery'_antdpopupcard.jl +43 -0
  179. package/src/jl/'feffery'_antdribbon.jl +1 -1
  180. package/src/jl/'feffery'_antdrow.jl +1 -1
  181. package/src/jl/'feffery'_antdsegmented.jl +5 -4
  182. package/src/jl/'feffery'_antdsegmentedcoloring.jl +3 -1
  183. package/src/jl/'feffery'_antdsider.jl +1 -1
  184. package/src/jl/'feffery'_antdskeleton.jl +1 -1
  185. package/src/jl/'feffery'_antdspace.jl +1 -1
  186. package/src/jl/'feffery'_antdspin.jl +2 -2
  187. package/src/jl/'feffery'_antdstatistic.jl +1 -1
  188. package/src/jl/'feffery'_antdtable.jl +31 -4
  189. package/src/jl/'feffery'_antdtabpane.jl +1 -1
  190. package/src/jl/'feffery'_antdtag.jl +1 -1
  191. package/src/jl/'feffery'_antdtext.jl +1 -1
  192. package/src/jl/'feffery'_antdtitle.jl +1 -1
  193. package/src/jl/'feffery'_antdtree.jl +3 -2
  194. package/src/jl/'feffery'_antdtreeselect.jl +3 -2
  195. package/src/lib/components/AntdAlert.react.js +64 -50
  196. package/src/lib/components/AntdAnchor.react.js +79 -70
  197. package/src/lib/components/AntdAvatar.react.js +92 -76
  198. package/src/lib/components/AntdBackTop.react.js +37 -28
  199. package/src/lib/components/AntdButton.react.js +82 -54
  200. package/src/lib/components/AntdCarousel.react.js +43 -34
  201. package/src/lib/components/AntdCascader.react.js +128 -82
  202. package/src/lib/components/AntdCheckboxGroup.react.js +2 -0
  203. package/src/lib/components/AntdDrawer.react.js +68 -59
  204. package/src/lib/components/AntdIcon.react.js +70 -37
  205. package/src/lib/components/AntdImage.react.js +16 -3
  206. package/src/lib/components/AntdInput.react.js +212 -175
  207. package/src/lib/components/AntdInputNumber.react.js +12 -2
  208. package/src/lib/components/AntdModal.react.js +22 -1
  209. package/src/lib/components/AntdPasteImage.react.js +11 -2
  210. package/src/lib/components/AntdPopupCard.react.js +241 -0
  211. package/src/lib/components/AntdRibbon.react.js +1 -1
  212. package/src/lib/components/AntdSegmented.react.js +19 -4
  213. package/src/lib/components/AntdSegmentedColoring.react.js +107 -82
  214. package/src/lib/components/AntdSelect.react.js +5 -0
  215. package/src/lib/components/AntdSpace.react.js +63 -46
  216. package/src/lib/components/AntdSpin.react.js +21 -6
  217. package/src/lib/components/AntdStatistic.react.js +68 -59
  218. package/src/lib/components/AntdTable.react.js +252 -18
  219. package/src/lib/components/AntdTag.react.js +38 -28
  220. package/src/lib/components/AntdTree.react.js +182 -136
  221. package/src/lib/components/AntdTreeSelect.react.js +144 -101
  222. package/src/lib/components/grid/AntdCol.react.js +61 -52
  223. package/src/lib/components/grid/AntdRow.react.js +46 -37
  224. package/src/lib/components/layout/AntdContent.react.js +35 -26
  225. package/src/lib/components/layout/AntdFooter.react.js +36 -27
  226. package/src/lib/components/layout/AntdHeader.react.js +35 -26
  227. package/src/lib/components/layout/AntdLayout.react.js +35 -26
  228. package/src/lib/components/layout/AntdSider.react.js +61 -52
  229. package/src/lib/components/skeleton/AntdCustomSkeleton.react.js +11 -3
  230. package/src/lib/components/skeleton/AntdSkeleton.react.js +11 -2
  231. package/src/lib/components/styles.css +4 -0
  232. package/src/lib/components/tabs/AntdTabPane.react.js +46 -37
  233. package/src/lib/components/typography/AntdParagraph.react.js +59 -50
  234. package/src/lib/components/typography/AntdText.react.js +61 -52
  235. package/src/lib/components/typography/AntdTitle.react.js +63 -54
  236. package/src/lib/components/upload/AntdDraggerUpload.react.js +11 -2
  237. package/src/lib/components/utils.js +17 -2
  238. package/src/lib/index.js +24 -1
  239. package/tests/DebounceTest/app.py +89 -0
  240. package/tests/SegmentedColoringTest/app.py +106 -0
  241. package/tests/TableCellClickTest/app.py +67 -0
  242. package/tests/TableCellRowMergeTest/app.py +88 -0
  243. package/tests/TableEmptyContentTest/app.py +37 -0
  244. package/tests/TableMiniChartAdvanceTest/app.py +85 -0
  245. package/tests/TreeNodeStyleTest/app.py +73 -0
  246. package/tests/TreeTest/app.py +96 -0
  247. package/tests/VirtualClassNameTest/app.py +49 -0
  248. package/usage.py +11 -82
  249. package/webpack.config.js +45 -11
  250. package/tests/UploadTest/app.py +0 -70
package/DESCRIPTION CHANGED
@@ -1,6 +1,6 @@
1
1
  Package: fefferyAntdComponents
2
2
  Title: Best implementation of Antd components in Plotly Dash.
3
- Version: 0.1.16
3
+ Version: 0.2.0-rc1
4
4
  Description: Best implementation of Antd components in Plotly Dash.
5
5
  Depends: R (>= 3.0.2)
6
6
  Imports:
package/NAMESPACE CHANGED
@@ -39,6 +39,7 @@ export('feffery'AntdPagination)
39
39
  export('feffery'AntdPasteImage)
40
40
  export('feffery'AntdPopconfirm)
41
41
  export('feffery'AntdPopover)
42
+ export('feffery'AntdPopupCard)
42
43
  export('feffery'AntdProgress)
43
44
  export('feffery'AntdRadioGroup)
44
45
  export('feffery'AntdRate)
package/Project.toml CHANGED
@@ -2,7 +2,7 @@
2
2
  name = "FefferyAntdComponents"
3
3
  uuid = "1b08a953-4be3-4667-9a23-baf51bd2b26e"
4
4
  authors = ["CNFeffery <fefferypzy@gmail.com>"]
5
- version = "0.1.16"
5
+ version = "0.2.0-rc1"
6
6
 
7
7
  [deps]
8
8
  Dash = "1b08a953-4be3-4667-9a23-3db579824955"
@@ -0,0 +1,51 @@
1
+ <p align="center">
2
+ <img src="./fac-logo.svg" height=300></img>
3
+ </p>
4
+ <h1 align="center">feffery-antd-components</h1>
5
+ <div align="center">
6
+
7
+ [![GitHub](https://img.shields.io/github/license/plotly/dash.svg?color=dark-green)](https://github.com/plotly/dash/blob/master/LICENSE)
8
+ [![PyPI](https://img.shields.io/pypi/v/feffery-antd-components.svg?color=dark-green)](https://pypi.org/project/feffery-antd-components/)
9
+ [![Downloads](https://pepy.tech/badge/feffery-antd-components)](https://pepy.tech/project/feffery-antd-components)
10
+ [![Downloads](https://pepy.tech/badge/feffery-antd-components/month)](https://pepy.tech/project/feffery-antd-components)
11
+ [![Downloads](https://pepy.tech/badge/feffery-antd-components/week)](https://pepy.tech/project/feffery-antd-components)
12
+
13
+ </div>
14
+
15
+ [简体中文](./README.md) | English
16
+
17
+ Subproject of `feffery-components` projects, third-party components library of `Plotly Dash`, based on the [Antd](https://github.com/ant-design/ant-design), brings many common and powerful components into `Dash`🥳, latest version: `0.1.16`
18
+
19
+ ## 1 Install
20
+
21
+ ```bash
22
+ pip install feffery-antd-components -U
23
+ ```
24
+
25
+ ## 2 Install from GitHub
26
+
27
+ ```bash
28
+
29
+ pip install git+https://github.com/CNFeffery/feffery-antd-components.git
30
+ ```
31
+
32
+ ## 3 Use CDN
33
+
34
+ ```Python
35
+ # just set serve_locally=False in dash.Dash()
36
+ app = dash.Dash(serve_locally=False)
37
+ ```
38
+
39
+ ## 4 Documentation
40
+
41
+ <a href='http://fac.feffery.tech/' target='_blank'>fac.feffery.tech</a>
42
+
43
+ ## 5 Internationalization
44
+
45
+ The default language of `fac` is currently simplified Chinese. If you wish to use English, just set `locale='en-us'`, for example:
46
+
47
+ ```Python
48
+ fac.AntdDatePicker(locale='en-us')
49
+ ```
50
+
51
+ <img src="./images/国际化示例.png" height=350></img>
package/README.md CHANGED
@@ -4,9 +4,6 @@
4
4
  <h1 align="center">feffery-antd-components</h1>
5
5
  <div align="center">
6
6
 
7
-
8
-
9
-
10
7
  [![GitHub](https://img.shields.io/github/license/plotly/dash.svg?color=dark-green)](https://github.com/plotly/dash/blob/master/LICENSE)
11
8
  [![PyPI](https://img.shields.io/pypi/v/feffery-antd-components.svg?color=dark-green)](https://pypi.org/project/feffery-antd-components/)
12
9
  [![Downloads](https://pepy.tech/badge/feffery-antd-components)](https://pepy.tech/project/feffery-antd-components)
@@ -15,7 +12,9 @@
15
12
 
16
13
  </div>
17
14
 
18
- `feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中🥳,最新版本:`0.1.15`
15
+ 简体中文 | [English](./README-en_US.md)
16
+
17
+ `feffery-components`计划子项目,`Plotly Dash`第三方组件库,基于`Antd`,将超多具有丰富功能的通用网页常用交互组件引入`Dash`的生态中 🥳,最新版本:`0.1.16`
19
18
 
20
19
  ## 1 最新版本安装方式
21
20
 
@@ -35,7 +34,7 @@ pip install git+https://github.com/CNFeffery/feffery-antd-components.git
35
34
  pip install git+https://github.91chi.fun/https://github.com/CNFeffery/feffery-antd-components.git
36
35
  ```
37
36
 
38
- ## 3 静态资源CDN加速方法
37
+ ## 3 静态资源 CDN 加速方法
39
38
 
40
39
  ```Python
41
40
  # 非debug模式下对Dash()传入参数serve_locally=False会强制浏览器端从unpkg cdn加载各个依赖的
@@ -46,3 +45,13 @@ app = dash.Dash(serve_locally=False)
46
45
  ## 4 在线文档
47
46
 
48
47
  <a href='http://fac.feffery.tech/' target='_blank'>文档地址</a>
48
+
49
+ ## 5 国际化
50
+
51
+ `fac`中的部分组件具有自带的文案信息,通过参数`locale`可以进行国际化设置,默认为`'zh-cn'`即简体中文,你可以设置为`'en-us'`来使用英文文案,譬如:
52
+
53
+ ```Python
54
+ fac.AntdDatePicker(locale='en-us')
55
+ ```
56
+
57
+ <img src="./images/国际化示例.png" height=350></img>
@@ -0,0 +1,66 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdAccordion(Component):
7
+ """An AntdAccordion component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - children (a list of or a singular dash component, string or number; optional)
13
+
14
+ - id (string; optional)
15
+
16
+ - accordion (boolean; default True)
17
+
18
+ - activeKey (string | list of strings | number | list of numbers; optional)
19
+
20
+ - bordered (boolean; optional)
21
+
22
+ - className (string; optional)
23
+
24
+ - collapsible (a value equal to: 'header', 'disabled'; optional)
25
+
26
+ - defaultActiveKey (string | list of strings | number | list of numbers; optional)
27
+
28
+ - expandIconPosition (a value equal to: 'left', 'right'; optional)
29
+
30
+ - ghost (boolean; optional)
31
+
32
+ - key (string; optional)
33
+
34
+ - loading_state (dict; optional)
35
+
36
+ `loading_state` is a dict with keys:
37
+
38
+ - component_name (string; optional):
39
+ Holds the name of the component that is loading.
40
+
41
+ - is_loading (boolean; optional):
42
+ Determines if the component is loading or not.
43
+
44
+ - prop_name (string; optional):
45
+ Holds which property is loading.
46
+
47
+ - style (dict; optional)"""
48
+ _children_props = []
49
+ _base_nodes = ['children']
50
+ _namespace = 'feffery_antd_components'
51
+ _type = 'AntdAccordion'
52
+ @_explicitize_args
53
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, accordion=Component.UNDEFINED, activeKey=Component.UNDEFINED, defaultActiveKey=Component.UNDEFINED, bordered=Component.UNDEFINED, collapsible=Component.UNDEFINED, expandIconPosition=Component.UNDEFINED, ghost=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
54
+ self._prop_names = ['children', 'id', 'accordion', 'activeKey', 'bordered', 'className', 'collapsible', 'defaultActiveKey', 'expandIconPosition', 'ghost', 'key', 'loading_state', 'style']
55
+ self._valid_wildcard_attributes = []
56
+ self.available_properties = ['children', 'id', 'accordion', 'activeKey', 'bordered', 'className', 'collapsible', 'defaultActiveKey', 'expandIconPosition', 'ghost', 'key', 'loading_state', 'style']
57
+ self.available_wildcard_properties = []
58
+ _explicit_args = kwargs.pop('_explicit_args')
59
+ _locals = locals()
60
+ _locals.update(kwargs) # For wildcard attrs and excess named props
61
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
62
+ for k in []:
63
+ if k not in args:
64
+ raise TypeError(
65
+ 'Required argument `' + k + '` was not specified.')
66
+ super(AntdAccordion, self).__init__(children=children, **args)
@@ -0,0 +1,60 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdAccordionItem(Component):
7
+ """An AntdAccordionItem component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - children (a list of or a singular dash component, string or number; optional)
13
+
14
+ - id (string; optional)
15
+
16
+ - className (string; optional)
17
+
18
+ - collapsible (a value equal to: 'header', 'disabled'; optional)
19
+
20
+ - forceRender (boolean; optional)
21
+
22
+ - key (string | number; required)
23
+
24
+ - loading_state (dict; optional)
25
+
26
+ `loading_state` is a dict with keys:
27
+
28
+ - component_name (string; optional):
29
+ Holds the name of the component that is loading.
30
+
31
+ - is_loading (boolean; optional):
32
+ Determines if the component is loading or not.
33
+
34
+ - prop_name (string; optional):
35
+ Holds which property is loading.
36
+
37
+ - showArrow (boolean; optional)
38
+
39
+ - style (dict; optional)
40
+
41
+ - title (string; default '')"""
42
+ _children_props = []
43
+ _base_nodes = ['children']
44
+ _namespace = 'feffery_antd_components'
45
+ _type = 'AntdAccordionItem'
46
+ @_explicitize_args
47
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.REQUIRED, collapsible=Component.UNDEFINED, title=Component.UNDEFINED, showArrow=Component.UNDEFINED, forceRender=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
48
+ self._prop_names = ['children', 'id', 'className', 'collapsible', 'forceRender', 'key', 'loading_state', 'showArrow', 'style', 'title']
49
+ self._valid_wildcard_attributes = []
50
+ self.available_properties = ['children', 'id', 'className', 'collapsible', 'forceRender', 'key', 'loading_state', 'showArrow', 'style', 'title']
51
+ self.available_wildcard_properties = []
52
+ _explicit_args = kwargs.pop('_explicit_args')
53
+ _locals = locals()
54
+ _locals.update(kwargs) # For wildcard attrs and excess named props
55
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
56
+ for k in ['key']:
57
+ if k not in args:
58
+ raise TypeError(
59
+ 'Required argument `' + k + '` was not specified.')
60
+ super(AntdAccordionItem, self).__init__(children=children, **args)
@@ -0,0 +1,58 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdAffix(Component):
7
+ """An AntdAffix component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - children (a list of or a singular dash component, string or number; optional)
13
+
14
+ - id (string; optional)
15
+
16
+ - className (string; optional)
17
+
18
+ - key (string; optional)
19
+
20
+ - loading_state (dict; optional)
21
+
22
+ `loading_state` is a dict with keys:
23
+
24
+ - component_name (string; optional):
25
+ Holds the name of the component that is loading.
26
+
27
+ - is_loading (boolean; optional):
28
+ Determines if the component is loading or not.
29
+
30
+ - prop_name (string; optional):
31
+ Holds which property is loading.
32
+
33
+ - offsetBottom (number; optional)
34
+
35
+ - offsetTop (number; optional)
36
+
37
+ - style (dict; optional)
38
+
39
+ - target (string; optional)"""
40
+ _children_props = []
41
+ _base_nodes = ['children']
42
+ _namespace = 'feffery_antd_components'
43
+ _type = 'AntdAffix'
44
+ @_explicitize_args
45
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, offsetBottom=Component.UNDEFINED, offsetTop=Component.UNDEFINED, target=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
46
+ self._prop_names = ['children', 'id', 'className', 'key', 'loading_state', 'offsetBottom', 'offsetTop', 'style', 'target']
47
+ self._valid_wildcard_attributes = []
48
+ self.available_properties = ['children', 'id', 'className', 'key', 'loading_state', 'offsetBottom', 'offsetTop', 'style', 'target']
49
+ self.available_wildcard_properties = []
50
+ _explicit_args = kwargs.pop('_explicit_args')
51
+ _locals = locals()
52
+ _locals.update(kwargs) # For wildcard attrs and excess named props
53
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
54
+ for k in []:
55
+ if k not in args:
56
+ raise TypeError(
57
+ 'Required argument `' + k + '` was not specified.')
58
+ super(AntdAffix, self).__init__(children=children, **args)
@@ -0,0 +1,64 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdAlert(Component):
7
+ """An AntdAlert component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - action (a list of or a singular dash component, string or number; optional)
15
+
16
+ - className (string | dict; optional)
17
+
18
+ - closable (boolean; default False)
19
+
20
+ - description (a list of or a singular dash component, string or number; optional)
21
+
22
+ - key (string; optional)
23
+
24
+ - loading_state (dict; optional)
25
+
26
+ `loading_state` is a dict with keys:
27
+
28
+ - component_name (string; optional):
29
+ Holds the name of the component that is loading.
30
+
31
+ - is_loading (boolean; optional):
32
+ Determines if the component is loading or not.
33
+
34
+ - prop_name (string; optional):
35
+ Holds which property is loading.
36
+
37
+ - message (a list of or a singular dash component, string or number; optional)
38
+
39
+ - messageRenderMode (a value equal to: 'default', 'loop-text', 'marquee'; default 'default')
40
+
41
+ - showIcon (boolean; optional)
42
+
43
+ - style (dict; optional)
44
+
45
+ - type (a value equal to: 'success', 'info', 'warning', 'error'; optional)"""
46
+ _children_props = ['description', 'message', 'action']
47
+ _base_nodes = ['description', 'message', 'action', 'children']
48
+ _namespace = 'feffery_antd_components'
49
+ _type = 'AntdAlert'
50
+ @_explicitize_args
51
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, description=Component.UNDEFINED, message=Component.UNDEFINED, type=Component.UNDEFINED, showIcon=Component.UNDEFINED, closable=Component.UNDEFINED, messageRenderMode=Component.UNDEFINED, action=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
52
+ self._prop_names = ['id', 'action', 'className', 'closable', 'description', 'key', 'loading_state', 'message', 'messageRenderMode', 'showIcon', 'style', 'type']
53
+ self._valid_wildcard_attributes = []
54
+ self.available_properties = ['id', 'action', 'className', 'closable', 'description', 'key', 'loading_state', 'message', 'messageRenderMode', 'showIcon', 'style', 'type']
55
+ self.available_wildcard_properties = []
56
+ _explicit_args = kwargs.pop('_explicit_args')
57
+ _locals = locals()
58
+ _locals.update(kwargs) # For wildcard attrs and excess named props
59
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
60
+ for k in []:
61
+ if k not in args:
62
+ raise TypeError(
63
+ 'Required argument `' + k + '` was not specified.')
64
+ super(AntdAlert, self).__init__(**args)
@@ -0,0 +1,64 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdAnchor(Component):
7
+ """An AntdAnchor component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - affix (boolean; optional)
15
+
16
+ - align (a value equal to: 'left', 'right'; default 'right')
17
+
18
+ - bounds (number; optional)
19
+
20
+ - className (string | dict; optional)
21
+
22
+ - containerId (string; optional)
23
+
24
+ - key (string; optional)
25
+
26
+ - linkDict (optional)
27
+
28
+ - loading_state (dict; optional)
29
+
30
+ `loading_state` is a dict with keys:
31
+
32
+ - component_name (string; optional):
33
+ Holds the name of the component that is loading.
34
+
35
+ - is_loading (boolean; optional):
36
+ Determines if the component is loading or not.
37
+
38
+ - prop_name (string; optional):
39
+ Holds which property is loading.
40
+
41
+ - offsetTop (number; optional)
42
+
43
+ - style (dict; optional)
44
+
45
+ - targetOffset (number; optional)"""
46
+ _children_props = []
47
+ _base_nodes = ['children']
48
+ _namespace = 'feffery_antd_components'
49
+ _type = 'AntdAnchor'
50
+ @_explicitize_args
51
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, linkDict=Component.UNDEFINED, align=Component.UNDEFINED, containerId=Component.UNDEFINED, targetOffset=Component.UNDEFINED, affix=Component.UNDEFINED, bounds=Component.UNDEFINED, offsetTop=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
52
+ self._prop_names = ['id', 'affix', 'align', 'bounds', 'className', 'containerId', 'key', 'linkDict', 'loading_state', 'offsetTop', 'style', 'targetOffset']
53
+ self._valid_wildcard_attributes = []
54
+ self.available_properties = ['id', 'affix', 'align', 'bounds', 'className', 'containerId', 'key', 'linkDict', 'loading_state', 'offsetTop', 'style', 'targetOffset']
55
+ self.available_wildcard_properties = []
56
+ _explicit_args = kwargs.pop('_explicit_args')
57
+ _locals = locals()
58
+ _locals.update(kwargs) # For wildcard attrs and excess named props
59
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
60
+ for k in []:
61
+ if k not in args:
62
+ raise TypeError(
63
+ 'Required argument `' + k + '` was not specified.')
64
+ super(AntdAnchor, self).__init__(**args)
@@ -0,0 +1,83 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdAvatar(Component):
7
+ """An AntdAvatar component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - alt (string; optional)
15
+
16
+ - className (string | dict; optional)
17
+
18
+ - gap (number; optional)
19
+
20
+ - icon (string; optional)
21
+
22
+ - key (string; optional)
23
+
24
+ - loading_state (dict; optional)
25
+
26
+ `loading_state` is a dict with keys:
27
+
28
+ - component_name (string; optional):
29
+ Holds the name of the component that is loading.
30
+
31
+ - is_loading (boolean; optional):
32
+ Determines if the component is loading or not.
33
+
34
+ - prop_name (string; optional):
35
+ Holds which property is loading.
36
+
37
+ - mode (a value equal to: 'text', 'icon', 'image'; default 'icon')
38
+
39
+ - shape (a value equal to: 'circle', 'square'; optional)
40
+
41
+ - size (dict; optional)
42
+
43
+ `size` is a number | a value equal to: 'large', 'small', 'default'
44
+ | dict with keys:
45
+
46
+ - lg (number; optional)
47
+
48
+ - md (number; optional)
49
+
50
+ - sm (number; optional)
51
+
52
+ - xl (number; optional)
53
+
54
+ - xs (number; optional)
55
+
56
+ - xxl (number; optional)
57
+
58
+ - src (string; optional)
59
+
60
+ - srcSet (string; optional)
61
+
62
+ - style (dict; optional)
63
+
64
+ - text (string; optional)"""
65
+ _children_props = []
66
+ _base_nodes = ['children']
67
+ _namespace = 'feffery_antd_components'
68
+ _type = 'AntdAvatar'
69
+ @_explicitize_args
70
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, gap=Component.UNDEFINED, mode=Component.UNDEFINED, text=Component.UNDEFINED, icon=Component.UNDEFINED, alt=Component.UNDEFINED, src=Component.UNDEFINED, srcSet=Component.UNDEFINED, size=Component.UNDEFINED, shape=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
71
+ self._prop_names = ['id', 'alt', 'className', 'gap', 'icon', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
72
+ self._valid_wildcard_attributes = []
73
+ self.available_properties = ['id', 'alt', 'className', 'gap', 'icon', 'key', 'loading_state', 'mode', 'shape', 'size', 'src', 'srcSet', 'style', 'text']
74
+ self.available_wildcard_properties = []
75
+ _explicit_args = kwargs.pop('_explicit_args')
76
+ _locals = locals()
77
+ _locals.update(kwargs) # For wildcard attrs and excess named props
78
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
79
+ for k in []:
80
+ if k not in args:
81
+ raise TypeError(
82
+ 'Required argument `' + k + '` was not specified.')
83
+ super(AntdAvatar, self).__init__(**args)
@@ -0,0 +1,56 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdBackTop(Component):
7
+ """An AntdBackTop component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - id (string; optional)
13
+
14
+ - className (string | dict; optional)
15
+
16
+ - containerId (string; optional)
17
+
18
+ - duration (number; optional)
19
+
20
+ - key (string; optional)
21
+
22
+ - loading_state (dict; optional)
23
+
24
+ `loading_state` is a dict with keys:
25
+
26
+ - component_name (string; optional):
27
+ Holds the name of the component that is loading.
28
+
29
+ - is_loading (boolean; optional):
30
+ Determines if the component is loading or not.
31
+
32
+ - prop_name (string; optional):
33
+ Holds which property is loading.
34
+
35
+ - style (dict; optional)
36
+
37
+ - visibilityHeight (number; optional)"""
38
+ _children_props = []
39
+ _base_nodes = ['children']
40
+ _namespace = 'feffery_antd_components'
41
+ _type = 'AntdBackTop'
42
+ @_explicitize_args
43
+ def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, duration=Component.UNDEFINED, visibilityHeight=Component.UNDEFINED, containerId=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
44
+ self._prop_names = ['id', 'className', 'containerId', 'duration', 'key', 'loading_state', 'style', 'visibilityHeight']
45
+ self._valid_wildcard_attributes = []
46
+ self.available_properties = ['id', 'className', 'containerId', 'duration', 'key', 'loading_state', 'style', 'visibilityHeight']
47
+ self.available_wildcard_properties = []
48
+ _explicit_args = kwargs.pop('_explicit_args')
49
+ _locals = locals()
50
+ _locals.update(kwargs) # For wildcard attrs and excess named props
51
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
52
+ for k in []:
53
+ if k not in args:
54
+ raise TypeError(
55
+ 'Required argument `' + k + '` was not specified.')
56
+ super(AntdBackTop, self).__init__(**args)
@@ -0,0 +1,74 @@
1
+ # AUTO GENERATED FILE - DO NOT EDIT
2
+
3
+ from dash.development.base_component import Component, _explicitize_args
4
+
5
+
6
+ class AntdBadge(Component):
7
+ """An AntdBadge component.
8
+
9
+
10
+ Keyword arguments:
11
+
12
+ - children (a list of or a singular dash component, string or number; optional)
13
+
14
+ - id (string; optional)
15
+
16
+ - className (string; optional)
17
+
18
+ - color (string; optional)
19
+
20
+ - count (number; optional)
21
+
22
+ - dot (boolean; optional)
23
+
24
+ - key (string; optional)
25
+
26
+ - loading_state (dict; optional)
27
+
28
+ `loading_state` is a dict with keys:
29
+
30
+ - component_name (string; optional):
31
+ Holds the name of the component that is loading.
32
+
33
+ - is_loading (boolean; optional):
34
+ Determines if the component is loading or not.
35
+
36
+ - prop_name (string; optional):
37
+ Holds which property is loading.
38
+
39
+ - nClicks (number; default 0)
40
+
41
+ - offset (list of numbers; optional)
42
+
43
+ - overflowCount (number; optional)
44
+
45
+ - showZero (boolean; optional)
46
+
47
+ - size (a value equal to: 'default', 'small'; optional)
48
+
49
+ - status (a value equal to: 'success', 'processing', 'default', 'error', 'warning'; optional)
50
+
51
+ - style (dict; optional)
52
+
53
+ - text (string; optional)
54
+
55
+ - title (string; optional)"""
56
+ _children_props = []
57
+ _base_nodes = ['children']
58
+ _namespace = 'feffery_antd_components'
59
+ _type = 'AntdBadge'
60
+ @_explicitize_args
61
+ def __init__(self, children=None, id=Component.UNDEFINED, className=Component.UNDEFINED, style=Component.UNDEFINED, key=Component.UNDEFINED, color=Component.UNDEFINED, count=Component.UNDEFINED, dot=Component.UNDEFINED, offset=Component.UNDEFINED, overflowCount=Component.UNDEFINED, showZero=Component.UNDEFINED, status=Component.UNDEFINED, text=Component.UNDEFINED, title=Component.UNDEFINED, size=Component.UNDEFINED, nClicks=Component.UNDEFINED, loading_state=Component.UNDEFINED, **kwargs):
62
+ self._prop_names = ['children', 'id', 'className', 'color', 'count', 'dot', 'key', 'loading_state', 'nClicks', 'offset', 'overflowCount', 'showZero', 'size', 'status', 'style', 'text', 'title']
63
+ self._valid_wildcard_attributes = []
64
+ self.available_properties = ['children', 'id', 'className', 'color', 'count', 'dot', 'key', 'loading_state', 'nClicks', 'offset', 'overflowCount', 'showZero', 'size', 'status', 'style', 'text', 'title']
65
+ self.available_wildcard_properties = []
66
+ _explicit_args = kwargs.pop('_explicit_args')
67
+ _locals = locals()
68
+ _locals.update(kwargs) # For wildcard attrs and excess named props
69
+ args = {k: _locals[k] for k in _explicit_args if k != 'children'}
70
+ for k in []:
71
+ if k not in args:
72
+ raise TypeError(
73
+ 'Required argument `' + k + '` was not specified.')
74
+ super(AntdBadge, self).__init__(children=children, **args)