tntd 2.0.14 → 2.0.15

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 (447) hide show
  1. package/es/array-input/index.js +6 -31
  2. package/es/array-input/style/index.js +1 -0
  3. package/es/array-input/style/index.js.map +1 -0
  4. package/es/auth-context/style/index.js +1 -0
  5. package/es/auth-context/style/index.js.map +1 -0
  6. package/es/columns/index.js +6 -12
  7. package/es/development-login/LoginModal.js +4 -10
  8. package/es/development-login/style/index.js +1 -0
  9. package/es/development-login/style/index.js.map +1 -0
  10. package/es/drawer/drawer.js +5 -9
  11. package/es/drawer/drawer.js.map +1 -1
  12. package/es/drawer/drawer.less +13 -11
  13. package/es/ellipsis/index.js +14 -25
  14. package/es/ellipsis/style/index.js +1 -0
  15. package/es/ellipsis/style/index.js.map +1 -0
  16. package/es/empty/empty.js +9 -13
  17. package/es/empty/render-empty.js +22 -0
  18. package/es/empty/render-empty.js.map +1 -0
  19. package/es/empty/style/index.js +2 -0
  20. package/es/empty/style/index.js.map +1 -0
  21. package/es/handle/index.js +14 -27
  22. package/es/handle/style/index.js +1 -0
  23. package/es/handle/style/index.js.map +1 -0
  24. package/es/icon-list/style/index.js +1 -0
  25. package/es/icon-list/style/index.js.map +1 -0
  26. package/es/img/Contain.js +13 -19
  27. package/es/img/Cover.js +13 -24
  28. package/es/img/index.js +14 -21
  29. package/es/img/style/index.js +1 -0
  30. package/es/img/style/index.js.map +1 -0
  31. package/es/index.js +0 -1
  32. package/es/loading-button/index.js +6 -13
  33. package/es/loading-button/style/index.js +1 -0
  34. package/es/loading-button/style/index.js.map +1 -0
  35. package/es/locale/default.js +0 -2
  36. package/es/locale/en_US.js +0 -2
  37. package/es/locale/zh_CN.js +0 -2
  38. package/es/modal/index.js +11 -2
  39. package/es/modal/index.js.map +1 -1
  40. package/es/modal/modal.js +44 -0
  41. package/es/modal/modal.js.map +1 -0
  42. package/es/modal/modal.less +27 -25
  43. package/es/page/Box.js +19 -28
  44. package/es/page/index.js +22 -38
  45. package/es/page/style/index.js +1 -0
  46. package/es/page/style/index.js.map +1 -0
  47. package/es/page/utils.js +0 -5
  48. package/es/prev-locale.js +0 -3
  49. package/es/query-form/Field/Checkbox.js +4 -8
  50. package/es/query-form/Field/Select.js +10 -17
  51. package/es/query-form/Field/SelectInput.js +4 -18
  52. package/es/query-form/Field/fieldsMap.js +0 -1
  53. package/es/query-form/Field/index.js +2 -11
  54. package/es/query-form/createActions.js +0 -8
  55. package/es/query-form/index.js +2 -34
  56. package/es/query-form/style/index.js +1 -0
  57. package/es/query-form/style/index.js.map +1 -0
  58. package/es/query-list-scene/List.js +18 -39
  59. package/es/query-list-scene/QueryForm.js +10 -19
  60. package/es/query-list-scene/QueryListScene.js +0 -2
  61. package/es/query-list-scene/Toolbar.js +6 -10
  62. package/es/query-list-scene/createActions.js +0 -3
  63. package/es/query-list-scene/style/index.js +1 -0
  64. package/es/query-list-scene/style/index.js.map +1 -0
  65. package/es/render-empty/render-empty.js +0 -2
  66. package/es/render-empty/style/index.js +1 -0
  67. package/es/render-empty/style/index.js.map +1 -0
  68. package/es/steps/steps.js +9 -17
  69. package/es/svg-components/illustration-403.js +0 -2
  70. package/es/svg-components/illustration-404.js +0 -2
  71. package/es/svg-components/illustration-500.js +0 -2
  72. package/es/svg-components/illustration-empty.js +0 -2
  73. package/es/svg-components/illustration-failure.js +0 -2
  74. package/es/svg-components/illustration-no-access.js +0 -2
  75. package/es/svg-components/illustration-no-chart.js +0 -2
  76. package/es/svg-components/illustration-no-result.js +0 -2
  77. package/es/svg-components/illustration-offline.js +0 -2
  78. package/es/svg-components/illustration-success.js +0 -2
  79. package/es/table/assets/image-loading-background.js +0 -2
  80. package/es/table/assets/image-loading.js +0 -2
  81. package/es/table/hooks/use-column-setting.js +0 -1
  82. package/es/table/style/index.js +2 -0
  83. package/es/table/style/index.js.map +1 -0
  84. package/es/table/table.js +14 -19
  85. package/es/table/table.stories.js +0 -2
  86. package/es/table/utils.js +2 -6
  87. package/es/title/index.js +10 -14
  88. package/es/title/style/index.js +1 -0
  89. package/es/title/style/index.js.map +1 -0
  90. package/es/tntd-cascader/AntdCascader/component/context.js +2 -4
  91. package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +0 -2
  92. package/es/tntd-cascader/AntdCascader/component/getIcons.js +6 -15
  93. package/es/tntd-cascader/AntdCascader/config/utils.js +0 -2
  94. package/es/tntd-cascader/AntdCascader/config/warning.js +4 -8
  95. package/es/tntd-cascader/AntdCascader/index.js +51 -73
  96. package/es/tntd-cascader/rc-cascader/Cascader.js +86 -113
  97. package/es/tntd-cascader/rc-cascader/OptionList/Column.js +16 -26
  98. package/es/tntd-cascader/rc-cascader/OptionList/index.js +26 -43
  99. package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -7
  100. package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +12 -41
  101. package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +4 -10
  102. package/es/tntd-cascader/rc-cascader/hooks/useEntities.js +2 -4
  103. package/es/tntd-cascader/rc-cascader/hooks/useMissingValues.js +0 -1
  104. package/es/tntd-cascader/rc-cascader/hooks/useRefFunc.js +0 -1
  105. package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +2 -7
  106. package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +8 -15
  107. package/es/tntd-cascader/rc-cascader/utils/commonUtil.js +2 -6
  108. package/es/tntd-cascader/rc-cascader/utils/treeUtil.js +2 -4
  109. package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +2 -7
  110. package/es/tntd-icon/fonts/iconfont.js +7 -12
  111. package/es/tntd-icon/index.js +5 -9
  112. package/es/tntd-icon/style/index.js +1 -0
  113. package/es/tntd-icon/style/index.js.map +1 -0
  114. package/es/tntd-layout/ActionsContext.js +2 -2
  115. package/es/tntd-layout/AppList.js +2 -14
  116. package/es/tntd-layout/Application.js +0 -4
  117. package/es/tntd-layout/Avatar.js +0 -4
  118. package/es/tntd-layout/CompatibleLanguage.js +0 -13
  119. package/es/tntd-layout/EnterpriseLayout/Avatar.js +0 -4
  120. package/es/tntd-layout/EnterpriseLayout/Language.js +0 -6
  121. package/es/tntd-layout/EnterpriseLayout/Theme.js +0 -4
  122. package/es/tntd-layout/EnterpriseLayout/index.js +2 -2
  123. package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +2 -33
  124. package/es/tntd-layout/GlobalNavigation/index.js +0 -6
  125. package/es/tntd-layout/HeaderActions.js +28 -32
  126. package/es/tntd-layout/HeaderNavs.js +6 -14
  127. package/es/tntd-layout/HeaderTabs.js +14 -35
  128. package/es/tntd-layout/Language.js +0 -6
  129. package/es/tntd-layout/Layout.js +2 -7
  130. package/es/tntd-layout/Logo.js +4 -11
  131. package/es/tntd-layout/OrgAppList.js +22 -39
  132. package/es/tntd-layout/SideMenu.js +8 -45
  133. package/es/tntd-layout/Theme.js +0 -6
  134. package/es/tntd-layout/index.js +9 -17
  135. package/es/tntd-layout/paaslayout/CompactSideMenu.js +0 -15
  136. package/es/tntd-layout/paaslayout/SideMenu.js +0 -15
  137. package/es/tntd-layout/paaslayout/index.js +4 -13
  138. package/es/tntd-layout/storage.js +2 -2
  139. package/es/tntd-layout/style/index.js +1 -0
  140. package/es/tntd-layout/style/index.js.map +1 -0
  141. package/es/tntd-modal/index.js +12 -18
  142. package/es/tntd-modal/style/index.js +1 -0
  143. package/es/tntd-modal/style/index.js.map +1 -0
  144. package/es/tntd-second-page/index.js +0 -3
  145. package/es/tntd-select/DropDownWrap.js +4 -8
  146. package/es/tntd-select/index.js +74 -118
  147. package/es/tntd-select/style/index.js +1 -0
  148. package/es/tntd-select/style/index.js.map +1 -0
  149. package/es/utils/checkAuth.js +0 -1
  150. package/es/utils/findMenuInfoByPath.js +0 -3
  151. package/es/utils/index.js +2 -11
  152. package/lib/affix/index.js +4 -10
  153. package/lib/alert/index.js +4 -10
  154. package/lib/anchor/index.js +4 -10
  155. package/lib/array-input/icon.js +1 -7
  156. package/lib/array-input/index.js +41 -91
  157. package/lib/array-input/style/index.d.ts +1 -0
  158. package/lib/array-input/style/index.d.ts.map +1 -0
  159. package/lib/array-input/style/index.js +1 -0
  160. package/lib/array-input/style/index.js.map +1 -0
  161. package/lib/auth-context/index.js +0 -3
  162. package/lib/auth-context/style/index.d.ts +1 -0
  163. package/lib/auth-context/style/index.d.ts.map +1 -0
  164. package/lib/auth-context/style/index.js +1 -0
  165. package/lib/auth-context/style/index.js.map +1 -0
  166. package/lib/auto-complete/index.js +4 -10
  167. package/lib/avatar/index.js +4 -10
  168. package/lib/back-top/index.js +4 -10
  169. package/lib/badge/index.js +4 -10
  170. package/lib/breadcrumb/index.js +4 -10
  171. package/lib/button/index.js +4 -10
  172. package/lib/calendar/index.js +4 -10
  173. package/lib/card/index.js +4 -10
  174. package/lib/carousel/index.js +4 -10
  175. package/lib/cascader/index.js +4 -10
  176. package/lib/checkbox/index.js +4 -10
  177. package/lib/col/index.js +4 -10
  178. package/lib/collapse/index.js +4 -11
  179. package/lib/columns/index.js +14 -28
  180. package/lib/comment/index.js +4 -10
  181. package/lib/config-provider/config-provider.js +0 -2
  182. package/lib/config-provider/index.js +4 -10
  183. package/lib/date-picker/index.js +4 -10
  184. package/lib/descriptions/index.js +4 -10
  185. package/lib/development-login/LoginModal.js +25 -50
  186. package/lib/development-login/index.js +11 -22
  187. package/lib/development-login/style/index.d.ts +1 -0
  188. package/lib/development-login/style/index.d.ts.map +1 -0
  189. package/lib/development-login/style/index.js +1 -0
  190. package/lib/development-login/style/index.js.map +1 -0
  191. package/lib/divider/index.js +4 -10
  192. package/lib/drawer/drawer.d.ts.map +1 -1
  193. package/lib/drawer/drawer.js +7 -17
  194. package/lib/drawer/drawer.js.map +1 -1
  195. package/lib/drawer/drawer.less +13 -11
  196. package/lib/drawer/index.js +1 -5
  197. package/lib/dropdown/index.js +4 -10
  198. package/lib/ellipsis/Svg/CopySVG.js +0 -4
  199. package/lib/ellipsis/Svg/TickSVG.js +0 -4
  200. package/lib/ellipsis/index.js +42 -73
  201. package/lib/ellipsis/style/index.d.ts +1 -0
  202. package/lib/ellipsis/style/index.d.ts.map +1 -0
  203. package/lib/ellipsis/style/index.js +1 -0
  204. package/lib/ellipsis/style/index.js.map +1 -0
  205. package/lib/empty/empty.js +14 -30
  206. package/lib/empty/empty.stories.js +3 -21
  207. package/lib/empty/index.js +1 -5
  208. package/lib/empty/render-empty.d.ts +3 -0
  209. package/lib/empty/render-empty.d.ts.map +1 -0
  210. package/lib/empty/render-empty.js +32 -0
  211. package/lib/empty/render-empty.js.map +1 -0
  212. package/lib/empty/style/index.d.ts +3 -0
  213. package/lib/empty/style/index.d.ts.map +1 -0
  214. package/lib/empty/style/index.js +4 -0
  215. package/lib/empty/style/index.js.map +1 -0
  216. package/lib/exception/exception.js +7 -14
  217. package/lib/exception/index.js +1 -4
  218. package/lib/form/index.js +4 -10
  219. package/lib/handle/index.js +19 -46
  220. package/lib/handle/style/index.d.ts +1 -0
  221. package/lib/handle/style/index.d.ts.map +1 -0
  222. package/lib/handle/style/index.js +1 -0
  223. package/lib/handle/style/index.js.map +1 -0
  224. package/lib/icon/index.js +4 -10
  225. package/lib/icon-list/style/index.d.ts +3 -0
  226. package/lib/icon-list/style/index.d.ts.map +1 -0
  227. package/lib/icon-list/style/index.js +8 -0
  228. package/lib/icon-list/style/index.js.map +1 -0
  229. package/lib/img/Contain.js +12 -23
  230. package/lib/img/Cover.js +31 -53
  231. package/lib/img/index.js +29 -47
  232. package/lib/img/style/index.d.ts +1 -0
  233. package/lib/img/style/index.d.ts.map +1 -0
  234. package/lib/img/style/index.js +1 -0
  235. package/lib/img/style/index.js.map +1 -0
  236. package/lib/index.js +100 -187
  237. package/lib/input/index.js +4 -10
  238. package/lib/input-number/index.js +4 -10
  239. package/lib/layout/index.js +4 -10
  240. package/lib/list/index.js +4 -10
  241. package/lib/loading-button/index.js +15 -32
  242. package/lib/loading-button/style/index.d.ts +1 -0
  243. package/lib/loading-button/style/index.d.ts.map +1 -0
  244. package/lib/loading-button/style/index.js +1 -0
  245. package/lib/loading-button/style/index.js.map +1 -0
  246. package/lib/locale/default.js +0 -5
  247. package/lib/locale/en_US.js +0 -4
  248. package/lib/locale/index.js +3 -6
  249. package/lib/locale/zh_CN.js +0 -4
  250. package/lib/locale-provider/index.js +4 -10
  251. package/lib/mention/index.js +4 -10
  252. package/lib/mentions/index.js +4 -10
  253. package/lib/menu/index.js +4 -10
  254. package/lib/message/index.js +4 -11
  255. package/lib/modal/index.d.ts +2 -2
  256. package/lib/modal/index.d.ts.map +1 -1
  257. package/lib/modal/index.js +13 -14
  258. package/lib/modal/index.js.map +1 -1
  259. package/lib/modal/modal.d.ts +15 -0
  260. package/lib/modal/modal.d.ts.map +1 -0
  261. package/lib/modal/modal.js +66 -0
  262. package/lib/modal/modal.js.map +1 -0
  263. package/lib/modal/modal.less +27 -25
  264. package/lib/notification/index.js +4 -10
  265. package/lib/page/Box.js +24 -37
  266. package/lib/page/index.js +37 -66
  267. package/lib/page/style/index.d.ts +1 -0
  268. package/lib/page/style/index.d.ts.map +1 -0
  269. package/lib/page/style/index.js +1 -0
  270. package/lib/page/style/index.js.map +1 -0
  271. package/lib/page/utils.js +1 -9
  272. package/lib/page-header/index.js +4 -10
  273. package/lib/pagination/index.js +4 -10
  274. package/lib/popconfirm/index.js +4 -10
  275. package/lib/popover/index.js +4 -10
  276. package/lib/prev-locale.js +1 -10
  277. package/lib/progress/index.js +4 -10
  278. package/lib/query-form/Field/Checkbox.js +2 -11
  279. package/lib/query-form/Field/Select.js +27 -45
  280. package/lib/query-form/Field/SelectInput.js +21 -46
  281. package/lib/query-form/Field/fieldsMap.js +1 -12
  282. package/lib/query-form/Field/index.js +38 -70
  283. package/lib/query-form/createActions.js +0 -7
  284. package/lib/query-form/index.js +52 -121
  285. package/lib/query-form/style/index.d.ts +1 -0
  286. package/lib/query-form/style/index.d.ts.map +1 -0
  287. package/lib/query-form/style/index.js +1 -0
  288. package/lib/query-form/style/index.js.map +1 -0
  289. package/lib/query-form/useForm.js +0 -4
  290. package/lib/query-list-scene/List.js +58 -111
  291. package/lib/query-list-scene/QueryForm.js +37 -67
  292. package/lib/query-list-scene/QueryListScene.js +21 -42
  293. package/lib/query-list-scene/Title.js +1 -5
  294. package/lib/query-list-scene/Toolbar.js +8 -15
  295. package/lib/query-list-scene/createActions.js +0 -6
  296. package/lib/query-list-scene/index.js +0 -10
  297. package/lib/query-list-scene/style/index.d.ts +1 -0
  298. package/lib/query-list-scene/style/index.d.ts.map +1 -0
  299. package/lib/query-list-scene/style/index.js +1 -0
  300. package/lib/query-list-scene/style/index.js.map +1 -0
  301. package/lib/query-list-scene/useActions.js +0 -4
  302. package/lib/radio/index.js +4 -10
  303. package/lib/rate/index.js +4 -10
  304. package/lib/render-empty/index.js +0 -2
  305. package/lib/render-empty/render-empty.js +0 -8
  306. package/lib/render-empty/style/index.d.ts +2 -0
  307. package/lib/render-empty/style/index.d.ts.map +1 -0
  308. package/lib/render-empty/style/index.js +3 -0
  309. package/lib/render-empty/style/index.js.map +1 -0
  310. package/lib/result/index.js +4 -10
  311. package/lib/row/index.js +4 -10
  312. package/lib/select/index.js +4 -10
  313. package/lib/skeleton/index.js +4 -10
  314. package/lib/slider/index.js +4 -10
  315. package/lib/spin/index.js +4 -10
  316. package/lib/statistic/index.js +4 -10
  317. package/lib/steps/index.js +1 -5
  318. package/lib/steps/steps.js +12 -29
  319. package/lib/svg-components/illustration-403.js +3 -9
  320. package/lib/svg-components/illustration-404.js +3 -9
  321. package/lib/svg-components/illustration-500.js +3 -9
  322. package/lib/svg-components/illustration-empty.js +3 -9
  323. package/lib/svg-components/illustration-failure.js +3 -9
  324. package/lib/svg-components/illustration-no-access.js +3 -9
  325. package/lib/svg-components/illustration-no-chart.js +3 -9
  326. package/lib/svg-components/illustration-no-result.js +3 -9
  327. package/lib/svg-components/illustration-offline.js +3 -9
  328. package/lib/svg-components/illustration-success.js +3 -9
  329. package/lib/svg-components/index.js +0 -11
  330. package/lib/switch/index.js +4 -10
  331. package/lib/table/assets/image-loading-background.js +3 -9
  332. package/lib/table/assets/image-loading.js +3 -9
  333. package/lib/table/context.js +0 -2
  334. package/lib/table/hooks/index.js +1 -2
  335. package/lib/table/hooks/use-column-setting.js +8 -16
  336. package/lib/table/index.js +1 -5
  337. package/lib/table/style/index.d.ts +3 -0
  338. package/lib/table/style/index.d.ts.map +1 -0
  339. package/lib/table/style/index.js +4 -0
  340. package/lib/table/style/index.js.map +1 -0
  341. package/lib/table/table.js +34 -63
  342. package/lib/table/table.stories.js +2 -11
  343. package/lib/table/utils.js +2 -11
  344. package/lib/tabs/index.js +4 -10
  345. package/lib/tag/index.js +4 -10
  346. package/lib/time-picker/index.js +4 -10
  347. package/lib/timeline/index.js +4 -10
  348. package/lib/title/index.js +10 -20
  349. package/lib/title/style/index.d.ts +1 -0
  350. package/lib/title/style/index.d.ts.map +1 -0
  351. package/lib/title/style/index.js +1 -0
  352. package/lib/title/style/index.js.map +1 -0
  353. package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +4 -11
  354. package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +3 -8
  355. package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +3 -8
  356. package/lib/tntd-cascader/AntdCascader/component/context.js +3 -9
  357. package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +4 -12
  358. package/lib/tntd-cascader/AntdCascader/component/getIcons.js +19 -37
  359. package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +8 -17
  360. package/lib/tntd-cascader/AntdCascader/config/utils.js +6 -15
  361. package/lib/tntd-cascader/AntdCascader/config/warning.js +7 -15
  362. package/lib/tntd-cascader/AntdCascader/index.js +80 -133
  363. package/lib/tntd-cascader/AntdCascader/interface.js +0 -3
  364. package/lib/tntd-cascader/index.js +0 -2
  365. package/lib/tntd-cascader/rc-cascader/Cascader.js +123 -188
  366. package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +11 -21
  367. package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +60 -88
  368. package/lib/tntd-cascader/rc-cascader/OptionList/index.js +65 -109
  369. package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +18 -33
  370. package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +56 -106
  371. package/lib/tntd-cascader/rc-cascader/context.js +3 -8
  372. package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +14 -31
  373. package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +5 -15
  374. package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +3 -11
  375. package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +3 -8
  376. package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -15
  377. package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +26 -41
  378. package/lib/tntd-cascader/rc-cascader/index.js +0 -3
  379. package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +9 -20
  380. package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +0 -8
  381. package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +7 -14
  382. package/lib/tntd-icon/fonts/iconfont.js +7 -12
  383. package/lib/tntd-icon/index.js +6 -17
  384. package/lib/tntd-icon/style/index.d.ts +1 -0
  385. package/lib/tntd-icon/style/index.d.ts.map +1 -0
  386. package/lib/tntd-icon/style/index.js +1 -0
  387. package/lib/tntd-icon/style/index.js.map +1 -0
  388. package/lib/tntd-layout/ActionsContext.js +0 -3
  389. package/lib/tntd-layout/AppList.js +30 -105
  390. package/lib/tntd-layout/Application.js +22 -84
  391. package/lib/tntd-layout/Avatar.js +18 -72
  392. package/lib/tntd-layout/CompatibleLanguage.js +32 -105
  393. package/lib/tntd-layout/EnterpriseLayout/Avatar.js +24 -80
  394. package/lib/tntd-layout/EnterpriseLayout/Language.js +14 -45
  395. package/lib/tntd-layout/EnterpriseLayout/Theme.js +16 -46
  396. package/lib/tntd-layout/EnterpriseLayout/index.js +4 -12
  397. package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +45 -174
  398. package/lib/tntd-layout/GlobalNavigation/index.js +19 -70
  399. package/lib/tntd-layout/Header.js +20 -54
  400. package/lib/tntd-layout/HeaderActions.js +33 -64
  401. package/lib/tntd-layout/HeaderNavs.js +19 -59
  402. package/lib/tntd-layout/HeaderTabs.js +43 -111
  403. package/lib/tntd-layout/Iconfont.js +0 -5
  404. package/lib/tntd-layout/Language.js +14 -45
  405. package/lib/tntd-layout/Layout.js +74 -113
  406. package/lib/tntd-layout/Logo.js +14 -41
  407. package/lib/tntd-layout/OrgAppList.js +51 -119
  408. package/lib/tntd-layout/SideMenu.js +42 -120
  409. package/lib/tntd-layout/Theme.js +19 -71
  410. package/lib/tntd-layout/createActions.js +0 -5
  411. package/lib/tntd-layout/images/index.js +0 -28
  412. package/lib/tntd-layout/index.js +21 -49
  413. package/lib/tntd-layout/paaslayout/CompactSideMenu.js +29 -81
  414. package/lib/tntd-layout/paaslayout/Header.js +14 -47
  415. package/lib/tntd-layout/paaslayout/Logo.js +2 -19
  416. package/lib/tntd-layout/paaslayout/SideMenu.js +31 -82
  417. package/lib/tntd-layout/paaslayout/index.js +62 -108
  418. package/lib/tntd-layout/storage.d.ts +1 -1
  419. package/lib/tntd-layout/storage.d.ts.map +1 -1
  420. package/lib/tntd-layout/storage.js +3 -33
  421. package/lib/tntd-layout/style/index.d.ts +1 -0
  422. package/lib/tntd-layout/style/index.d.ts.map +1 -0
  423. package/lib/tntd-layout/style/index.js +1 -0
  424. package/lib/tntd-layout/style/index.js.map +1 -0
  425. package/lib/tntd-modal/index.js +32 -51
  426. package/lib/tntd-modal/style/index.d.ts +1 -0
  427. package/lib/tntd-modal/style/index.d.ts.map +1 -0
  428. package/lib/tntd-modal/style/index.js +1 -0
  429. package/lib/tntd-modal/style/index.js.map +1 -0
  430. package/lib/tntd-second-page/index.js +14 -24
  431. package/lib/tntd-select/DropDownWrap.js +24 -45
  432. package/lib/tntd-select/index.js +117 -206
  433. package/lib/tntd-select/style/index.d.ts +1 -0
  434. package/lib/tntd-select/style/index.d.ts.map +1 -0
  435. package/lib/tntd-select/style/index.js +1 -0
  436. package/lib/tntd-select/style/index.js.map +1 -0
  437. package/lib/tooltip/index.js +4 -10
  438. package/lib/transfer/index.js +4 -10
  439. package/lib/tree/index.js +4 -10
  440. package/lib/tree-select/index.js +4 -10
  441. package/lib/typography/index.js +4 -10
  442. package/lib/upload/index.js +4 -10
  443. package/lib/utils/checkAuth.js +4 -10
  444. package/lib/utils/findMenuInfoByPath.js +1 -7
  445. package/lib/utils/index.js +13 -41
  446. package/lib/version/index.js +4 -10
  447. package/package.json +1 -1
