tntd 3.0.27-beta.4 → 3.0.28

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 (872) hide show
  1. package/CHANGELOG.json +1034 -0
  2. package/CHANGELOG.md +605 -0
  3. package/es/alert/index.js +1 -1
  4. package/es/alert/index.js.map +1 -1
  5. package/es/alert/style/index.less +0 -1
  6. package/es/array-input/index.js +12 -14
  7. package/es/array-input/index.js.map +1 -1
  8. package/es/button/button.js +3 -30
  9. package/es/button/button.js.map +1 -1
  10. package/es/button/button.less +2 -72
  11. package/es/cascader/index.js +6 -3
  12. package/es/cascader/index.js.map +1 -1
  13. package/es/checkbox/checkbox-group.js +5 -0
  14. package/es/checkbox/checkbox-group.js.map +1 -0
  15. package/es/checkbox/index.js +7 -3
  16. package/es/checkbox/index.js.map +1 -1
  17. package/es/date-picker/index.js +12 -6
  18. package/es/date-picker/index.js.map +1 -1
  19. package/es/date-picker/style/Calendar.less +1 -1
  20. package/es/descriptions/descriptions.less +0 -1
  21. package/es/descriptions/index.js +2 -2
  22. package/es/descriptions/index.js.map +1 -1
  23. package/es/drawer/drawer.js +5 -5
  24. package/es/drawer/drawer.js.map +1 -1
  25. package/es/drawer/index.less +1 -15
  26. package/es/drawer/style/drawer.less +3 -18
  27. package/es/drawer/style/index.js +1 -2
  28. package/es/drawer/style/index.js.map +1 -1
  29. package/es/form/style/index.less +0 -6
  30. package/es/handle/index.js +6 -9
  31. package/es/handle/index.js.map +1 -1
  32. package/es/handle/index.less +0 -16
  33. package/es/index.js +0 -1
  34. package/es/index.js.map +1 -1
  35. package/es/input/index.js +1 -1
  36. package/es/input/index.js.map +1 -1
  37. package/es/input/input.js +30 -21
  38. package/es/input/input.js.map +1 -1
  39. package/es/input/input.less +20 -123
  40. package/es/input-number/index.js +29 -4
  41. package/es/input-number/index.js.map +1 -1
  42. package/es/locale/en_US.js +5 -9
  43. package/es/locale/en_US.js.map +1 -1
  44. package/es/locale/zh_CN.js +3 -7
  45. package/es/locale/zh_CN.js.map +1 -1
  46. package/es/message/message.less +1 -2
  47. package/es/modal/index.js +3 -2
  48. package/es/modal/index.js.map +1 -1
  49. package/es/modal/modal.js +16 -103
  50. package/es/modal/modal.js.map +1 -1
  51. package/es/modal/style/index.js +1 -2
  52. package/es/modal/style/index.js.map +1 -1
  53. package/es/modal/style/modal.less +3 -15
  54. package/es/notification/notification.less +2 -27
  55. package/es/notification/style/index.less +0 -1
  56. package/es/page-container/index.js +1 -1
  57. package/es/page-container/index.js.map +1 -1
  58. package/es/page-container/index.less +2 -3
  59. package/es/page-loading/index.js +1 -1
  60. package/es/page-loading/index.js.map +1 -1
  61. package/es/popconfirm/index.js +2 -2
  62. package/es/popconfirm/index.js.map +1 -1
  63. package/es/popconfirm/style/index.js +1 -2
  64. package/es/popconfirm/style/index.js.map +1 -1
  65. package/es/popover/index.js +2 -2
  66. package/es/popover/index.js.map +1 -1
  67. package/es/popover/style/index.js +0 -1
  68. package/es/popover/style/index.js.map +1 -1
  69. package/es/preview-text/index.js.map +1 -1
  70. package/es/progress/index.js +2 -2
  71. package/es/progress/index.js.map +1 -1
  72. package/es/query-form/Field/Checkbox.js +1 -1
  73. package/es/query-form/Field/Checkbox.js.map +1 -1
  74. package/es/query-form/Field/SelectInput.js +4 -22
  75. package/es/query-form/Field/SelectInput.js.map +1 -1
  76. package/es/query-form/Field/fieldsMap.js +2 -2
  77. package/es/query-form/Field/fieldsMap.js.map +1 -1
  78. package/es/query-form/Field/index.js +0 -1
  79. package/es/query-form/Field/index.js.map +1 -1
  80. package/es/query-form/index.js +335 -170
  81. package/es/query-form/index.js.map +1 -1
  82. package/es/query-form/index.less +60 -26
  83. package/es/query-list-scene/List.js +3 -17
  84. package/es/query-list-scene/List.js.map +1 -1
  85. package/es/query-list-scene/QueryForm.js +14 -37
  86. package/es/query-list-scene/QueryForm.js.map +1 -1
  87. package/es/query-list-scene/index.js +1 -2
  88. package/es/query-list-scene/index.js.map +1 -1
  89. package/es/query-list-scene/index.less +7 -7
  90. package/es/radio/index.js +5 -3
  91. package/es/radio/index.js.map +1 -1
  92. package/es/radio/radio-group.js +5 -0
  93. package/es/radio/radio-group.js.map +1 -0
  94. package/es/segmented/index.less +112 -126
  95. package/es/select/index.js +1 -1
  96. package/es/select/index.js.map +1 -1
  97. package/es/select/select.js +6 -5
  98. package/es/select/select.js.map +1 -1
  99. package/es/select/select.less +9 -83
  100. package/es/select/style/index.less +4 -4
  101. package/es/spin/index.js +2 -3
  102. package/es/spin/index.js.map +1 -1
  103. package/es/steps/index.js +2 -9
  104. package/es/steps/index.js.map +1 -1
  105. package/es/steps/stepStyle/index.less +8 -173
  106. package/es/steps/stepStyle/nav.less +259 -51
  107. package/es/steps/stepStyle/small.less +5 -0
  108. package/es/steps/steps.js +27 -53
  109. package/es/steps/steps.js.map +1 -1
  110. package/es/steps/style/index.js +0 -8
  111. package/es/steps/style/index.js.map +1 -1
  112. package/es/style/themes/default.less +5 -6
  113. package/es/switch/style/index.js +1 -2
  114. package/es/switch/style/index.js.map +1 -1
  115. package/es/switch/switch.js +2 -40
  116. package/es/switch/switch.js.map +1 -1
  117. package/es/table/hooks/use-expand-fixed.js.map +1 -1
  118. package/es/table/resizableTable/index.less +18 -0
  119. package/es/table/style/index.less +21 -19
  120. package/es/table/style/size.less +12 -11
  121. package/es/table/table.js +39 -65
  122. package/es/table/table.js.map +1 -1
  123. package/es/table/table.less +6 -31
  124. package/es/table/table.stories.js +3 -3
  125. package/es/table/table.stories.js.map +1 -1
  126. package/es/table-container/index.js +2 -5
  127. package/es/table-container/index.js.map +1 -1
  128. package/es/table-container/index.less +1 -4
  129. package/es/tabs/index.js +0 -1
  130. package/es/tabs/index.js.map +1 -1
  131. package/es/tabs/style/index.js.map +1 -1
  132. package/es/tabs/style/index.less +0 -1
  133. package/es/tabs/tabs.js +3 -27
  134. package/es/tabs/tabs.js.map +1 -1
  135. package/es/tabs-container/index.js +1 -1
  136. package/es/tabs-container/index.js.map +1 -1
  137. package/es/tag/tag.less +3 -4
  138. package/es/time-picker/index.js +2 -2
  139. package/es/time-picker/index.js.map +1 -1
  140. package/es/title/index.less +45 -47
  141. package/es/tntd-action/index.js +6 -69
  142. package/es/tntd-action/index.js.map +1 -1
  143. package/es/tntd-cascader/AntdCascader/index.less +29 -35
  144. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +1 -1
  145. package/es/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
  146. package/es/tntd-select/index.js +4 -3
  147. package/es/tntd-select/index.js.map +1 -1
  148. package/es/tntd-virtual-tree/index.less +1 -2
  149. package/es/tntd-virtual-tree-select/index.less +14 -1
  150. package/es/tooltip/index.less +5 -4
  151. package/es/tooltip/style/index.js +1 -2
  152. package/es/tooltip/style/index.js.map +1 -1
  153. package/es/upload/index.js +191 -3
  154. package/es/upload/index.js.map +1 -1
  155. package/es/upload/style/index.less +1 -1
  156. package/es/upload/svg/UploadSVG.js +37 -0
  157. package/es/upload/svg/UploadSVG.js.map +1 -0
  158. package/es/upload/upload.less +108 -0
  159. package/es/utils/index.js +1 -0
  160. package/es/utils/index.js.map +1 -1
  161. package/es/utils/lang.js +2 -8
  162. package/es/utils/lang.js.map +1 -1
  163. package/lib/_util/context.js +1 -1
  164. package/lib/_util/defaultRenderEmpty.js +1 -1
  165. package/lib/_util/hooks/useFlexGapSupport.js +4 -4
  166. package/lib/_util/hooks/useForceUpdate.js +4 -4
  167. package/lib/_util/responsiveObserve.js +1 -1
  168. package/lib/_util/styleChecker.js +1 -1
  169. package/lib/actions/index.js +1 -1
  170. package/lib/alert/index.d.ts +1 -1
  171. package/lib/alert/index.d.ts.map +1 -1
  172. package/lib/alert/index.js +8 -7
  173. package/lib/alert/index.js.map +1 -1
  174. package/lib/alert/style/index.less +0 -1
  175. package/lib/array-input/index.d.ts.map +1 -1
  176. package/lib/array-input/index.js +23 -26
  177. package/lib/array-input/index.js.map +1 -1
  178. package/lib/button/button.d.ts +4 -9
  179. package/lib/button/button.d.ts.map +1 -1
  180. package/lib/button/button.js +4 -28
  181. package/lib/button/button.js.map +1 -1
  182. package/lib/button/button.less +2 -72
  183. package/lib/cascader/index.d.ts +7 -3
  184. package/lib/cascader/index.d.ts.map +1 -1
  185. package/lib/cascader/index.js +10 -5
  186. package/lib/cascader/index.js.map +1 -1
  187. package/lib/check-card/group.js +8 -8
  188. package/lib/check-card/index.js +6 -6
  189. package/lib/checkbox/checkbox-group.d.ts +8 -0
  190. package/lib/checkbox/checkbox-group.d.ts.map +1 -0
  191. package/lib/checkbox/checkbox-group.js +12 -0
  192. package/lib/checkbox/checkbox-group.js.map +1 -0
  193. package/lib/checkbox/index.d.ts +3 -3
  194. package/lib/checkbox/index.d.ts.map +1 -1
  195. package/lib/checkbox/index.js +17 -2
  196. package/lib/checkbox/index.js.map +1 -1
  197. package/lib/color-picker/ColorPicker.js +6 -6
  198. package/lib/color-picker/index.js +1 -1
  199. package/lib/columns/index.js +1 -1
  200. package/lib/config-provider/config-provider.js +1 -1
  201. package/lib/date-picker/index.d.ts +6 -2
  202. package/lib/date-picker/index.d.ts.map +1 -1
  203. package/lib/date-picker/index.js +37 -6
  204. package/lib/date-picker/index.js.map +1 -1
  205. package/lib/date-picker/style/Calendar.less +1 -1
  206. package/lib/descriptions/descriptions.js +5 -5
  207. package/lib/descriptions/descriptions.less +0 -1
  208. package/lib/descriptions/index.d.ts +1 -1
  209. package/lib/descriptions/index.d.ts.map +1 -1
  210. package/lib/descriptions/index.js +7 -7
  211. package/lib/descriptions/index.js.map +1 -1
  212. package/lib/development-login/LoginModal.js +6 -6
  213. package/lib/development-login/index.js +4 -4
  214. package/lib/drawer/drawer.d.ts +3 -3
  215. package/lib/drawer/drawer.d.ts.map +1 -1
  216. package/lib/drawer/drawer.js +7 -7
  217. package/lib/drawer/drawer.js.map +1 -1
  218. package/lib/drawer/index.less +1 -15
  219. package/lib/drawer/style/drawer.less +3 -18
  220. package/lib/drawer/style/index.d.ts +0 -1
  221. package/lib/drawer/style/index.d.ts.map +1 -1
  222. package/lib/drawer/style/index.js +1 -2
  223. package/lib/drawer/style/index.js.map +1 -1
  224. package/lib/ellipsis/Svg/CopySVG.js +1 -1
  225. package/lib/ellipsis/Svg/TickSVG.js +1 -1
  226. package/lib/ellipsis/index.js +5 -5
  227. package/lib/empty/empty.js +2 -2
  228. package/lib/empty/empty.stories.js +2 -2
  229. package/lib/exception/exception.js +1 -1
  230. package/lib/form/form.js +2 -2
  231. package/lib/form/style/index.less +0 -6
  232. package/lib/grid-v4/col.js +2 -2
  233. package/lib/grid-v4/hooks/useBreakpoint.js +1 -1
  234. package/lib/grid-v4/index.js +1 -1
  235. package/lib/grid-v4/row.js +6 -6
  236. package/lib/handle/index.d.ts.map +1 -1
  237. package/lib/handle/index.js +11 -16
  238. package/lib/handle/index.js.map +1 -1
  239. package/lib/handle/index.less +0 -16
  240. package/lib/handle-icon/index.js +11 -11
  241. package/lib/icon/IconFont.js +1 -1
  242. package/lib/icon/components/Icon.js +9 -9
  243. package/lib/icon/components/index.js +1 -1
  244. package/lib/icon/components/utils.js +3 -3
  245. package/lib/icon/index.js +7 -7
  246. package/lib/icon/twoTonePrimaryColor.js +1 -1
  247. package/lib/icon/utils.js +1 -1
  248. package/lib/img/Contain.js +1 -1
  249. package/lib/img/Cover.js +5 -5
  250. package/lib/img/index.js +5 -5
  251. package/lib/index.d.ts +0 -1
  252. package/lib/index.d.ts.map +1 -1
  253. package/lib/index.js +1 -8
  254. package/lib/index.js.map +1 -1
  255. package/lib/input/index.d.ts +1 -1
  256. package/lib/input/index.d.ts.map +1 -1
  257. package/lib/input/index.js +7 -7
  258. package/lib/input/index.js.map +1 -1
  259. package/lib/input/input.d.ts +5 -5
  260. package/lib/input/input.d.ts.map +1 -1
  261. package/lib/input/input.js +22 -13
  262. package/lib/input/input.js.map +1 -1
  263. package/lib/input/input.less +20 -123
  264. package/lib/input-number/index.d.ts +10 -4
  265. package/lib/input-number/index.d.ts.map +1 -1
  266. package/lib/input-number/index.js +32 -5
  267. package/lib/input-number/index.js.map +1 -1
  268. package/lib/label/index.js +2 -2
  269. package/lib/loading-button/index.js +5 -5
  270. package/lib/locale/default.d.ts +3 -7
  271. package/lib/locale/default.d.ts.map +1 -1
  272. package/lib/locale/default.js +1 -1
  273. package/lib/locale/en_US.d.ts +3 -7
  274. package/lib/locale/en_US.d.ts.map +1 -1
  275. package/lib/locale/en_US.js +6 -10
  276. package/lib/locale/en_US.js.map +1 -1
  277. package/lib/locale/zh_CN.d.ts +3 -7
  278. package/lib/locale/zh_CN.d.ts.map +1 -1
  279. package/lib/locale/zh_CN.js +4 -8
  280. package/lib/locale/zh_CN.js.map +1 -1
  281. package/lib/message/message.less +1 -2
  282. package/lib/modal/index.d.ts +1 -0
  283. package/lib/modal/index.d.ts.map +1 -1
  284. package/lib/modal/index.js +3 -2
  285. package/lib/modal/index.js.map +1 -1
  286. package/lib/modal/modal.d.ts.map +1 -1
  287. package/lib/modal/modal.js +16 -91
  288. package/lib/modal/modal.js.map +1 -1
  289. package/lib/modal/style/index.d.ts +0 -1
  290. package/lib/modal/style/index.d.ts.map +1 -1
  291. package/lib/modal/style/index.js +1 -2
  292. package/lib/modal/style/index.js.map +1 -1
  293. package/lib/modal/style/modal.less +3 -15
  294. package/lib/notification/assets/index.js +1 -1
  295. package/lib/notification/assets/svg-error-tip.d.ts +1 -1
  296. package/lib/notification/assets/svg-success-tip.d.ts +1 -1
  297. package/lib/notification/index.js +1 -1
  298. package/lib/notification/notification.js +1 -1
  299. package/lib/notification/notification.less +2 -27
  300. package/lib/notification/style/index.less +0 -1
  301. package/lib/page/Box.js +1 -1
  302. package/lib/page/index.js +7 -7
  303. package/lib/page-container/index.js +2 -2
  304. package/lib/page-container/index.js.map +1 -1
  305. package/lib/page-container/index.less +2 -3
  306. package/lib/page-loading/index.js +2 -2
  307. package/lib/page-loading/index.js.map +1 -1
  308. package/lib/popconfirm/index.d.ts +2 -2
  309. package/lib/popconfirm/index.d.ts.map +1 -1
  310. package/lib/popconfirm/index.js +1 -1
  311. package/lib/popconfirm/index.js.map +1 -1
  312. package/lib/popconfirm/style/index.d.ts +0 -1
  313. package/lib/popconfirm/style/index.d.ts.map +1 -1
  314. package/lib/popconfirm/style/index.js +1 -2
  315. package/lib/popconfirm/style/index.js.map +1 -1
  316. package/lib/popover/index.d.ts +2 -2
  317. package/lib/popover/index.d.ts.map +1 -1
  318. package/lib/popover/index.js +2 -2
  319. package/lib/popover/index.js.map +1 -1
  320. package/lib/popover/style/index.d.ts +0 -1
  321. package/lib/popover/style/index.d.ts.map +1 -1
  322. package/lib/popover/style/index.js +1 -2
  323. package/lib/popover/style/index.js.map +1 -1
  324. package/lib/preview-text/index.d.ts +1 -1
  325. package/lib/preview-text/index.d.ts.map +1 -1
  326. package/lib/preview-text/index.js +7 -7
  327. package/lib/preview-text/index.js.map +1 -1
  328. package/lib/progress/index.d.ts +2 -2
  329. package/lib/progress/index.d.ts.map +1 -1
  330. package/lib/progress/index.js +1 -1
  331. package/lib/progress/index.js.map +1 -1
  332. package/lib/query-form/Field/Checkbox.js +2 -2
  333. package/lib/query-form/Field/Checkbox.js.map +1 -1
  334. package/lib/query-form/Field/Select.js +6 -6
  335. package/lib/query-form/Field/SelectInput.d.ts.map +1 -1
  336. package/lib/query-form/Field/SelectInput.js +9 -21
  337. package/lib/query-form/Field/SelectInput.js.map +1 -1
  338. package/lib/query-form/Field/fieldsMap.d.ts +3 -6
  339. package/lib/query-form/Field/fieldsMap.js +3 -3
  340. package/lib/query-form/Field/fieldsMap.js.map +1 -1
  341. package/lib/query-form/Field/index.d.ts.map +1 -1
  342. package/lib/query-form/Field/index.js +10 -11
  343. package/lib/query-form/Field/index.js.map +1 -1
  344. package/lib/query-form/createActions.js +1 -1
  345. package/lib/query-form/index.d.ts +27 -19
  346. package/lib/query-form/index.d.ts.map +1 -1
  347. package/lib/query-form/index.js +361 -191
  348. package/lib/query-form/index.js.map +1 -1
  349. package/lib/query-form/index.less +60 -26
  350. package/lib/query-form/useForm.js +1 -1
  351. package/lib/query-list-scene/List.d.ts.map +1 -1
  352. package/lib/query-list-scene/List.js +16 -31
  353. package/lib/query-list-scene/List.js.map +1 -1
  354. package/lib/query-list-scene/QueryForm.d.ts +3 -5
  355. package/lib/query-list-scene/QueryForm.d.ts.map +1 -1
  356. package/lib/query-list-scene/QueryForm.js +23 -48
  357. package/lib/query-list-scene/QueryForm.js.map +1 -1
  358. package/lib/query-list-scene/QueryListScene.js +10 -10
  359. package/lib/query-list-scene/Title.js +1 -1
  360. package/lib/query-list-scene/Toolbar.js +2 -2
  361. package/lib/query-list-scene/createActions.js +1 -1
  362. package/lib/query-list-scene/index.d.ts.map +1 -1
  363. package/lib/query-list-scene/index.js +2 -3
  364. package/lib/query-list-scene/index.js.map +1 -1
  365. package/lib/query-list-scene/index.less +7 -7
  366. package/lib/query-list-scene/useActions.js +1 -1
  367. package/lib/radio/index.d.ts +2 -3
  368. package/lib/radio/index.d.ts.map +1 -1
  369. package/lib/radio/index.js +5 -2
  370. package/lib/radio/index.js.map +1 -1
  371. package/lib/radio/radio-group.d.ts +8 -0
  372. package/lib/radio/radio-group.d.ts.map +1 -0
  373. package/lib/radio/radio-group.js +12 -0
  374. package/lib/radio/radio-group.js.map +1 -0
  375. package/lib/render-empty/render-empty.js +1 -1
  376. package/lib/segmented/index.d.ts +1 -1
  377. package/lib/segmented/index.js +2 -2
  378. package/lib/segmented/index.less +112 -126
  379. package/lib/select/index.d.ts +1 -1
  380. package/lib/select/index.d.ts.map +1 -1
  381. package/lib/select/index.js +6 -6
  382. package/lib/select/index.js.map +1 -1
  383. package/lib/select/select.d.ts +1 -1
  384. package/lib/select/select.d.ts.map +1 -1
  385. package/lib/select/select.js +6 -5
  386. package/lib/select/select.js.map +1 -1
  387. package/lib/select/select.less +9 -83
  388. package/lib/select/style/index.less +4 -4
  389. package/lib/spin/index.d.ts +2 -3
  390. package/lib/spin/index.d.ts.map +1 -1
  391. package/lib/spin/index.js +6 -4
  392. package/lib/spin/index.js.map +1 -1
  393. package/lib/steps/index.d.ts +2 -1
  394. package/lib/steps/index.d.ts.map +1 -1
  395. package/lib/steps/index.js +2 -9
  396. package/lib/steps/index.js.map +1 -1
  397. package/lib/steps/stepStyle/index.less +8 -173
  398. package/lib/steps/stepStyle/nav.less +259 -51
  399. package/lib/steps/stepStyle/small.less +5 -0
  400. package/lib/steps/steps.d.ts +2 -10
  401. package/lib/steps/steps.d.ts.map +1 -1
  402. package/lib/steps/steps.js +24 -52
  403. package/lib/steps/steps.js.map +1 -1
  404. package/lib/steps/style/index.d.ts.map +1 -1
  405. package/lib/steps/style/index.js.map +1 -1
  406. package/lib/style/themes/default.less +5 -6
  407. package/lib/svg-components/illustration-403.d.ts +1 -1
  408. package/lib/svg-components/illustration-404.d.ts +1 -1
  409. package/lib/svg-components/illustration-500.d.ts +1 -1
  410. package/lib/svg-components/illustration-empty.d.ts +1 -1
  411. package/lib/svg-components/illustration-failure.d.ts +1 -1
  412. package/lib/svg-components/illustration-no-access.d.ts +1 -1
  413. package/lib/svg-components/illustration-no-chart.d.ts +1 -1
  414. package/lib/svg-components/illustration-no-result.d.ts +1 -1
  415. package/lib/svg-components/illustration-offline.d.ts +1 -1
  416. package/lib/svg-components/illustration-success.d.ts +1 -1
  417. package/lib/svg-components/index.js +1 -1
  418. package/lib/switch/style/index.d.ts +0 -1
  419. package/lib/switch/style/index.d.ts.map +1 -1
  420. package/lib/switch/style/index.js +1 -2
  421. package/lib/switch/style/index.js.map +1 -1
  422. package/lib/switch/switch.d.ts +0 -8
  423. package/lib/switch/switch.d.ts.map +1 -1
  424. package/lib/switch/switch.js +5 -40
  425. package/lib/switch/switch.js.map +1 -1
  426. package/lib/table/assets/image-loading-background.d.ts +1 -1
  427. package/lib/table/assets/image-loading.d.ts +1 -1
  428. package/lib/table/hooks/use-column-setting.js +4 -4
  429. package/lib/table/hooks/use-expand-fixed.js +6 -6
  430. package/lib/table/hooks/use-expand-fixed.js.map +1 -1
  431. package/lib/table/resizableTable/index.js +6 -6
  432. package/lib/table/resizableTable/index.less +18 -0
  433. package/lib/table/style/index.less +21 -19
  434. package/lib/table/style/size.less +12 -11
  435. package/lib/table/table-hoc.js +1 -1
  436. package/lib/table/table.d.ts +1 -2
  437. package/lib/table/table.d.ts.map +1 -1
  438. package/lib/table/table.js +41 -61
  439. package/lib/table/table.js.map +1 -1
  440. package/lib/table/table.less +6 -31
  441. package/lib/table/table.stories.js +5 -5
  442. package/lib/table/table.stories.js.map +1 -1
  443. package/lib/table/total-shower.js +1 -1
  444. package/lib/table/utils.js +1 -1
  445. package/lib/table-container/index.d.ts.map +1 -1
  446. package/lib/table-container/index.js +3 -7
  447. package/lib/table-container/index.js.map +1 -1
  448. package/lib/table-container/index.less +1 -4
  449. package/lib/tabs/index.d.ts +0 -1
  450. package/lib/tabs/index.d.ts.map +1 -1
  451. package/lib/tabs/index.js +5 -6
  452. package/lib/tabs/index.js.map +1 -1
  453. package/lib/tabs/style/index.js.map +1 -1
  454. package/lib/tabs/style/index.less +0 -1
  455. package/lib/tabs/tabs.d.ts +2 -3
  456. package/lib/tabs/tabs.d.ts.map +1 -1
  457. package/lib/tabs/tabs.js +3 -30
  458. package/lib/tabs/tabs.js.map +1 -1
  459. package/lib/tabs-container/index.js +2 -2
  460. package/lib/tabs-container/index.js.map +1 -1
  461. package/lib/tag/tag.js +2 -2
  462. package/lib/tag/tag.less +3 -4
  463. package/lib/time-picker/index.d.ts +6 -7
  464. package/lib/time-picker/index.d.ts.map +1 -1
  465. package/lib/time-picker/index.js +17 -4
  466. package/lib/time-picker/index.js.map +1 -1
  467. package/lib/title/index.js +1 -1
  468. package/lib/title/index.less +45 -47
  469. package/lib/tntd-action/index.d.ts +2 -4
  470. package/lib/tntd-action/index.d.ts.map +1 -1
  471. package/lib/tntd-action/index.js +5 -79
  472. package/lib/tntd-action/index.js.map +1 -1
  473. package/lib/tntd-cascader/AntdCascader/component/context.js +1 -1
  474. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
  475. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
  476. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
  477. package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +1 -1
  478. package/lib/tntd-cascader/AntdCascader/config/utils.js +2 -2
  479. package/lib/tntd-cascader/AntdCascader/index.js +7 -7
  480. package/lib/tntd-cascader/AntdCascader/index.less +29 -35
  481. package/lib/tntd-cascader/index.js +1 -1
  482. package/lib/tntd-cascader/rc-cascader/Cascader.js +8 -8
  483. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
  484. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +8 -8
  485. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -1
  486. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
  487. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
  488. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
  489. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
  490. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
  491. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
  492. package/lib/tntd-cascader/rc-cascader/index.js +1 -1
  493. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
  494. package/lib/tntd-form/ErrorList.js +7 -7
  495. package/lib/tntd-form/Form.js +6 -6
  496. package/lib/tntd-form/FormItem/ItemHolder.js +6 -6
  497. package/lib/tntd-form/FormItem/index.js +8 -8
  498. package/lib/tntd-form/FormItemInput.js +1 -1
  499. package/lib/tntd-form/FormItemLabel.js +2 -2
  500. package/lib/tntd-form/FormList.js +1 -1
  501. package/lib/tntd-form/context.js +1 -1
  502. package/lib/tntd-form/hooks/useDebounce.js +4 -4
  503. package/lib/tntd-form/hooks/useForm.js +5 -5
  504. package/lib/tntd-form/hooks/useFormItemStatus.js +1 -1
  505. package/lib/tntd-form/hooks/useFrameState.js +5 -5
  506. package/lib/tntd-form/index.js +1 -1
  507. package/lib/tntd-icon/index.js +1 -1
  508. package/lib/tntd-layout/AppList.js +6 -6
  509. package/lib/tntd-layout/Application.js +6 -6
  510. package/lib/tntd-layout/Avatar.js +2 -2
  511. package/lib/tntd-layout/CompatibleLanguage.js +6 -6
  512. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
  513. package/lib/tntd-layout/EnterpriseLayout/Language.js +6 -6
  514. package/lib/tntd-layout/EnterpriseLayout/Theme.js +6 -6
  515. package/lib/tntd-layout/EnterpriseLayout/index.js +1 -1
  516. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
  517. package/lib/tntd-layout/GlobalNavigation/index.js +9 -9
  518. package/lib/tntd-layout/Header.js +2 -2
  519. package/lib/tntd-layout/HeaderActions.js +2 -2
  520. package/lib/tntd-layout/HeaderNavs.js +6 -6
  521. package/lib/tntd-layout/HeaderTabs.js +7 -7
  522. package/lib/tntd-layout/Iconfont.js +1 -1
  523. package/lib/tntd-layout/Language.js +6 -6
  524. package/lib/tntd-layout/Layout.js +6 -6
  525. package/lib/tntd-layout/Logo.js +2 -2
  526. package/lib/tntd-layout/OrgAppList.js +6 -6
  527. package/lib/tntd-layout/SideMenu.js +6 -6
  528. package/lib/tntd-layout/Theme.js +6 -6
  529. package/lib/tntd-layout/createActions.js +1 -1
  530. package/lib/tntd-layout/images/index.js +1 -1
  531. package/lib/tntd-layout/index.js +1 -1
  532. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
  533. package/lib/tntd-layout/paaslayout/Header.js +2 -2
  534. package/lib/tntd-layout/paaslayout/Logo.js +2 -2
  535. package/lib/tntd-layout/paaslayout/SideMenu.js +6 -6
  536. package/lib/tntd-layout/paaslayout/index.js +6 -6
  537. package/lib/tntd-layout/storage.js +1 -1
  538. package/lib/tntd-modal/index.js +6 -6
  539. package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
  540. package/lib/tntd-rc-select/_util/context.js +1 -1
  541. package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
  542. package/lib/tntd-rc-select/_util/getIcons.js +1 -1
  543. package/lib/tntd-rc-select/_util/useCompactItemContext.js +2 -2
  544. package/lib/tntd-rc-select/index.js +2 -2
  545. package/lib/tntd-reference/AHref/index.js +1 -1
  546. package/lib/tntd-reference/ReferenceBatchCheck/index.js +1 -1
  547. package/lib/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
  548. package/lib/tntd-reference/ReferenceCheck/index.js +1 -1
  549. package/lib/tntd-reference/ReferenceDrawer/index.js +5 -5
  550. package/lib/tntd-reference/ReferenceInfo/index.js +1 -1
  551. package/lib/tntd-reference/index.js +1 -1
  552. package/lib/tntd-second-page/index.js +1 -1
  553. package/lib/tntd-select/DropDownWrap.js +8 -8
  554. package/lib/tntd-select/index.d.ts.map +1 -1
  555. package/lib/tntd-select/index.js +13 -13
  556. package/lib/tntd-select/index.js.map +1 -1
  557. package/lib/tntd-virtual-tree/index.js +8 -8
  558. package/lib/tntd-virtual-tree/index.less +1 -2
  559. package/lib/tntd-virtual-tree/utils.js +28 -28
  560. package/lib/tntd-virtual-tree-select/index.js +10 -10
  561. package/lib/tntd-virtual-tree-select/index.less +14 -1
  562. package/lib/tntd-virtual-tree-select/utils.js +9 -9
  563. package/lib/tooltip/index.less +5 -4
  564. package/lib/tooltip/style/index.d.ts +0 -1
  565. package/lib/tooltip/style/index.d.ts.map +1 -1
  566. package/lib/tooltip/style/index.js +1 -2
  567. package/lib/tooltip/style/index.js.map +1 -1
  568. package/lib/tooltip/tooltip.js +1 -1
  569. package/lib/upload/index.d.ts +1 -0
  570. package/lib/upload/index.d.ts.map +1 -1
  571. package/lib/upload/index.js +208 -4
  572. package/lib/upload/index.js.map +1 -1
  573. package/lib/upload/style/index.less +1 -1
  574. package/lib/{query-form-v3/Field/Composition/Select.d.ts → upload/svg/UploadSVG.d.ts} +1 -1
  575. package/lib/upload/svg/UploadSVG.d.ts.map +1 -0
  576. package/lib/upload/svg/UploadSVG.js +44 -0
  577. package/lib/upload/svg/UploadSVG.js.map +1 -0
  578. package/lib/upload/upload.less +108 -0
  579. package/lib/utils/checkAuth.js +4 -4
  580. package/lib/utils/index.d.ts +1 -0
  581. package/lib/utils/index.d.ts.map +1 -1
  582. package/lib/utils/index.js +21 -9
  583. package/lib/utils/index.js.map +1 -1
  584. package/lib/utils/lang.d.ts.map +1 -1
  585. package/lib/utils/lang.js +4 -10
  586. package/lib/utils/lang.js.map +1 -1
  587. package/lib/water-mark/index.js +5 -5
  588. package/package.json +2 -3
  589. package/es/alert/alert.js +0 -71
  590. package/es/alert/alert.js.map +0 -1
  591. package/es/alert/alert.less +0 -128
  592. package/es/cascader/cascader.js +0 -30
  593. package/es/cascader/cascader.js.map +0 -1
  594. package/es/cascader/cascader.less +0 -16
  595. package/es/checkbox/check.png +0 -0
  596. package/es/checkbox/checkbox.js +0 -48
  597. package/es/checkbox/checkbox.js.map +0 -1
  598. package/es/checkbox/checkbox.less +0 -69
  599. package/es/date-picker/DatePicker.js +0 -101
  600. package/es/date-picker/DatePicker.js.map +0 -1
  601. package/es/date-picker/index.less +0 -294
  602. package/es/input-number/inputNumber.js +0 -34
  603. package/es/input-number/inputNumber.js.map +0 -1
  604. package/es/input-number/inputNumber.less +0 -12
  605. package/es/modal/index.less +0 -36
  606. package/es/popconfirm/index.less +0 -32
  607. package/es/popconfirm/popconfirm.js +0 -43
  608. package/es/popconfirm/popconfirm.js.map +0 -1
  609. package/es/popover/index.less +0 -57
  610. package/es/popover/popover.js +0 -34
  611. package/es/popover/popover.js.map +0 -1
  612. package/es/progress/progress.js +0 -132
  613. package/es/progress/progress.js.map +0 -1
  614. package/es/progress/progress.less +0 -82
  615. package/es/query-form/Field/Composition/FieldPopover.js +0 -304
  616. package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
  617. package/es/query-form/Field/Composition/FieldPopover.less +0 -35
  618. package/es/query-form/Field/Composition/Select.js +0 -122
  619. package/es/query-form/Field/Composition/Select.js.map +0 -1
  620. package/es/query-form/Field/Composition/ValueTag.js +0 -124
  621. package/es/query-form/Field/Composition/ValueTag.js.map +0 -1
  622. package/es/query-form/Field/Composition/index.js +0 -233
  623. package/es/query-form/Field/Composition/index.js.map +0 -1
  624. package/es/query-form/Field/Composition/index.less +0 -120
  625. package/es/query-form/Field/Composition/utils.js +0 -154
  626. package/es/query-form/Field/Composition/utils.js.map +0 -1
  627. package/es/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  628. package/es/query-form-backup/Field/Composition/index.less +0 -114
  629. package/es/query-form-backup/index.less +0 -90
  630. package/es/query-form-v2/index.less +0 -133
  631. package/es/radio/radio.js +0 -57
  632. package/es/radio/radio.js.map +0 -1
  633. package/es/radio/radio.less +0 -43
  634. package/es/scroll-bar/Bar.js +0 -56
  635. package/es/scroll-bar/Bar.js.map +0 -1
  636. package/es/scroll-bar/Context.js +0 -6
  637. package/es/scroll-bar/Context.js.map +0 -1
  638. package/es/scroll-bar/ScrollBar.js +0 -86
  639. package/es/scroll-bar/ScrollBar.js.map +0 -1
  640. package/es/scroll-bar/Thumb.js +0 -105
  641. package/es/scroll-bar/Thumb.js.map +0 -1
  642. package/es/scroll-bar/index.js +0 -3
  643. package/es/scroll-bar/index.js.map +0 -1
  644. package/es/scroll-bar/scrollBar.less +0 -59
  645. package/es/scroll-bar/util.js +0 -31
  646. package/es/scroll-bar/util.js.map +0 -1
  647. package/es/spin/spin.js +0 -36
  648. package/es/spin/spin.js.map +0 -1
  649. package/es/spin/spin.less +0 -9
  650. package/es/steps/assets/background_left.svg +0 -12
  651. package/es/steps/assets/background_right.svg +0 -12
  652. package/es/steps/assets/horizontal_line.svg +0 -3
  653. package/es/steps/assets/vertical_line.svg +0 -3
  654. package/es/steps/stepStyle/icon.less +0 -51
  655. package/es/steps/stepStyle/progress-dot.less +0 -10
  656. package/es/steps/stepStyle/variables.less +0 -8
  657. package/es/steps/stepStyle/vertical.less +0 -41
  658. package/es/switch/index.less +0 -45
  659. package/es/tabs/tabs.less +0 -125
  660. package/es/time-picker/TimePicker.js +0 -36
  661. package/es/time-picker/TimePicker.js.map +0 -1
  662. package/es/time-picker/index.less +0 -38
  663. package/es/tntd-action/Action.js +0 -117
  664. package/es/tntd-action/Action.js.map +0 -1
  665. package/es/tntd-action/index.less +0 -59
  666. package/es/tntd-select/index.less +0 -7
  667. package/lib/alert/alert.d.ts +0 -12
  668. package/lib/alert/alert.d.ts.map +0 -1
  669. package/lib/alert/alert.js +0 -93
  670. package/lib/alert/alert.js.map +0 -1
  671. package/lib/alert/alert.less +0 -128
  672. package/lib/cascader/cascader.d.ts +0 -10
  673. package/lib/cascader/cascader.d.ts.map +0 -1
  674. package/lib/cascader/cascader.js +0 -49
  675. package/lib/cascader/cascader.js.map +0 -1
  676. package/lib/cascader/cascader.less +0 -16
  677. package/lib/checkbox/check.png +0 -0
  678. package/lib/checkbox/checkbox.d.ts +0 -16
  679. package/lib/checkbox/checkbox.d.ts.map +0 -1
  680. package/lib/checkbox/checkbox.js +0 -65
  681. package/lib/checkbox/checkbox.js.map +0 -1
  682. package/lib/checkbox/checkbox.less +0 -69
  683. package/lib/date-picker/DatePicker.d.ts +0 -21
  684. package/lib/date-picker/DatePicker.d.ts.map +0 -1
  685. package/lib/date-picker/DatePicker.js +0 -128
  686. package/lib/date-picker/DatePicker.js.map +0 -1
  687. package/lib/date-picker/index.less +0 -294
  688. package/lib/input-number/inputNumber.d.ts +0 -10
  689. package/lib/input-number/inputNumber.d.ts.map +0 -1
  690. package/lib/input-number/inputNumber.js +0 -54
  691. package/lib/input-number/inputNumber.js.map +0 -1
  692. package/lib/input-number/inputNumber.less +0 -12
  693. package/lib/modal/index.less +0 -36
  694. package/lib/popconfirm/index.less +0 -32
  695. package/lib/popconfirm/popconfirm.d.ts +0 -8
  696. package/lib/popconfirm/popconfirm.d.ts.map +0 -1
  697. package/lib/popconfirm/popconfirm.js +0 -61
  698. package/lib/popconfirm/popconfirm.js.map +0 -1
  699. package/lib/popover/index.less +0 -57
  700. package/lib/popover/popover.d.ts +0 -14
  701. package/lib/popover/popover.d.ts.map +0 -1
  702. package/lib/popover/popover.js +0 -55
  703. package/lib/popover/popover.js.map +0 -1
  704. package/lib/progress/progress.d.ts +0 -12
  705. package/lib/progress/progress.d.ts.map +0 -1
  706. package/lib/progress/progress.js +0 -148
  707. package/lib/progress/progress.js.map +0 -1
  708. package/lib/progress/progress.less +0 -82
  709. package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
  710. package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
  711. package/lib/query-form/Field/Composition/FieldPopover.js +0 -338
  712. package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
  713. package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
  714. package/lib/query-form/Field/Composition/Select.d.ts +0 -4
  715. package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
  716. package/lib/query-form/Field/Composition/Select.js +0 -146
  717. package/lib/query-form/Field/Composition/Select.js.map +0 -1
  718. package/lib/query-form/Field/Composition/ValueTag.d.ts +0 -12
  719. package/lib/query-form/Field/Composition/ValueTag.d.ts.map +0 -1
  720. package/lib/query-form/Field/Composition/ValueTag.js +0 -153
  721. package/lib/query-form/Field/Composition/ValueTag.js.map +0 -1
  722. package/lib/query-form/Field/Composition/index.d.ts +0 -12
  723. package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
  724. package/lib/query-form/Field/Composition/index.js +0 -277
  725. package/lib/query-form/Field/Composition/index.js.map +0 -1
  726. package/lib/query-form/Field/Composition/index.less +0 -120
  727. package/lib/query-form/Field/Composition/utils.d.ts +0 -22
  728. package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
  729. package/lib/query-form/Field/Composition/utils.js +0 -168
  730. package/lib/query-form/Field/Composition/utils.js.map +0 -1
  731. package/lib/query-form-backup/Field/Composition/FieldPopover.less +0 -35
  732. package/lib/query-form-backup/Field/Composition/index.less +0 -114
  733. package/lib/query-form-backup/index.less +0 -90
  734. package/lib/query-form-v2/Field/Checkbox.d.ts +0 -8
  735. package/lib/query-form-v2/Field/Checkbox.d.ts.map +0 -1
  736. package/lib/query-form-v2/Field/Checkbox.js +0 -28
  737. package/lib/query-form-v2/Field/Checkbox.js.map +0 -1
  738. package/lib/query-form-v2/Field/Select.d.ts +0 -4
  739. package/lib/query-form-v2/Field/Select.d.ts.map +0 -1
  740. package/lib/query-form-v2/Field/Select.js +0 -80
  741. package/lib/query-form-v2/Field/Select.js.map +0 -1
  742. package/lib/query-form-v2/Field/SelectInput.d.ts +0 -4
  743. package/lib/query-form-v2/Field/SelectInput.d.ts.map +0 -1
  744. package/lib/query-form-v2/Field/SelectInput.js +0 -88
  745. package/lib/query-form-v2/Field/SelectInput.js.map +0 -1
  746. package/lib/query-form-v2/Field/fieldsMap.d.ts +0 -24
  747. package/lib/query-form-v2/Field/fieldsMap.d.ts.map +0 -1
  748. package/lib/query-form-v2/Field/fieldsMap.js +0 -35
  749. package/lib/query-form-v2/Field/fieldsMap.js.map +0 -1
  750. package/lib/query-form-v2/Field/index.d.ts +0 -14
  751. package/lib/query-form-v2/Field/index.d.ts.map +0 -1
  752. package/lib/query-form-v2/Field/index.js +0 -146
  753. package/lib/query-form-v2/Field/index.js.map +0 -1
  754. package/lib/query-form-v2/createActions.d.ts +0 -14
  755. package/lib/query-form-v2/createActions.d.ts.map +0 -1
  756. package/lib/query-form-v2/createActions.js +0 -54
  757. package/lib/query-form-v2/createActions.js.map +0 -1
  758. package/lib/query-form-v2/index.d.ts +0 -39
  759. package/lib/query-form-v2/index.d.ts.map +0 -1
  760. package/lib/query-form-v2/index.js +0 -391
  761. package/lib/query-form-v2/index.js.map +0 -1
  762. package/lib/query-form-v2/index.less +0 -133
  763. package/lib/query-form-v2/useForm.d.ts +0 -13
  764. package/lib/query-form-v2/useForm.d.ts.map +0 -1
  765. package/lib/query-form-v2/useForm.js +0 -13
  766. package/lib/query-form-v2/useForm.js.map +0 -1
  767. package/lib/query-form-v3/Field/Checkbox.d.ts +0 -8
  768. package/lib/query-form-v3/Field/Checkbox.d.ts.map +0 -1
  769. package/lib/query-form-v3/Field/Checkbox.js +0 -28
  770. package/lib/query-form-v3/Field/Checkbox.js.map +0 -1
  771. package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts +0 -19
  772. package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts.map +0 -1
  773. package/lib/query-form-v3/Field/Composition/FieldPopover.js +0 -381
  774. package/lib/query-form-v3/Field/Composition/FieldPopover.js.map +0 -1
  775. package/lib/query-form-v3/Field/Composition/FieldPopover.less +0 -35
  776. package/lib/query-form-v3/Field/Composition/Select.d.ts.map +0 -1
  777. package/lib/query-form-v3/Field/Composition/Select.js +0 -131
  778. package/lib/query-form-v3/Field/Composition/Select.js.map +0 -1
  779. package/lib/query-form-v3/Field/Composition/index.d.ts +0 -10
  780. package/lib/query-form-v3/Field/Composition/index.d.ts.map +0 -1
  781. package/lib/query-form-v3/Field/Composition/index.js +0 -255
  782. package/lib/query-form-v3/Field/Composition/index.js.map +0 -1
  783. package/lib/query-form-v3/Field/Composition/index.less +0 -118
  784. package/lib/query-form-v3/Field/Composition/utils.d.ts +0 -22
  785. package/lib/query-form-v3/Field/Composition/utils.d.ts.map +0 -1
  786. package/lib/query-form-v3/Field/Composition/utils.js +0 -147
  787. package/lib/query-form-v3/Field/Composition/utils.js.map +0 -1
  788. package/lib/query-form-v3/Field/Select.d.ts +0 -4
  789. package/lib/query-form-v3/Field/Select.d.ts.map +0 -1
  790. package/lib/query-form-v3/Field/Select.js +0 -80
  791. package/lib/query-form-v3/Field/Select.js.map +0 -1
  792. package/lib/query-form-v3/Field/SelectInput.d.ts +0 -4
  793. package/lib/query-form-v3/Field/SelectInput.d.ts.map +0 -1
  794. package/lib/query-form-v3/Field/SelectInput.js +0 -100
  795. package/lib/query-form-v3/Field/SelectInput.js.map +0 -1
  796. package/lib/query-form-v3/Field/fieldsMap.d.ts +0 -27
  797. package/lib/query-form-v3/Field/fieldsMap.d.ts.map +0 -1
  798. package/lib/query-form-v3/Field/fieldsMap.js +0 -35
  799. package/lib/query-form-v3/Field/fieldsMap.js.map +0 -1
  800. package/lib/query-form-v3/Field/index.d.ts +0 -14
  801. package/lib/query-form-v3/Field/index.d.ts.map +0 -1
  802. package/lib/query-form-v3/Field/index.js +0 -147
  803. package/lib/query-form-v3/Field/index.js.map +0 -1
  804. package/lib/query-form-v3/createActions.d.ts +0 -14
  805. package/lib/query-form-v3/createActions.d.ts.map +0 -1
  806. package/lib/query-form-v3/createActions.js +0 -54
  807. package/lib/query-form-v3/createActions.js.map +0 -1
  808. package/lib/query-form-v3/index.d.ts +0 -27
  809. package/lib/query-form-v3/index.d.ts.map +0 -1
  810. package/lib/query-form-v3/index.js +0 -206
  811. package/lib/query-form-v3/index.js.map +0 -1
  812. package/lib/query-form-v3/index.less +0 -91
  813. package/lib/query-form-v3/useForm.d.ts +0 -13
  814. package/lib/query-form-v3/useForm.d.ts.map +0 -1
  815. package/lib/query-form-v3/useForm.js +0 -13
  816. package/lib/query-form-v3/useForm.js.map +0 -1
  817. package/lib/radio/radio.d.ts +0 -17
  818. package/lib/radio/radio.d.ts.map +0 -1
  819. package/lib/radio/radio.js +0 -75
  820. package/lib/radio/radio.js.map +0 -1
  821. package/lib/radio/radio.less +0 -43
  822. package/lib/scroll-bar/Bar.d.ts +0 -4
  823. package/lib/scroll-bar/Bar.d.ts.map +0 -1
  824. package/lib/scroll-bar/Bar.js +0 -91
  825. package/lib/scroll-bar/Bar.js.map +0 -1
  826. package/lib/scroll-bar/Context.d.ts +0 -7
  827. package/lib/scroll-bar/Context.d.ts.map +0 -1
  828. package/lib/scroll-bar/Context.js +0 -13
  829. package/lib/scroll-bar/Context.js.map +0 -1
  830. package/lib/scroll-bar/ScrollBar.d.ts +0 -4
  831. package/lib/scroll-bar/ScrollBar.d.ts.map +0 -1
  832. package/lib/scroll-bar/ScrollBar.js +0 -97
  833. package/lib/scroll-bar/ScrollBar.js.map +0 -1
  834. package/lib/scroll-bar/Thumb.d.ts +0 -3
  835. package/lib/scroll-bar/Thumb.d.ts.map +0 -1
  836. package/lib/scroll-bar/Thumb.js +0 -125
  837. package/lib/scroll-bar/Thumb.js.map +0 -1
  838. package/lib/scroll-bar/index.d.ts +0 -3
  839. package/lib/scroll-bar/index.d.ts.map +0 -1
  840. package/lib/scroll-bar/index.js +0 -10
  841. package/lib/scroll-bar/index.js.map +0 -1
  842. package/lib/scroll-bar/scrollBar.less +0 -59
  843. package/lib/scroll-bar/util.d.ts +0 -40
  844. package/lib/scroll-bar/util.d.ts.map +0 -1
  845. package/lib/scroll-bar/util.js +0 -39
  846. package/lib/scroll-bar/util.js.map +0 -1
  847. package/lib/spin/spin.d.ts +0 -9
  848. package/lib/spin/spin.d.ts.map +0 -1
  849. package/lib/spin/spin.js +0 -44
  850. package/lib/spin/spin.js.map +0 -1
  851. package/lib/spin/spin.less +0 -9
  852. package/lib/steps/assets/background_left.svg +0 -12
  853. package/lib/steps/assets/background_right.svg +0 -12
  854. package/lib/steps/assets/horizontal_line.svg +0 -3
  855. package/lib/steps/assets/vertical_line.svg +0 -3
  856. package/lib/steps/stepStyle/icon.less +0 -51
  857. package/lib/steps/stepStyle/progress-dot.less +0 -10
  858. package/lib/steps/stepStyle/variables.less +0 -8
  859. package/lib/steps/stepStyle/vertical.less +0 -41
  860. package/lib/switch/index.less +0 -45
  861. package/lib/tabs/tabs.less +0 -125
  862. package/lib/time-picker/TimePicker.d.ts +0 -9
  863. package/lib/time-picker/TimePicker.d.ts.map +0 -1
  864. package/lib/time-picker/TimePicker.js +0 -55
  865. package/lib/time-picker/TimePicker.js.map +0 -1
  866. package/lib/time-picker/index.less +0 -38
  867. package/lib/tntd-action/Action.d.ts +0 -6
  868. package/lib/tntd-action/Action.d.ts.map +0 -1
  869. package/lib/tntd-action/Action.js +0 -141
  870. package/lib/tntd-action/Action.js.map +0 -1
  871. package/lib/tntd-action/index.less +0 -59
  872. package/lib/tntd-select/index.less +0 -7
