tntd 2.8.39 → 2.8.41

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 (566) hide show
  1. package/es/_util/context.js +1 -1
  2. package/es/_util/defaultRenderEmpty.js +1 -1
  3. package/es/_util/hooks/useFlexGapSupport.js +4 -4
  4. package/es/_util/hooks/useForceUpdate.js +4 -4
  5. package/es/_util/hooks/useScrollLock.js +4 -4
  6. package/es/_util/responsiveObserve.js +1 -1
  7. package/es/_util/styleChecker.js +1 -1
  8. package/es/actions/index.js +1 -1
  9. package/es/anchor/anchor.js +51 -10
  10. package/es/anchor/anchor.js.map +1 -1
  11. package/es/anchor/anchor.less +114 -0
  12. package/es/anchor/index.js +7 -9
  13. package/es/anchor/index.js.map +1 -1
  14. package/es/array-input/index.js +28 -16
  15. package/es/array-input/index.js.map +1 -1
  16. package/es/array-input/index.less +129 -0
  17. package/es/check-card/group.js +8 -8
  18. package/es/check-card/index.js +6 -6
  19. package/es/checkbox/checkbox-group.js +1 -1
  20. package/es/color-picker/ColorPicker.js +6 -6
  21. package/es/color-picker/index.js +1 -1
  22. package/es/columns/index.js +1 -1
  23. package/es/config-provider/config-provider.js +1 -1
  24. package/es/descriptions/descriptions.js +5 -5
  25. package/es/development-login/LoginModal.js +6 -6
  26. package/es/development-login/index.js +4 -4
  27. package/es/drawer/drawer.js +2 -2
  28. package/es/ellipsis/Svg/CopySVG.js +1 -1
  29. package/es/ellipsis/Svg/TickSVG.js +1 -1
  30. package/es/ellipsis/index.js +5 -5
  31. package/es/empty/empty.js +2 -2
  32. package/es/empty/empty.stories.js +2 -2
  33. package/es/exception/exception.js +1 -1
  34. package/es/form/form.js +2 -2
  35. package/es/grid-v4/col.js +2 -2
  36. package/es/grid-v4/hooks/useBreakpoint.js +1 -1
  37. package/es/grid-v4/index.js +1 -1
  38. package/es/grid-v4/row.js +6 -6
  39. package/es/handle/index.js +1 -1
  40. package/es/handle-icon/index.js +11 -11
  41. package/es/icon/IconFont.js +1 -1
  42. package/es/icon/components/Icon.js +9 -9
  43. package/es/icon/components/index.js +1 -1
  44. package/es/icon/components/utils.js +3 -3
  45. package/es/icon/index.js +7 -7
  46. package/es/icon/twoTonePrimaryColor.js +1 -1
  47. package/es/icon/utils.js +1 -1
  48. package/es/img/Contain.js +1 -1
  49. package/es/img/Cover.js +5 -5
  50. package/es/img/index.js +5 -5
  51. package/es/index.js +1 -1
  52. package/es/input/input.js +2 -2
  53. package/es/input-number/index.js +1 -1
  54. package/es/label/index.js +2 -2
  55. package/es/loading-button/index.js +5 -5
  56. package/es/locale/default.js +1 -1
  57. package/es/locale/en_US.js +1 -1
  58. package/es/locale/zh_CN.js +1 -1
  59. package/es/modal/modal.js +1 -1
  60. package/es/notification/assets/index.js +1 -1
  61. package/es/notification/index.js +1 -1
  62. package/es/notification/notification.js +1 -1
  63. package/es/page/Box.js +1 -1
  64. package/es/page/index.js +7 -7
  65. package/es/page-container/index.js +1 -1
  66. package/es/page-loading/index.js +1 -1
  67. package/es/preview-text/index.js +7 -7
  68. package/es/query-form/Field/Checkbox.js +1 -1
  69. package/es/query-form/Field/Select.js +6 -6
  70. package/es/query-form/Field/SelectInput.js +6 -6
  71. package/es/query-form/Field/fieldsMap.js +1 -1
  72. package/es/query-form/Field/index.js +10 -10
  73. package/es/query-form/createActions.js +1 -1
  74. package/es/query-form/index.js +10 -10
  75. package/es/query-form/useForm.js +1 -1
  76. package/es/query-list-scene/List.js +13 -13
  77. package/es/query-list-scene/QueryForm.js +10 -10
  78. package/es/query-list-scene/QueryListScene.js +10 -10
  79. package/es/query-list-scene/Title.js +1 -1
  80. package/es/query-list-scene/Toolbar.js +2 -2
  81. package/es/query-list-scene/createActions.js +1 -1
  82. package/es/query-list-scene/index.js +1 -1
  83. package/es/query-list-scene/useActions.js +1 -1
  84. package/es/radio/index.js +1 -1
  85. package/es/radio/radio-group.js +1 -1
  86. package/es/render-empty/render-empty.js +1 -1
  87. package/es/segmented/index.js +2 -2
  88. package/es/select/select.js +2 -2
  89. package/es/steps/steps.js +2 -2
  90. package/es/svg-components/index.js +1 -1
  91. package/es/switch/switch.js +1 -1
  92. package/es/table/hooks/use-column-setting.js +4 -4
  93. package/es/table/hooks/use-expand-fixed.js +6 -6
  94. package/es/table/resizableTable/index.js +6 -6
  95. package/es/table/table-hoc.js +1 -1
  96. package/es/table/table.js +9 -9
  97. package/es/table/table.stories.js +2 -2
  98. package/es/table/total-shower.js +1 -1
  99. package/es/table/utils.js +1 -1
  100. package/es/table-container/index.js +1 -1
  101. package/es/tabs-container/index.js +1 -1
  102. package/es/tag/tag.js +2 -2
  103. package/es/title/index.js +1 -1
  104. package/es/tntd-cascader/AntdCascader/component/context.js +1 -1
  105. package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  106. package/es/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  107. package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  108. package/es/tntd-cascader/AntdCascader/config/utils.js +2 -2
  109. package/es/tntd-cascader/AntdCascader/index.js +7 -7
  110. package/es/tntd-cascader/index.js +1 -1
  111. package/es/tntd-cascader/rc-cascader/Cascader.js +8 -8
  112. package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  113. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
  114. package/es/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  115. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  116. package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  117. package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  118. package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  119. package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  120. package/es/tntd-cascader/rc-cascader/index.js +1 -1
  121. package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  122. package/es/tntd-form/ErrorList.js +7 -7
  123. package/es/tntd-form/Form.js +6 -6
  124. package/es/tntd-form/FormItem/ItemHolder.js +6 -6
  125. package/es/tntd-form/FormItem/index.js +8 -8
  126. package/es/tntd-form/FormItemInput.js +1 -1
  127. package/es/tntd-form/FormItemLabel.js +2 -2
  128. package/es/tntd-form/FormList.js +1 -1
  129. package/es/tntd-form/context.js +1 -1
  130. package/es/tntd-form/hooks/useDebounce.js +4 -4
  131. package/es/tntd-form/hooks/useForm.js +5 -5
  132. package/es/tntd-form/hooks/useFormItemStatus.js +1 -1
  133. package/es/tntd-form/hooks/useFrameState.js +5 -5
  134. package/es/tntd-form/index.js +1 -1
  135. package/es/tntd-icon/index.js +1 -1
  136. package/es/tntd-layout/AppList.js +6 -6
  137. package/es/tntd-layout/Application.js +6 -6
  138. package/es/tntd-layout/Avatar.js +2 -2
  139. package/es/tntd-layout/CompatibleLanguage.js +6 -6
  140. package/es/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  141. package/es/tntd-layout/EnterpriseLayout/Language.js +6 -6
  142. package/es/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  143. package/es/tntd-layout/EnterpriseLayout/index.js +1 -1
  144. package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  145. package/es/tntd-layout/GlobalNavigation/index.js +9 -9
  146. package/es/tntd-layout/Header.js +2 -2
  147. package/es/tntd-layout/HeaderActions.js +2 -2
  148. package/es/tntd-layout/HeaderNavs.js +6 -6
  149. package/es/tntd-layout/HeaderTabs.js +7 -7
  150. package/es/tntd-layout/Iconfont.js +1 -1
  151. package/es/tntd-layout/Language.js +6 -6
  152. package/es/tntd-layout/Layout.js +6 -6
  153. package/es/tntd-layout/Logo.js +2 -2
  154. package/es/tntd-layout/OrgAppList.js +6 -6
  155. package/es/tntd-layout/SideMenu.js +6 -6
  156. package/es/tntd-layout/Theme.js +6 -6
  157. package/es/tntd-layout/createActions.js +1 -1
  158. package/es/tntd-layout/images/index.js +1 -1
  159. package/es/tntd-layout/index.js +1 -1
  160. package/es/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  161. package/es/tntd-layout/paaslayout/Header.js +2 -2
  162. package/es/tntd-layout/paaslayout/Logo.js +2 -2
  163. package/es/tntd-layout/paaslayout/SideMenu.js +6 -6
  164. package/es/tntd-layout/paaslayout/index.js +6 -6
  165. package/es/tntd-layout/storage.js +1 -1
  166. package/es/tntd-modal/index.js +6 -6
  167. package/es/tntd-rc-select/_util/PurePanel.js +5 -5
  168. package/es/tntd-rc-select/_util/context.js +1 -1
  169. package/es/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  170. package/es/tntd-rc-select/_util/getIcons.js +1 -1
  171. package/es/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  172. package/es/tntd-rc-select/index.js +2 -2
  173. package/es/tntd-reference/AHref/index.js +1 -1
  174. package/es/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  175. package/es/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  176. package/es/tntd-reference/ReferenceCheck/index.js +1 -1
  177. package/es/tntd-reference/ReferenceDrawer/index.js +5 -5
  178. package/es/tntd-reference/ReferenceInfo/index.js +1 -1
  179. package/es/tntd-reference/index.js +1 -1
  180. package/es/tntd-second-page/index.js +1 -1
  181. package/es/tntd-select/DropDownWrap.js +8 -8
  182. package/es/tntd-select/index.js +9 -10
  183. package/es/tntd-virtual-tree/index.js +8 -8
  184. package/es/tntd-virtual-tree/utils.js +28 -28
  185. package/es/tntd-virtual-tree-select/index.js +10 -10
  186. package/es/tntd-virtual-tree-select/utils.js +9 -9
  187. package/es/tooltip/tooltip.js +1 -1
  188. package/es/upload/index.js +6 -6
  189. package/es/upload/svg/UploadSVG.js +1 -1
  190. package/es/utils/checkAuth.js +4 -4
  191. package/es/utils/index.js +9 -9
  192. package/es/utils/lang.js +1 -1
  193. package/es/water-mark/index.js +5 -5
  194. package/lib/_util/context.js +3 -3
  195. package/lib/_util/defaultRenderEmpty.js +3 -3
  196. package/lib/_util/hooks/useFlexGapSupport.js +15 -14
  197. package/lib/_util/hooks/useForceUpdate.js +15 -14
  198. package/lib/_util/hooks/useScrollLock.js +15 -14
  199. package/lib/_util/responsiveObserve.js +13 -7
  200. package/lib/_util/styleChecker.js +3 -3
  201. package/lib/actions/index.js +3 -3
  202. package/lib/anchor/anchor.d.ts.map +1 -1
  203. package/lib/anchor/anchor.js +96 -12
  204. package/lib/anchor/anchor.js.map +1 -1
  205. package/lib/anchor/anchor.less +114 -0
  206. package/lib/anchor/index.d.ts +3 -2
  207. package/lib/anchor/index.d.ts.map +1 -1
  208. package/lib/anchor/index.js +7 -40
  209. package/lib/anchor/index.js.map +1 -1
  210. package/lib/array-input/index.d.ts.map +1 -1
  211. package/lib/array-input/index.js +56 -37
  212. package/lib/array-input/index.js.map +1 -1
  213. package/lib/array-input/index.less +129 -0
  214. package/lib/check-card/group.js +24 -23
  215. package/lib/check-card/index.js +31 -24
  216. package/lib/checkbox/checkbox-group.js +3 -3
  217. package/lib/color-picker/ColorPicker.js +31 -24
  218. package/lib/color-picker/index.js +3 -3
  219. package/lib/columns/index.js +3 -3
  220. package/lib/config-provider/config-provider.js +3 -3
  221. package/lib/descriptions/descriptions.js +19 -13
  222. package/lib/development-login/LoginModal.js +31 -24
  223. package/lib/development-login/index.js +15 -14
  224. package/lib/drawer/drawer.js +16 -10
  225. package/lib/ellipsis/Svg/CopySVG.js +3 -3
  226. package/lib/ellipsis/Svg/TickSVG.js +3 -3
  227. package/lib/ellipsis/index.js +18 -17
  228. package/lib/empty/empty.js +16 -10
  229. package/lib/empty/empty.stories.js +9 -6
  230. package/lib/exception/exception.js +3 -3
  231. package/lib/form/form.js +16 -10
  232. package/lib/grid-v4/col.js +16 -10
  233. package/lib/grid-v4/hooks/useBreakpoint.js +3 -3
  234. package/lib/grid-v4/index.js +3 -3
  235. package/lib/grid-v4/row.js +31 -24
  236. package/lib/handle/index.js +3 -3
  237. package/lib/handle-icon/index.js +13 -13
  238. package/lib/icon/IconFont.js +3 -3
  239. package/lib/icon/components/Icon.js +70 -44
  240. package/lib/icon/components/index.js +3 -3
  241. package/lib/icon/components/utils.js +18 -10
  242. package/lib/icon/index.js +33 -26
  243. package/lib/icon/twoTonePrimaryColor.js +3 -3
  244. package/lib/icon/utils.js +3 -3
  245. package/lib/img/Contain.js +3 -3
  246. package/lib/img/Cover.js +18 -17
  247. package/lib/img/index.js +18 -17
  248. package/lib/index.js +3 -3
  249. package/lib/input/input.js +16 -10
  250. package/lib/input-number/index.js +3 -3
  251. package/lib/label/index.js +16 -10
  252. package/lib/loading-button/index.js +18 -17
  253. package/lib/locale/default.js +3 -3
  254. package/lib/locale/en_US.js +3 -3
  255. package/lib/locale/zh_CN.js +3 -3
  256. package/lib/modal/modal.js +3 -3
  257. package/lib/notification/assets/index.js +3 -3
  258. package/lib/notification/assets/svg-error-tip.d.ts +1 -1
  259. package/lib/notification/assets/svg-success-tip.d.ts +1 -1
  260. package/lib/notification/index.js +3 -3
  261. package/lib/notification/notification.js +3 -3
  262. package/lib/page/Box.js +3 -3
  263. package/lib/page/index.js +33 -26
  264. package/lib/page-container/index.js +3 -3
  265. package/lib/page-loading/index.js +3 -3
  266. package/lib/preview-text/index.js +9 -9
  267. package/lib/query-form/Field/Checkbox.js +3 -3
  268. package/lib/query-form/Field/Select.js +31 -24
  269. package/lib/query-form/Field/SelectInput.js +31 -24
  270. package/lib/query-form/Field/fieldsMap.js +3 -3
  271. package/lib/query-form/Field/index.js +73 -47
  272. package/lib/query-form/createActions.js +3 -3
  273. package/lib/query-form/index.js +70 -44
  274. package/lib/query-form/useForm.js +3 -3
  275. package/lib/query-list-scene/List.js +61 -41
  276. package/lib/query-list-scene/QueryForm.js +70 -44
  277. package/lib/query-list-scene/QueryListScene.js +70 -44
  278. package/lib/query-list-scene/Title.js +3 -3
  279. package/lib/query-list-scene/Toolbar.js +16 -10
  280. package/lib/query-list-scene/createActions.js +3 -3
  281. package/lib/query-list-scene/index.js +3 -3
  282. package/lib/query-list-scene/useActions.js +3 -3
  283. package/lib/radio/index.js +3 -3
  284. package/lib/radio/radio-group.js +3 -3
  285. package/lib/render-empty/render-empty.js +3 -3
  286. package/lib/segmented/index.d.ts +1 -1
  287. package/lib/segmented/index.js +16 -10
  288. package/lib/select/select.js +16 -10
  289. package/lib/steps/steps.js +16 -10
  290. package/lib/svg-components/illustration-403.d.ts +1 -1
  291. package/lib/svg-components/illustration-404.d.ts +1 -1
  292. package/lib/svg-components/illustration-500.d.ts +1 -1
  293. package/lib/svg-components/illustration-empty.d.ts +1 -1
  294. package/lib/svg-components/illustration-failure.d.ts +1 -1
  295. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  296. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  297. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  298. package/lib/svg-components/illustration-offline.d.ts +1 -1
  299. package/lib/svg-components/illustration-success.d.ts +1 -1
  300. package/lib/svg-components/index.js +3 -3
  301. package/lib/switch/switch.js +3 -3
  302. package/lib/table/assets/image-loading-background.d.ts +1 -1
  303. package/lib/table/assets/image-loading.d.ts +1 -1
  304. package/lib/table/hooks/use-column-setting.js +15 -14
  305. package/lib/table/hooks/use-expand-fixed.js +36 -30
  306. package/lib/table/resizableTable/index.js +31 -24
  307. package/lib/table/table-hoc.js +3 -3
  308. package/lib/table/table.js +34 -27
  309. package/lib/table/table.stories.js +16 -10
  310. package/lib/table/total-shower.js +3 -3
  311. package/lib/table/utils.js +3 -3
  312. package/lib/table-container/index.js +3 -3
  313. package/lib/tabs-container/index.js +3 -3
  314. package/lib/tag/tag.js +16 -10
  315. package/lib/title/index.js +3 -3
  316. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -3
  317. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +3 -3
  318. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +3 -3
  319. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +16 -10
  320. package/lib/tntd-cascader/AntdCascader/config/utils.js +16 -10
  321. package/lib/tntd-cascader/AntdCascader/index.js +33 -26
  322. package/lib/tntd-cascader/index.js +3 -3
  323. package/lib/tntd-cascader/rc-cascader/Cascader.js +24 -23
  324. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +16 -10
  325. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +33 -26
  326. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +37 -30
  327. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +18 -17
  328. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +24 -23
  329. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +17 -16
  330. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
  331. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +30 -23
  332. package/lib/tntd-cascader/rc-cascader/index.js +3 -3
  333. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +6 -6
  334. package/lib/tntd-form/ErrorList.js +33 -26
  335. package/lib/tntd-form/Form.js +31 -24
  336. package/lib/tntd-form/FormItem/ItemHolder.js +31 -24
  337. package/lib/tntd-form/FormItem/index.js +24 -23
  338. package/lib/tntd-form/FormItemInput.js +3 -3
  339. package/lib/tntd-form/FormItemLabel.js +16 -10
  340. package/lib/tntd-form/FormList.js +3 -3
  341. package/lib/tntd-form/context.js +3 -3
  342. package/lib/tntd-form/hooks/useDebounce.js +15 -14
  343. package/lib/tntd-form/hooks/useForm.js +18 -17
  344. package/lib/tntd-form/hooks/useFormItemStatus.js +3 -3
  345. package/lib/tntd-form/hooks/useFrameState.js +18 -17
  346. package/lib/tntd-form/index.js +3 -3
  347. package/lib/tntd-icon/index.js +3 -3
  348. package/lib/tntd-layout/AppList.js +24 -20
  349. package/lib/tntd-layout/Application.js +24 -20
  350. package/lib/tntd-layout/Avatar.js +9 -6
  351. package/lib/tntd-layout/CompatibleLanguage.js +24 -20
  352. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +9 -6
  353. package/lib/tntd-layout/EnterpriseLayout/Language.js +24 -20
  354. package/lib/tntd-layout/EnterpriseLayout/Theme.js +24 -20
  355. package/lib/tntd-layout/EnterpriseLayout/index.js +3 -3
  356. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +24 -20
  357. package/lib/tntd-layout/GlobalNavigation/index.js +30 -26
  358. package/lib/tntd-layout/Header.js +9 -6
  359. package/lib/tntd-layout/HeaderActions.js +9 -6
  360. package/lib/tntd-layout/HeaderNavs.js +24 -20
  361. package/lib/tntd-layout/HeaderTabs.js +37 -27
  362. package/lib/tntd-layout/Iconfont.js +3 -3
  363. package/lib/tntd-layout/Language.js +24 -20
  364. package/lib/tntd-layout/Layout.js +24 -20
  365. package/lib/tntd-layout/Logo.js +9 -6
  366. package/lib/tntd-layout/OrgAppList.js +24 -20
  367. package/lib/tntd-layout/SideMenu.js +24 -20
  368. package/lib/tntd-layout/Theme.js +24 -20
  369. package/lib/tntd-layout/createActions.js +3 -3
  370. package/lib/tntd-layout/images/index.js +3 -3
  371. package/lib/tntd-layout/index.js +3 -3
  372. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +24 -20
  373. package/lib/tntd-layout/paaslayout/Header.js +9 -6
  374. package/lib/tntd-layout/paaslayout/Logo.js +9 -6
  375. package/lib/tntd-layout/paaslayout/SideMenu.js +24 -20
  376. package/lib/tntd-layout/paaslayout/index.js +24 -20
  377. package/lib/tntd-layout/storage.js +3 -3
  378. package/lib/tntd-modal/index.js +31 -24
  379. package/lib/tntd-rc-select/_util/PurePanel.js +18 -17
  380. package/lib/tntd-rc-select/_util/context.js +3 -3
  381. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +3 -3
  382. package/lib/tntd-rc-select/_util/getIcons.js +3 -3
  383. package/lib/tntd-rc-select/_util/useCompactItemContext.js +16 -10
  384. package/lib/tntd-rc-select/index.js +16 -10
  385. package/lib/tntd-reference/AHref/index.js +3 -3
  386. package/lib/tntd-reference/ReferenceBatchCheck/index.js +3 -3
  387. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +18 -17
  388. package/lib/tntd-reference/ReferenceCheck/index.js +3 -3
  389. package/lib/tntd-reference/ReferenceDrawer/index.js +18 -17
  390. package/lib/tntd-reference/ReferenceInfo/index.js +3 -3
  391. package/lib/tntd-reference/index.js +3 -3
  392. package/lib/tntd-second-page/index.js +3 -3
  393. package/lib/tntd-select/DropDownWrap.js +54 -34
  394. package/lib/tntd-select/index.js +57 -40
  395. package/lib/tntd-virtual-tree/index.js +24 -23
  396. package/lib/tntd-virtual-tree/utils.js +66 -62
  397. package/lib/tntd-virtual-tree-select/index.js +23 -22
  398. package/lib/tntd-virtual-tree-select/utils.js +21 -20
  399. package/lib/tooltip/tooltip.js +3 -3
  400. package/lib/upload/index.js +45 -41
  401. package/lib/upload/svg/UploadSVG.js +3 -3
  402. package/lib/utils/checkAuth.js +6 -6
  403. package/lib/utils/index.js +21 -20
  404. package/lib/utils/lang.js +3 -3
  405. package/lib/water-mark/index.js +18 -17
  406. package/package.json +2 -2
  407. package/es/alert/alert.js +0 -93
  408. package/es/alert/alert.js.map +0 -1
  409. package/es/array-input/icon.js +0 -32
  410. package/es/array-input/icon.js.map +0 -1
  411. package/es/cascader/cascader.js +0 -49
  412. package/es/cascader/cascader.js.map +0 -1
  413. package/es/checkbox/checkbox.js +0 -65
  414. package/es/checkbox/checkbox.js.map +0 -1
  415. package/es/date-picker/DatePicker.js +0 -128
  416. package/es/date-picker/DatePicker.js.map +0 -1
  417. package/es/input-number/inputNumber.js +0 -54
  418. package/es/input-number/inputNumber.js.map +0 -1
  419. package/es/page-loading/loading1.gif +0 -0
  420. package/es/popconfirm/popconfirm.js +0 -61
  421. package/es/popconfirm/popconfirm.js.map +0 -1
  422. package/es/popover/popover.js +0 -55
  423. package/es/popover/popover.js.map +0 -1
  424. package/es/progress/progress.js +0 -148
  425. package/es/progress/progress.js.map +0 -1
  426. package/es/query-form/Field/Composition/FieldPopover.js +0 -464
  427. package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
  428. package/es/query-form/Field/Composition/FieldPopover.less +0 -35
  429. package/es/query-form/Field/Composition/Select.js +0 -260
  430. package/es/query-form/Field/Composition/Select.js.map +0 -1
  431. package/es/query-form/Field/Composition/SelectInput.js +0 -112
  432. package/es/query-form/Field/Composition/SelectInput.js.map +0 -1
  433. package/es/query-form/Field/Composition/ValueTag.js +0 -240
  434. package/es/query-form/Field/Composition/ValueTag.js.map +0 -1
  435. package/es/query-form/Field/Composition/index.js +0 -448
  436. package/es/query-form/Field/Composition/index.js.map +0 -1
  437. package/es/query-form/Field/Composition/index.less +0 -145
  438. package/es/query-form/Field/Composition/utils.js +0 -173
  439. package/es/query-form/Field/Composition/utils.js.map +0 -1
  440. package/es/query-form-v2/index.less +0 -133
  441. package/es/radio/radio.js +0 -75
  442. package/es/radio/radio.js.map +0 -1
  443. package/es/scroll-bar/Bar.js +0 -169
  444. package/es/scroll-bar/Bar.js.map +0 -1
  445. package/es/scroll-bar/Context.js +0 -17
  446. package/es/scroll-bar/Context.js.map +0 -1
  447. package/es/scroll-bar/ScrollBar.js +0 -132
  448. package/es/scroll-bar/ScrollBar.js.map +0 -1
  449. package/es/scroll-bar/Thumb.js +0 -203
  450. package/es/scroll-bar/Thumb.js.map +0 -1
  451. package/es/scroll-bar/index.js +0 -14
  452. package/es/scroll-bar/index.js.map +0 -1
  453. package/es/scroll-bar/scrollBar.less +0 -59
  454. package/es/scroll-bar/util.js +0 -72
  455. package/es/scroll-bar/util.js.map +0 -1
  456. package/es/spin/spin.js +0 -44
  457. package/es/spin/spin.js.map +0 -1
  458. package/es/time-picker/TimePicker.js +0 -55
  459. package/es/time-picker/TimePicker.js.map +0 -1
  460. package/es/tntd-action/Action.js +0 -141
  461. package/es/tntd-action/Action.js.map +0 -1
  462. package/lib/alert/alert.d.ts +0 -12
  463. package/lib/alert/alert.d.ts.map +0 -1
  464. package/lib/alert/alert.js +0 -147
  465. package/lib/alert/alert.js.map +0 -1
  466. package/lib/array-input/icon.d.ts +0 -4
  467. package/lib/array-input/icon.d.ts.map +0 -1
  468. package/lib/array-input/icon.js +0 -36
  469. package/lib/array-input/icon.js.map +0 -1
  470. package/lib/cascader/cascader.d.ts +0 -10
  471. package/lib/cascader/cascader.d.ts.map +0 -1
  472. package/lib/cascader/cascader.js +0 -84
  473. package/lib/cascader/cascader.js.map +0 -1
  474. package/lib/checkbox/checkbox.d.ts +0 -16
  475. package/lib/checkbox/checkbox.d.ts.map +0 -1
  476. package/lib/checkbox/checkbox.js +0 -100
  477. package/lib/checkbox/checkbox.js.map +0 -1
  478. package/lib/date-picker/DatePicker.d.ts +0 -21
  479. package/lib/date-picker/DatePicker.d.ts.map +0 -1
  480. package/lib/date-picker/DatePicker.js +0 -163
  481. package/lib/date-picker/DatePicker.js.map +0 -1
  482. package/lib/input-number/inputNumber.d.ts +0 -10
  483. package/lib/input-number/inputNumber.d.ts.map +0 -1
  484. package/lib/input-number/inputNumber.js +0 -89
  485. package/lib/input-number/inputNumber.js.map +0 -1
  486. package/lib/page-loading/loading1.gif +0 -0
  487. package/lib/popconfirm/popconfirm.d.ts +0 -8
  488. package/lib/popconfirm/popconfirm.d.ts.map +0 -1
  489. package/lib/popconfirm/popconfirm.js +0 -96
  490. package/lib/popconfirm/popconfirm.js.map +0 -1
  491. package/lib/popover/popover.d.ts +0 -14
  492. package/lib/popover/popover.d.ts.map +0 -1
  493. package/lib/popover/popover.js +0 -90
  494. package/lib/popover/popover.js.map +0 -1
  495. package/lib/progress/progress.d.ts +0 -12
  496. package/lib/progress/progress.d.ts.map +0 -1
  497. package/lib/progress/progress.js +0 -179
  498. package/lib/progress/progress.js.map +0 -1
  499. package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
  500. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
  501. package/lib/query-form/Field/Composition/FieldPopover.js +0 -464
  502. package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
  503. package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
  504. package/lib/query-form/Field/Composition/Select.d.ts +0 -4
  505. package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
  506. package/lib/query-form/Field/Composition/Select.js +0 -260
  507. package/lib/query-form/Field/Composition/Select.js.map +0 -1
  508. package/lib/query-form/Field/Composition/SelectInput.d.ts +0 -3
  509. package/lib/query-form/Field/Composition/SelectInput.d.ts.map +0 -1
  510. package/lib/query-form/Field/Composition/SelectInput.js +0 -112
  511. package/lib/query-form/Field/Composition/SelectInput.js.map +0 -1
  512. package/lib/query-form/Field/Composition/ValueTag.d.ts +0 -13
  513. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +0 -1
  514. package/lib/query-form/Field/Composition/ValueTag.js +0 -240
  515. package/lib/query-form/Field/Composition/ValueTag.js.map +0 -1
  516. package/lib/query-form/Field/Composition/index.d.ts +0 -15
  517. package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
  518. package/lib/query-form/Field/Composition/index.js +0 -448
  519. package/lib/query-form/Field/Composition/index.js.map +0 -1
  520. package/lib/query-form/Field/Composition/index.less +0 -145
  521. package/lib/query-form/Field/Composition/utils.d.ts +0 -21
  522. package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
  523. package/lib/query-form/Field/Composition/utils.js +0 -173
  524. package/lib/query-form/Field/Composition/utils.js.map +0 -1
  525. package/lib/query-form-v2/index.less +0 -133
  526. package/lib/radio/radio.d.ts +0 -17
  527. package/lib/radio/radio.d.ts.map +0 -1
  528. package/lib/radio/radio.js +0 -110
  529. package/lib/radio/radio.js.map +0 -1
  530. package/lib/scroll-bar/Bar.d.ts +0 -4
  531. package/lib/scroll-bar/Bar.d.ts.map +0 -1
  532. package/lib/scroll-bar/Bar.js +0 -169
  533. package/lib/scroll-bar/Bar.js.map +0 -1
  534. package/lib/scroll-bar/Context.d.ts +0 -7
  535. package/lib/scroll-bar/Context.d.ts.map +0 -1
  536. package/lib/scroll-bar/Context.js +0 -17
  537. package/lib/scroll-bar/Context.js.map +0 -1
  538. package/lib/scroll-bar/ScrollBar.d.ts +0 -4
  539. package/lib/scroll-bar/ScrollBar.d.ts.map +0 -1
  540. package/lib/scroll-bar/ScrollBar.js +0 -132
  541. package/lib/scroll-bar/ScrollBar.js.map +0 -1
  542. package/lib/scroll-bar/Thumb.d.ts +0 -3
  543. package/lib/scroll-bar/Thumb.d.ts.map +0 -1
  544. package/lib/scroll-bar/Thumb.js +0 -203
  545. package/lib/scroll-bar/Thumb.js.map +0 -1
  546. package/lib/scroll-bar/index.d.ts +0 -3
  547. package/lib/scroll-bar/index.d.ts.map +0 -1
  548. package/lib/scroll-bar/index.js +0 -14
  549. package/lib/scroll-bar/index.js.map +0 -1
  550. package/lib/scroll-bar/scrollBar.less +0 -59
  551. package/lib/scroll-bar/util.d.ts +0 -40
  552. package/lib/scroll-bar/util.d.ts.map +0 -1
  553. package/lib/scroll-bar/util.js +0 -72
  554. package/lib/scroll-bar/util.js.map +0 -1
  555. package/lib/spin/spin.d.ts +0 -9
  556. package/lib/spin/spin.d.ts.map +0 -1
  557. package/lib/spin/spin.js +0 -79
  558. package/lib/spin/spin.js.map +0 -1
  559. package/lib/time-picker/TimePicker.d.ts +0 -9
  560. package/lib/time-picker/TimePicker.d.ts.map +0 -1
  561. package/lib/time-picker/TimePicker.js +0 -90
  562. package/lib/time-picker/TimePicker.js.map +0 -1
  563. package/lib/tntd-action/Action.d.ts +0 -6
  564. package/lib/tntd-action/Action.d.ts.map +0 -1
  565. package/lib/tntd-action/Action.js +0 -218
  566. package/lib/tntd-action/Action.js.map +0 -1