@@ -1,89 +1,67 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _react = _interopRequireWildcard(require("react"));
11
-
12
9
  var _universalCookie = _interopRequireDefault(require("universal-cookie"));
13
-
14
10
  var _modal = _interopRequireDefault(require("../modal"));
15
-
16
11
  var _input = _interopRequireDefault(require("../input"));
17
-
18
12
  var _form = _interopRequireDefault(require("../form"));
19
-
20
13
  var _message = _interopRequireDefault(require("../message"));
21
-
22
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
-
24
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
25
-
26
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
-
28
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
-
30
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
31
-
32
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
33
-
34
- function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
35
-
15
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+ 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; }
18
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
19
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
20
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21
+ 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."); }
22
+ 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); }
23
+ 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; }
24
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
36
25
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
37
-
38
- var cookies = new _universalCookie["default"](); // 默认
39
-
26
+ var cookies = new _universalCookie["default"]();
27
+ // 默认
40
28
  var accountInfoDefault = {
41
29
  account: undefined,
42
30
  password: undefined
43
31
  };
44
-
45
32
  var _default = function _default(_ref) {
46
33
  var visible = _ref.visible,
47
- close = _ref.close,
48
- signIn = _ref.signIn;
49
-
34
+ close = _ref.close,
35
+ signIn = _ref.signIn;
50
36
  var _useState = (0, _react.useState)(false),
51
- _useState2 = _slicedToArray(_useState, 2),
52
- confirmLoading = _useState2[0],
53
- setConfirmLoading = _useState2[1]; // 如果storage中已存在,则取storage
54
-
55
-
37
+ _useState2 = _slicedToArray(_useState, 2),
38
+ confirmLoading = _useState2[0],
39
+ setConfirmLoading = _useState2[1];
40
+ // 如果storage中已存在,则取storage
56
41
  var storageAccountInfo = localStorage.getItem('accountInfo');
57
-
58
42
  if (storageAccountInfo) {
59
43
  try {
60
44
  accountInfoDefault = JSON.parse(storageAccountInfo);
61
45
  } catch (e) {}
62
46
  }
63
-
64
47
  var _useState3 = (0, _react.useState)(accountInfoDefault),
65
- _useState4 = _slicedToArray(_useState3, 2),
66
- accountInfo = _useState4[0],
67
- setAccountInfo = _useState4[1];
68
-
48
+ _useState4 = _slicedToArray(_useState3, 2),
49
+ accountInfo = _useState4[0],
50
+ setAccountInfo = _useState4[1];
69
51
  var account = accountInfo.account,
70
- password = accountInfo.password;
71
-
52
+ password = accountInfo.password;
72
53
  var onSubmit = function onSubmit() {
73
54
  setConfirmLoading(true);
74
55
  var returnVal = signIn && signIn(accountInfo);
75
-
76
56
  if (returnVal && returnVal.then) {
77
57
  returnVal.then(function (res) {
78
58
  _message["default"].success('模拟登陆成功');
79
-
80
59
  localStorage.setItem('accountInfo', JSON.stringify(accountInfo));
81
60
  setConfirmLoading(false);
82
61
  setTimeout(function () {
83
62
  var _ref2 = res || {},
84
- token = _ref2.tdToken,
85
- userId = _ref2.userId;
86
-
63
+ token = _ref2.tdToken,
64
+ userId = _ref2.userId;
87
65
  cookies.set('_td_token_', token, {
88
66
  path: '/'
89
67
  });
@@ -98,11 +76,9 @@ var _default = function _default(_ref) {
98
76
  });
99
77
  }
100
78
  };
101
-
102
79
  var changeFieldValue = function changeFieldValue(key, evt) {
103
80
  setAccountInfo(Object.assign(Object.assign({}, accountInfo), _defineProperty({}, key, evt.target.value)));
104
81
  };
105
-
106
82
  return _react["default"].createElement(_modal["default"], {
107
83
  title: "\u5F00\u53D1\u8005\u6A21\u62DF\u767B\u9646",
108
84
  visible: visible,
@@ -137,5 +113,4 @@ var _default = function _default(_ref) {
137
113
  }
138
114
  }))));
139
115
  };
