@antdv-vue/pro-layout 0.0.0-stage → 2.0.3

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 (426) hide show
  1. package/CHANGELOG.md +266 -0
  2. package/README.md +111 -2
  3. package/dist/BasicLayout.d.ts +255 -0
  4. package/dist/BasicLayout.js +895 -0
  5. package/dist/ProLayout.d.ts +334 -0
  6. package/dist/ProLayout.js +548 -0
  7. package/dist/RenderTypings.d.ts +116 -0
  8. package/dist/RenderTypings.js +1 -0
  9. package/dist/WrapContent.d.ts +23 -0
  10. package/dist/WrapContent.js +73 -0
  11. package/dist/assert/Logo.d.ts +6 -0
  12. package/dist/assert/Logo.js +102 -0
  13. package/dist/components/AppsLogoComponents/AppsLogo.d.ts +10 -0
  14. package/dist/components/AppsLogoComponents/AppsLogo.js +17 -0
  15. package/dist/components/AppsLogoComponents/DefaultContent.d.ts +22 -0
  16. package/dist/components/AppsLogoComponents/DefaultContent.js +42 -0
  17. package/dist/components/AppsLogoComponents/SimpleContent.d.ts +12 -0
  18. package/dist/components/AppsLogoComponents/SimpleContent.js +44 -0
  19. package/dist/components/AppsLogoComponents/index.d.ts +22 -0
  20. package/dist/components/AppsLogoComponents/index.js +85 -0
  21. package/dist/components/AppsLogoComponents/style/default.d.ts +7 -0
  22. package/dist/components/AppsLogoComponents/style/default.js +72 -0
  23. package/dist/components/AppsLogoComponents/style/index.d.ts +8 -0
  24. package/dist/components/AppsLogoComponents/style/index.js +69 -0
  25. package/dist/components/AppsLogoComponents/style/simple.d.ts +7 -0
  26. package/dist/components/AppsLogoComponents/style/simple.js +85 -0
  27. package/dist/components/AppsLogoComponents/typing.d.ts +14 -0
  28. package/dist/components/AppsLogoComponents/typing.js +1 -0
  29. package/dist/components/CollapsedIcon/index.d.ts +9 -0
  30. package/dist/components/CollapsedIcon/index.js +6 -0
  31. package/dist/components/Footer/index.d.ts +18 -0
  32. package/dist/components/Footer/index.js +25 -0
  33. package/dist/components/FooterToolbar/index.d.ts +21 -0
  34. package/dist/components/FooterToolbar/index.js +85 -0
  35. package/dist/components/FooterToolbar/style/index.d.ts +8 -0
  36. package/dist/components/FooterToolbar/style/index.js +35 -0
  37. package/dist/components/FooterToolbar/style/stylish.d.ts +13 -0
  38. package/dist/components/FooterToolbar/style/stylish.js +12 -0
  39. package/dist/components/GlobalFooter/index.d.ts +17 -0
  40. package/dist/components/GlobalFooter/index.js +46 -0
  41. package/dist/components/GlobalFooter/style/index.d.ts +8 -0
  42. package/dist/components/GlobalFooter/style/index.js +33 -0
  43. package/dist/components/GlobalHeader/ActionsContent.d.ts +30 -0
  44. package/dist/components/GlobalHeader/ActionsContent.js +88 -0
  45. package/dist/components/GlobalHeader/index.d.ts +146 -0
  46. package/dist/components/GlobalHeader/index.js +289 -0
  47. package/dist/components/GlobalHeader/style/index.d.ts +8 -0
  48. package/dist/components/GlobalHeader/style/index.js +62 -0
  49. package/dist/components/GlobalHeader/style/rightContentStyle.d.ts +8 -0
  50. package/dist/components/GlobalHeader/style/rightContentStyle.js +99 -0
  51. package/dist/components/GridContent/index.d.ts +19 -0
  52. package/dist/components/GridContent/index.js +40 -0
  53. package/dist/components/GridContent/style/index.d.ts +8 -0
  54. package/dist/components/GridContent/style/index.js +17 -0
  55. package/dist/components/Header/index.d.ts +106 -0
  56. package/dist/components/Header/index.js +330 -0
  57. package/dist/components/Header/style/header.d.ts +8 -0
  58. package/dist/components/Header/style/header.js +39 -0
  59. package/dist/components/Header/style/stylish.d.ts +17 -0
  60. package/dist/components/Header/style/stylish.js +12 -0
  61. package/dist/components/Help/AsyncContentPanel.d.ts +11 -0
  62. package/dist/components/Help/AsyncContentPanel.js +51 -0
  63. package/dist/components/Help/HelpProvide.d.ts +206 -0
  64. package/dist/components/Help/HelpProvide.js +20 -0
  65. package/dist/components/Help/ProHelpContentPanel.d.ts +19 -0
  66. package/dist/components/Help/ProHelpContentPanel.js +120 -0
  67. package/dist/components/Help/ProHelpDrawer.d.ts +13 -0
  68. package/dist/components/Help/ProHelpDrawer.js +108 -0
  69. package/dist/components/Help/ProHelpModal.d.ts +19 -0
  70. package/dist/components/Help/ProHelpModal.js +105 -0
  71. package/dist/components/Help/ProHelpPanel.d.ts +95 -0
  72. package/dist/components/Help/ProHelpPanel.js +245 -0
  73. package/dist/components/Help/ProHelpPopover.d.ts +61 -0
  74. package/dist/components/Help/ProHelpPopover.js +183 -0
  75. package/dist/components/Help/ProHelpSearch.d.ts +14 -0
  76. package/dist/components/Help/ProHelpSearch.js +530 -0
  77. package/dist/components/Help/RenderContentPanel.d.ts +11 -0
  78. package/dist/components/Help/RenderContentPanel.js +90 -0
  79. package/dist/components/Help/index.d.ts +43 -0
  80. package/dist/components/Help/index.js +31 -0
  81. package/dist/components/Help/style/index.d.ts +10 -0
  82. package/dist/components/Help/style/index.js +96 -0
  83. package/dist/components/MultiTab/index.d.ts +71 -0
  84. package/dist/components/MultiTab/index.js +303 -0
  85. package/dist/components/MultiTab/style/index.d.ts +8 -0
  86. package/dist/components/MultiTab/style/index.js +67 -0
  87. package/dist/components/PageContainer/PageContainerBase.d.ts +155 -0
  88. package/dist/components/PageContainer/PageContainerBase.js +349 -0
  89. package/dist/components/PageContainer/index.d.ts +57 -0
  90. package/dist/components/PageContainer/index.js +234 -0
  91. package/dist/components/PageContainer/style/index.d.ts +8 -0
  92. package/dist/components/PageContainer/style/index.js +63 -0
  93. package/dist/components/PageContainer/style/stylish.d.ts +13 -0
  94. package/dist/components/PageContainer/style/stylish.js +12 -0
  95. package/dist/components/PageHeader/index.d.ts +37 -0
  96. package/dist/components/PageHeader/index.js +221 -0
  97. package/dist/components/PageHeader/style/index.d.ts +17 -0
  98. package/dist/components/PageHeader/style/index.js +132 -0
  99. package/dist/components/PageLoading/index.d.ts +9 -0
  100. package/dist/components/PageLoading/index.js +15 -0
  101. package/dist/components/SettingDrawer/BlockCheckbox.d.ts +18 -0
  102. package/dist/components/SettingDrawer/BlockCheckbox.js +25 -0
  103. package/dist/components/SettingDrawer/LayoutChange.d.ts +28 -0
  104. package/dist/components/SettingDrawer/LayoutChange.js +127 -0
  105. package/dist/components/SettingDrawer/RegionalChange.d.ts +15 -0
  106. package/dist/components/SettingDrawer/RegionalChange.js +35 -0
  107. package/dist/components/SettingDrawer/ThemeColor.d.ts +28 -0
  108. package/dist/components/SettingDrawer/ThemeColor.js +30 -0
  109. package/dist/components/SettingDrawer/icon/group.d.ts +10 -0
  110. package/dist/components/SettingDrawer/icon/group.js +190 -0
  111. package/dist/components/SettingDrawer/icon/sub.d.ts +10 -0
  112. package/dist/components/SettingDrawer/icon/sub.js +187 -0
  113. package/dist/components/SettingDrawer/index.d.ts +42 -0
  114. package/dist/components/SettingDrawer/index.js +510 -0
  115. package/dist/components/SettingDrawer/style/index.d.ts +9 -0
  116. package/dist/components/SettingDrawer/style/index.js +236 -0
  117. package/dist/components/SiderMenu/BaseMenu.d.ts +133 -0
  118. package/dist/components/SiderMenu/BaseMenu.js +583 -0
  119. package/dist/components/SiderMenu/SiderMenu.d.ts +326 -0
  120. package/dist/components/SiderMenu/SiderMenu.js +756 -0
  121. package/dist/components/SiderMenu/index.d.ts +72 -0
  122. package/dist/components/SiderMenu/index.js +507 -0
  123. package/dist/components/SiderMenu/style/index.d.ts +20 -0
  124. package/dist/components/SiderMenu/style/index.js +301 -0
  125. package/dist/components/SiderMenu/style/menu.d.ts +10 -0
  126. package/dist/components/SiderMenu/style/menu.js +23 -0
  127. package/dist/components/SiderMenu/style/stylish.d.ts +20 -0
  128. package/dist/components/SiderMenu/style/stylish.js +15 -0
  129. package/dist/components/TopNavHeader/index.d.ts +86 -0
  130. package/dist/components/TopNavHeader/index.js +536 -0
  131. package/dist/components/TopNavHeader/style/index.d.ts +8 -0
  132. package/dist/components/TopNavHeader/style/index.js +71 -0
  133. package/dist/context/RouteContext.d.ts +39 -0
  134. package/dist/context/RouteContext.js +9 -0
  135. package/dist/defaultSettings.d.ts +115 -0
  136. package/dist/defaultSettings.js +16 -0
  137. package/dist/getPageTitle.d.ts +31 -0
  138. package/dist/getPageTitle.js +55 -0
  139. package/dist/index.d.ts +21 -0
  140. package/dist/index.js +17 -0
  141. package/dist/locales/ar-EG/help.d.ts +6 -0
  142. package/dist/locales/ar-EG/help.js +4 -0
  143. package/dist/locales/ar-EG/multiTab.d.ts +6 -0
  144. package/dist/locales/ar-EG/multiTab.js +10 -0
  145. package/dist/locales/ar-EG/settingDrawer.d.ts +6 -0
  146. package/dist/locales/ar-EG/settingDrawer.js +50 -0
  147. package/dist/locales/ar-EG.d.ts +56 -0
  148. package/dist/locales/ar-EG.js +11 -0
  149. package/dist/locales/ca-ES/help.d.ts +6 -0
  150. package/dist/locales/ca-ES/help.js +4 -0
  151. package/dist/locales/ca-ES/multiTab.d.ts +6 -0
  152. package/dist/locales/ca-ES/multiTab.js +10 -0
  153. package/dist/locales/ca-ES/settingDrawer.d.ts +6 -0
  154. package/dist/locales/ca-ES/settingDrawer.js +50 -0
  155. package/dist/locales/ca-ES.d.ts +56 -0
  156. package/dist/locales/ca-ES.js +11 -0
  157. package/dist/locales/cs-CZ/help.d.ts +6 -0
  158. package/dist/locales/cs-CZ/help.js +4 -0
  159. package/dist/locales/cs-CZ/multiTab.d.ts +6 -0
  160. package/dist/locales/cs-CZ/multiTab.js +10 -0
  161. package/dist/locales/cs-CZ/settingDrawer.d.ts +6 -0
  162. package/dist/locales/cs-CZ/settingDrawer.js +50 -0
  163. package/dist/locales/cs-CZ.d.ts +56 -0
  164. package/dist/locales/cs-CZ.js +11 -0
  165. package/dist/locales/de-DE/help.d.ts +6 -0
  166. package/dist/locales/de-DE/help.js +4 -0
  167. package/dist/locales/de-DE/multiTab.d.ts +6 -0
  168. package/dist/locales/de-DE/multiTab.js +10 -0
  169. package/dist/locales/de-DE/settingDrawer.d.ts +6 -0
  170. package/dist/locales/de-DE/settingDrawer.js +50 -0
  171. package/dist/locales/de-DE.d.ts +56 -0
  172. package/dist/locales/de-DE.js +11 -0
  173. package/dist/locales/en-GB/help.d.ts +6 -0
  174. package/dist/locales/en-GB/help.js +4 -0
  175. package/dist/locales/en-GB/multiTab.d.ts +6 -0
  176. package/dist/locales/en-GB/multiTab.js +10 -0
  177. package/dist/locales/en-GB/settingDrawer.d.ts +6 -0
  178. package/dist/locales/en-GB/settingDrawer.js +50 -0
  179. package/dist/locales/en-GB.d.ts +56 -0
  180. package/dist/locales/en-GB.js +11 -0
  181. package/dist/locales/en-US/help.d.ts +6 -0
  182. package/dist/locales/en-US/help.js +4 -0
  183. package/dist/locales/en-US/multiTab.d.ts +6 -0
  184. package/dist/locales/en-US/multiTab.js +10 -0
  185. package/dist/locales/en-US/settingDrawer.d.ts +6 -0
  186. package/dist/locales/en-US/settingDrawer.js +50 -0
  187. package/dist/locales/en-US.d.ts +56 -0
  188. package/dist/locales/en-US.js +11 -0
  189. package/dist/locales/es-ES/help.d.ts +6 -0
  190. package/dist/locales/es-ES/help.js +4 -0
  191. package/dist/locales/es-ES/multiTab.d.ts +6 -0
  192. package/dist/locales/es-ES/multiTab.js +10 -0
  193. package/dist/locales/es-ES/settingDrawer.d.ts +6 -0
  194. package/dist/locales/es-ES/settingDrawer.js +50 -0
  195. package/dist/locales/es-ES.d.ts +56 -0
  196. package/dist/locales/es-ES.js +11 -0
  197. package/dist/locales/fa-IR/help.d.ts +6 -0
  198. package/dist/locales/fa-IR/help.js +4 -0
  199. package/dist/locales/fa-IR/multiTab.d.ts +6 -0
  200. package/dist/locales/fa-IR/multiTab.js +10 -0
  201. package/dist/locales/fa-IR/settingDrawer.d.ts +6 -0
  202. package/dist/locales/fa-IR/settingDrawer.js +50 -0
  203. package/dist/locales/fa-IR.d.ts +56 -0
  204. package/dist/locales/fa-IR.js +11 -0
  205. package/dist/locales/fr-FR/help.d.ts +6 -0
  206. package/dist/locales/fr-FR/help.js +4 -0
  207. package/dist/locales/fr-FR/multiTab.d.ts +6 -0
  208. package/dist/locales/fr-FR/multiTab.js +10 -0
  209. package/dist/locales/fr-FR/settingDrawer.d.ts +6 -0
  210. package/dist/locales/fr-FR/settingDrawer.js +50 -0
  211. package/dist/locales/fr-FR.d.ts +56 -0
  212. package/dist/locales/fr-FR.js +11 -0
  213. package/dist/locales/he-IL/help.d.ts +6 -0
  214. package/dist/locales/he-IL/help.js +4 -0
  215. package/dist/locales/he-IL/multiTab.d.ts +6 -0
  216. package/dist/locales/he-IL/multiTab.js +10 -0
  217. package/dist/locales/he-IL/settingDrawer.d.ts +6 -0
  218. package/dist/locales/he-IL/settingDrawer.js +50 -0
  219. package/dist/locales/he-IL.d.ts +56 -0
  220. package/dist/locales/he-IL.js +11 -0
  221. package/dist/locales/hr-HR/help.d.ts +6 -0
  222. package/dist/locales/hr-HR/help.js +4 -0
  223. package/dist/locales/hr-HR/multiTab.d.ts +6 -0
  224. package/dist/locales/hr-HR/multiTab.js +10 -0
  225. package/dist/locales/hr-HR/settingDrawer.d.ts +6 -0
  226. package/dist/locales/hr-HR/settingDrawer.js +50 -0
  227. package/dist/locales/hr-HR.d.ts +56 -0
  228. package/dist/locales/hr-HR.js +11 -0
  229. package/dist/locales/id-ID/help.d.ts +6 -0
  230. package/dist/locales/id-ID/help.js +4 -0
  231. package/dist/locales/id-ID/multiTab.d.ts +6 -0
  232. package/dist/locales/id-ID/multiTab.js +10 -0
  233. package/dist/locales/id-ID/settingDrawer.d.ts +6 -0
  234. package/dist/locales/id-ID/settingDrawer.js +50 -0
  235. package/dist/locales/id-ID.d.ts +56 -0
  236. package/dist/locales/id-ID.js +11 -0
  237. package/dist/locales/index.d.ts +1756 -0
  238. package/dist/locales/index.js +86 -0
  239. package/dist/locales/it-IT/help.d.ts +6 -0
  240. package/dist/locales/it-IT/help.js +4 -0
  241. package/dist/locales/it-IT/multiTab.d.ts +6 -0
  242. package/dist/locales/it-IT/multiTab.js +10 -0
  243. package/dist/locales/it-IT/settingDrawer.d.ts +6 -0
  244. package/dist/locales/it-IT/settingDrawer.js +50 -0
  245. package/dist/locales/it-IT.d.ts +56 -0
  246. package/dist/locales/it-IT.js +11 -0
  247. package/dist/locales/ja-JP/help.d.ts +6 -0
  248. package/dist/locales/ja-JP/help.js +4 -0
  249. package/dist/locales/ja-JP/multiTab.d.ts +6 -0
  250. package/dist/locales/ja-JP/multiTab.js +10 -0
  251. package/dist/locales/ja-JP/settingDrawer.d.ts +6 -0
  252. package/dist/locales/ja-JP/settingDrawer.js +50 -0
  253. package/dist/locales/ja-JP.d.ts +56 -0
  254. package/dist/locales/ja-JP.js +11 -0
  255. package/dist/locales/ko-KR/help.d.ts +6 -0
  256. package/dist/locales/ko-KR/help.js +4 -0
  257. package/dist/locales/ko-KR/multiTab.d.ts +6 -0
  258. package/dist/locales/ko-KR/multiTab.js +10 -0
  259. package/dist/locales/ko-KR/settingDrawer.d.ts +6 -0
  260. package/dist/locales/ko-KR/settingDrawer.js +50 -0
  261. package/dist/locales/ko-KR.d.ts +56 -0
  262. package/dist/locales/ko-KR.js +11 -0
  263. package/dist/locales/mn-MN/help.d.ts +6 -0
  264. package/dist/locales/mn-MN/help.js +4 -0
  265. package/dist/locales/mn-MN/multiTab.d.ts +6 -0
  266. package/dist/locales/mn-MN/multiTab.js +10 -0
  267. package/dist/locales/mn-MN/settingDrawer.d.ts +6 -0
  268. package/dist/locales/mn-MN/settingDrawer.js +50 -0
  269. package/dist/locales/mn-MN.d.ts +56 -0
  270. package/dist/locales/mn-MN.js +11 -0
  271. package/dist/locales/ms-MY/help.d.ts +6 -0
  272. package/dist/locales/ms-MY/help.js +4 -0
  273. package/dist/locales/ms-MY/multiTab.d.ts +6 -0
  274. package/dist/locales/ms-MY/multiTab.js +10 -0
  275. package/dist/locales/ms-MY/settingDrawer.d.ts +6 -0
  276. package/dist/locales/ms-MY/settingDrawer.js +50 -0
  277. package/dist/locales/ms-MY.d.ts +56 -0
  278. package/dist/locales/ms-MY.js +11 -0
  279. package/dist/locales/nl-NL/help.d.ts +6 -0
  280. package/dist/locales/nl-NL/help.js +4 -0
  281. package/dist/locales/nl-NL/multiTab.d.ts +6 -0
  282. package/dist/locales/nl-NL/multiTab.js +10 -0
  283. package/dist/locales/nl-NL/settingDrawer.d.ts +6 -0
  284. package/dist/locales/nl-NL/settingDrawer.js +50 -0
  285. package/dist/locales/nl-NL.d.ts +56 -0
  286. package/dist/locales/nl-NL.js +11 -0
  287. package/dist/locales/pl-PL/help.d.ts +6 -0
  288. package/dist/locales/pl-PL/help.js +4 -0
  289. package/dist/locales/pl-PL/multiTab.d.ts +6 -0
  290. package/dist/locales/pl-PL/multiTab.js +10 -0
  291. package/dist/locales/pl-PL/settingDrawer.d.ts +6 -0
  292. package/dist/locales/pl-PL/settingDrawer.js +50 -0
  293. package/dist/locales/pl-PL.d.ts +56 -0
  294. package/dist/locales/pl-PL.js +11 -0
  295. package/dist/locales/pt-BR/help.d.ts +6 -0
  296. package/dist/locales/pt-BR/help.js +4 -0
  297. package/dist/locales/pt-BR/multiTab.d.ts +6 -0
  298. package/dist/locales/pt-BR/multiTab.js +10 -0
  299. package/dist/locales/pt-BR/settingDrawer.d.ts +6 -0
  300. package/dist/locales/pt-BR/settingDrawer.js +50 -0
  301. package/dist/locales/pt-BR.d.ts +56 -0
  302. package/dist/locales/pt-BR.js +11 -0
  303. package/dist/locales/ro-RO/help.d.ts +6 -0
  304. package/dist/locales/ro-RO/help.js +4 -0
  305. package/dist/locales/ro-RO/multiTab.d.ts +6 -0
  306. package/dist/locales/ro-RO/multiTab.js +10 -0
  307. package/dist/locales/ro-RO/settingDrawer.d.ts +6 -0
  308. package/dist/locales/ro-RO/settingDrawer.js +50 -0
  309. package/dist/locales/ro-RO.d.ts +56 -0
  310. package/dist/locales/ro-RO.js +11 -0
  311. package/dist/locales/ru-RU/help.d.ts +6 -0
  312. package/dist/locales/ru-RU/help.js +4 -0
  313. package/dist/locales/ru-RU/multiTab.d.ts +6 -0
  314. package/dist/locales/ru-RU/multiTab.js +10 -0
  315. package/dist/locales/ru-RU/settingDrawer.d.ts +6 -0
  316. package/dist/locales/ru-RU/settingDrawer.js +50 -0
  317. package/dist/locales/ru-RU.d.ts +56 -0
  318. package/dist/locales/ru-RU.js +11 -0
  319. package/dist/locales/sk-SK/help.d.ts +6 -0
  320. package/dist/locales/sk-SK/help.js +4 -0
  321. package/dist/locales/sk-SK/multiTab.d.ts +6 -0
  322. package/dist/locales/sk-SK/multiTab.js +9 -0
  323. package/dist/locales/sk-SK/settingDrawer.d.ts +6 -0
  324. package/dist/locales/sk-SK/settingDrawer.js +50 -0
  325. package/dist/locales/sk-SK.d.ts +56 -0
  326. package/dist/locales/sk-SK.js +11 -0
  327. package/dist/locales/sr-RS/help.d.ts +6 -0
  328. package/dist/locales/sr-RS/help.js +4 -0
  329. package/dist/locales/sr-RS/multiTab.d.ts +6 -0
  330. package/dist/locales/sr-RS/multiTab.js +10 -0
  331. package/dist/locales/sr-RS/settingDrawer.d.ts +6 -0
  332. package/dist/locales/sr-RS/settingDrawer.js +50 -0
  333. package/dist/locales/sr-RS.d.ts +56 -0
  334. package/dist/locales/sr-RS.js +11 -0
  335. package/dist/locales/sv-SE/help.d.ts +6 -0
  336. package/dist/locales/sv-SE/help.js +4 -0
  337. package/dist/locales/sv-SE/multiTab.d.ts +6 -0
  338. package/dist/locales/sv-SE/multiTab.js +10 -0
  339. package/dist/locales/sv-SE/settingDrawer.d.ts +6 -0
  340. package/dist/locales/sv-SE/settingDrawer.js +50 -0
  341. package/dist/locales/sv-SE.d.ts +56 -0
  342. package/dist/locales/sv-SE.js +11 -0
  343. package/dist/locales/th-TH/help.d.ts +6 -0
  344. package/dist/locales/th-TH/help.js +4 -0
  345. package/dist/locales/th-TH/multiTab.d.ts +6 -0
  346. package/dist/locales/th-TH/multiTab.js +10 -0
  347. package/dist/locales/th-TH/settingDrawer.d.ts +6 -0
  348. package/dist/locales/th-TH/settingDrawer.js +50 -0
  349. package/dist/locales/th-TH.d.ts +56 -0
  350. package/dist/locales/th-TH.js +11 -0
  351. package/dist/locales/tr-TR/help.d.ts +6 -0
  352. package/dist/locales/tr-TR/help.js +4 -0
  353. package/dist/locales/tr-TR/multiTab.d.ts +6 -0
  354. package/dist/locales/tr-TR/multiTab.js +10 -0
  355. package/dist/locales/tr-TR/settingDrawer.d.ts +6 -0
  356. package/dist/locales/tr-TR/settingDrawer.js +50 -0
  357. package/dist/locales/tr-TR.d.ts +56 -0
  358. package/dist/locales/tr-TR.js +11 -0
  359. package/dist/locales/uk-UA/help.d.ts +6 -0
  360. package/dist/locales/uk-UA/help.js +4 -0
  361. package/dist/locales/uk-UA/multiTab.d.ts +6 -0
  362. package/dist/locales/uk-UA/multiTab.js +10 -0
  363. package/dist/locales/uk-UA/settingDrawer.d.ts +6 -0
  364. package/dist/locales/uk-UA/settingDrawer.js +50 -0
  365. package/dist/locales/uk-UA.d.ts +56 -0
  366. package/dist/locales/uk-UA.js +11 -0
  367. package/dist/locales/uz-UZ/help.d.ts +6 -0
  368. package/dist/locales/uz-UZ/help.js +4 -0
  369. package/dist/locales/uz-UZ/multiTab.d.ts +6 -0
  370. package/dist/locales/uz-UZ/multiTab.js +10 -0
  371. package/dist/locales/uz-UZ/settingDrawer.d.ts +6 -0
  372. package/dist/locales/uz-UZ/settingDrawer.js +50 -0
  373. package/dist/locales/uz-UZ.d.ts +56 -0
  374. package/dist/locales/uz-UZ.js +11 -0
  375. package/dist/locales/vi-VN/help.d.ts +6 -0
  376. package/dist/locales/vi-VN/help.js +4 -0
  377. package/dist/locales/vi-VN/multiTab.d.ts +6 -0
  378. package/dist/locales/vi-VN/multiTab.js +10 -0
  379. package/dist/locales/vi-VN/settingDrawer.d.ts +6 -0
  380. package/dist/locales/vi-VN/settingDrawer.js +50 -0
  381. package/dist/locales/vi-VN.d.ts +56 -0
  382. package/dist/locales/vi-VN.js +11 -0
  383. package/dist/locales/zh-CN/help.d.ts +8 -0
  384. package/dist/locales/zh-CN/help.js +4 -0
  385. package/dist/locales/zh-CN/multiTab.d.ts +19 -0
  386. package/dist/locales/zh-CN/multiTab.js +17 -0
  387. package/dist/locales/zh-CN/settingDrawer.d.ts +52 -0
  388. package/dist/locales/zh-CN/settingDrawer.js +50 -0
  389. package/dist/locales/zh-CN.d.ts +56 -0
  390. package/dist/locales/zh-CN.js +11 -0
  391. package/dist/locales/zh-HK/help.d.ts +6 -0
  392. package/dist/locales/zh-HK/help.js +4 -0
  393. package/dist/locales/zh-HK/multiTab.d.ts +6 -0
  394. package/dist/locales/zh-HK/multiTab.js +10 -0
  395. package/dist/locales/zh-HK/settingDrawer.d.ts +6 -0
  396. package/dist/locales/zh-HK/settingDrawer.js +50 -0
  397. package/dist/locales/zh-HK.d.ts +56 -0
  398. package/dist/locales/zh-HK.js +11 -0
  399. package/dist/locales/zh-TW/help.d.ts +6 -0
  400. package/dist/locales/zh-TW/help.js +4 -0
  401. package/dist/locales/zh-TW/multiTab.d.ts +6 -0
  402. package/dist/locales/zh-TW/multiTab.js +10 -0
  403. package/dist/locales/zh-TW/settingDrawer.d.ts +6 -0
  404. package/dist/locales/zh-TW/settingDrawer.js +50 -0
  405. package/dist/locales/zh-TW.d.ts +56 -0
  406. package/dist/locales/zh-TW.js +11 -0
  407. package/dist/pro-layout.esm.js +11423 -0
  408. package/dist/style/index.d.ts +30 -0
  409. package/dist/style/index.js +120 -0
  410. package/dist/typing.d.ts +63 -0
  411. package/dist/typing.js +1 -0
  412. package/dist/utils/getBreadcrumbProps.d.ts +34 -0
  413. package/dist/utils/getBreadcrumbProps.js +91 -0
  414. package/dist/utils/getMenuData.d.ts +13 -0
  415. package/dist/utils/getMenuData.js +19 -0
  416. package/dist/utils/index.d.ts +30 -0
  417. package/dist/utils/index.js +55 -0
  418. package/dist/utils/siderWidth.d.ts +29 -0
  419. package/dist/utils/siderWidth.js +20 -0
  420. package/dist/utils/useCurrentMenuLayoutProps.d.ts +10 -0
  421. package/dist/utils/useCurrentMenuLayoutProps.js +28 -0
  422. package/dist/utils/useProLayoutLocation.d.ts +8 -0
  423. package/dist/utils/useProLayoutLocation.js +14 -0
  424. package/dist/utils/useProLayoutRender.d.ts +25 -0
  425. package/dist/utils/useProLayoutRender.js +42 -0
  426. package/package.json +61 -3