@@ -1,54 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- var _exportNames = {};
8
- exports["default"] = void 0;
9
- var _react = _interopRequireWildcard(require("react"));
10
- var _configProvider = require("../config-provider");
11
- var _inputNumber = _interopRequireWildcard(require("antd/es/input-number"));
12
- Object.keys(_inputNumber).forEach(function (key) {
13
- if (key === "default" || key === "__esModule") return;
14
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
15
- if (key in exports && exports[key] === _inputNumber[key]) return;
16
- Object.defineProperty(exports, key, {
17
- enumerable: true,
18
- get: function get() {
19
- return _inputNumber[key];
20
- }
21
- });
22
- });
23
- var _connect = require("../connect");
24
- var _previewText = _interopRequireDefault(require("../preview-text"));
25
- var _classnames = _interopRequireDefault(require("classnames"));
26
- var _prevLocale = require("../prev-locale");
27
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
28
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
29
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
30
- var __rest = void 0 && (void 0).__rest || function (s, e) {
31
- var t = {};
32
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
33
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
35
- }
36
- return t;
37
- };
38
- var defaultPlaceholder = (0, _prevLocale.getText)('enter', (0, _prevLocale.getLanguage)());
39
- var tntPrefixCls = 'tnt-input-number';
40
- var TntInputNumber = (0, _react.forwardRef)(function (_a, ref) {
41
- var className = _a.className,
42
- _a$placeholder = _a.placeholder,
43
- placeholder = _a$placeholder === void 0 ? defaultPlaceholder : _a$placeholder,
44
- props = __rest(_a, ["className", "placeholder"]);
45
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function () {
46
- return _react["default"].createElement(_inputNumber["default"], Object.assign({
47
- placeholder: placeholder
48
- }, props, {
49
- ref: ref,
50
- className: (0, _classnames["default"])(className, tntPrefixCls)
51
- }));
52
- });
53
- });
54
- var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(TntInputNumber, _previewText["default"].Input);
@@ -1 +0,0 @@
1
- {"version":3,"file":"inputNumber.js","sourceRoot":"","sources":["../../src/input-number/inputNumber.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACrD,cAAc,sBAAsB,CAAA;AAEpC,MAAM,kBAAkB,GAAG,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,CAAC,CAAA;AAM1D,MAAM,YAAY,GAAG,kBAAkB,CAAA;AAEvC,MAAM,cAAc,GAAG,UAAU,CAC/B,CAAC,EAAyD,EAAE,GAAG,EAAE,EAAE;QAAlE,EAAE,SAAS,EAAE,WAAW,GAAG,kBAAkB,OAAY,EAAP,KAAK,cAAvD,4BAAyD,CAAF;IACtD,OAAO,CACL,oBAAC,cAAc,QACZ,GAAG,EAAE;QACJ,OAAO,CACL,oBAAC,eAAe,kBACd,WAAW,EAAE,WAAW,IACpB,KAAK,IACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,YAAY,CAAC,IAC9C,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,wBAAwB,CAAC,cAAc,EAAE,WAAW,CAAC,KAAK,CAAC,CAAA","sourcesContent":["import React, { forwardRef } from 'react'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdInputNumber } from 'antd/es/input-number'\nimport type { InputNumberProps as AntdInputNumberProps } from 'antd/es/input-number'\nimport { connectReadonlyComponent } from '../connect'\nimport PreviewText from '../preview-text'\nimport classNames from 'classnames'\nimport { getLanguage, getText } from '../prev-locale'\nexport * from 'antd/es/input-number'\n\nconst defaultPlaceholder = getText('enter', getLanguage())\n\nexport type InputNumberProps = AntdInputNumberProps & {\n readonly?: boolean\n}\n\nconst tntPrefixCls = 'tnt-input-number'\n\nconst TntInputNumber = forwardRef<AntdInputNumber, AntdInputNumberProps>(\n ({ className, placeholder = defaultPlaceholder, ...props }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdInputNumber\n placeholder={placeholder}\n {...props}\n ref={ref}\n className={classNames(className, tntPrefixCls)}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n)\n\nexport default connectReadonlyComponent(TntInputNumber, PreviewText.Input)\n"]}
Binary file
@@ -1,61 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- var _exportNames = {};
8
- exports["default"] = void 0;
9
- var _react = _interopRequireDefault(require("react"));
10
- var _configProvider = require("antd/es/config-provider");
11
- var _popconfirm = _interopRequireWildcard(require("antd/es/popconfirm"));
12
- Object.keys(_popconfirm).forEach(function (key) {
13
- if (key === "default" || key === "__esModule") return;
14
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
15
- if (key in exports && exports[key] === _popconfirm[key]) return;
16
- Object.defineProperty(exports, key, {
17
- enumerable: true,
18
- get: function get() {
19
- return _popconfirm[key];
20
- }
21
- });
22
- });
23
- var _classnames = _interopRequireDefault(require("classnames"));
24
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
26
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
27
- var __rest = void 0 && (void 0).__rest || function (s, e) {
28
- var t = {};
29
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
30
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
32
- }
33
- return t;
34
- };
35
- var Popconfirm = function Popconfirm(_a) {
36
- var cancelButtonProps = _a.cancelButtonProps,
37
- okButtonProps = _a.okButtonProps,
38
- hiddenArrow = _a.hiddenArrow,
39
- props = __rest(_a, ["cancelButtonProps", "okButtonProps", "hiddenArrow"]);
40
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
41
- var getPrefixCls = _ref.getPrefixCls;
42
- var prefixCls = getPrefixCls('popover');
43
- return _react["default"].createElement(_popconfirm["default"], Object.assign({
44
- cancelButtonProps: Object.assign({
45
- type: 'tertiary',
46
- className: (0, _classnames["default"])('tnt-btn', {
47
- 'tnt-btn-tertiary': (cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.type) === 'tertiary' || !(cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.type),
48
- 'tnt-btn-mini': (cancelButtonProps === null || cancelButtonProps === void 0 ? void 0 : cancelButtonProps.size) === 'mini'
49
- })
50
- }, cancelButtonProps),
51
- okButtonProps: Object.assign({
52
- className: (0, _classnames["default"])('tnt-btn', {
53
- 'tnt-btn-tertiary': (okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.type) === 'tertiary',
54
- 'tnt-btn-mini': (okButtonProps === null || okButtonProps === void 0 ? void 0 : okButtonProps.size) === 'mini'
55
- })
56
- }, okButtonProps),
57
- overlayClassName: (0, _classnames["default"])(hiddenArrow ? prefixCls + '-arrow-hidden' : '')
58
- }, props));
59
- });
60
- };
61
- var _default = exports["default"] = Popconfirm;
@@ -1 +0,0 @@
1
- {"version":3,"file":"popconfirm.js","sourceRoot":"","sources":["../../src/popconfirm/popconfirm.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,cAAc,MAAM,oBAAoB,CAAA;AAC/C,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,cAAc,oBAAoB,CAAA;AAElC,MAAM,UAAU,GAA0D,CAAC,EAK1E,EAAE,EAAE;QALsE,EACzE,iBAAiB,EACjB,aAAa,EACb,WAAW,OAEZ,EADI,KAAK,cAJiE,qDAK1E,CADS;IAER,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAA;QACzC,OAAO,CACL,oBAAC,cAAc,kBACb,iBAAiB,EACf,gBACE,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;oBAC/B,kBAAkB,EAChB,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,UAAU,IAAI,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,CAAA;oBAChF,cAAc,EAAE,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,MAAM;iBAC/D,CAAC,IACC,iBAAiB,CACA,EAExB,aAAa,kBACX,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;oBAC/B,kBAAkB,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,UAAU;oBAClE,cAAc,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,MAAM;iBAC3D,CAAC,IACC,aAAa,GAElB,gBAAgB,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,IACxE,KAAK,EACT,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA","sourcesContent":["import React from 'react'\nimport type { PopconfirmProps } from 'antd/es/popconfirm'\nimport type { NativeButtonProps } from 'antd/es/button/button'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport AntdPopconfirm from 'antd/es/popconfirm'\nimport classNames from 'classnames'\n\nexport * from 'antd/es/popconfirm'\n\nconst Popconfirm: React.FC<PopconfirmProps & { hiddenArrow?: boolean }> = ({\n cancelButtonProps,\n okButtonProps,\n hiddenArrow,\n ...props\n}) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('popover')\n return (\n <AntdPopconfirm\n cancelButtonProps={\n {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' || !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps\n }\n okButtonProps={{\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n }}\n overlayClassName={classNames(hiddenArrow ? prefixCls + '-arrow-hidden' : '')}\n {...props}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport default Popconfirm\n"]}
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- var _exportNames = {};
8
- exports["default"] = void 0;
9
- var _react = _interopRequireDefault(require("react"));
10
- var _configProvider = require("antd/es/config-provider");
11
- var _popover = _interopRequireWildcard(require("antd/es/popover"));
12
- Object.keys(_popover).forEach(function (key) {
13
- if (key === "default" || key === "__esModule") return;
14
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
15
- if (key in exports && exports[key] === _popover[key]) return;
16
- Object.defineProperty(exports, key, {
17
- enumerable: true,
18
- get: function get() {
19
- return _popover[key];
20
- }
21
- });
22
- });
23
- var _classnames = _interopRequireDefault(require("classnames"));
24
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
26
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
27
- var __rest = void 0 && (void 0).__rest || function (s, e) {
28
- var t = {};
29
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
30
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
32
- }
33
- return t;
34
- };
35
- var themeMap = function themeMap(prefixCls, themeColor) {
36
- return "".concat(prefixCls, "-").concat(themeColor);
37
- };
38
- var Popover = function Popover(props) {
39
- var overlayClassName = props.overlayClassName,
40
- _props$theme = props.theme,
41
- theme = _props$theme === void 0 ? '' : _props$theme,
42
- _props$titleDivider = props.titleDivider,
43
- titleDivider = _props$titleDivider === void 0 ? false : _props$titleDivider,
44
- _props$hiddenArrow = props.hiddenArrow,
45
- hiddenArrow = _props$hiddenArrow === void 0 ? false : _props$hiddenArrow,
46
- restProps = __rest(props, ["overlayClassName", "theme", "titleDivider", "hiddenArrow"]);
47
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
48
- var getPrefixCls = _ref.getPrefixCls;
49
- var prefixCls = getPrefixCls('popover');
50
- return _react["default"].createElement(_popover["default"], Object.assign({
51
- overlayClassName: (0, _classnames["default"])(prefixCls, 'tnt-popover', themeMap(prefixCls, theme), hiddenArrow ? prefixCls + '-arrow-hidden' : '', overlayClassName)
52
- }, restProps));
53
- });
54
- };
55
- var _default = exports["default"] = Popover;
@@ -1 +0,0 @@
1
- {"version":3,"file":"popover.js","sourceRoot":"","sources":["../../src/popover/popover.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,WAAW,MAAM,iBAAiB,CAAA;AACzC,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,cAAc,iBAAiB,CAAA;AAC/B,MAAM,QAAQ,GAAG,CAAC,SAAiB,EAAE,UAAmB,EAAE,EAAE;IAC1D,OAAO,GAAG,SAAS,IAAI,UAAU,EAAE,CAAA;AACrC,CAAC,CAAA;AAMD,MAAM,OAAO,GAET,CAAC,KAAK,EAAE,EAAE;IACZ,MAAM,EACJ,gBAAgB,EAChB,KAAK,GAAG,EAAE,EACV,YAAY,GAAG,KAAK,EACpB,WAAW,GAAG,KAAK,KAEjB,KAAK,EADJ,SAAS,UACV,KAAK,EANH,4DAML,CAAQ,CAAA;IAET,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAA;QAEzC,OAAO,CACL,oBAAC,WAAW,kBACV,gBAAgB,EAAE,UAAU,CAC1B,SAAS,EACT,aAAa,EACb,QAAQ,CAAC,SAAS,EAAE,KAAK,CAAC,EAC1B,WAAW,CAAC,CAAC,CAAC,SAAS,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,EAC9C,gBAAgB,CACjB,IACG,SAAS,EACb,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA","sourcesContent":["import React from 'react'\nimport type { PopoverProps } from 'antd/es/popover'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport AntdPopover from 'antd/es/popover'\nimport classNames from 'classnames'\n\nexport * from 'antd/es/popover'\nconst themeMap = (prefixCls: string, themeColor?: string) => {\n return `${prefixCls}-${themeColor}`\n}\ninterface CurProps extends PopoverProps {\n theme?: string\n titleDivider?: boolean\n}\n\nconst Popover: React.FC<\n CurProps & { theme?: string; titleDivider?: boolean; hiddenArrow?: boolean }\n> = (props) => {\n const {\n overlayClassName,\n theme = '',\n titleDivider = false,\n hiddenArrow = false,\n ...restProps\n } = props\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('popover')\n\n return (\n <AntdPopover\n overlayClassName={classNames(\n prefixCls,\n 'tnt-popover',\n themeMap(prefixCls, theme),\n hiddenArrow ? prefixCls + '-arrow-hidden' : '',\n overlayClassName\n )}\n {...restProps}\n />\n )\n }}\n </ConfigConsumer>\n )\n}\n\nexport default Popover\n"]}
@@ -1,148 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- var _exportNames = {};
7
- exports["default"] = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _configProvider = require("antd/es/config-provider");
10
- var _progress = _interopRequireDefault(require("antd/es/progress"));
11
- var _classnames = _interopRequireDefault(require("classnames"));
12
- var _ellipsis = _interopRequireDefault(require("../ellipsis"));
13
- var _icon = _interopRequireDefault(require("../icon"));
14
- require("./progress.less");
15
- var _tooltip = require("antd/es/tooltip");
16
- Object.keys(_tooltip).forEach(function (key) {
17
- if (key === "default" || key === "__esModule") return;
18
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
19
- if (key in exports && exports[key] === _tooltip[key]) return;
20
- Object.defineProperty(exports, key, {
21
- enumerable: true,
22
- get: function get() {
23
- return _tooltip[key];
24
- }
25
- });
26
- });
27
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
28
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
29
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
30
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
31
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
32
- var iconMap = {
33
- line: {
34
- success: 'check-circle',
35
- exception: 'close-circle'
36
- },
37
- circle: {
38
- success: 'check',
39
- exception: 'close'
40
- }
41
- };
42
- var ifPercentBottom = function ifPercentBottom(type, percentPosition) {
43
- return type === 'line' && percentPosition === 'bottom';
44
- };
45
- var percentTransform = function percentTransform(percent) {
46
- return percent >= 100 ? 100 : percent <= 0 ? 0 : percent;
47
- };
48
- var themeStrokeColor = function themeStrokeColor(status, strokeColor, percent) {
49
- return status !== 'success' && status !== 'exception' && !strokeColor && percent !== 100 ? 'var(--blue-5)' : '';
50
- };
51
- var Progress = function Progress(props) {
52
- var className = props.className,
53
- _props$type = props.type,
54
- type = _props$type === void 0 ? 'line' : _props$type,
55
- _props$percentPositio = props.percentPosition,
56
- percentPosition = _props$percentPositio === void 0 ? 'right' : _props$percentPositio,
57
- _props$percent = props.percent,
58
- percent = _props$percent === void 0 ? 0 : _props$percent,
59
- format = props.format,
60
- size = props.size,
61
- label = props.label,
62
- _props$width = props.width,
63
- width = _props$width === void 0 ? 132 : _props$width,
64
- status = props.status,
65
- halfCircle = props.halfCircle,
66
- _props$gapDegree = props.gapDegree,
67
- gapDegree = _props$gapDegree === void 0 ? props.halfCircle ? 135 : props.gapDegree : _props$gapDegree,
68
- strokeColor = props.strokeColor,
69
- _props$strokeWidth = props.strokeWidth,
70
- strokeWidth = _props$strokeWidth === void 0 ? 7 : _props$strokeWidth;
71
- var _percent = percentTransform(percent);
72
- var _strokeColor = themeStrokeColor(status, strokeColor, _percent);
73
- return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
74
- var getPrefixCls = _ref.getPrefixCls;
75
- var prefixCls = getPrefixCls('progress');
76
- var CusLabelOrPercent = function CusLabelOrPercent(props) {
77
- var type = props.type,
78
- theme = props.theme;
79
- var labelPercentClassName = (0, _classnames["default"])("".concat(prefixCls, "-percent-bottom"), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-percent-bottom-").concat(size), size === 'small'), "".concat(prefixCls, "-percent-bottom-").concat(type), type === 'line'));
80
- var showIcon = function showIcon(status) {
81
- return _react["default"].createElement(_icon["default"], {
82
- type: "".concat(iconMap[type][status]),
83
- theme: theme,
84
- className: (0, _classnames["default"])(_defineProperty({}, "".concat(labelPercentClassName, " ").concat(labelPercentClassName, "-").concat(status || 'success'), type === 'line'))
85
- });
86
- };
87
- var showPercent = _react["default"].createElement("div", {
88
- className: labelPercentClassName
89
- }, format ? format === null || format === void 0 ? void 0 : format(_percent) : _percent + '%');
90
- var displayContent;
91
- if (status === 'success' || status === 'exception') {
92
- displayContent = showIcon(status);
93
- } else if (status === 'normal' || status === 'active') {
94
- displayContent = showPercent;
95
- } else {
96
- // 如果状态为空
97
- displayContent = _percent === 100 ? showIcon('success') : showPercent;
98
- }
99
- return displayContent;
100
- };
101
- var CusCircleAndDashboardFormat = function CusCircleAndDashboardFormat(props) {
102
- var widthNum = props.widthNum;
103
- return _react["default"].createElement("div", {
104
- className: "".concat(prefixCls, "-cus-format")
105
- }, !!label && _react["default"].createElement(_ellipsis["default"], {
106
- className: "".concat(prefixCls, "-cus-format-label"),
107
- title: label,
108
- widthLimit: widthNum <= 64 ? widthNum : 'calc(100% - 50px)',
109
- placement: widthNum <= 64 ? 'bottom' : 'top'
110
- }), _react["default"].createElement(CusLabelOrPercent, {
111
- type: "circle",
112
- theme: "outlined"
113
- }));
114
- };
115
- //line
116
- var LineProgress = function LineProgress() {
117
- return _react["default"].createElement(_progress["default"], Object.assign({
118
- strokeColor: _strokeColor
119
- }, props, {
120
- className: (0, _classnames["default"])('tnt-progress', className, _defineProperty({}, "".concat(prefixCls, "-percent-bottom"), percentPosition === 'bottom'))
121
- }));
122
- };
123
- //circle,dashboard (额外新增label和半圆选项)
124
- var CircleAndDashboardProgress = function CircleAndDashboardProgress() {
125
- var widthNum = Number(String(width).split('px').shift());
126
- return _react["default"].createElement(_progress["default"], Object.assign({
127
- gapDegree: gapDegree,
128
- strokeColor: _strokeColor,
129
- strokeWidth: strokeWidth
130
- }, props, {
131
- type: halfCircle ? 'dashboard' : type,
132
- className: (0, _classnames["default"])('tnt-progress', "".concat(prefixCls, "-circle-progress"), className, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-small-circle"), widthNum <= 64 && label), "".concat(prefixCls, "-large-circle"), widthNum > 64 && label), "".concat(prefixCls, "-small-half-circle"), halfCircle && widthNum <= 64 && label), "".concat(prefixCls, "-large-half-circle"), halfCircle && widthNum > 64 && label)),
133
- format: function format() {
134
- return _react["default"].createElement(CusCircleAndDashboardFormat, {
135
- widthNum: widthNum
136
- });
137
- }
138
- }));
139
- };
140
- var progressMap = {
141
- line: _react["default"].createElement(LineProgress, null),
142
- circle: _react["default"].createElement(CircleAndDashboardProgress, null),
143
- dashboard: _react["default"].createElement(CircleAndDashboardProgress, null)
144
- };
145
- return progressMap[type];
146
- });
147
- };
148
- var _default = exports["default"] = Progress;
@@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,0BAA0B,OAAG;SAC1C,CAAA;QACD,OAAO,WAAW,CAAC,IAAI,CAAC,CAAA;IAC1B,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,QAAQ,CAAA","sourcesContent":["import React from 'react'\nimport type { ProgressProps } from 'antd/es/progress'\nimport type { ThemeType } from 'antd/es/icon'\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport AntdProgress from 'antd/es/progress'\nimport classNames from 'classnames'\nimport Ellipsis from '../ellipsis'\nimport Icon from '../icon'\nimport './progress.less'\nexport * from 'antd/es/tooltip'\n\ninterface ExtendsProgress {\n percentPosition?: 'bottom' | 'right'\n label?: React.ReactNode\n halfCircle?: boolean\n}\nconst iconMap = {\n line: {\n success: 'check-circle',\n exception: 'close-circle',\n },\n circle: {\n success: 'check',\n exception: 'close',\n },\n}\nconst ifPercentBottom = (type: string, percentPosition: string) => {\n return type === 'line' && percentPosition === 'bottom'\n}\nconst percentTransform = (percent: number) => {\n return percent >= 100 ? 100 : percent <= 0 ? 0 : percent\n}\n\nconst themeStrokeColor = (status?: string, strokeColor?: string | object, percent?: number) => {\n return status !== 'success' && status !== 'exception' && !strokeColor && percent !== 100\n ? 'var(--blue-5)'\n : ''\n}\n\nconst Progress: React.FC<ProgressProps & ExtendsProgress> = (props) => {\n const {\n className,\n type = 'line',\n percentPosition = 'right',\n percent = 0,\n format,\n size,\n label,\n width = 132,\n status,\n halfCircle,\n gapDegree = props.halfCircle ? 135 : props.gapDegree,\n strokeColor,\n strokeWidth = 7,\n } = props\n const _percent = percentTransform(percent)\n const _strokeColor = themeStrokeColor(status, strokeColor, _percent)\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('progress')\n\n const CusLabelOrPercent = (props: { type: 'line' | 'circle'; theme?: ThemeType }) => {\n const { type, theme } = props\n const labelPercentClassName = classNames(`${prefixCls}-percent-bottom`, {\n [`${prefixCls}-percent-bottom-${size}`]: size === 'small',\n [`${prefixCls}-percent-bottom-${type}`]: type === 'line',\n })\n\n const showIcon = (status: 'success' | 'exception') => (\n <Icon\n type={`${iconMap[type][status]}`}\n theme={theme}\n className={classNames({\n [`${labelPercentClassName} ${labelPercentClassName}-${status || 'success'}`]:\n type === 'line',\n })}\n />\n )\n const showPercent = (\n <div className={labelPercentClassName}>\n {format ? format?.(_percent) : _percent + '%'}\n </div>\n )\n\n let displayContent\n if (status === 'success' || status === 'exception') {\n displayContent = showIcon(status)\n } else if (status === 'normal' || status === 'active') {\n displayContent = showPercent\n } else {\n // 如果状态为空\n displayContent = _percent === 100 ? showIcon('success') : showPercent\n }\n return displayContent\n }\n\n const CusCircleAndDashboardFormat = (props: { widthNum: number }) => {\n const { widthNum } = props\n return (\n <div className={`${prefixCls}-cus-format`}>\n {!!label && (\n <Ellipsis\n className={`${prefixCls}-cus-format-label`}\n title={label}\n widthLimit={widthNum <= 64 ? widthNum : 'calc(100% - 50px)'}\n placement={widthNum <= 64 ? 'bottom' : 'top'}\n />\n )}\n <CusLabelOrPercent type=\"circle\" theme=\"outlined\" />\n </div>\n )\n }\n\n //line\n const LineProgress: React.FC = () => (\n <AntdProgress\n strokeColor={_strokeColor}\n {...props}\n className={classNames('tnt-progress', className, {\n [`${prefixCls}-percent-bottom`]: percentPosition === 'bottom',\n })}\n />\n )\n\n //circle,dashboard (额外新增label和半圆选项)\n const CircleAndDashboardProgress: React.FC = () => {\n const widthNum = Number(String(width).split('px').shift())\n return (\n <AntdProgress\n gapDegree={gapDegree}\n strokeColor={_strokeColor}\n strokeWidth={strokeWidth}\n {...props}\n type={halfCircle ? 'dashboard' : type}\n className={classNames('tnt-progress', `${prefixCls}-circle-progress`, className, {\n [`${prefixCls}-small-circle`]: widthNum <= 64 && label,\n [`${prefixCls}-large-circle`]: widthNum > 64 && label,\n [`${prefixCls}-small-half-circle`]: halfCircle && widthNum <= 64 && label,\n [`${prefixCls}-large-half-circle`]: halfCircle && widthNum > 64 && label,\n })}\n format={() => <CusCircleAndDashboardFormat widthNum={widthNum} />}\n />\n )\n }\n\n const progressMap = {\n line: <LineProgress />,\n circle: <CircleAndDashboardProgress />,\n dashboard: <CircleAndDashboardProgress />,\n }\n return progressMap[type]\n }}\n </ConfigConsumer>\n )\n}\n\nexport default Progress\n"]}