140
-
141
116
  exports["default"] = _default;
@@ -4,37 +4,27 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _react = _interopRequireWildcard(require("react"));
9
-
10
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
11
-
12
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
13
-
14
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
15
-
16
- function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
17
-
8
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
+ 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."); }
11
+ 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); }
12
+ 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; }
13
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
18
14
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
19
-
20
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
21
-
22
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
-
15
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
24
17
  var DevelopmentLoginModal = _react["default"].lazy(function () {
25
18
  return Promise.resolve().then(function () {
26
19
  return _interopRequireWildcard(require('./LoginModal'));
27
20
  });
28
21
  });
29
-
30
22
  var _default = function _default(_ref) {
31
23
  var signIn = _ref.signIn;
32
-
33
24
  var _useState = (0, _react.useState)(false),
34
- _useState2 = _slicedToArray(_useState, 2),
35
- loginVisible = _useState2[0],
36
- setLoginVisible = _useState2[1];
37
-
25
+ _useState2 = _slicedToArray(_useState, 2),
26
+ loginVisible = _useState2[0],
27
+ setLoginVisible = _useState2[1];
38
28
  return _react["default"].createElement(_react["default"].Fragment, null, _react["default"].createElement("a", {
39
29
  style: {
40
30
  fontSize: 14
@@ -52,5 +42,4 @@ var _default = function _default(_ref) {
52
42
  }
53
43
  })));
54
44
  };