@@ -0,0 +1,85 @@
1
+ //#region src/components/AppsLogoComponents/style/simple.ts
2
+ const genAppsLogoComponentsSimpleListStyle = (token) => {
3
+ return { "&-content": {
4
+ maxHeight: token.calc("100vh").sub(48).equal(),
5
+ overflow: "auto",
6
+ "&-list": {
7
+ boxSizing: "border-box",
8
+ maxWidth: 376,
9
+ marginBlock: 0,
10
+ marginInline: 0,
11
+ paddingBlock: 0,
12
+ paddingInline: 0,
13
+ listStyle: "none",
14
+ "&-item": {
15
+ position: "relative",
16
+ display: "inline-block",
17
+ width: 104,
18
+ height: 104,
19
+ marginBlock: 8,
20
+ marginInline: 8,
21
+ paddingInline: 24,
22
+ paddingBlock: 24,
23
+ verticalAlign: "top",
24
+ listStyleType: "none",
25
+ transition: "transform 0.2s cubic-bezier(0.333, 0, 0, 1)",
26
+ borderRadius: token.borderRadius,
27
+ "&-group": {
28
+ marginBlockEnd: 16,
29
+ "&-title": {
30
+ marginBlockStart: 16,
31
+ marginInlineEnd: 0,
32
+ marginBlockEnd: 8,
33
+ marginInlineStart: 12,
34
+ fontWeight: 600,
35
+ color: "rgba(0, 0, 0, 0.88)",
36
+ fontSize: 16,
37
+ opacity: .85,
38
+ lineHeight: 1.5,
39
+ "&:first-child": { marginBlockStart: 12 }
40
+ }
41
+ },
42
+ "&:hover": { backgroundColor: token.colorBgTextHover },
43
+ a: {
44
+ display: "flex",
45
+ flexDirection: "column",
46
+ alignItems: "center",
47
+ height: "100%",
48
+ fontSize: 12,
49
+ textDecoration: "none",
50
+ "& > #avatarLogo": {
51
+ width: 40,
52
+ height: 40,
53
+ margin: "0 auto",
54
+ color: token.colorPrimary,
55
+ fontSize: 22,
56
+ lineHeight: "40px",
57
+ textAlign: "center",
58
+ backgroundImage: "linear-gradient(180deg, #E8F0FB 0%, #F6F8FC 100%)",
59
+ borderRadius: token.borderRadius
60
+ },
61
+ "& > img": {
62
+ width: 40,
63
+ height: 40
64
+ },
65
+ "& > div": {
66
+ marginBlockStart: 5,
67
+ marginInlineStart: 0,
68
+ color: token.colorTextHeading,
69
+ fontSize: 14,
70
+ lineHeight: "22px",
71
+ whiteSpace: "nowrap",
72
+ textOverflow: "ellipsis"
73
+ },
74
+ "& > div > span": {
75
+ color: token.colorTextSecondary,
76
+ fontSize: 12,
77
+ lineHeight: "20px"
78
+ }
79
+ }
80
+ }
81
+ }
82
+ } };
83
+ };
84
+ //#endregion
85
+ export { genAppsLogoComponentsSimpleListStyle };
@@ -0,0 +1,14 @@
1
+ import { VueNode } from "antdv-next/dist/_util/type";
2
+
3
+ //#region src/components/AppsLogoComponents/typing.d.ts
4
+ interface AppItemProps {
5
+ title: VueNode;
6
+ desc?: VueNode;
7
+ icon?: VueNode;
8
+ url?: string;
9
+ target?: string;
10
+ children?: Omit<AppItemProps, 'children'>[];
11
+ }
12
+ type AppListProps = AppItemProps[];
13
+ //#endregion
14
+ export { AppItemProps, AppListProps };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import { FunctionalComponent } from "vue";
2
+
3
+ //#region src/components/CollapsedIcon/index.d.ts
4
+ declare const CollapsedIcon: FunctionalComponent<{
5
+ collapsed: boolean;
6
+ tabIndex?: number;
7
+ }>;
8
+ //#endregion
9
+ export { CollapsedIcon as default };
@@ -0,0 +1,6 @@
1
+ import { createVNode } from "vue";
2
+ import { MenuFoldOutlined, MenuUnfoldOutlined } from "@antdv-next/icons";
3
+ //#region src/components/CollapsedIcon/index.tsx
4
+ const CollapsedIcon = ({ collapsed, tabIndex }) => collapsed ? createVNode(MenuUnfoldOutlined, { "tabIndex": tabIndex }, null) : createVNode(MenuFoldOutlined, { "tabIndex": tabIndex }, null);
5
+ //#endregion
6
+ export { CollapsedIcon as default };
@@ -0,0 +1,18 @@
1
+ import { CSSProperties, FunctionalComponent, VNode } from "vue";
2
+
3
+ //#region src/components/Footer/index.d.ts
4
+ interface FooterProps {
5
+ links?: {
6
+ key?: string;
7
+ title: VNode;
8
+ href: string;
9
+ blankTarget?: boolean;
10
+ }[] | false;
11
+ copyright?: string | false;
12
+ style?: CSSProperties;
13
+ class?: string;
14
+ prefixCls?: string;
15
+ }
16
+ declare const FooterView: FunctionalComponent<FooterProps>;
17
+ //#endregion
18
+ export { FooterProps, FooterView as default };
@@ -0,0 +1,25 @@
1
+ import GlobalFooter from "../GlobalFooter/index.js";
2
+ import { Fragment, createVNode } from "vue";
3
+ import { LayoutFooter } from "antdv-next";
4
+ import { CopyrightOutlined } from "@antdv-next/icons";
5
+ //#region src/components/Footer/index.tsx
6
+ const FooterView = ({ class: className, style, links, prefixCls, copyright }) => createVNode(LayoutFooter, {
7
+ "class": className,
8
+ "style": {
9
+ padding: 0,
10
+ zIndex: 7,
11
+ ...style
12
+ }
13
+ }, { default: () => [createVNode(GlobalFooter, {
14
+ "links": links,
15
+ "prefixCls": prefixCls,
16
+ "copyright": copyright !== false && createVNode(Fragment, null, [
17
+ createVNode(CopyrightOutlined, null, null),
18
+ " ",
19
+ copyright
20
+ ])
21
+ }, null)] });
22
+ FooterView.displayName = "Footer";
23
+ FooterView.inheritAttrs = false;
24
+ //#endregion
25
+ export { FooterView as default };
@@ -0,0 +1,21 @@
1
+ import { stylishToken } from "./style/stylish.js";
2
+ import { FooterToolbarContentRender, SlotsRenderType } from "../../RenderTypings.js";
3
+ import * as _$vue from "vue";
4
+ import { VNode } from "vue";
5
+ import { GenerateStyle } from "@antdv-vue/pro-provider";
6
+ import { VueNode } from "@antdv-vue/pro-utils";
7
+ import { CustomSlotsType } from "@v-c/util/dist/type";
8
+
9
+ //#region src/components/FooterToolbar/index.d.ts
10
+ interface FooterToolbarProps {
11
+ extra?: VNode;
12
+ footerToolbarContentRender?: FooterToolbarContentRender;
13
+ prefixCls?: string;
14
+ stylish?: GenerateStyle<stylishToken>;
15
+ portalDom?: boolean;
16
+ }
17
+ declare const FooterToolbar: _$vue.DefineSetupFnComponent<FooterToolbarProps, {}, CustomSlotsType<Pick<SlotsRenderType, "footerToolbarContentRender"> & {
18
+ default: () => VueNode[];
19
+ }>, FooterToolbarProps & {}, _$vue.PublicProps>;
20
+ //#endregion
21
+ export { FooterToolbarProps, FooterToolbar as default };
@@ -0,0 +1,85 @@
1
+ import { useRouteContext } from "../../context/RouteContext.js";
2
+ import style_default from "./style/index.js";
3
+ import { useStylish } from "./style/stylish.js";
4
+ import { Fragment, Teleport, computed, createVNode, defineComponent, isVNode } from "vue";
5
+ import { getSlot, isBrowser, useEffect } from "@antdv-vue/pro-utils";
6
+ import { classNames } from "@v-c/util";
7
+ import { useConfig } from "antdv-next/config-provider/context";
8
+ //#region src/components/FooterToolbar/index.tsx
9
+ function _isSlot(s) {
10
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
11
+ }
12
+ const FooterToolbar = /* @__PURE__ */ defineComponent((props, { slots, attrs }) => {
13
+ const config = useConfig();
14
+ const prefixCls = computed(() => props.prefixCls || config.value.getPrefixCls("pro"));
15
+ const baseClassName = computed(() => `${prefixCls.value}-footer-bar`);
16
+ const routeContext = useRouteContext();
17
+ const [hashId, cssVarCls] = style_default(baseClassName);
18
+ const width = computed(() => {
19
+ const { hasSiderMenu, isMobile, siderWidth } = routeContext.value;
20
+ if (!hasSiderMenu) return;
21
+ if (!siderWidth) return "100%";
22
+ return isMobile ? "100%" : `calc(100% - ${siderWidth}px)`;
23
+ });
24
+ const containerDom = computed(() => {
25
+ if (typeof window === "undefined" || typeof document === "undefined") return null;
26
+ return config.value.getTargetContainer?.() || document.body;
27
+ });
28
+ useStylish(computed(() => `${baseClassName.value}.${baseClassName.value}-stylish`), { stylish: computed(() => props.stylish) });
29
+ /** 告诉 props 是否存在 footerBar */
30
+ useEffect(() => {
31
+ if (!routeContext.value || !routeContext.value?.setHasFooterToolbar) return () => {};
32
+ routeContext.value?.setHasFooterToolbar?.(true);
33
+ return () => {
34
+ routeContext.value?.setHasFooterToolbar?.(false);
35
+ };
36
+ }, []);
37
+ return () => {
38
+ const { extra, portalDom = true } = props;
39
+ const footerToolbarContentRender = getSlot(slots, props, "footerToolbarContentRender");
40
+ const dom = createVNode(Fragment, null, [createVNode("div", { "class": classNames(`${baseClassName.value}-left`, hashId?.value, cssVarCls?.value) }, [extra]), createVNode("div", { "class": classNames(`${baseClassName.value}-right`, hashId?.value, cssVarCls?.value) }, [slots.default?.()])]);
41
+ const renderDom = createVNode("div", {
42
+ "class": classNames(baseClassName.value, attrs.class, hashId?.value, cssVarCls?.value, { [`${baseClassName.value}-stylish`]: !!props.stylish }),
43
+ "style": {
44
+ width: width.value,
45
+ ...attrs.style || {}
46
+ }
47
+ }, [footerToolbarContentRender ? footerToolbarContentRender({
48
+ props: {
49
+ ...props,
50
+ ...routeContext.value,
51
+ leftWidth: width.value
52
+ },
53
+ dom
54
+ }) : dom]);
55
+ return createVNode(Fragment, { "key": baseClassName.value }, [!isBrowser() || !portalDom || !containerDom.value ? createVNode(Fragment, null, [renderDom]) : createVNode(Teleport, { "to": containerDom.value }, _isSlot(renderDom) ? renderDom : { default: () => [renderDom] })]);
56
+ };
57
+ }, {
58
+ props: {
59
+ extra: {
60
+ type: Object,
61
+ required: false
62
+ },
63
+ footerToolbarContentRender: {
64
+ type: Function,
65
+ required: false
66
+ },
67
+ prefixCls: {
68
+ type: String,
69
+ required: false
70
+ },
71
+ stylish: {
72
+ type: Function,
73
+ required: false
74
+ },
75
+ portalDom: {
76
+ type: Boolean,
77
+ required: false,
78
+ default: void 0
79
+ }
80
+ },
81
+ name: "FooterToolbar",
82
+ inheritAttrs: false
83
+ });
84
+ //#endregion
85
+ export { FooterToolbar as default };
@@ -0,0 +1,8 @@
1
+ import * as _$vue from "vue";
2
+ import { ProAliasCssVarToken } from "@antdv-vue/pro-provider";
3
+
4
+ //#region src/components/FooterToolbar/style/index.d.ts
5
+ interface FooterToolBarToken extends ProAliasCssVarToken {}
6
+ declare const _default: (prefixCls: _$vue.Ref<string>, rootCls?: _$vue.Ref<string | undefined>) => readonly [_$vue.Ref<string, string>, _$vue.ComputedRef<string | undefined>];
7
+ //#endregion
8
+ export { FooterToolBarToken, _default as default };
@@ -0,0 +1,35 @@
1
+ import { useStyle } from "@antdv-vue/pro-provider";
2
+ import { mergeToken, unit } from "@antdv-next/cssinjs";
3
+ //#region src/components/FooterToolbar/style/index.ts
4
+ const genFooterToolBarStyle = (token) => {
5
+ return { [token.componentCls]: {
6
+ position: "fixed",
7
+ insetInlineEnd: 0,
8
+ bottom: 0,
9
+ zIndex: 8,
10
+ display: "flex",
11
+ alignItems: "center",
12
+ width: "100%",
13
+ paddingInline: 24,
14
+ paddingBlock: 0,
15
+ boxSizing: "border-box",
16
+ lineHeight: "44px",
17
+ backgroundColor: token.colorBgElevated,
18
+ borderBlockStart: `${unit(token.lineWidth)} ${token.lineType} ${token.colorSplit}`,
19
+ boxShadow: token.boxShadowSecondary,
20
+ transition: `all ${token.motionDurationMid}`,
21
+ "&-left": { flex: 1 },
22
+ "&-right": { "> *": {
23
+ marginInlineEnd: 8,
24
+ "&:last-child": {
25
+ marginBlock: 0,
26
+ marginInline: 0
27
+ }
28
+ } }
29
+ } };
30
+ };
31
+ var style_default = useStyle("ProLayoutFooterToolbar", (token) => {
32
+ return [genFooterToolBarStyle(mergeToken(token, {}))];
33
+ });
34
+ //#endregion
35
+ export { style_default as default };
@@ -0,0 +1,13 @@
1
+ import * as _$vue from "vue";
2
+ import { ComputedRef } from "vue";
3
+ import { GenerateStyle, ProAliasCssVarToken } from "@antdv-vue/pro-provider";
4
+
5
+ //#region src/components/FooterToolbar/style/stylish.d.ts
6
+ interface stylishToken extends ProAliasCssVarToken {}
7
+ declare function useStylish(prefixCls: ComputedRef<string>, {
8
+ stylish
9
+ }: {
10
+ stylish?: ComputedRef<GenerateStyle<stylishToken>>;
11
+ }): readonly [_$vue.Ref<string, string>, ComputedRef<string | undefined>];
12
+ //#endregion
13
+ export { stylishToken, useStylish };
@@ -0,0 +1,12 @@
1
+ import { useStyle } from "@antdv-vue/pro-provider";
2
+ import { mergeToken } from "@antdv-next/cssinjs";
3
+ //#region src/components/FooterToolbar/style/stylish.ts
4
+ function useStylish(prefixCls, { stylish }) {
5
+ return useStyle("ProLayoutFooterToolbarStylish", (token) => {
6
+ const stylishToken = mergeToken(token, {});
7
+ if (!stylish?.value) return [];
8
+ return [{ [`${stylishToken.componentCls}`]: stylish.value?.(stylishToken) }];
9
+ })(prefixCls);
10
+ }
11
+ //#endregion
12
+ export { useStylish };
@@ -0,0 +1,17 @@
1
+ import * as _$vue from "vue";
2
+ import { VNode } from "vue";
3
+
4
+ //#region src/components/GlobalFooter/index.d.ts
5
+ interface GlobalFooterProps {
6
+ links?: boolean | {
7
+ key?: string;
8
+ title: VNode;
9
+ href: string;
10
+ blankTarget?: boolean;
11
+ }[];
12
+ copyright?: VNode | boolean;
13
+ prefixCls?: string;
14
+ }
15
+ declare const GlobalFooter: _$vue.DefineSetupFnComponent<GlobalFooterProps, {}, {}, GlobalFooterProps & {}, _$vue.PublicProps>;
16
+ //#endregion
17
+ export { GlobalFooterProps, GlobalFooter as default };
@@ -0,0 +1,46 @@
1
+ import style_default from "./style/index.js";
2
+ import { computed, createVNode, defineComponent } from "vue";
3
+ import { classNames } from "@v-c/util";
4
+ import { useConfig } from "antdv-next/config-provider/context";
5
+ //#region src/components/GlobalFooter/index.tsx
6
+ const GlobalFooter = /* @__PURE__ */ defineComponent((props, { attrs }) => {
7
+ const config = useConfig();
8
+ const baseClassName = computed(() => config.value.getPrefixCls(props.prefixCls || "pro-global-footer"));
9
+ const [hashId, cssVarCls] = style_default(baseClassName);
10
+ return () => {
11
+ const { links, copyright } = props;
12
+ if ((links == null || links === false || Array.isArray(links) && links.length === 0) && (copyright == null || copyright === false)) return null;
13
+ return createVNode("div", {
14
+ "class": classNames(baseClassName.value, hashId?.value, cssVarCls?.value, attrs.class),
15
+ "style": attrs.style
16
+ }, [links && Array.isArray(links) && links.length > 0 && createVNode("div", { "class": classNames(`${baseClassName.value}-list`, hashId?.value, cssVarCls?.value) }, [links?.map((link) => createVNode("a", {
17
+ "class": classNames(`${baseClassName.value}-list-link`, hashId?.value, cssVarCls?.value),
18
+ "key": link.key,
19
+ "title": link.key,
20
+ "target": link.blankTarget ? "_blank" : "_self",
21
+ "href": link.href,
22
+ "rel": "noreferrer"
23
+ }, [link.title]))]), copyright && createVNode("div", { "class": classNames(`${baseClassName.value}-copyright`, hashId?.value, cssVarCls?.value) }, [copyright])]);
24
+ };
25
+ }, {
26
+ props: {
27
+ links: {
28
+ type: [Boolean, Array],
29
+ required: false,
30
+ default: void 0
31
+ },
32
+ copyright: {
33
+ type: [Object, Boolean],
34
+ required: false,
35
+ default: void 0
36
+ },
37
+ prefixCls: {
38
+ type: String,
39
+ required: false
40
+ }
41
+ },
42
+ name: "GlobalFooter",
43
+ inheritAttrs: false
44
+ });
45
+ //#endregion
46
+ export { GlobalFooter as default };
@@ -0,0 +1,8 @@
1
+ import * as _$vue from "vue";
2
+ import { ProAliasCssVarToken } from "@antdv-vue/pro-provider";
3
+
4
+ //#region src/components/GlobalFooter/style/index.d.ts
5
+ interface GlobalFooterToken extends ProAliasCssVarToken {}
6
+ declare const _default: (prefixCls: _$vue.Ref<string>, rootCls?: _$vue.Ref<string | undefined>) => readonly [_$vue.Ref<string, string>, _$vue.ComputedRef<string | undefined>];
7
+ //#endregion
8
+ export { GlobalFooterToken, _default as default };
@@ -0,0 +1,33 @@
1
+ import { useStyle } from "@antdv-vue/pro-provider";
2
+ import { mergeToken } from "@antdv-next/cssinjs";
3
+ //#region src/components/GlobalFooter/style/index.ts
4
+ const genGlobalFooterStyle = (token) => {
5
+ return { [token.componentCls]: {
6
+ marginBlock: 0,
7
+ marginBlockStart: 48,
8
+ marginBlockEnd: 24,
9
+ marginInline: 0,
10
+ paddingBlock: 0,
11
+ paddingInline: 16,
12
+ textAlign: "center",
13
+ "&-list": {
14
+ marginBlockEnd: 8,
15
+ color: token.colorTextSecondary,
16
+ "&-link": {
17
+ color: token.colorTextSecondary,
18
+ textDecoration: token.linkDecoration
19
+ },
20
+ "*:not(:last-child)": { marginInlineEnd: 8 },
21
+ "&:hover": { color: token.colorPrimary }
22
+ },
23
+ "&-copyright": {
24
+ fontSize: 14,
25
+ color: token.colorText
26
+ }
27
+ } };
28
+ };
29
+ var style_default = useStyle("ProLayoutGlobalFooter", (token) => {
30
+ return [genGlobalFooterStyle(mergeToken(token, {}))];
31
+ });
32
+ //#endregion
33
+ export { style_default as default };
@@ -0,0 +1,30 @@
1
+ import { SiderMenuProps } from "../SiderMenu/SiderMenu.js";
2
+ import { ActionsRender, SlotsRenderType } from "../../RenderTypings.js";
3
+ import * as _$vue from "vue";
4
+ import { AvatarProps } from "antdv-next";
5
+ import { CustomSlotsType, VueNode } from "@v-c/util/dist/type";
6
+
7
+ //#region src/components/GlobalHeader/ActionsContent.d.ts
8
+ type AvatarPropsType = (AvatarProps & {
9
+ title?: VueNode;
10
+ render?: (avatarProps: AvatarProps, defaultDom: VueNode, props: SiderMenuProps) => VueNode;
11
+ }) | false;
12
+ declare const ActionsContent: _$vue.DefineSetupFnComponent<{
13
+ prefixCls?: string; /** 头像的设置 */
14
+ avatarProps?: AvatarPropsType;
15
+ /**
16
+ * @name actionsRender Layout的操作功能列表,不同的 layout 会放到不同的位置
17
+ */
18
+ actionsRender?: ActionsRender | false;
19
+ }, {}, CustomSlotsType<Pick<SlotsRenderType, "actionsRender"> & {
20
+ default: () => VueNode;
21
+ }>, {
22
+ prefixCls?: string; /** 头像的设置 */
23
+ avatarProps?: AvatarPropsType;
24
+ /**
25
+ * @name actionsRender Layout的操作功能列表,不同的 layout 会放到不同的位置
26
+ */
27
+ actionsRender?: ActionsRender | false;
28
+ } & {}, _$vue.PublicProps>;
29
+ //#endregion
30
+ export { AvatarPropsType, ActionsContent as default };
@@ -0,0 +1,88 @@
1
+ import rightContentStyle_default from "./style/rightContentStyle.js";
2
+ import { Fragment, computed, createVNode, defineComponent, isVNode, mergeProps } from "vue";
3
+ import { getSlot, useDebounceFn, useState } from "@antdv-vue/pro-utils";
4
+ import { classNames } from "@v-c/util";
5
+ import { Avatar } from "antdv-next";
6
+ import { useConfig } from "antdv-next/config-provider/context";
7
+ import ResizeObserver from "@v-c/resize-observer";
8
+ //#region src/components/GlobalHeader/ActionsContent.tsx
9
+ const ActionsContent = /* @__PURE__ */ defineComponent((props, { slots }) => {
10
+ const config = useConfig();
11
+ const prefixCls = computed(() => props.prefixCls || `${config.value.getPrefixCls()}-pro-global-header`);
12
+ const [hashId, cssVarCls] = rightContentStyle_default(prefixCls);
13
+ const [rightSize, setRightSize] = useState("auto");
14
+ const avatarDom = computed(() => {
15
+ const { avatarProps } = props;
16
+ if (!avatarProps) return null;
17
+ const { title, render, ...rest } = avatarProps;
18
+ const domList = createVNode(Fragment, null, [rest?.src || rest?.srcSet || rest.icon ? createVNode(Avatar, mergeProps(rest, {
19
+ "size": 28,
20
+ "key": "avatar"
21
+ }), null) : null, title && createVNode("span", {
22
+ "key": "name",
23
+ "style": { marginInlineStart: "8px" }
24
+ }, [title])]);
25
+ if (render) return render(avatarProps, createVNode("span", null, [domList]), props);
26
+ return createVNode("span", null, [domList]);
27
+ });
28
+ /** 减少一下渲染的次数 */
29
+ const setRightSizeDebounceFn = useDebounceFn(async (width) => setRightSize(width), 160);
30
+ return () => {
31
+ const actionsRender = getSlot(slots, props, "actionsRender");
32
+ const contentRender = actionsRender || avatarDom.value ? (restParams) => {
33
+ const doms = actionsRender && actionsRender({ ...restParams });
34
+ if (!doms && !avatarDom.value) return null;
35
+ if (!Array.isArray(doms)) {
36
+ let hideHover = false;
37
+ if (isVNode(doms)) hideHover = !!doms?.props?.["aria-hidden"];
38
+ return createVNode("div", { "class": classNames(`${prefixCls.value}-actions`, hashId?.value, cssVarCls?.value) }, [createVNode("div", { "class": classNames(`${prefixCls.value}-actions-item`, hashId?.value, cssVarCls?.value, { [`${prefixCls.value}-actions-hover`]: !hideHover }) }, [doms]), avatarDom.value && createVNode("div", { "class": classNames(`${prefixCls.value}-actions-avatar`, hashId?.value, cssVarCls?.value) }, [avatarDom.value])]);
39
+ }
40
+ return createVNode("div", { "class": classNames(`${prefixCls.value}-actions`, hashId?.value, cssVarCls?.value) }, [doms.filter(Boolean).map((dom, index) => {
41
+ let hideHover = false;
42
+ if (isVNode(dom)) hideHover = !!dom?.props?.["aria-hidden"];
43
+ return createVNode("div", {
44
+ "key": index,
45
+ "class": classNames(`${prefixCls.value}-actions-item`, hashId?.value, cssVarCls?.value, { [`${prefixCls.value}-actions-hover`]: !hideHover })
46
+ }, [dom]);
47
+ }), avatarDom.value && createVNode("div", { "class": classNames(`${prefixCls.value}-actions-avatar`, hashId?.value, cssVarCls?.value) }, [avatarDom.value])]);
48
+ } : void 0;
49
+ return createVNode("div", {
50
+ "class": classNames(`${prefixCls.value}-right-content`, hashId?.value, cssVarCls?.value),
51
+ "style": {
52
+ minWidth: rightSize.value,
53
+ height: "100%"
54
+ }
55
+ }, [createVNode(ResizeObserver, { "onResize": async ({ width }) => {
56
+ await setRightSizeDebounceFn.run(width);
57
+ } }, { default: () => [contentRender && createVNode("div", { "style": {
58
+ display: "flex",
59
+ alignItems: "center",
60
+ height: "100%",
61
+ justifyContent: "flex-end"
62
+ } }, [contentRender({
63
+ ...props,
64
+ rightContentSize: rightSize.value
65
+ })])] })]);
66
+ };
67
+ }, {
68
+ props: {
69
+ prefixCls: {
70
+ type: String,
71
+ required: false
72
+ },
73
+ avatarProps: {
74
+ type: [Object, Boolean],
75
+ required: false,
76
+ default: void 0
77
+ },
78
+ actionsRender: {
79
+ type: [Function, Boolean],
80
+ required: false,
81
+ default: void 0
82
+ }
83
+ },
84
+ name: "ActionsContent",
85
+ inheritAttrs: false
86
+ });
87
+ //#endregion
88
+ export { ActionsContent as default };