@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,530 @@
1
+ import { useProHelpContext } from "./HelpProvide.js";
2
+ import { Fragment, computed, createVNode, defineComponent, mergeProps } from "vue";
3
+ import { useProConfig } from "@antdv-vue/pro-provider";
4
+ import { useDebounceFn, useState } from "@antdv-vue/pro-utils";
5
+ import { classNames } from "@v-c/util";
6
+ import { Select } from "antdv-next";
7
+ import { SearchOutlined } from "@antdv-next/icons";
8
+ //#region src/components/Help/ProHelpSearch.tsx
9
+ const Highlight = ({ label, words, class: className }) => {
10
+ if (!words?.length || !words[0]) return createVNode("div", {
11
+ "title": label,
12
+ "class": className
13
+ }, [label]);
14
+ const matchKeywordsRE = new RegExp(words.map((word) => word.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&")).join("|"), "gi");
15
+ let matchText = label;
16
+ const elements = [];
17
+ while (matchText.length) {
18
+ const match = matchKeywordsRE.exec(matchText);
19
+ if (!match) {
20
+ elements.push(matchText);
21
+ break;
22
+ }
23
+ const start = match.index;
24
+ const matchLength = match[0].length + start;
25
+ elements.push(matchText.slice(0, start), createVNode("span", { "class": `${className}-light` }, [matchText.slice(start, matchLength)]));
26
+ matchText = matchText.slice(matchLength);
27
+ }
28
+ return createVNode("div", {
29
+ "title": label,
30
+ "class": className
31
+ }, [elements]);
32
+ };
33
+ const ProHelpSearch = /* @__PURE__ */ defineComponent((props) => {
34
+ const baseClassName = computed(() => `${props.basePrefixCls}-search-list-item-content`);
35
+ const proHeleContextProvide = useProHelpContext();
36
+ const [keyWord, setKeyWork] = useState(props.defaultValue ?? "");
37
+ const debounceSetKeyWork = useDebounceFn(async (key) => setKeyWork(key), 20);
38
+ const proConfig = useProConfig();
39
+ const [open, setOpen] = useState(false);
40
+ return () => {
41
+ const { iconClassName, basePrefixCls, ...restProps } = props;
42
+ return createVNode(Fragment, null, [!open.value ? createVNode("div", { "class": classNames(iconClassName, proConfig.value.hashId) }, [createVNode(SearchOutlined, mergeProps({ title: "search panel" }, { "onClick": () => {
43
+ setOpen(true);
44
+ } }), null)]) : null, open.value ? createVNode(Select, mergeProps(restProps, {
45
+ "placeholder": "please input search text",
46
+ "showSearch": {
47
+ onSearch: (value) => {
48
+ debounceSetKeyWork.cancel();
49
+ debounceSetKeyWork.run(value);
50
+ },
51
+ filterOption: (input, option) => (option?.title ?? "").toLowerCase().includes(input.toLowerCase())
52
+ },
53
+ "onBlur": () => setOpen(false),
54
+ "size": "small",
55
+ "popupMatchSelectWidth": false,
56
+ "options": proHeleContextProvide.value.dataSource.map((item) => ({
57
+ label: createVNode(Highlight, {
58
+ "label": item.title,
59
+ "class": baseClassName.value,
60
+ "words": keyWord.value ? [keyWord.value] : []
61
+ }, null),
62
+ title: item.title,
63
+ value: item.key,
64
+ options: item.children?.map((sunItem) => {
65
+ return {
66
+ label: createVNode(Highlight, {
67
+ "label": sunItem.title,
68
+ "class": baseClassName.value,
69
+ "words": keyWord.value ? [keyWord.value] : []
70
+ }, null),
71
+ title: sunItem.title,
72
+ value: sunItem.key,
73
+ dataItemKey: item.key
74
+ };
75
+ })
76
+ }))
77
+ }), null) : null]);
78
+ };
79
+ }, {
80
+ props: {
81
+ placement: {
82
+ type: String,
83
+ required: false
84
+ },
85
+ mode: {
86
+ type: String,
87
+ required: false
88
+ },
89
+ status: {
90
+ type: String,
91
+ required: false
92
+ },
93
+ popupClassName: {
94
+ type: String,
95
+ required: false
96
+ },
97
+ dropdownClassName: {
98
+ type: String,
99
+ required: false
100
+ },
101
+ dropdownStyle: {
102
+ type: Object,
103
+ required: false
104
+ },
105
+ dropdownRender: {
106
+ type: Function,
107
+ required: false
108
+ },
109
+ dropdownMatchSelectWidth: {
110
+ type: [Boolean, Number],
111
+ required: false,
112
+ default: void 0
113
+ },
114
+ popupMatchSelectWidth: {
115
+ type: [Boolean, Number],
116
+ required: false,
117
+ default: void 0
118
+ },
119
+ styles: {
120
+ type: [Object, Function],
121
+ required: false
122
+ },
123
+ classes: {
124
+ type: [Object, Function],
125
+ required: false
126
+ },
127
+ optionRender: {
128
+ type: Function,
129
+ required: false
130
+ },
131
+ prefix: {
132
+ type: [
133
+ Function,
134
+ String,
135
+ Number,
136
+ null,
137
+ Object,
138
+ Boolean
139
+ ],
140
+ required: false,
141
+ default: void 0
142
+ },
143
+ suffix: {
144
+ type: [
145
+ Function,
146
+ String,
147
+ Number,
148
+ null,
149
+ Object,
150
+ Boolean
151
+ ],
152
+ required: false,
153
+ default: void 0
154
+ },
155
+ suffixIcon: {
156
+ type: [
157
+ Function,
158
+ String,
159
+ Number,
160
+ null,
161
+ Object,
162
+ Boolean
163
+ ],
164
+ required: false,
165
+ default: void 0
166
+ },
167
+ size: {
168
+ type: [String, null],
169
+ required: false
170
+ },
171
+ disabled: {
172
+ type: Boolean,
173
+ required: false,
174
+ default: void 0
175
+ },
176
+ bordered: {
177
+ type: Boolean,
178
+ required: false,
179
+ default: void 0
180
+ },
181
+ showArrow: {
182
+ type: Boolean,
183
+ required: false,
184
+ default: void 0
185
+ },
186
+ variant: {
187
+ type: String,
188
+ required: false
189
+ },
190
+ popupRender: {
191
+ type: Function,
192
+ required: false
193
+ },
194
+ rootClass: {
195
+ type: String,
196
+ required: false
197
+ },
198
+ prefixCls: {
199
+ type: String,
200
+ required: false
201
+ },
202
+ id: {
203
+ type: String,
204
+ required: false
205
+ },
206
+ fieldNames: {
207
+ type: Object,
208
+ required: false
209
+ },
210
+ showSearch: {
211
+ type: [Boolean, Object],
212
+ required: false,
213
+ default: void 0
214
+ },
215
+ searchValue: {
216
+ type: String,
217
+ required: false
218
+ },
219
+ autoClearSearchValue: {
220
+ type: Boolean,
221
+ required: false,
222
+ default: void 0
223
+ },
224
+ filterSort: {
225
+ type: Function,
226
+ required: false
227
+ },
228
+ optionLabelProp: {
229
+ type: String,
230
+ required: false
231
+ },
232
+ defaultActiveFirstOption: {
233
+ type: Boolean,
234
+ required: false,
235
+ default: void 0
236
+ },
237
+ virtual: {
238
+ type: Boolean,
239
+ required: false,
240
+ default: void 0
241
+ },
242
+ direction: {
243
+ type: String,
244
+ required: false
245
+ },
246
+ listHeight: {
247
+ type: Number,
248
+ required: false
249
+ },
250
+ listItemHeight: {
251
+ type: Number,
252
+ required: false
253
+ },
254
+ labelRender: {
255
+ type: Function,
256
+ required: false
257
+ },
258
+ menuItemSelectedIcon: {
259
+ type: [
260
+ Object,
261
+ Function,
262
+ String,
263
+ Number,
264
+ null,
265
+ Boolean,
266
+ Array
267
+ ],
268
+ required: false,
269
+ default: void 0
270
+ },
271
+ labelInValue: {
272
+ type: Boolean,
273
+ required: false,
274
+ default: void 0
275
+ },
276
+ value: { required: false },
277
+ defaultValue: { required: false },
278
+ maxCount: {
279
+ type: Number,
280
+ required: false
281
+ },
282
+ tagRender: {
283
+ type: Function,
284
+ required: false
285
+ },
286
+ autoFocus: {
287
+ type: Boolean,
288
+ required: false,
289
+ default: void 0
290
+ },
291
+ autoComplete: {
292
+ type: String,
293
+ required: false
294
+ },
295
+ placeholder: {
296
+ type: [
297
+ Object,
298
+ Function,
299
+ String,
300
+ Number,
301
+ null,
302
+ Boolean,
303
+ Array
304
+ ],
305
+ required: false,
306
+ default: void 0
307
+ },
308
+ title: {
309
+ type: String,
310
+ required: false
311
+ },
312
+ tabIndex: {
313
+ type: Number,
314
+ required: false
315
+ },
316
+ notFoundContent: {
317
+ type: [
318
+ Object,
319
+ Function,
320
+ String,
321
+ Number,
322
+ null,
323
+ Boolean,
324
+ Array
325
+ ],
326
+ required: false,
327
+ default: void 0
328
+ },
329
+ maxLength: {
330
+ type: Number,
331
+ required: false
332
+ },
333
+ showScrollBar: {
334
+ type: [Boolean, String],
335
+ required: false,
336
+ default: void 0
337
+ },
338
+ choiceTransitionName: {
339
+ type: String,
340
+ required: false
341
+ },
342
+ loading: {
343
+ type: Boolean,
344
+ required: false,
345
+ default: void 0
346
+ },
347
+ open: {
348
+ type: Boolean,
349
+ required: false,
350
+ default: void 0
351
+ },
352
+ defaultOpen: {
353
+ type: Boolean,
354
+ required: false,
355
+ default: void 0
356
+ },
357
+ maxTagTextLength: {
358
+ type: Number,
359
+ required: false
360
+ },
361
+ maxTagCount: {
362
+ type: [Number, String],
363
+ required: false
364
+ },
365
+ maxTagPlaceholder: {
366
+ type: [
367
+ Object,
368
+ Function,
369
+ String,
370
+ Number,
371
+ null,
372
+ Boolean,
373
+ Array
374
+ ],
375
+ required: false,
376
+ default: void 0
377
+ },
378
+ tokenSeparators: {
379
+ type: [Array, Function],
380
+ required: false
381
+ },
382
+ allowClear: {
383
+ type: [Boolean, Object],
384
+ required: false,
385
+ default: void 0
386
+ },
387
+ clearIcon: {
388
+ type: [
389
+ Object,
390
+ Function,
391
+ String,
392
+ Number,
393
+ null,
394
+ Boolean,
395
+ Array
396
+ ],
397
+ required: false,
398
+ default: void 0
399
+ },
400
+ removeIcon: {
401
+ type: [
402
+ Object,
403
+ Function,
404
+ String,
405
+ Number,
406
+ null,
407
+ Boolean,
408
+ Array
409
+ ],
410
+ required: false,
411
+ default: void 0
412
+ },
413
+ animation: {
414
+ type: String,
415
+ required: false
416
+ },
417
+ transitionName: {
418
+ type: String,
419
+ required: false
420
+ },
421
+ popupStyle: {
422
+ type: Object,
423
+ required: false
424
+ },
425
+ popupAlign: {
426
+ type: Object,
427
+ required: false
428
+ },
429
+ builtinPlacements: {
430
+ type: Object,
431
+ required: false
432
+ },
433
+ getPopupContainer: {
434
+ type: Function,
435
+ required: false
436
+ },
437
+ showAction: {
438
+ type: Array,
439
+ required: false
440
+ },
441
+ components: {
442
+ type: Object,
443
+ required: false
444
+ },
445
+ onOpenChange: {
446
+ type: Function,
447
+ required: false
448
+ },
449
+ onDropdownVisibleChange: {
450
+ type: Function,
451
+ required: false
452
+ },
453
+ onClear: {
454
+ type: Function,
455
+ required: false
456
+ },
457
+ onKeydown: {
458
+ type: Function,
459
+ required: false
460
+ },
461
+ onKeyup: {
462
+ type: Function,
463
+ required: false
464
+ },
465
+ onBlur: {
466
+ type: Function,
467
+ required: false
468
+ },
469
+ "onUpdate:value": {
470
+ type: Function,
471
+ required: false
472
+ },
473
+ onClick: {
474
+ type: Function,
475
+ required: false
476
+ },
477
+ onActive: {
478
+ type: Function,
479
+ required: false
480
+ },
481
+ onChange: {
482
+ type: Function,
483
+ required: false
484
+ },
485
+ onDeselect: {
486
+ type: Function,
487
+ required: false
488
+ },
489
+ onInputKeydown: {
490
+ type: Function,
491
+ required: false
492
+ },
493
+ onMousedown: {
494
+ type: Function,
495
+ required: false
496
+ },
497
+ onMouseleave: {
498
+ type: Function,
499
+ required: false
500
+ },
501
+ onMouseenter: {
502
+ type: Function,
503
+ required: false
504
+ },
505
+ onFocus: {
506
+ type: Function,
507
+ required: false
508
+ },
509
+ onPopupScroll: {
510
+ type: Function,
511
+ required: false
512
+ },
513
+ onSelect: {
514
+ type: Function,
515
+ required: false
516
+ },
517
+ iconClassName: {
518
+ type: String,
519
+ required: false
520
+ },
521
+ basePrefixCls: {
522
+ type: String,
523
+ required: false
524
+ }
525
+ },
526
+ name: "ProHelpSearch",
527
+ inheritAttrs: false
528
+ });
529
+ //#endregion
530
+ export { ProHelpSearch as default };
@@ -0,0 +1,11 @@
1
+ import { ProHelpDataSourceChildren } from "./HelpProvide.js";
2
+ import * as _$vue from "vue";
3
+
4
+ //#region src/components/Help/RenderContentPanel.d.ts
5
+ interface RenderContentPanelProps {
6
+ dataSourceChildren?: ProHelpDataSourceChildren<any>[];
7
+ onInit?: (ref: HTMLDivElement) => void;
8
+ }
9
+ declare const RenderContentPanel: _$vue.DefineSetupFnComponent<RenderContentPanelProps, {}, {}, RenderContentPanelProps & {}, _$vue.PublicProps>;
10
+ //#endregion
11
+ export { RenderContentPanelProps, RenderContentPanel as default };
@@ -0,0 +1,90 @@
1
+ import { useProHelpContext } from "./HelpProvide.js";
2
+ import { useSelectKeyContext } from "./ProHelpPanel.js";
3
+ import { Fragment, createVNode, defineComponent, isVNode, mergeProps, shallowRef } from "vue";
4
+ import { useEffect } from "@antdv-vue/pro-utils";
5
+ import { Image, TypographyLink, TypographyText, TypographyTitle } from "antdv-next";
6
+ //#region src/components/Help/RenderContentPanel.tsx
7
+ function _isSlot(s) {
8
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
9
+ }
10
+ const NavigationSwitch = (props, { slots }) => {
11
+ const context = useSelectKeyContext();
12
+ return createVNode(TypographyText, null, { default: () => [createVNode("a", {
13
+ "data-testid": "navigation-switch",
14
+ "onClick": () => {
15
+ context.value.setSelectedKey?.(props.selectKey);
16
+ }
17
+ }, [slots.default?.()])] });
18
+ };
19
+ const RenderContentPanel = /* @__PURE__ */ defineComponent((props) => {
20
+ const proHelpContextProvide = useProHelpContext();
21
+ const divRef = shallowRef(null);
22
+ useEffect(() => {
23
+ props.onInit?.(divRef.value);
24
+ }, [() => props.dataSourceChildren]);
25
+ /**
26
+ * itemRender 的定义
27
+ * @param {ProHelpDataSourceChildren} item
28
+ * @param {number} index
29
+ * @return {*}
30
+ */
31
+ const itemRender = (item, index) => {
32
+ if (proHelpContextProvide.value.valueTypeMap.has(item.valueType)) return createVNode(Fragment, { "key": index }, [proHelpContextProvide.value.valueTypeMap.get(item.valueType)?.(item, index)]);
33
+ if (item.valueType === "html") {
34
+ const { class: className, children } = item.children;
35
+ return createVNode("div", {
36
+ "key": index,
37
+ "class": className || "inner-html"
38
+ }, [children]);
39
+ }
40
+ if (item.valueType === "h1") return createVNode(TypographyTitle, {
41
+ "key": index,
42
+ "style": { marginTop: 0 },
43
+ "level": 3
44
+ }, { default: () => [item.children] });
45
+ if (item.valueType === "h2") return createVNode(TypographyTitle, {
46
+ "key": index,
47
+ "style": { marginTop: "20px" },
48
+ "level": 5
49
+ }, { default: () => [item.children] });
50
+ if (item.valueType === "image") return createVNode("div", {
51
+ "key": index,
52
+ "style": { marginBlock: "12px" }
53
+ }, [createVNode(Image, item.children, null)]);
54
+ if (item.valueType === "inlineLink") {
55
+ const { children, ...props } = item.children;
56
+ return createVNode(TypographyLink, mergeProps({ "key": index }, props), _isSlot(children) ? children : { default: () => [children] });
57
+ }
58
+ if (item.valueType === "link") {
59
+ const { children, ...props } = item.children;
60
+ return createVNode("div", { "key": index }, [createVNode(TypographyLink, mergeProps({ "key": index }, props), _isSlot(children) ? children : { default: () => [children] })]);
61
+ }
62
+ if (item.valueType === "navigationSwitch") {
63
+ const { selectKey, children } = item.children;
64
+ return createVNode(NavigationSwitch, {
65
+ "key": index,
66
+ "selectKey": selectKey
67
+ }, _isSlot(children) ? children : { default: () => [children] });
68
+ }
69
+ return createVNode(TypographyText, { "key": index }, { default: () => [item.children] });
70
+ };
71
+ return () => {
72
+ const { dataSourceChildren } = props;
73
+ return createVNode("div", { "ref": divRef }, [dataSourceChildren?.map(itemRender)]);
74
+ };
75
+ }, {
76
+ props: {
77
+ dataSourceChildren: {
78
+ type: Array,
79
+ required: false
80
+ },
81
+ onInit: {
82
+ type: Function,
83
+ required: false
84
+ }
85
+ },
86
+ name: "RenderContentPanel",
87
+ inheritAttrs: false
88
+ });
89
+ //#endregion
90
+ export { RenderContentPanel as default };
@@ -0,0 +1,43 @@
1
+ import { ProHelpDataSource, ProHelpDataSourceChildren } from "./HelpProvide.js";
2
+ import ProHelpPanel from "./ProHelpPanel.js";
3
+ import * as _$vue from "vue";
4
+ import { Plugin } from "vue";
5
+ import { Key, VueNode } from "@v-c/util/dist/type";
6
+
7
+ //#region src/components/Help/index.d.ts
8
+ interface ProHelpProps<ValueType> {
9
+ /**
10
+ * 帮助文档的数据源,包含一组帮助文档数据,每个数据包含标题和内容等信息。
11
+ */
12
+ dataSource: ProHelpDataSource<ValueType>[];
13
+ /**
14
+ * 帮助组件的子组件,用于渲染自定义的帮助内容。
15
+ * 是一个键值对结构的集合,其中:
16
+ * 键(key)为字符串类型;
17
+ * 值(value)为一个函数类型,该函数接受两个参数:一个名为 item 的 ProHelpDataSourceChildren 类型的对象,表示一个 ProHelp 数据源子项的子项;
18
+ * 一个名为 index 的数字类型参数,表示该子项在父级子项数组中的索引。
19
+ * 该函数返回一个 ReactNode 类型的元素,用于表示该 ProHelp 数据源子项子项应该渲染的 UI 元素。
20
+ * 这个 Map 的作用是将 ProHelp 数据源子项子项的 valueType 属性与对应的渲染函数进行映射,从而实现在渲染 ProHelp 数据源时动态地选择渲染方法。
21
+ * 在实际使用时,我们可以通过判断子项的 valueType 属性,从 valueTypeMap 中取出对应的渲染函数,再将该子项和渲染函数作为参数传入 renderDataSourceItem 函数中即可。
22
+ */
23
+ valueTypeMap?: Map<string, (item: ProHelpDataSourceChildren<ValueType>, index: number) => VueNode>;
24
+ /**
25
+ * 加载数据源的函数,如果把数据源设置为 async load就可以使用这个功能。
26
+ */
27
+ onLoadContext?: (key: Key, context: ProHelpDataSource<ValueType>['children'][number]) => Promise<ProHelpDataSourceChildren<ValueType>[]>;
28
+ }
29
+ declare const _ProHelp: new <ValueTypeMap = {
30
+ text: any;
31
+ }>(props: ProHelpProps<ValueTypeMap> & {} & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps) => _$vue.CreateComponentPublicInstanceWithMixins<ProHelpProps<ValueTypeMap> & {}, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, _$vue.ComponentProvideOptions, {
32
+ P: {};
33
+ B: {};
34
+ D: {};
35
+ C: {};
36
+ M: {};
37
+ Defaults: {};
38
+ }, ProHelpProps<ValueTypeMap> & {}, {}, {}, {}, {}, {}>;
39
+ declare const ProHelp: typeof _ProHelp & Plugin & {
40
+ Panel: typeof ProHelpPanel;
41
+ };
42
+ //#endregion
43
+ export { ProHelpProps, ProHelp as default };
@@ -0,0 +1,31 @@
1
+ import { useProHelpProvider } from "./HelpProvide.js";
2
+ import ProHelpPanel from "./ProHelpPanel.js";
3
+ import { Fragment, computed, createVNode, defineComponent } from "vue";
4
+ //#region src/components/Help/index.tsx
5
+ const ProHelp = /* @__PURE__ */ defineComponent((props, { slots, expose }) => {
6
+ useProHelpProvider(computed(() => {
7
+ const { dataSource = [], valueTypeMap = /* @__PURE__ */ new Map(), onLoadContext } = props;
8
+ return {
9
+ onLoadContext,
10
+ dataSource,
11
+ valueTypeMap
12
+ };
13
+ }));
14
+ expose({});
15
+ return () => createVNode(Fragment, null, [slots.default?.()]);
16
+ }, {
17
+ name: "ProHelp",
18
+ inheritAttrs: false,
19
+ props: [
20
+ "dataSource",
21
+ "valueTypeMap",
22
+ "onLoadContext"
23
+ ]
24
+ });
25
+ ProHelp.Panel = ProHelpPanel;
26
+ ProHelp.install = (app) => {
27
+ app.component(ProHelp.name, ProHelp);
28
+ app.component(ProHelp.Panel.name, ProHelpPanel);
29
+ };
30
+ //#endregion
31
+ export { ProHelp as default };
@@ -0,0 +1,10 @@
1
+ import * as _$vue from "vue";
2
+ import { ProAliasCssVarToken } from "@antdv-vue/pro-provider";
3
+ import { Keyframes } from "@antdv-next/cssinjs";
4
+
5
+ //#region src/components/Help/style/index.d.ts
6
+ interface ProHelpToken extends ProAliasCssVarToken {}
7
+ declare const actionsInputAnimal: Keyframes;
8
+ declare const _default: (prefixCls: _$vue.Ref<string>, rootCls?: _$vue.Ref<string | undefined>) => readonly [_$vue.Ref<string, string>, _$vue.ComputedRef<string | undefined>];
9
+ //#endregion
10
+ export { ProHelpToken, actionsInputAnimal, _default as default };