55
-
56
45
  exports["default"] = _default;
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/development-login/style/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/development-login/style/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -1,18 +1,16 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  var _exportNames = {};
9
8
  exports["default"] = void 0;
10
-
11
9
  var _divider = _interopRequireWildcard(require("antd/lib/divider"));
12
-
13
10
  Object.keys(_divider).forEach(function (key) {
14
11
  if (key === "default" || key === "__esModule") return;
15
12
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
13
+ if (key in exports && exports[key] === _divider[key]) return;
16
14
  Object.defineProperty(exports, key, {
17
15
  enumerable: true,
18
16
  get: function get() {
@@ -20,12 +18,8 @@ Object.keys(_divider).forEach(function (key) {
20
18
  }
21
19
  });
22
20
  });
23
-
24
21
  require("antd/lib/divider/style");
25
-
26
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
27
-
28
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
-
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
30
24
  var _default = _divider["default"];
31
25
  exports["default"] = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGpE,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAKjC,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,eAAe,CAmBtC,CAAA"}
1
+ {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAGpE,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAKjC,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,eAAe,CAmBtC,CAAA"}
@@ -4,39 +4,30 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.Drawer = void 0;
7
-
8
7
  var _LocaleReceiver = _interopRequireDefault(require("antd/lib/locale-provider/LocaleReceiver"));
9
-
10
8
  var _classnames = _interopRequireDefault(require("classnames"));
11
-
12
9
  var _react = _interopRequireDefault(require("react"));
13
-
14
10
  var _configProvider = require("antd/lib/config-provider");
15
-
16
11
  var _drawer = _interopRequireDefault(require("antd/lib/drawer"));
17
-
18
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
-
20
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
21
-
13
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
14
+ 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; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
22
17
  var __rest = void 0 && (void 0).__rest || function (s, e) {
23
18
  var t = {};
24
-
25
19
  for (var p in s) {
26
20
  if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
27
21
  }
28
-
29
22
  if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
30
23
  if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
31
24
  }
32
25
  return t;
33
26
  };
34
-
35
27
  var Drawer = function Drawer(_a) {
36
28
  var closable = _a.closable,
37
- className = _a.className,
38
- rest = __rest(_a, ["closable", "className"]);
39
-
29
+ className = _a.className,
30
+ rest = __rest(_a, ["closable", "className"]);
40
31
  return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
41
32
  var getPrefixCls = _ref.getPrefixCls;
42
33
  var prefixCls = getPrefixCls('drawer');
@@ -44,11 +35,10 @@ var Drawer = function Drawer(_a) {
44
35
  componentName: "Drawer"
45
36
  }, function () {
46
37
  return _react["default"].createElement(_drawer["default"], Object.assign({
47
- className: (0, _classnames["default"])(prefixCls, className, _defineProperty({}, "".concat(prefixCls, "-contain-closable"), closable !== false)),
38
+ className: (0, _classnames["default"])(prefixCls, 'tntd-drawer', className, _defineProperty({}, "".concat(prefixCls, "-contain-closable"), closable !== false)),
48
39
  closable: closable
49
40
  }, rest));
50
41
  });
51
42
  });
