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
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.defaultIconPrefixCls = exports.ConfigContext = exports.ConfigConsumer = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
8
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
9
9
  var defaultGetPrefixCls = function defaultGetPrefixCls(suffixCls, customizePrefixCls) {
10
10
  if (customizePrefixCls) return customizePrefixCls;
11
11
  return "tnt-".concat(suffixCls);
@@ -8,7 +8,7 @@ exports["default"] = void 0;
8
8
  var React = _interopRequireWildcard(require("react"));
9
9
  var _context = require("./context");
10
10
  var _LocaleReceiver = _interopRequireDefault(require("antd/es/locale-provider/LocaleReceiver"));
11
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
12
12
  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); }
13
13
  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; }
14
14
  /*
@@ -9,12 +9,12 @@ var React = _interopRequireWildcard(require("react"));
9
9
  var _styleChecker = require("../styleChecker");
10
10
  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); }
11
11
  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; }
12
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
12
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13
13
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
15
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
16
16
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
17
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
17
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
  var _default = exports["default"] = function _default() {
19
19
  var _React$useState = React.useState(false),
20
20
  _React$useState2 = _slicedToArray(_React$useState, 2),
@@ -8,12 +8,12 @@ exports["default"] = useForceUpdate;
8
8
  var React = _interopRequireWildcard(require("react"));
9
9
  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); }
10
10
  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; }
11
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
11
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
12
12
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
14
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
14
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
15
15
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
16
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
16
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
17
17
  function useForceUpdate() {
18
18
  var _React$useReducer = React.useReducer(function (x) {
19
19
  return x + 1;
@@ -5,12 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _react = require("react");
8
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
8
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
11
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
12
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
14
  // ==================== 优化版 Hook ====================
15
15
  var _default = exports["default"] = function _default(config) {
16
16
  var _ref = config || {},
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.responsiveMap = exports.responsiveArray = exports["default"] = void 0;
7
7
  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); }
8
- 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; }
8
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9
9
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
10
10
  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); }
11
11
  var responsiveArray = exports.responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "isStyleSupport", {
12
12
  });
13
13
  var _canUseDom = _interopRequireDefault(require("rc-util/lib/Dom/canUseDom"));
14
14
  var _styleChecker = require("rc-util/lib/Dom/styleChecker");
15
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
16
16
  var canUseDocElement = exports.canUseDocElement = function canUseDocElement() {
17
17
  return (0, _canUseDom["default"])() && window.document.documentElement;
18
18
  };
@@ -7,7 +7,7 @@ exports["default"] = void 0;
7
7
  var _classnames = _interopRequireDefault(require("classnames"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  require("./index.less");
10
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
11
  var ProCardActions = function ProCardActions(props) {
12
12
  var actions = props.actions,
13
13
  prefixCls = props.prefixCls;
@@ -24,10 +24,17 @@ Object.keys(_anchor).forEach(function (key) {
24
24
  });
25
25
  var _AnchorLink = _interopRequireDefault(require("antd/es/anchor/AnchorLink"));
26
26
  var _classnames = _interopRequireDefault(require("classnames"));
27
- var _useScrollLock = _interopRequireDefault(require("../_util/hooks/useScrollLock"));
28
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
27
+ var _icon = _interopRequireDefault(require("../icon"));
28
+ var _ellipsis = _interopRequireDefault(require("../ellipsis"));
29
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
29
30
  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); }
30
31
  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; }
32
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
33
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
34
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
36
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
37
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
31
38
  var __rest = void 0 && (void 0).__rest || function (s, e) {
32
39
  var t = {};
33
40
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -60,7 +67,15 @@ var AnchorLink = (0, _react.forwardRef)(function (props, ref) {
60
67
  return _react["default"].createElement(_AnchorLink["default"], Object.assign({
61
68
  ref: ref,
62
69
  href: href
63
- }, restProps), children);
70
+ }, restProps, {
71
+ title: _react["default"].createElement(_ellipsis["default"], {
72
+ placement: "left",
73
+ title: restProps === null || restProps === void 0 ? void 0 : restProps.title,
74
+ getPopupContainer: function getPopupContainer(node) {
75
+ return node.closest('.ant-affix');
76
+ }
77
+ })
78
+ }), children);
64
79
  });
65
80
  // 新增 Anchor 组件
66
81
  var Anchor = exports.Anchor = (0, _react.forwardRef)(function (props, ref) {
@@ -69,25 +84,51 @@ var Anchor = exports.Anchor = (0, _react.forwardRef)(function (props, ref) {
69
84
  _props$tdAnchor = props.tdAnchor,
70
85
  tdAnchor = _props$tdAnchor === void 0 ? false : _props$tdAnchor,
71
86
  restProps = __rest(props, ["className", "children", "tdAnchor"]);
72
- var isScrolling = (0, _useScrollLock["default"])({
73
- debounceTime: 400,
74
- throttleTime: 50,
75
- enableScrollObserver: tdAnchor
76
- });
87
+ var _useState = (0, _react.useState)(false),
88
+ _useState2 = _slicedToArray(_useState, 2),
89
+ anchorLocked = _useState2[0],
90
+ setAnchorLocked = _useState2[1];
91
+ var _useState3 = (0, _react.useState)(false),
92
+ _useState4 = _slicedToArray(_useState3, 2),
93
+ anchorMove = _useState4[0],
94
+ setAnchorMove = _useState4[1];
95
+ (0, _react.useEffect)(function () {
96
+ if (tdAnchor) {
97
+ return function () {
98
+ setAnchorLocked(false);
99
+ setAnchorMove(false);
100
+ };
101
+ }
102
+ }, [tdAnchor]);
77
103
  return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
78
104
  var getPrefixCls = _ref.getPrefixCls;
79
105
  var prefixCls = getPrefixCls('anchor');
80
106
  var anchorClass = (0, _classnames["default"])(prefixCls, className, {
81
107
  'tnt-anchor': true,
82
108
  'tnt-td-anchor': tdAnchor,
83
- 'tnt-anchor-hide': isScrolling
109
+ 'tnt-anchor-show': anchorLocked
84
110
  });
85
111
  return _react["default"].createElement(_anchor["default"], Object.assign({
86
112
  ref: ref,
87
113
  className: anchorClass
88
114
  }, restProps, {
89
115
  showInkInFixed: true
90
- }), children);
116
+ }), tdAnchor ? _react["default"].createElement("div", {
117
+ key: anchorMove ? 'move' : 'static',
118
+ onMouseEnter: function onMouseEnter() {
119
+ return setAnchorMove(true);
120
+ },
121
+ onMouseLeave: function onMouseLeave() {
122
+ return setAnchorMove(false);
123
+ }
124
+ }, children, !!tdAnchor && _react["default"].createElement("div", {
125
+ className: "tnt-anchor-icon"
126
+ }, _react["default"].createElement(_icon["default"], {
127
+ onClick: function onClick() {
128
+ return setAnchorLocked(!anchorLocked);
129
+ },
130
+ type: anchorLocked ? 'close' : 'pushpin'
131
+ }))) : children);
91
132
  });
92
133
  });
93
134
  // 新增 AnchorLink 组件
@@ -1 +1 @@
1
- {"version":3,"file":"anchor.js","sourceRoot":"","sources":["../../src/anchor/anchor.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,aAAa,MAAM,8BAA8B,CAAA;AAExD,cAAc,gBAAgB,CAAA;AAM9B,mBAAmB;AACnB,MAAM,UAAU,GAAG,UAAU,CAAkC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC5E,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK;IAE9C,YAAY;MAFN,oBAAgC,CAAQ,CAAA;IAE9C,YAAY;IACZ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAA;QACtD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL,oBAAC,cAAc,kBAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,IAAM,SAAS,GAChD,QAAQ,CACM,CAClB,CAAA;AACH,CAAC,CAAC,CAAA;AAOF,eAAe;AACf,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,KAAK,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAA/D,qCAAuD,CAAQ,CAAA;IACrE,MAAM,WAAW,GAAG,aAAa,CAAC;QAChC,YAAY,EAAE,GAAG;QACjB,YAAY,EAAE,EAAE;QAChB,oBAAoB,EAAE,QAAQ;KAC/B,CAAC,CAAA;IACF,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;QACxC,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE;YACnD,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,QAAQ;YACzB,iBAAiB,EAAE,WAAW;SAC/B,CAAC,CAAA;QACF,OAAO,CACL,oBAAC,UAAU,kBAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,IAAM,SAAS,IAAE,cAAc,EAAE,IAAI,KAC9E,QAAQ,CACE,CACd,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAoB,CAAA;AAErB,mBAAmB;AACnB,qBAAqB;AACrB,MAAM,CAAC,IAAI,GAAG,UAAU,CAAA;AAExB,eAAe,MAAM,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-10-26 09:46:28\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-10-31 09:59:35\n * @FilePath: /tntd/packages/tntd/src/button/button.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport { ConfigConsumer } from '../config-provider'\nimport type { AnchorProps as AntdAnchorProps, AnchorLinkProps } from 'antd/es/anchor'\nimport { default as AntdAnchor } from 'antd/es/anchor'\nimport { default as AntdAnchorLink } from 'antd/es/anchor/AnchorLink'\nimport classNames from 'classnames'\nimport useScrollLock from '../_util/hooks/useScrollLock'\n\nexport * from 'antd/es/anchor'\n\nexport interface AnchorProps extends AntdAnchorProps {\n tdAnchor?: boolean\n}\n\n// 新增 AnchorLink 组件\nconst AnchorLink = forwardRef<AntdAnchorLink, AnchorLinkProps>((props, ref) => {\n const { href, children, ...restProps } = props\n\n // 简单的错误处理示例\n if (typeof href !== 'string') {\n console.error('Invalid href prop. Expected a string.')\n return null\n }\n\n return (\n <AntdAnchorLink ref={ref} href={href} {...restProps}>\n {children}\n </AntdAnchorLink>\n )\n})\n\ninterface AnchorComponent\n extends React.ForwardRefExoticComponent<AnchorProps & React.RefAttributes<AntdAnchor>> {\n Link: typeof AnchorLink\n}\n\n// 新增 Anchor 组件\nexport const Anchor = forwardRef<AntdAnchor, AnchorProps>((props, ref) => {\n const { className, children, tdAnchor = false, ...restProps } = props\n const isScrolling = useScrollLock({\n debounceTime: 400,\n throttleTime: 50,\n enableScrollObserver: tdAnchor,\n })\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('anchor')\n const anchorClass = classNames(prefixCls, className, {\n 'tnt-anchor': true,\n 'tnt-td-anchor': tdAnchor,\n 'tnt-anchor-hide': isScrolling,\n })\n return (\n <AntdAnchor ref={ref} className={anchorClass} {...restProps} showInkInFixed={true}>\n {children}\n </AntdAnchor>\n )\n }}\n </ConfigConsumer>\n )\n}) as AnchorComponent\n\n// 新增 AnchorLink 组件\n// 保留 Anchor.Link 的关系\nAnchor.Link = AnchorLink\n\nexport default Anchor\n"]}
1
+ {"version":3,"file":"anchor.js","sourceRoot":"","sources":["../../src/anchor/anchor.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEnD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,2BAA2B,CAAA;AACrE,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,cAAc,gBAAgB,CAAA;AAC9B,OAAO,IAAI,MAAM,SAAS,CAAA;AAC1B,OAAO,QAAQ,MAAM,aAAa,CAAA;AAMlC,mBAAmB;AACnB,MAAM,UAAU,GAAG,UAAU,CAAkC,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IAC5E,MAAM,EAAE,IAAI,EAAE,QAAQ,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK;IAE9C,YAAY;MAFN,oBAAgC,CAAQ,CAAA;IAE9C,YAAY;IACZ,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAA;QACtD,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL,oBAAC,cAAc,kBACb,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,IACN,SAAS,IACb,KAAK,EACH,oBAAC,QAAQ,IACP,SAAS,EAAC,MAAM,EAChB,KAAK,EAAE,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,KAAK,EACvB,iBAAiB,EAAE,CAAC,IAAa,EAAE,EAAE;gBACnC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAgB,CAAA;YAClD,CAAC,GACD,KAGH,QAAQ,CACM,CAClB,CAAA;AACH,CAAC,CAAC,CAAA;AAOF,eAAe;AACf,MAAM,CAAC,MAAM,MAAM,GAAG,UAAU,CAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,KAAK,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAA/D,qCAAuD,CAAQ,CAAA;IAErE,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IACvD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAEnD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,QAAQ,EAAE;YACZ,OAAO,GAAG,EAAE;gBACV,eAAe,CAAC,KAAK,CAAC,CAAA;gBACtB,aAAa,CAAC,KAAK,CAAC,CAAA;YACtB,CAAC,CAAA;SACF;IACH,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAA;IAEd,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;QACxC,MAAM,WAAW,GAAG,UAAU,CAAC,SAAS,EAAE,SAAS,EAAE;YACnD,YAAY,EAAE,IAAI;YAClB,eAAe,EAAE,QAAQ;YACzB,iBAAiB,EAAE,YAAY;SAChC,CAAC,CAAA;QAEF,OAAO,CACL,oBAAC,UAAU,kBAAC,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,WAAW,IAAM,SAAS,IAAE,cAAc,EAAE,IAAI,KAC9E,QAAQ,CAAC,CAAC,CAAC,CACV,6BACE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EACnC,YAAY,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,EACvC,YAAY,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC;YAEvC,QAAQ;YACR,CAAC,CAAC,QAAQ,IAAI,CACb,6BAAK,SAAS,EAAC,iBAAiB;gBAC9B,oBAAC,IAAI,IACH,OAAO,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC,YAAY,CAAC,EAC7C,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,GACxC,CACE,CACP,CACG,CACP,CAAC,CAAC,CAAC,CACF,QAAQ,CACT,CACU,CACd,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAoB,CAAA;AAErB,mBAAmB;AACnB,qBAAqB;AACrB,MAAM,CAAC,IAAI,GAAG,UAAU,CAAA;AAExB,eAAe,MAAM,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-10-26 09:46:28\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-10-31 09:59:35\n * @FilePath: /tntd/packages/tntd/src/button/button.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef, useState, useEffect } from 'react'\nimport { ConfigConsumer } from '../config-provider'\nimport type { AnchorProps as AntdAnchorProps, AnchorLinkProps } from 'antd/es/anchor'\nimport { default as AntdAnchor } from 'antd/es/anchor'\nimport { default as AntdAnchorLink } from 'antd/es/anchor/AnchorLink'\nimport classNames from 'classnames'\n\nexport * from 'antd/es/anchor'\nimport Icon from '../icon'\nimport Ellipsis from '../ellipsis'\n\nexport interface AnchorProps extends AntdAnchorProps {\n tdAnchor?: boolean\n}\n\n// 新增 AnchorLink 组件\nconst AnchorLink = forwardRef<AntdAnchorLink, AnchorLinkProps>((props, ref) => {\n const { href, children, ...restProps } = props\n\n // 简单的错误处理示例\n if (typeof href !== 'string') {\n console.error('Invalid href prop. Expected a string.')\n return null\n }\n\n return (\n <AntdAnchorLink\n ref={ref}\n href={href}\n {...restProps}\n title={\n <Ellipsis\n placement=\"left\"\n title={restProps?.title}\n getPopupContainer={(node: Element) => {\n return node.closest('.ant-affix') as HTMLElement\n }}\n />\n }\n >\n {children}\n </AntdAnchorLink>\n )\n})\n\ninterface AnchorComponent\n extends React.ForwardRefExoticComponent<AnchorProps & React.RefAttributes<AntdAnchor>> {\n Link: typeof AnchorLink\n}\n\n// 新增 Anchor 组件\nexport const Anchor = forwardRef<AntdAnchor, AnchorProps>((props, ref) => {\n const { className, children, tdAnchor = false, ...restProps } = props\n\n const [anchorLocked, setAnchorLocked] = useState(false)\n const [anchorMove, setAnchorMove] = useState(false)\n\n useEffect(() => {\n if (tdAnchor) {\n return () => {\n setAnchorLocked(false)\n setAnchorMove(false)\n }\n }\n }, [tdAnchor])\n\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('anchor')\n const anchorClass = classNames(prefixCls, className, {\n 'tnt-anchor': true,\n 'tnt-td-anchor': tdAnchor,\n 'tnt-anchor-show': anchorLocked,\n })\n\n return (\n <AntdAnchor ref={ref} className={anchorClass} {...restProps} showInkInFixed={true}>\n {tdAnchor ? (\n <div\n key={anchorMove ? 'move' : 'static'}\n onMouseEnter={() => setAnchorMove(true)}\n onMouseLeave={() => setAnchorMove(false)}\n >\n {children}\n {!!tdAnchor && (\n <div className=\"tnt-anchor-icon\">\n <Icon\n onClick={() => setAnchorLocked(!anchorLocked)}\n type={anchorLocked ? 'close' : 'pushpin'}\n />\n </div>\n )}\n </div>\n ) : (\n children\n )}\n </AntdAnchor>\n )\n }}\n </ConfigConsumer>\n )\n}) as AnchorComponent\n\n// 新增 AnchorLink 组件\n// 保留 Anchor.Link 的关系\nAnchor.Link = AnchorLink\n\nexport default Anchor\n"]}
@@ -0,0 +1,114 @@
1
+ // 使用 Less 变量管理层级参数
2
+ @anchor-level: 10;
3
+ @anchor-indent-step: 12px; // 每级递进步长
4
+ @anchor-active-line-left: 2px; // 激活线基准位置
5
+
6
+
7
+ .tnt-td-anchor{
8
+ background: #fff;
9
+ border-radius: calc(@border-radius-base * 2);
10
+ box-shadow: 0 0 20px 0 rgba(0, 0, 0, .05);
11
+ padding: 16px 16px 8px 16px;
12
+ right:0;
13
+ position: absolute;
14
+
15
+ .ant-anchor-ink-ball {
16
+ display: none !important;
17
+ }
18
+ .ant-anchor-link {
19
+ padding: 0 0 0 8px;
20
+ position: relative;
21
+ max-width: calc(220px - 8px);
22
+
23
+ // 通用激活线样式
24
+ &-active::before {
25
+ content: " ";
26
+ position: absolute;
27
+ left: -@anchor-active-line-left;
28
+ top: 0;
29
+ bottom: 0;
30
+ height: 24px;
31
+ width: @anchor-active-line-left;
32
+ background: @primary-color;
33
+ transition: top 0.3s ease-in-out;
34
+ }
35
+
36
+ // 文字样式统一管理
37
+ &-title {
38
+ color: @text-color-secondary;
39
+ transition: none !important;
40
+ margin-bottom: 0;
41
+ padding-top: 4px;
42
+ padding-bottom: 4px;
43
+ margin-bottom: 10px;
44
+ // 激活状态文字样式
45
+ &.ant-anchor-link-title-active{
46
+ color: @text-color;
47
+ font-weight: 600;
48
+ transition: none !important;
49
+ }
50
+ }
51
+
52
+ // 层级递进生成器
53
+ .level-indent(@level) when (@level < @anchor-level) { // 生成最多10级
54
+ .ant-anchor-link {
55
+ padding-left: @anchor-indent-step;
56
+ max-width: calc(220px - @anchor-indent-step * @level - 8px);
57
+ min-width: 0;
58
+
59
+ // 激活线递进算法
60
+ &.ant-anchor-link-active::before {
61
+ left: calc(-@anchor-active-line-left - @anchor-indent-step * @level);
62
+ }
63
+ // 递归生成下一级
64
+ .level-indent(@level + 1);
65
+ }
66
+ }
67
+
68
+ // 初始化递归生成
69
+ .level-indent(1);
70
+ }
71
+ }
72
+
73
+ .tnt-td-anchor-styles() {
74
+ max-width: 278px; // 220+24+32+2
75
+ .ant-anchor {
76
+ padding-right: 24px;
77
+ }
78
+ .tnt-anchor-icon {
79
+ opacity: 1;
80
+ transition: all 0.1s linear 0.1s;
81
+ }
82
+ }
83
+
84
+ .ant-affix:hover .tnt-td-anchor {
85
+ .tnt-td-anchor-styles();
86
+ }
87
+
88
+ .tnt-anchor.tnt-td-anchor {
89
+ overflow: hidden;
90
+ text-overflow: ellipsis;
91
+ white-space: nowrap;
92
+ max-width: 32px;
93
+ transition: all 0.1s linear;
94
+ &.tnt-anchor-show,
95
+ &:hover {
96
+ .tnt-td-anchor-styles();
97
+ }
98
+ .ant-anchor{
99
+ overflow: hidden;
100
+ }
101
+ .tnt-anchor-icon{
102
+ opacity: 0;
103
+ position: absolute;
104
+ right: 0;
105
+ top: 2px;
106
+ height: 18px;
107
+ width: 18px;
108
+ cursor: pointer;
109
+ transition: all 0.1s linear;
110
+ .tntd-anticon{
111
+ font-size: 18px;
112
+ }
113
+ }
114
+ }
@@ -1,24 +1,22 @@
1
1
  "use strict";
2
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
3
  Object.defineProperty(exports, "__esModule", {
5
4
  value: true
6
5
  });
7
6
  var _exportNames = {};
8
7
  exports["default"] = void 0;
9
- var _anchor = _interopRequireWildcard(require("antd/es/anchor"));
10
- Object.keys(_anchor).forEach(function (key) {
8
+ require("./style");
9
+ require("./anchor.less");
10
+ var _anchor2 = require("./anchor");
11
+ Object.keys(_anchor2).forEach(function (key) {
11
12
  if (key === "default" || key === "__esModule") return;
12
13
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
13
- if (key in exports && exports[key] === _anchor[key]) return;
14
+ if (key in exports && exports[key] === _anchor2[key]) return;
14
15
  Object.defineProperty(exports, key, {
15
16
  enumerable: true,
16
17
  get: function get() {
17
- return _anchor[key];
18
+ return _anchor2[key];
18
19
  }
19
20
  });
20
21
  });
21
- require("./style");
22
- 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); }
23
- 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; }
24
- var _default = exports["default"] = _anchor["default"];
22
+ var _default = exports["default"] = _anchor2.Anchor;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/anchor/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,gBAAgB,CAAA;AAEnC,OAAO,SAAS,CAAA;AAEhB,cAAc,gBAAgB,CAAA;AAE9B,eAAe,MAAM,CAAA","sourcesContent":["import Anchor from 'antd/es/anchor'\n\nimport './style'\n\nexport * from 'antd/es/anchor'\n\nexport default Anchor\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/anchor/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAA;AAChB,OAAO,eAAe,CAAA;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,cAAc,UAAU,CAAA;AACxB,eAAe,MAAM,CAAA","sourcesContent":["import './style'\nimport './anchor.less'\nimport { Anchor } from './anchor'\nexport * from './anchor'\nexport default Anchor\n"]}
@@ -26,20 +26,20 @@ var _tooltip = _interopRequireDefault(require("../tooltip"));
26
26
  require("./index.less");
27
27
  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); }
28
28
  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; }
29
- function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
30
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
29
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
30
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
31
31
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
32
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
33
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
34
- 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; }
32
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
33
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
34
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
35
35
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
36
36
  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); }
37
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
37
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
38
38
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
39
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
40
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
39
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
40
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
41
41
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
42
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
42
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
43
  var __rest = void 0 && (void 0).__rest || function (s, e) {
44
44
  var t = {};
45
45
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
@@ -110,6 +110,7 @@ function ArrayInput(_ref) {
110
110
  gutter = _ref$gutter === void 0 ? 10 : _ref$gutter,
111
111
  _ref$require = _ref.require,
112
112
  require = _ref$require === void 0 ? false : _ref$require,
113
+ errorMap = _ref.errorMap,
113
114
  _ref$deleteTip = _ref.deleteTip,
114
115
  deleteTip = _ref$deleteTip === void 0 ? '' : _ref$deleteTip,
115
116
  _ref$plusTip = _ref.plusTip,
@@ -221,9 +222,12 @@ function ArrayInput(_ref) {
221
222
  span = _a$span === void 0 ? 4 : _a$span,
222
223
  fieldChange = _a.onChange,
223
224
  other = __rest(_a, ["name", "span", "onChange"]);
225
+ var isError = errorMap ? errorMap["".concat(index, "-").concat(name)] : '';
224
226
  return _react["default"].createElement(_col["default"], {
225
227
  span: span,
226
228
  key: i
229
+ }, _react["default"].createElement("div", {
230
+ className: !isError ? 'tntd-array-input-hide-error' : ''
227
231
  }, _react["default"].cloneElement(field, Object.assign({
228
232
  value: item[name] || undefined,
229
233
  onChange: function onChange(e) {
@@ -231,7 +235,9 @@ function ArrayInput(_ref) {
231
235
  var newValue = e.target ? e.target.value : e;
232
236
  changeValue(index, name, newValue);
233
237
  }
234
- }, other)));
238
+ }, other))), isError && _react["default"].createElement("div", {
239
+ className: "ant-form-item-explain-error"
240
+ }, isError));
235
241
  }), _react["default"].createElement(_col["default"], {
236
242
  span: actionSpan
237
243
  }, _react["default"].createElement("span", {
@@ -316,15 +322,22 @@ function ArrayInput(_ref) {
316
322
  if (!(0, _react.isValidElement)(field)) {
317
323
  return field;
318
324
  }
319
- var fieldChange = field.props.onChange;
320
- return _react["default"].cloneElement(field, {
325
+ var _field$props = field.props,
326
+ name = _field$props.name,
327
+ fieldChange = _field$props.onChange;
328
+ var isError = errorMap ? errorMap["".concat(index, "-").concat(name)] : '';
329
+ return _react["default"].createElement("div", {
330
+ className: !isError ? 'tntd-array-input-hide-error' : ''
331
+ }, _react["default"].cloneElement(field, {
321
332
  value: inValue[index][name] || undefined,
322
333
  onChange: function onChange(e) {
323
334
  fieldChange && fieldChange(e, index, changeValue);
324
335
  var newValue = e.target ? e.target.value : e;
325
336
  changeValue(index, name, newValue);
326
337
  }
327
- });
338
+ }), isError && _react["default"].createElement("div", {
339
+ className: "ant-form-item-explain-error"
340
+ }, isError));
328
341
  }
329
342
  });
330
343
  }), _react["default"].createElement(Column, {
@@ -332,13 +345,12 @@ function ArrayInput(_ref) {
332
345
  dataIndex: "action",
333
346
  title: locale.action,
334
347
  width: getWidth(24 - (0, _sumBy2["default"])(fields, 'props.span') % 24),
348
+ className: "tntd-array-input-action",
335
349
  render: function render(text, row, index) {
336
350
  if (renderAction) {
337
351
  return renderAction(row, index, onDelete, onAdd);
338
352
  }
339
- return _react["default"].createElement("span", {
340
- className: "tntd-array-input-action"
341
- }, deleteTip ? _react["default"].createElement(_tooltip["default"], {
353
+ return _react["default"].createElement(_react["default"].Fragment, null, deleteTip ? _react["default"].createElement(_tooltip["default"], {
342
354
  title: deleteTip
343
355
  }, _react["default"].createElement("span", {
344
356
  onClick: function onClick() {