@@ -1,154 +0,0 @@
1
- import _flatten from "lodash/flatten";
2
- import _isString from "lodash/isString";
3
- import _isArray from "lodash/isArray";
4
- import React from 'react';
5
- import moment from 'moment';
6
- export function highlightSubstring(str, substring) {
7
- const highlighted = `<span class="tnt-highlight">${substring}</span>`;
8
- return str.replace(new RegExp(substring, 'g'), highlighted);
9
- }
10
- export function getLabelByValue({
11
- value,
12
- options,
13
- fieldNames = {
14
- label: 'label',
15
- value: 'value'
16
- }
17
- }) {
18
- const getLabel = value => {
19
- const target = options === null || options === void 0 ? void 0 : options.find(item => {
20
- const valueKey = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value;
21
- const itemValue = item instanceof Object ? item[valueKey] : item;
22
- return itemValue === value;
23
- });
24
- if (target) {
25
- return target instanceof Object ? target === null || target === void 0 ? void 0 : target[fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label] : target;
26
- } else {
27
- return value;
28
- }
29
- };
30
- if (_isArray(value)) {
31
- return value.map(getLabel).join(' | ');
32
- } else {
33
- return getLabel(value);
34
- }
35
- }
36
- export function formatLabel(reactDom) {
37
- return _flatten(React.Children.map(reactDom.props.children, child => {
38
- if (React.isValidElement(child)) {
39
- return formatLabel(child);
40
- } else if (_isString(child)) {
41
- return child;
42
- }
43
- return '';
44
- })).join('');
45
- }
46
- export function parseObjectToArray(value, data) {
47
- var _a, _b;
48
- return (_b = (_a = Object.keys(value || {})) === null || _a === void 0 ? void 0 : _a.map(key => {
49
- var _a;
50
- const target = data === null || data === void 0 ? void 0 : data.find(item => {
51
- var _a;
52
- return ((_a = item.props) === null || _a === void 0 ? void 0 : _a.name) === key;
53
- });
54
- if (!target) return null;
55
- const dataItem = (target === null || target === void 0 ? void 0 : target.props) || {};
56
- const {
57
- type,
58
- component,
59
- setLabel,
60
- props: fieldProps
61
- } = dataItem || {};
62
- const {
63
- options
64
- } = fieldProps || {};
65
- if (!type && component) {
66
- if (!setLabel) {
67
- console.error('自定义组件需要传入setLabel()方法');
68
- }
69
- } else if (options) {
70
- if (type === 'selectInput') {
71
- const selectKey = (_a = Object.keys(value[key] || {})) === null || _a === void 0 ? void 0 : _a[0];
72
- if (!selectKey) {
73
- // 17. inputSelect组件,初始值{},展示undefined:undefined
74
- return false;
75
- }
76
- return {
77
- key,
78
- value: value[key],
79
- closable: true
80
- };
81
- }
82
- }
83
- return {
84
- key,
85
- value: value[key],
86
- closable: true
87
- };
88
- })) === null || _b === void 0 ? void 0 : _b.filter(item => !!item);
89
- }
90
- export function parseArrayToObject(value) {
91
- return value === null || value === void 0 ? void 0 : value.reduce((acc, v) => {
92
- acc[v.key] = v.value;
93
- return acc;
94
- }, {});
95
- }
96
- export function getLabel({
97
- key,
98
- value
99
- }, data, locale) {
100
- var _a, _b, _c;
101
- const target = data === null || data === void 0 ? void 0 : data.find(item => {
102
- var _a;
103
- return ((_a = item.props) === null || _a === void 0 ? void 0 : _a.name) === key;
104
- });
105
- if (!target) return null;
106
- const dataItem = (target === null || target === void 0 ? void 0 : target.props) || {};
107
- const {
108
- type,
109
- setLabel,
110
- props: fieldProps,
111
- propsTitle,
112
- title,
113
- name
114
- } = dataItem || {};
115
- const _propsTitle = propsTitle || title || name;
116
- const {
117
- options,
118
- format
119
- } = fieldProps || {};
120
- let labelValue = value;
121
- if (setLabel) {
122
- // setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制
123
- labelValue = setLabel(value);
124
- } else if (options) {
125
- if (type === 'selectInput') {
126
- const selectKey = (_a = Object.keys(value || {})) === null || _a === void 0 ? void 0 : _a[0];
127
- if (!selectKey) {
128
- // 17. inputSelect组件,初始值{},展示undefined:undefined
129
- return false;
130
- }
131
- const inputValue = value[selectKey];
132
- const selectLabel = (_b = options === null || options === void 0 ? void 0 : options.find(v => v.value === selectKey)) === null || _b === void 0 ? void 0 : _b.label;
133
- return selectLabel + ':' + inputValue;
134
- }
135
- labelValue = getLabelByValue({
136
- value,
137
- options,
138
- fieldNames: ((_c = dataItem === null || dataItem === void 0 ? void 0 : dataItem.props) === null || _c === void 0 ? void 0 : _c.fieldNames) || {
139
- label: 'label',
140
- value: 'value'
141
- }
142
- });
143
- } else if (type === 'checkbox') {
144
- labelValue = value ? locale.yes : locale.no;
145
- } else if (type === 'dateRange' && format) {
146
- if (value === null || value === void 0 ? void 0 : value.length) {
147
- labelValue = [moment(value === null || value === void 0 ? void 0 : value[0]).format(format), moment(value === null || value === void 0 ? void 0 : value[1]).format(format)].join('~');
148
- }
149
- } else if (type === 'date' && format) {
150
- labelValue = value ? moment(value).format(format) : undefined;
151
- }
152
- return _propsTitle + ':' + (labelValue === undefined ? '' : labelValue);
153
- }
154
- export const isInput = type => ['input', 'string', 'search', 'number', 'inputNumber'].includes(type);
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/query-form/Field/Composition/utils.js"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACnD,OAAO,MAAM,MAAM,QAAQ,CAAA;AAE3B,MAAM,UAAU,kBAAkB,CAAC,GAAG,EAAE,SAAS;IAC/C,MAAM,WAAW,GAAG,+BAA+B,SAAS,SAAS,CAAA;IACrE,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE,WAAW,CAAC,CAAA;AAC7D,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,EAC9B,KAAK,EACL,OAAO,EACP,UAAU,GAAG;IACX,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACf,GACF;IACC,MAAM,QAAQ,GAAG,CAAC,KAAK,EAAE,EAAE;QACzB,MAAM,MAAM,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;YACpC,MAAM,Q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AAU,GAAG,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;KAC9D;IACD,OAAO,WAAW,GAAG,GAAG,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;AACzE,CAAC;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,IAAI,EAAE,EAAE,CAC9B,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA","sourcesContent":["import React from 'react'\nimport { isArray, isString, flatten } from 'lodash'\nimport moment from 'moment'\n\nexport function highlightSubstring(str, substring) {\n const highlighted = `<span class=\"tnt-highlight\">${substring}</span>`\n return str.replace(new RegExp(substring, 'g'), highlighted)\n}\n\nexport function getLabelByValue({\n value,\n options,\n fieldNames = {\n label: 'label',\n value: 'value',\n },\n}) {\n const getLabel = (value) => {\n const target = options?.find((item) => {\n const valueKey = fieldNames?.value\n const itemValue = item instanceof Object ? item[valueKey] : item\n return itemValue === value\n })\n if (target) {\n return target instanceof Object ? target?.[fieldNames?.label] : target\n } else {\n return value\n }\n }\n if (isArray(value)) {\n return value.map(getLabel).join(' | ')\n } else {\n return getLabel(value)\n }\n}\n\nexport function formatLabel(reactDom) {\n return flatten(\n React.Children.map(reactDom.props.children, (child) => {\n if (React.isValidElement(child)) {\n return formatLabel(child)\n } else if (isString(child)) {\n return child\n }\n return ''\n })\n ).join('')\n}\n\nexport function parseObjectToArray(value, data) {\n return Object.keys(value || {})\n ?.map((key) => {\n const target = data?.find((item) => item.props?.name === key)\n if (!target) return null\n const dataItem = target?.props || {}\n const { type, component, setLabel, props: fieldProps } = dataItem || {}\n const { options } = fieldProps || {}\n\n if (!type && component) {\n if (!setLabel) {\n console.error('自定义组件需要传入setLabel()方法')\n }\n } else if (options) {\n if (type === 'selectInput') {\n const selectKey = Object.keys(value[key] || {})?.[0]\n if (!selectKey) {\n // 17. inputSelect组件,初始值{},展示undefined:undefined\n return false\n }\n return {\n key,\n value: value[key],\n closable: true,\n }\n }\n }\n return {\n key,\n value: value[key],\n closable: true,\n }\n })\n ?.filter((item) => !!item)\n}\n\nexport function parseArrayToObject(value) {\n return value?.reduce((acc, v) => {\n acc[v.key] = v.value\n return acc\n }, {})\n}\n\nexport function getLabel({ key, value }, data, locale) {\n const target = data?.find((item) => item.props?.name === key)\n if (!target) return null\n const dataItem = target?.props || {}\n const { type, setLabel, props: fieldProps, propsTitle, title, name } = dataItem || {}\n const _propsTitle = propsTitle || title || name\n const { options, format } = fieldProps || {}\n let labelValue = value\n if (setLabel) {\n // setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制\n labelValue = setLabel(value)\n } else if (options) {\n if (type === 'selectInput') {\n const selectKey = Object.keys(value || {})?.[0]\n if (!selectKey) {\n // 17. inputSelect组件,初始值{},展示undefined:undefined\n return false\n }\n const inputValue = value[selectKey]\n const selectLabel = options?.find((v) => v.value === selectKey)?.label\n return selectLabel + ':' + inputValue\n }\n labelValue = getLabelByValue({\n value,\n options,\n fieldNames: dataItem?.props?.fieldNames || {\n label: 'label',\n value: 'value',\n },\n })\n } else if (type === 'checkbox') {\n labelValue = value ? locale.yes : locale.no\n } else if (type === 'dateRange' && format) {\n if (value?.length) {\n labelValue = [moment(value?.[0]).format(format), moment(value?.[1]).format(format)].join('~')\n }\n } else if (type === 'date' && format) {\n labelValue = value ? moment(value).format(format) : undefined\n }\n return _propsTitle + ':' + (labelValue === undefined ? '' : labelValue)\n}\n\nexport const isInput = (type) =>\n ['input', 'string', 'search', 'number', 'inputNumber'].includes(type)\n"]}
@@ -1,35 +0,0 @@
1
- .tnt-queryform-field-popover {
2
- min-width: 280px;
3
- .ant-popover-inner-content {
4
- padding: @padding-sm 0;
5
- }
6
- .ant-calendar-picker {
7
- margin: @margin-xxs 0;
8
- }
9
- label {
10
- color: tint(@text-color, 50%);
11
- margin-bottom: @margin-xs;
12
- display: block;
13
- padding: 0 @padding-sm;
14
- }
15
- .ant-select-dropdown-menu {
16
- &-item {
17
- padding: @padding-xxs @padding-sm;
18
- &:hover {
19
- background-color: @bg-color-quaternary;
20
- }
21
- }
22
- }
23
- &-content {
24
- padding: @padding-xxs @padding-sm;
25
- }
26
- .ant-select-selected-icon {
27
- position: absolute;
28
- right: @margin-base;
29
- top: @margin-xs;
30
- color: @blue-6;
31
- }
32
- .tnt-highlight {
33
- color: @blue-6;
34
- }
35
- }
@@ -1,114 +0,0 @@
1
- @import '../../../style/themes/index';
2
- @import '../../../style/mixins/index';
3
- @import '../../../input/style/mixin';
4
-
5
- .tnt-queryform-composition-input {
6
- // width: 100%;
7
- max-height: 162px;
8
- overflow-x: hidden;
9
- cursor: text;
10
- padding: 2px @padding-xl;
11
- position: relative;
12
- box-sizing: border-box;
13
- background-color: @select-background;
14
- border: @border-width-base @border-style-base @select-border-color;
15
- border-top-width: calc(@border-width-base + 0.02px);
16
- border-radius: @border-radius-base;
17
- outline: none;
18
- transition: all 0.3s @ease-in-out;
19
- user-select: none;
20
- margin-bottom: @margin-sm;
21
-
22
- &-prefix {
23
- position: absolute;
24
- left: @padding-sm;
25
- top: 50%;
26
- transform: translateY(-50%);
27
- i.anticon {
28
- color: tint(@bg-color-spotilight, 50%);
29
- }
30
- }
31
-
32
- &-width {
33
- height: 0;
34
- opacity: 0;
35
- width: auto;
36
- position: absolute;
37
- max-width: 100%;
38
- }
39
-
40
- &-items {
41
- float: left;
42
- padding: 0;
43
- list-style: none;
44
- margin: 0;
45
- width: 100%;
46
- &-item {
47
- padding: 3px 0;
48
- }
49
- li {
50
- float: left;
51
- line-height: 1;
52
- }
53
- &-input {
54
- .inputClass {
55
- background: none;
56
- border: none !important;
57
- outline: none;
58
- box-shadow: none !important;
59
- width: 150px !important;
60
- height: 26px;
61
- line-height: 26px;
62
- padding: 0;
63
- input {
64
- border: none !important;
65
- outline: none !important;
66
- box-shadow: none !important;
67
- height: 26px;
68
- line-height: 26px;
69
- padding: 0;
70
- }
71
- textarea {
72
- padding: 0;
73
- }
74
- }
75
- .inputClass-with-placeholder {
76
- min-width: 398px !important;
77
- }
78
- }
79
- }
80
- &-clear {
81
- position: absolute;
82
- right: @margin-sm;
83
- top: 50%;
84
- transform: translateY(-50%);
85
- display: none;
86
- i.anticon {
87
- color: tint(@bg-color-spotilight, 50%);
88
- }
89
- &:hover {
90
- .anticon {
91
- color: @text-color-secondary !important;
92
- }
93
- }
94
- }
95
- &:hover {
96
- border-color: @blue-6;
97
- outline: 0;
98
- .tnt-queryform-composition-input-clear {
99
- display: block;
100
- }
101
- // box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
102
- }
103
- &:focus,
104
- &:active {
105
- border-color: @blue-5;
106
- outline: 0;
107
- // box-shadow: 0 0 0 2px rgb(18 107 251 / 20%);
108
- }
109
- .ant-tag {
110
- padding: 0 @padding-xs;
111
- border: none;
112
- background: @fill-color-tertiary;
113
- }
114
- }
@@ -1,90 +0,0 @@
1
- .tnt-queryform {
2
- &-top {
3
- display: flex;
4
- &-body {
5
- flex: 1;
6
- .ant-btn {
7
- margin-right: 10px;
8
- }
9
- }
10
- }
11
-
12
- &-extra {
13
- & > * {
14
- margin-left: 10px;
15
- }
16
- }
17
-
18
- .ant-form {
19
- // margin-bottom: @margin-sm;
20
- &.ant-form-inline {
21
- flex-wrap: unset;
22
- position: relative;
23
- }
24
-
25
- &.ant-form-inline .ant-form-item {
26
- margin-right: 10px;
27
- margin-bottom: @margin-sm;
28
- display: inline-block;
29
- }
30
-
31
- .ant-form-item-control {
32
- // min-width: 160px;
33
- line-height: unset;
34
- .ant-calendar-picker-input {
35
- padding: 0 @padding-sm;
36
- }
37
- .ant-form-item-children {
38
- & > .ant-input,
39
- & > .ant-input-affix-wrapper {
40
- width: 160px;
41
- // width: 200px;
42
- }
43
- }
44
- }
45
- }
46
-
47
- &-drawer {
48
- margin-top: @margin-xxl;
49
- &.large-size {
50
- margin-top: 60px;
51
- }
52
-
53
- &.ant-drawer.ant-drawer-open {
54
- .ant-drawer-mask {
55
- opacity: 0;
56
- background: unset;
57
- }
58
- }
59
- .ant-drawer-body {
60
- .ant-form-item {
61
- display: block;
62
- margin-right: 0;
63
- margin-bottom: @margin-md;
64
- width: 100%;
65
- }
66
- .ant-form-item-label {
67
- display: block;
68
- text-align: left;
69
- line-height: 22px;
70
- margin-bottom: 10px;
71
- }
72
- .ant-form-item-control-wrapper,
73
- .ant-form-item-control,
74
- .ant-calendar-picker,
75
- .ant-input {
76
- min-width: 100%;
77
- width: 100%;
78
- }
79
-
80
- & > .ant-btn {
81
- display: block;
82
- width: 100%;
83
- margin-bottom: 10px;
84
- &.ant-btn-primary {
85
- margin-top: @margin-md;
86
- }
87
- }
88
- }
89
- }
90
- }
@@ -1,133 +0,0 @@
1
- .tnt-queryform {
2
- display: flex;
3
-
4
- &-extra {
5
- line-height: 32px;
6
- margin-left: 12px;
7
- & > * {
8
- margin-left: 8px;
9
- }
10
- }
11
-
12
- &-actions {
13
- align-items: center;
14
- display: inline-block;
15
- height: 32px;
16
- line-height: 32px;
17
-
18
- & > *:not(.expand-link) {
19
- margin-right: 10px;
20
- }
21
- & > .expand-link {
22
- padding: 0;
23
- margin-right: 0;
24
- }
25
- & > .ant-badge {
26
- .tnt-icon {
27
- margin-right: 8px;
28
- }
29
- }
30
- }
31
-
32
- .ant-form {
33
- display: inline-block;
34
- margin-bottom: 12px;
35
- display: flex;
36
- flex: 1;
37
- &.ant-form-inline {
38
- flex-wrap: unset;
39
- }
40
-
41
- & > div:nth-child(1) {
42
- height: 32px;
43
- overflow: hidden;
44
- .ant-form-item-label {
45
- label {
46
- // bottom: 4px;
47
- }
48
- }
49
- }
50
-
51
- &.expanded {
52
- & > div:nth-child(1) {
53
- height: auto !important;
54
- }
55
- }
56
-
57
- &.showMore {
58
- & > div:nth-child(1) {
59
- .ant-form-item {
60
- margin-bottom: 12px;
61
- }
62
- }
63
- }
64
-
65
- & > div:nth-child(2) {
66
- display: flex;
67
- }
68
-
69
- &.ant-form-inline .ant-form-item {
70
- margin-right: 10px;
71
- display: inline-block;
72
- }
73
-
74
- .ant-form-item-control {
75
- // min-width: 160px;
76
- line-height: unset;
77
- .ant-calendar-picker-input {
78
- padding: 0 11px;
79
- }
80
- .ant-form-item-children {
81
- & > .ant-input,
82
- & > .ant-input-affix-wrapper {
83
- width: 160px;
84
- // width: 200px;
85
- }
86
- }
87
- }
88
- }
89
-
90
- &-drawer {
91
- margin-top: 50px;
92
- &.large-size {
93
- margin-top: 60px;
94
- }
95
-
96
- &.ant-drawer.ant-drawer-open {
97
- .ant-drawer-mask {
98
- opacity: 0;
99
- background: unset;
100
- }
101
- }
102
- .ant-drawer-body {
103
- .ant-form-item {
104
- display: block;
105
- margin-right: 0;
106
- margin-bottom: 20px;
107
- width: 100%;
108
- }
109
- .ant-form-item-label {
110
- display: block;
111
- text-align: left;
112
- line-height: 22px;
113
- margin-bottom: 10px;
114
- }
115
- .ant-form-item-control-wrapper,
116
- .ant-form-item-control,
117
- .ant-calendar-picker,
118
- .ant-input {
119
- min-width: 100%;
120
- width: 100%;
121
- }
122
-
123
- & > .ant-btn {
124
- display: block;
125
- width: 100%;
126
- margin-bottom: 10px;
127
- &.ant-btn-primary {
128
- margin-top: 20px;
129
- }
130
- }
131
- }
132
- }
133
- }
package/es/radio/radio.js DELETED
@@ -1,57 +0,0 @@
1
- var __rest = this && this.__rest || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
4
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
5
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
6
- }
7
- return t;
8
- };
9
- /*
10
- * @Author: 周泽飞 zefei.zhou@tongdun.net
11
- * @Date: 2024-03-14 16:55:05
12
- * @LastEditors: 周泽飞 zefei.zhou@tongdun.net
13
- * @LastEditTime: 2024-03-14 17:00:03
14
- * @FilePath: /tntd/packages/tntd/src/radio/radio.tsx
15
- * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
16
- */
17
- import { ConfigConsumer } from 'antd/es/config-provider';
18
- import AntdRadio from 'antd/es/radio';
19
- import classNames from 'classnames';
20
- import React, { forwardRef } from 'react';
21
- import { connectReadonlyComponent } from '../connect';
22
- import { PreviewText } from '../preview-text';
23
- export * from 'antd/es/radio';
24
- const tntPrefixCls = 'tnt-radio';
25
- const Radio = forwardRef((_a, ref) => {
26
- var {
27
- className,
28
- children,
29
- desc
30
- } = _a,
31
- rest = __rest(_a, ["className", "children", "desc"]);
32
- return React.createElement(ConfigConsumer, null, () => {
33
- return React.createElement(AntdRadio, Object.assign({}, rest, {
34
- ref: ref,
35
- className: classNames(className, tntPrefixCls)
36
- }), children ? React.createElement("span", {
37
- className: `${tntPrefixCls}-children`
38
- }, React.createElement("span", null, children), !!desc && React.createElement("span", {
39
- className: `${tntPrefixCls}-desc`
40
- }, desc)) : undefined);
41
- });
42
- });
43
- const RadioGroup = forwardRef((_a, ref) => {
44
- var {
45
- className
46
- } = _a,
47
- rest = __rest(_a, ["className"]);
48
- return React.createElement(ConfigConsumer, null, () => {
49
- return React.createElement(AntdRadio.Group, Object.assign({}, rest, {
50
- ref: ref,
51
- className: classNames(className, `${tntPrefixCls}-group`)
52
- }));
53
- });
54
- });
55
- Radio.Group = connectReadonlyComponent(RadioGroup, PreviewText.Select);
56
- Radio.Button = AntdRadio.Button;
57
- export default Radio;
@@ -1 +0,0 @@
1
- {"version":3,"file":"radio.js","sourceRoot":"","sources":["../../src/radio/radio.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GA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,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,GAAG,YAAY,QAAQ,CAAC,IACzD,CACH,CAAA;IACH,CAAC,CACc,CAClB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,KAAK,CAAC,KAAK,GAAG,wBAAwB,CAAC,UAAU,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;AACtE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAA;AAE/B,eAAe,KAAK,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2024-03-14 16:55:05\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2024-03-14 17:00:03\n * @FilePath: /tntd/packages/tntd/src/radio/radio.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport { ConfigConsumer } from 'antd/es/config-provider'\nimport type {\n RadioGroupProps as AntdRadioGroupProps,\n RadioProps as AntdRadioProps,\n} from 'antd/es/radio'\nimport AntdRadio from 'antd/es/radio'\nimport type AntdRadioGroup from 'antd/es/radio/group'\nimport classNames from 'classnames'\nimport React, { forwardRef } from 'react'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\n\nexport * from 'antd/es/radio'\n\nexport type RadioProps = AntdRadioProps & {\n desc?: string | React.ReactNode\n}\nexport type RadioGroupProps = AntdRadioGroupProps & {\n readonly?: boolean\n}\n\ninterface RadioComponent\n extends React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<AntdRadio>> {\n Group: React.FC<RadioGroupProps>\n Button: typeof AntdRadio.Button\n}\n\nconst tntPrefixCls = 'tnt-radio'\n\nconst Radio = forwardRef<AntdRadio, RadioProps>(({ className, children, desc, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdRadio {...rest} ref={ref} className={classNames(className, tntPrefixCls)}>\n {children ? (\n <span className={`${tntPrefixCls}-children`}>\n <span>{children}</span>\n {!!desc && <span className={`${tntPrefixCls}-desc`}>{desc}</span>}\n </span>\n ) : undefined}\n </AntdRadio>\n )\n }}\n </ConfigConsumer>\n )\n}) as RadioComponent\n\nconst RadioGroup = forwardRef<AntdRadioGroup, RadioGroupProps>(({ className, ...rest }, ref) => {\n return (\n <ConfigConsumer>\n {() => {\n return (\n <AntdRadio.Group\n {...rest}\n ref={ref}\n className={classNames(className, `${tntPrefixCls}-group`)}\n />\n )\n }}\n </ConfigConsumer>\n )\n})\n\nRadio.Group = connectReadonlyComponent(RadioGroup, PreviewText.Select)\nRadio.Button = AntdRadio.Button\n\nexport default Radio\n"]}
@@ -1,43 +0,0 @@
1
- @radio-prefix-cls: ~'@{ant-prefix}-radio';
2
- @radio-inner-prefix-cls: ~'@{radio-prefix-cls}-inner';
3
-
4
- // 选中状态
5
- .tnt-radio,
6
- .tnt-radio-group {
7
- .@{radio-prefix-cls}-checked {
8
- .@{radio-inner-prefix-cls} {
9
- border-color: @radio-dot-color;
10
- background-color: @radio-dot-color;
11
- &::after {
12
- @radio-dot-size: calc(@radio-size - 12px);
13
-
14
- width: @radio-dot-size;
15
- height: @radio-dot-size;
16
- top: calc((@radio-size - @radio-dot-size) / 2 - 1px);
17
- left: calc((@radio-size - @radio-dot-size) / 2 - 1px);
18
- background-color: @radio-button-bg;
19
- }
20
- }
21
-
22
- &.@{radio-prefix-cls}-disabled {
23
- .@{radio-inner-prefix-cls} {
24
- border-color: @checkbox-check-disabled-color !important;
25
- background-color: @checkbox-check-disabled-color;
26
- }
27
- }
28
- }
29
- }
30
-
31
- .tnt-radio {
32
- & > span:nth-of-type(2) {
33
- display: inline-block;
34
- }
35
- &-children {
36
- display: flex;
37
- flex-direction: column;
38
- }
39
- &-desc {
40
- font-size: @font-size-sm;
41
- color: @bg-color-spotilight-tint-50;
42
- }
43
- }