52
43
  };
53
-
54
44
  exports.Drawer = Drawer;
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,4FAAmE;AACnE,4DAAmC;AACnC,kDAAiC;AAEjC,6DAAwD;AACxD,4DAAsD;AAE/C,MAAM,MAAM,GAAwB,CAAC,EAAgC,EAAE,EAAE;QAApC,EAAE,QAAQ,EAAE,SAAS,OAAW,EAAN,IAAI,cAA9B,yBAAgC,CAAF;IAAO,OAAA,CAC/E,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;QACxC,OAAO,CACL,8BAAC,wBAAc,IAAC,aAAa,EAAC,QAAQ,IACnC,GAAG,EAAE,CAAC,CACH,8BAAC,gBAAU,kBACT,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,SAAS,EAAE;gBAC1C,CAAC,GAAG,SAAS,mBAAmB,CAAC,EAAE,QAAQ,KAAK,KAAK;aACtD,CAAC,EACF,QAAQ,EAAE,QAAQ,IACd,IAAI,EACR,CACH,CACY,CAClB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;CAAA,CAAA;AAnBY,QAAA,MAAM,UAmBlB","sourcesContent":["import type { DrawerProps as AntdDrawerProps } from 'antd/lib/drawer'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\nimport classNames from 'classnames'\nimport React, { FC } from 'react'\n\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport { default as AntdDrawer } from 'antd/lib/drawer'\n\nexport const Drawer: FC<AntdDrawerProps> = ({ closable, className, ...rest }) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('drawer')\n return (\n <LocaleReceiver componentName=\"Drawer\">\n {() => (\n <AntdDrawer\n className={classNames(prefixCls, className, {\n [`${prefixCls}-contain-closable`]: closable !== false,\n })}\n closable={closable}\n {...rest}\n />\n )}\n </LocaleReceiver>\n )\n }}\n </ConfigConsumer>\n)\n"]}
1
+ {"version":3,"file":"drawer.js","sourceRoot":"","sources":["../../src/drawer/drawer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AASA,4FAAmE;AACnE,4DAAmC;AACnC,kDAAiC;AAEjC,6DAAwD;AACxD,4DAAsD;AAE/C,MAAM,MAAM,GAAwB,CAAC,EAAgC,EAAE,EAAE;QAApC,EAAE,QAAQ,EAAE,SAAS,OAAW,EAAN,IAAI,cAA9B,yBAAgC,CAAF;IAAO,OAAA,CAC/E,8BAAC,gCAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,MAAM,SAAS,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAA;QACxC,OAAO,CACL,8BAAC,wBAAc,IAAC,aAAa,EAAC,QAAQ,IACnC,GAAG,EAAE,CAAC,CACL,8BAAC,gBAAU,kBACT,SAAS,EAAE,IAAA,oBAAU,EAAC,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE;gBACzD,CAAC,GAAG,SAAS,mBAAmB,CAAC,EAAE,QAAQ,KAAK,KAAK;aACtD,CAAC,EACF,QAAQ,EAAE,QAAQ,IACd,IAAI,EACR,CACH,CACc,CAClB,CAAA;IACH,CAAC,CACc,CAClB,CAAA;CAAA,CAAA;AAnBY,QAAA,MAAM,UAmBlB","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 16:45:46\n * @LastEditors: 周泽飞 zefei.zhou@tongdun.net\n * @LastEditTime: 2023-03-08 18:56:20\n * @FilePath: /tntd/packages/tntd/src/drawer/drawer.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport type { DrawerProps as AntdDrawerProps } from 'antd/lib/drawer'\nimport LocaleReceiver from 'antd/lib/locale-provider/LocaleReceiver'\nimport classNames from 'classnames'\nimport React, { FC } from 'react'\n\nimport { ConfigConsumer } from 'antd/lib/config-provider'\nimport { default as AntdDrawer } from 'antd/lib/drawer'\n\nexport const Drawer: FC<AntdDrawerProps> = ({ closable, className, ...rest }) => (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n const prefixCls = getPrefixCls('drawer')\n return (\n <LocaleReceiver componentName=\"Drawer\">\n {() => (\n <AntdDrawer\n className={classNames(prefixCls, 'tntd-drawer', className, {\n [`${prefixCls}-contain-closable`]: closable !== false,\n })}\n closable={closable}\n {...rest}\n />\n )}\n </LocaleReceiver>\n )\n }}\n </ConfigConsumer>\n)\n"]}
@@ -1,18 +1,20 @@
1
1
  @drawer-prefix-cls: ~'@{ant-prefix}-drawer';
2
2
 
3
- .@{drawer-prefix-cls} {
4
- &-title {
5
- font-size: @font-size-lg + 2px;
6
- }
3
+ .tntd-drawer{
4
+ &.@{drawer-prefix-cls} {
5
+ .@{drawer-prefix-cls}-title {
6
+ font-size: @font-size-lg + 2px;
7
+ }
7
8
 
8
- &-close {
9
- color: fade(@text-color, 50%);;
10
- top: -4px;
11
- }
9
+ .@{drawer-prefix-cls}-close {
10
+ color: fade(@text-color, 50%);;
11
+ top: -4px;
12
+ }
12
13
 
13
- &-contain-closable{
14
- .@{drawer-prefix-cls}-header{
15
- padding: 12px 36px 12px 20px;
14
+ .@{drawer-prefix-cls}-contain-closable{
15
+ .@{drawer-prefix-cls}-header{
16
+ padding: 12px 36px 12px 20px;
17
+ }
16
18
  }
17
19
  }
18
20
  }
@@ -5,18 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  var _exportNames = {};
7
7
  exports["default"] = void 0;
8
-
9
8
  require("antd/lib/drawer/style");
10
-
11
9
  var _drawer = require("./drawer");
12
-
13
10
  require("./drawer.less");
14
-
15
11
  var _drawer3 = require("antd/lib/drawer");
16
-
17
12
  Object.keys(_drawer3).forEach(function (key) {
18
13
  if (key === "default" || key === "__esModule") return;
19
14
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
15
+ if (key in exports && exports[key] === _drawer3[key]) return;
20
16
  Object.defineProperty(exports, key, {
21
17
  enumerable: true,
22
18
  get: function get() {
@@ -1,18 +1,16 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
-
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  var _exportNames = {};
9
8
  exports["default"] = void 0;
10
-
11
9
  var _dropdown = _interopRequireWildcard(require("antd/lib/dropdown"));
12
-
13
10
  Object.keys(_dropdown).forEach(function (key) {
14
11
  if (key === "default" || key === "__esModule") return;
15
12
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
13
+ if (key in exports && exports[key] === _dropdown[key]) return;
16
14
  Object.defineProperty(exports, key, {
17
15
  enumerable: true,
18
16
  get: function get() {
@@ -20,12 +18,8 @@ Object.keys(_dropdown).forEach(function (key) {
20
18
  }
21
19
  });
22
20
  });
23
-
24
21
  require("antd/lib/dropdown/style");
25
-
26
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
27
-
28
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
29
-
22
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
23
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
30
24
  var _default = _dropdown["default"];
31
25
  exports["default"] = _default;
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
9
  var _default = function _default(props) {
13
10
  return _react["default"].createElement("div", Object.assign({}, props), _react["default"].createElement("svg", {
14
11
  width: "16px",
@@ -72,5 +69,4 @@ var _default = function _default(props) {
72
69
  id: "\u8DEF\u5F84"
73
70
  })))))))));
74
71
  };
75
-
76
72
  exports["default"] = _default;
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
-
12
9
  var _default = function _default(props) {
13
10
  return _react["default"].createElement("div", Object.assign({}, props), _react["default"].createElement("svg", {
14
11
  width: "17px",
@@ -50,5 +47,4 @@ var _default = function _default(props) {
50
47
  points: "14.3333333 3.66666667 5.625 12.3333333 1.66666667 8.39393333"
51
48
  }))))))));
52
49
  };
53
-
54
50
  exports["default"] = _default;