create-meadminjs 1.0.0

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 (483) hide show
  1. package/bin/cli.js +3 -0
  2. package/bin/index.js +3 -0
  3. package/dist/cli.d.ts +1 -0
  4. package/dist/cli.js +97 -0
  5. package/dist/file-zuupOgeh.js +78 -0
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js +98 -0
  8. package/package.json +38 -0
  9. package/template/meadmin/.editorconfig +11 -0
  10. package/template/meadmin/.env +21 -0
  11. package/template/meadmin/.eslintrc.json +7 -0
  12. package/template/meadmin/.husky/pre-commit +4 -0
  13. package/template/meadmin/.mocharc.json +6 -0
  14. package/template/meadmin/.prettierignore +30 -0
  15. package/template/meadmin/.prettierrc.cjs +47 -0
  16. package/template/meadmin/.vscode/extensions.json +3 -0
  17. package/template/meadmin/.vscode/settings.json +28 -0
  18. package/template/meadmin/README.md +41 -0
  19. package/template/meadmin/bootstrap.js +2 -0
  20. package/template/meadmin/meadmin.sql +571 -0
  21. package/template/meadmin/nx.json +10 -0
  22. package/template/meadmin/packageTemplate.json +80 -0
  23. package/template/meadmin/pnpm-workspace.yaml +4 -0
  24. package/template/meadmin/public/admin/.gitkeep +0 -0
  25. package/template/meadmin/public/index/.gitkeep +0 -0
  26. package/template/meadmin/public/index/images/layout/bannerCode.jpg +0 -0
  27. package/template/meadmin/public/index/images/layout/bannerGift.jpg +0 -0
  28. package/template/meadmin/public/index/images/layout/bannerManage.jpg +0 -0
  29. package/template/meadmin/src/app/admin/controller/base.controller.ts +6 -0
  30. package/template/meadmin/src/app/admin/controller/example/demo.controller.ts +98 -0
  31. package/template/meadmin/src/app/admin/controller/file.controller.ts +105 -0
  32. package/template/meadmin/src/app/admin/controller/login.controller.ts +81 -0
  33. package/template/meadmin/src/app/admin/controller/system/admin.controller.ts +73 -0
  34. package/template/meadmin/src/app/admin/controller/system/menu.controller.ts +80 -0
  35. package/template/meadmin/src/app/admin/controller/system/role.controller.ts +81 -0
  36. package/template/meadmin/src/app/admin/controller/user.controller.ts +86 -0
  37. package/template/meadmin/src/app/admin/controller/userFile.controller.ts +84 -0
  38. package/template/meadmin/src/app/admin/dto/captchaResult.dto.ts +8 -0
  39. package/template/meadmin/src/app/admin/dto/example/demoCreate.dto.ts +9 -0
  40. package/template/meadmin/src/app/admin/dto/example/demoQuery.dto.ts +20 -0
  41. package/template/meadmin/src/app/admin/dto/example/demoUpdate.dto.ts +11 -0
  42. package/template/meadmin/src/app/admin/dto/fileCreate.dto.ts +9 -0
  43. package/template/meadmin/src/app/admin/dto/fileQuery.dto.ts +20 -0
  44. package/template/meadmin/src/app/admin/dto/fileUp.dto.ts +28 -0
  45. package/template/meadmin/src/app/admin/dto/fileUpdate.dto.ts +11 -0
  46. package/template/meadmin/src/app/admin/dto/loginCaptchaParam.dto.ts +9 -0
  47. package/template/meadmin/src/app/admin/dto/loginInfoResult.dto.ts +24 -0
  48. package/template/meadmin/src/app/admin/dto/loginParam.dto.ts +13 -0
  49. package/template/meadmin/src/app/admin/dto/loginResult.dto.ts +10 -0
  50. package/template/meadmin/src/app/admin/dto/system/adminCreate.dto.ts +14 -0
  51. package/template/meadmin/src/app/admin/dto/system/adminQuery.dto.ts +30 -0
  52. package/template/meadmin/src/app/admin/dto/system/adminUpdate.dto.ts +24 -0
  53. package/template/meadmin/src/app/admin/dto/system/menuCreate.dto.ts +11 -0
  54. package/template/meadmin/src/app/admin/dto/system/menuQuery.dto.ts +20 -0
  55. package/template/meadmin/src/app/admin/dto/system/menuTreeAllResult.dto.ts +9 -0
  56. package/template/meadmin/src/app/admin/dto/system/menuUpdate.dto.ts +8 -0
  57. package/template/meadmin/src/app/admin/dto/system/roleCreate.dto.ts +11 -0
  58. package/template/meadmin/src/app/admin/dto/system/roleQuery.dto.ts +20 -0
  59. package/template/meadmin/src/app/admin/dto/system/roleTreeAllResult.dto.ts +12 -0
  60. package/template/meadmin/src/app/admin/dto/system/roleUpdate.dto.ts +14 -0
  61. package/template/meadmin/src/app/admin/dto/userCreate.dto.ts +9 -0
  62. package/template/meadmin/src/app/admin/dto/userFileCreate.dto.ts +9 -0
  63. package/template/meadmin/src/app/admin/dto/userFileQuery.dto.ts +20 -0
  64. package/template/meadmin/src/app/admin/dto/userFileUp.dto.ts +28 -0
  65. package/template/meadmin/src/app/admin/dto/userFileUpdate.dto.ts +11 -0
  66. package/template/meadmin/src/app/admin/dto/userQuery.dto.ts +26 -0
  67. package/template/meadmin/src/app/admin/dto/userUpdate.dto.ts +11 -0
  68. package/template/meadmin/src/app/admin/middleware/admin.middleware.ts +41 -0
  69. package/template/meadmin/src/app/admin/service/example/demo.service.ts +260 -0
  70. package/template/meadmin/src/app/admin/service/file.service.ts +123 -0
  71. package/template/meadmin/src/app/admin/service/login.serveice.ts +209 -0
  72. package/template/meadmin/src/app/admin/service/system/admin.service.ts +206 -0
  73. package/template/meadmin/src/app/admin/service/system/menu.service.ts +133 -0
  74. package/template/meadmin/src/app/admin/service/system/role.service.ts +161 -0
  75. package/template/meadmin/src/app/admin/service/user.service.ts +205 -0
  76. package/template/meadmin/src/app/admin/service/userFile.service.ts +126 -0
  77. package/template/meadmin/src/app/home.controller.ts +19 -0
  78. package/template/meadmin/src/app/index/controller/base.controller.ts +6 -0
  79. package/template/meadmin/src/app/index/controller/file.controller.ts +116 -0
  80. package/template/meadmin/src/app/index/controller/index.controller.ts +70 -0
  81. package/template/meadmin/src/app/index/controller/login.controller.ts +81 -0
  82. package/template/meadmin/src/app/index/controller/user.controller.ts +43 -0
  83. package/template/meadmin/src/app/index/dto/captchaResult.dto.ts +8 -0
  84. package/template/meadmin/src/app/index/dto/fileCreate.dto.ts +9 -0
  85. package/template/meadmin/src/app/index/dto/fileQuery.dto.ts +20 -0
  86. package/template/meadmin/src/app/index/dto/fileUp.dto.ts +28 -0
  87. package/template/meadmin/src/app/index/dto/fileUpdate.dto.ts +11 -0
  88. package/template/meadmin/src/app/index/dto/loginCaptchaParam.dto.ts +9 -0
  89. package/template/meadmin/src/app/index/dto/loginParam.dto.ts +13 -0
  90. package/template/meadmin/src/app/index/dto/loginResult.dto.ts +10 -0
  91. package/template/meadmin/src/app/index/dto/userCreate.dto.ts +26 -0
  92. package/template/meadmin/src/app/index/dto/userUpdate.dto.ts +33 -0
  93. package/template/meadmin/src/app/index/middleware/index.middleware.ts +28 -0
  94. package/template/meadmin/src/app/index/service/file.service.ts +127 -0
  95. package/template/meadmin/src/app/index/service/login.serveice.ts +178 -0
  96. package/template/meadmin/src/app/index/service/user.service.ts +87 -0
  97. package/template/meadmin/src/config/config.default.ts +154 -0
  98. package/template/meadmin/src/config/config.unittest.ts +7 -0
  99. package/template/meadmin/src/config/database.ts +30 -0
  100. package/template/meadmin/src/configuration.ts +107 -0
  101. package/template/meadmin/src/controller/api.controller.ts +21 -0
  102. package/template/meadmin/src/decorators/admin/permission.ts +41 -0
  103. package/template/meadmin/src/decorators/index/permission.ts +37 -0
  104. package/template/meadmin/src/decorators/index.ts +61 -0
  105. package/template/meadmin/src/decorators/sequelize.ts +65 -0
  106. package/template/meadmin/src/decorators/swagger.ts +170 -0
  107. package/template/meadmin/src/decorators/transactions.ts +42 -0
  108. package/template/meadmin/src/dict/code.enum.ts +8 -0
  109. package/template/meadmin/src/dto/page.dto.ts +16 -0
  110. package/template/meadmin/src/entities/abstract/adminBase.entity.ts +35 -0
  111. package/template/meadmin/src/entities/abstract/adminTree.entity.ts +258 -0
  112. package/template/meadmin/src/entities/abstract/base.entity.ts +69 -0
  113. package/template/meadmin/src/entities/abstract/indexBase.entity.ts +39 -0
  114. package/template/meadmin/src/entities/exampleBook.entity.ts +22 -0
  115. package/template/meadmin/src/entities/exampleDemo.entity.ts +104 -0
  116. package/template/meadmin/src/entities/file.entity.ts +68 -0
  117. package/template/meadmin/src/entities/systemAdmin.entity.ts +164 -0
  118. package/template/meadmin/src/entities/systemMenu.entity.ts +161 -0
  119. package/template/meadmin/src/entities/systemRole.entity.ts +99 -0
  120. package/template/meadmin/src/entities/user.entity.ts +160 -0
  121. package/template/meadmin/src/entities/userFile.entity.ts +68 -0
  122. package/template/meadmin/src/fileManage/index.ts +12 -0
  123. package/template/meadmin/src/fileManage/storage/base.ts +6 -0
  124. package/template/meadmin/src/fileManage/storage/local.ts +93 -0
  125. package/template/meadmin/src/filter/badRequest.filter.ts +14 -0
  126. package/template/meadmin/src/filter/default.filter.ts +28 -0
  127. package/template/meadmin/src/filter/forbidden.filter.ts +15 -0
  128. package/template/meadmin/src/filter/index.ts +6 -0
  129. package/template/meadmin/src/filter/notfound.filter.ts +10 -0
  130. package/template/meadmin/src/filter/unauthorized.filter.ts +15 -0
  131. package/template/meadmin/src/filter/validate.filter.ts +23 -0
  132. package/template/meadmin/src/helper/dotenv.ts +13 -0
  133. package/template/meadmin/src/helper/dto.ts +195 -0
  134. package/template/meadmin/src/helper/snowflake.ts +50 -0
  135. package/template/meadmin/src/helper/utils.ts +57 -0
  136. package/template/meadmin/src/interface.ts +12 -0
  137. package/template/meadmin/src/locales/en.json +13 -0
  138. package/template/meadmin/src/logger.ts +24 -0
  139. package/template/meadmin/src/middleware/report.middleware.ts +23 -0
  140. package/template/meadmin/src/response/apiBase.res.ts +12 -0
  141. package/template/meadmin/src/response/apiError.res.ts +6 -0
  142. package/template/meadmin/src/response/apiPage.res.ts +19 -0
  143. package/template/meadmin/src/response/apiSuccess.res.ts +17 -0
  144. package/template/meadmin/src/ruleType/index.ts +3 -0
  145. package/template/meadmin/src/ruleType/string.ts +29 -0
  146. package/template/meadmin/src/service/dataSourceManager.service.ts +55 -0
  147. package/template/meadmin/src/service/response.service.ts +65 -0
  148. package/template/meadmin/src/types/decorator.ts +31 -0
  149. package/template/meadmin/src/types/entity.ts +209 -0
  150. package/template/meadmin/src/types/fileManage.ts +48 -0
  151. package/template/meadmin/src/types/koa.interface.ts +12 -0
  152. package/template/meadmin/src/types/uploadOptions.ts +7 -0
  153. package/template/meadmin/test/controller/api.test.ts +17 -0
  154. package/template/meadmin/test/controller/home.test.ts +18 -0
  155. package/template/meadmin/test/setup.ts +15 -0
  156. package/template/meadmin/test/tsconfig.json +19 -0
  157. package/template/meadmin/tsconfig.json +28 -0
  158. package/template/meadmin/types/mwtsc.d.ts +9 -0
  159. package/template/meadmin/uploadFile/admin/.gitkeep +0 -0
  160. package/template/meadmin/uploadFile/index/.gitkeep +0 -0
  161. package/template/meadmin/view/admin/.prettierignore +28 -0
  162. package/template/meadmin/view/admin/.prettierrc.cjs +4 -0
  163. package/template/meadmin/view/admin/cli/autoImport.ts +3 -0
  164. package/template/meadmin/view/admin/eslint.config.js +91 -0
  165. package/template/meadmin/view/admin/index.html +65 -0
  166. package/template/meadmin/view/admin/packageTemplate.json +123 -0
  167. package/template/meadmin/view/admin/plugins/autoComponents.ts +10 -0
  168. package/template/meadmin/view/admin/plugins/autoImport.ts +64 -0
  169. package/template/meadmin/view/admin/plugins/autoImportApi.ts +14 -0
  170. package/template/meadmin/view/admin/plugins/babel.ts +25 -0
  171. package/template/meadmin/view/admin/plugins/index.ts +107 -0
  172. package/template/meadmin/view/admin/plugins/svgLoader.ts +22 -0
  173. package/template/meadmin/view/admin/plugins/vueSetUpExtend.ts +5 -0
  174. package/template/meadmin/view/admin/public/favicon.ico +0 -0
  175. package/template/meadmin/view/admin/public/logo.png +0 -0
  176. package/template/meadmin/view/admin/public/logo.svg +1 -0
  177. package/template/meadmin/view/admin/src/App.vue +46 -0
  178. package/template/meadmin/view/admin/src/api/api.model.ts +11 -0
  179. package/template/meadmin/view/admin/src/api/example/demo.ts +189 -0
  180. package/template/meadmin/view/admin/src/api/file.ts +124 -0
  181. package/template/meadmin/view/admin/src/api/login.ts +55 -0
  182. package/template/meadmin/view/admin/src/api/system/admin.ts +111 -0
  183. package/template/meadmin/view/admin/src/api/system/menu.ts +125 -0
  184. package/template/meadmin/view/admin/src/api/system/role.ts +111 -0
  185. package/template/meadmin/view/admin/src/api/user.ts +106 -0
  186. package/template/meadmin/view/admin/src/api/userFile.ts +121 -0
  187. package/template/meadmin/view/admin/src/app.ts +13 -0
  188. package/template/meadmin/view/admin/src/assets/images/404.svg +339 -0
  189. package/template/meadmin/view/admin/src/assets/images/captcha.png +0 -0
  190. package/template/meadmin/view/admin/src/components/meButton.vue +39 -0
  191. package/template/meadmin/view/admin/src/components/meComponent.ts +73 -0
  192. package/template/meadmin/view/admin/src/components/meDarkSwitch.vue +36 -0
  193. package/template/meadmin/view/admin/src/components/meDialog/hooks/minMax.ts +163 -0
  194. package/template/meadmin/view/admin/src/components/meDialog/index.vue +86 -0
  195. package/template/meadmin/view/admin/src/components/meFilesView.vue +52 -0
  196. package/template/meadmin/view/admin/src/components/meKeepAlive/core/Suspense.ts +15 -0
  197. package/template/meadmin/view/admin/src/components/meKeepAlive/core/apiAsyncComponent.ts +3 -0
  198. package/template/meadmin/view/admin/src/components/meKeepAlive/core/component.ts +5 -0
  199. package/template/meadmin/view/admin/src/components/meKeepAlive/core/componentPublicInstance.ts +6 -0
  200. package/template/meadmin/view/admin/src/components/meKeepAlive/core/devtools.ts +43 -0
  201. package/template/meadmin/view/admin/src/components/meKeepAlive/core/errorHandling.ts +17 -0
  202. package/template/meadmin/view/admin/src/components/meKeepAlive/core/renderer.ts +103 -0
  203. package/template/meadmin/view/admin/src/components/meKeepAlive/core/shapeFlags.ts +13 -0
  204. package/template/meadmin/view/admin/src/components/meKeepAlive/core/vnode.ts +9 -0
  205. package/template/meadmin/view/admin/src/components/meKeepAlive/index.ts +347 -0
  206. package/template/meadmin/view/admin/src/components/meLocaleSelect.vue +34 -0
  207. package/template/meadmin/view/admin/src/components/meNumber.vue +74 -0
  208. package/template/meadmin/view/admin/src/components/meSearchForm.vue +175 -0
  209. package/template/meadmin/view/admin/src/components/meSearchMenu/index.vue +87 -0
  210. package/template/meadmin/view/admin/src/components/meSearchMenu/useSearchMenu.ts +87 -0
  211. package/template/meadmin/view/admin/src/components/meSelectFile/index.vue +87 -0
  212. package/template/meadmin/view/admin/src/components/meSelectFile/meSelectFile.ts +3 -0
  213. package/template/meadmin/view/admin/src/components/meSelectList.vue +80 -0
  214. package/template/meadmin/view/admin/src/components/meSelectUserFile/index.vue +96 -0
  215. package/template/meadmin/view/admin/src/components/meSelectUserFile/meSelectUserFile.ts +3 -0
  216. package/template/meadmin/view/admin/src/components/meSetting.vue +20 -0
  217. package/template/meadmin/view/admin/src/components/meSettingMenu.vue +152 -0
  218. package/template/meadmin/view/admin/src/components/meSizeSelect.vue +28 -0
  219. package/template/meadmin/view/admin/src/components/meUpload.vue +114 -0
  220. package/template/meadmin/view/admin/src/components/meUploadUserFile.vue +114 -0
  221. package/template/meadmin/view/admin/src/components/meVxeTable/components/pagination.vue +67 -0
  222. package/template/meadmin/view/admin/src/components/meVxeTable/directives/resize.ts +31 -0
  223. package/template/meadmin/view/admin/src/components/meVxeTable/index.vue +287 -0
  224. package/template/meadmin/view/admin/src/components/meVxeTable/install.ts +30 -0
  225. package/template/meadmin/view/admin/src/components/meVxeTable/util.ts +11 -0
  226. package/template/meadmin/view/admin/src/components/meWangEditor/index.vue +121 -0
  227. package/template/meadmin/view/admin/src/components/meWangEditor/meWangEditor.scss +24 -0
  228. package/template/meadmin/view/admin/src/components/page.vue +24 -0
  229. package/template/meadmin/view/admin/src/components/service/meImageViewer.ts +23 -0
  230. package/template/meadmin/view/admin/src/config/index.ts +11 -0
  231. package/template/meadmin/view/admin/src/config/locale.ts +245 -0
  232. package/template/meadmin/view/admin/src/config/login.ts +5 -0
  233. package/template/meadmin/view/admin/src/config/theme.ts +19 -0
  234. package/template/meadmin/view/admin/src/dict/configEnum.ts +5 -0
  235. package/template/meadmin/view/admin/src/dict/eventEnmu.ts +14 -0
  236. package/template/meadmin/view/admin/src/dict/menuModeEnum.ts +5 -0
  237. package/template/meadmin/view/admin/src/dict/pageEnum.ts +6 -0
  238. package/template/meadmin/view/admin/src/directives/clickOutside.ts +2 -0
  239. package/template/meadmin/view/admin/src/entry-client.ts +8 -0
  240. package/template/meadmin/view/admin/src/entry-server.ts +69 -0
  241. package/template/meadmin/view/admin/src/env.d.ts +6 -0
  242. package/template/meadmin/view/admin/src/event/index.ts +30 -0
  243. package/template/meadmin/view/admin/src/event/module.ts +1 -0
  244. package/template/meadmin/view/admin/src/event/modules/core.ts +27 -0
  245. package/template/meadmin/view/admin/src/hooks/actionModel.ts +54 -0
  246. package/template/meadmin/view/admin/src/hooks/core/computedProxy.ts +10 -0
  247. package/template/meadmin/view/admin/src/hooks/index.ts +24 -0
  248. package/template/meadmin/view/admin/src/icons/index.ts +52 -0
  249. package/template/meadmin/view/admin/src/icons/svg/dashboard.svg +5 -0
  250. package/template/meadmin/view/admin/src/icons/svg/moon.svg +5 -0
  251. package/template/meadmin/view/admin/src/icons/svg/size.svg +5 -0
  252. package/template/meadmin/view/admin/src/icons/svg/sunny.svg +5 -0
  253. package/template/meadmin/view/admin/src/icons/svg/translation.svg +5 -0
  254. package/template/meadmin/view/admin/src/layout/components/expand.vue +18 -0
  255. package/template/meadmin/view/admin/src/layout/components/header/components/tagBar/components/contextmenu.vue +180 -0
  256. package/template/meadmin/view/admin/src/layout/components/header/components/tagBar/index.vue +322 -0
  257. package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/left.vue +59 -0
  258. package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/right/components/messageBox.vue +82 -0
  259. package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/right/components/user.vue +53 -0
  260. package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/right/index.vue +44 -0
  261. package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/topMenu.vue +33 -0
  262. package/template/meadmin/view/admin/src/layout/components/header/components/topBar/index.vue +30 -0
  263. package/template/meadmin/view/admin/src/layout/components/header/index.vue +15 -0
  264. package/template/meadmin/view/admin/src/layout/components/menu/components/menuItem.vue +72 -0
  265. package/template/meadmin/view/admin/src/layout/components/menu/index.vue +147 -0
  266. package/template/meadmin/view/admin/src/layout/components/page.vue +33 -0
  267. package/template/meadmin/view/admin/src/layout/components/title.vue +21 -0
  268. package/template/meadmin/view/admin/src/layout/index.vue +104 -0
  269. package/template/meadmin/view/admin/src/locales/helper.ts +127 -0
  270. package/template/meadmin/view/admin/src/locales/hooks.ts +50 -0
  271. package/template/meadmin/view/admin/src/locales/i18n.ts +16 -0
  272. package/template/meadmin/view/admin/src/locales/lang/en/default.json +65 -0
  273. package/template/meadmin/view/admin/src/locales/lang/en/index.ts +7 -0
  274. package/template/meadmin/view/admin/src/locales/lang/en/meTable.json +7 -0
  275. package/template/meadmin/view/admin/src/locales/lang/en/meVxeTable.ts +11 -0
  276. package/template/meadmin/view/admin/src/locales/lang/en/menu.json +1 -0
  277. package/template/meadmin/view/admin/src/locales/lang/en/rule.json +12 -0
  278. package/template/meadmin/view/admin/src/locales/lang/zh-cn/default.json +6 -0
  279. package/template/meadmin/view/admin/src/locales/lang/zh-cn/index.ts +7 -0
  280. package/template/meadmin/view/admin/src/locales/lang/zh-cn/meVxeTable.ts +2 -0
  281. package/template/meadmin/view/admin/src/main.ts +21 -0
  282. package/template/meadmin/view/admin/src/router/constant.ts +2 -0
  283. package/template/meadmin/view/admin/src/router/guard/index.ts +52 -0
  284. package/template/meadmin/view/admin/src/router/index.ts +115 -0
  285. package/template/meadmin/view/admin/src/setElGlobel.ts +16 -0
  286. package/template/meadmin/view/admin/src/store/index.ts +8 -0
  287. package/template/meadmin/view/admin/src/store/modules/global.ts +66 -0
  288. package/template/meadmin/view/admin/src/store/modules/route.ts +69 -0
  289. package/template/meadmin/view/admin/src/store/modules/setting.ts +46 -0
  290. package/template/meadmin/view/admin/src/store/modules/user.ts +115 -0
  291. package/template/meadmin/view/admin/src/styles/element-plus.scss +40 -0
  292. package/template/meadmin/view/admin/src/styles/index.scss +122 -0
  293. package/template/meadmin/view/admin/src/styles/transition.scss +33 -0
  294. package/template/meadmin/view/admin/src/styles/variables.scss +5 -0
  295. package/template/meadmin/view/admin/src/utils/fileMd5Work.ts +109 -0
  296. package/template/meadmin/view/admin/src/utils/fileUpload.ts +154 -0
  297. package/template/meadmin/view/admin/src/utils/formatting.ts +62 -0
  298. package/template/meadmin/view/admin/src/utils/helper.ts +315 -0
  299. package/template/meadmin/view/admin/src/utils/loading.ts +63 -0
  300. package/template/meadmin/view/admin/src/utils/log.ts +8 -0
  301. package/template/meadmin/view/admin/src/utils/mitt.ts +152 -0
  302. package/template/meadmin/view/admin/src/utils/nProgress.ts +31 -0
  303. package/template/meadmin/view/admin/src/utils/permission.ts +76 -0
  304. package/template/meadmin/view/admin/src/utils/request.ts +152 -0
  305. package/template/meadmin/view/admin/src/utils/userFileUpload.ts +154 -0
  306. package/template/meadmin/view/admin/src/utils/validate.ts +17 -0
  307. package/template/meadmin/view/admin/src/views/404.vue +50 -0
  308. package/template/meadmin/view/admin/src/views/example/demo/components/addOrUp.vue +118 -0
  309. package/template/meadmin/view/admin/src/views/example/demo/components/info.vue +56 -0
  310. package/template/meadmin/view/admin/src/views/example/demo/dict.ts +8 -0
  311. package/template/meadmin/view/admin/src/views/example/demo/index.vue +126 -0
  312. package/template/meadmin/view/admin/src/views/example/demo/lang/dict.ts +8 -0
  313. package/template/meadmin/view/admin/src/views/example/demo/lang/en.json +14 -0
  314. package/template/meadmin/view/admin/src/views/file/components/add.vue +24 -0
  315. package/template/meadmin/view/admin/src/views/file/components/info.vue +51 -0
  316. package/template/meadmin/view/admin/src/views/file/components/up.vue +72 -0
  317. package/template/meadmin/view/admin/src/views/file/index.vue +132 -0
  318. package/template/meadmin/view/admin/src/views/file/lang/en.json +11 -0
  319. package/template/meadmin/view/admin/src/views/login/components/header.vue +20 -0
  320. package/template/meadmin/view/admin/src/views/login/index.vue +163 -0
  321. package/template/meadmin/view/admin/src/views/redirect.vue +12 -0
  322. package/template/meadmin/view/admin/src/views/system/admin/components/addOrUp.vue +111 -0
  323. package/template/meadmin/view/admin/src/views/system/admin/components/info.vue +75 -0
  324. package/template/meadmin/view/admin/src/views/system/admin/dict.ts +7 -0
  325. package/template/meadmin/view/admin/src/views/system/admin/index.vue +145 -0
  326. package/template/meadmin/view/admin/src/views/system/admin/lang/en.json +19 -0
  327. package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/components/addOrUp.vue +145 -0
  328. package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/components/info.vue +68 -0
  329. package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/dict.ts +36 -0
  330. package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/index.vue +162 -0
  331. package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/lang/en.json +20 -0
  332. package/template/meadmin/view/admin/src/views/system/menuRole/components/role/components/addOrUp.vue +94 -0
  333. package/template/meadmin/view/admin/src/views/system/menuRole/components/role/components/info.vue +59 -0
  334. package/template/meadmin/view/admin/src/views/system/menuRole/components/role/dict.ts +7 -0
  335. package/template/meadmin/view/admin/src/views/system/menuRole/components/role/index.vue +153 -0
  336. package/template/meadmin/view/admin/src/views/system/menuRole/components/role/lang/en.json +14 -0
  337. package/template/meadmin/view/admin/src/views/system/menuRole/index.vue +59 -0
  338. package/template/meadmin/view/admin/src/views/user/components/addOrUp.vue +120 -0
  339. package/template/meadmin/view/admin/src/views/user/components/info.vue +56 -0
  340. package/template/meadmin/view/admin/src/views/user/dict.ts +7 -0
  341. package/template/meadmin/view/admin/src/views/user/file/components/add.vue +24 -0
  342. package/template/meadmin/view/admin/src/views/user/file/components/info.vue +54 -0
  343. package/template/meadmin/view/admin/src/views/user/file/components/up.vue +82 -0
  344. package/template/meadmin/view/admin/src/views/user/file/index.vue +148 -0
  345. package/template/meadmin/view/admin/src/views/user/file/lang/en.json +17 -0
  346. package/template/meadmin/view/admin/src/views/user/index.vue +145 -0
  347. package/template/meadmin/view/admin/src/views/user/lang/en.json +18 -0
  348. package/template/meadmin/view/admin/template/components.d.ts +9 -0
  349. package/template/meadmin/view/admin/template/directives.d.ts +6 -0
  350. package/template/meadmin/view/admin/template/meIconComponents.d.ts +6 -0
  351. package/template/meadmin/view/admin/tsconfig.json +33 -0
  352. package/template/meadmin/view/admin/tsconfig.node.json +17 -0
  353. package/template/meadmin/view/admin/types/api.d.ts +15 -0
  354. package/template/meadmin/view/admin/types/auto-imports.d.ts +302 -0
  355. package/template/meadmin/view/admin/types/global.d.ts +60 -0
  356. package/template/meadmin/view/admin/types/globalComponents.d.ts +13 -0
  357. package/template/meadmin/view/admin/types/melIconComponents.d.d.ts +9 -0
  358. package/template/meadmin/view/admin/types/vue-router.d.ts +39 -0
  359. package/template/meadmin/view/admin/types/vueCustomProperties .d.ts +6 -0
  360. package/template/meadmin/view/admin/types/vueExtendType.d.ts +43 -0
  361. package/template/meadmin/view/admin/vite.config.ts +110 -0
  362. package/template/meadmin/view/index/.prettierignore +28 -0
  363. package/template/meadmin/view/index/.prettierrc.cjs +4 -0
  364. package/template/meadmin/view/index/README.md +84 -0
  365. package/template/meadmin/view/index/cli/autoImport.ts +3 -0
  366. package/template/meadmin/view/index/eslint.config.js +91 -0
  367. package/template/meadmin/view/index/index.html +22 -0
  368. package/template/meadmin/view/index/packageTemplate.json +122 -0
  369. package/template/meadmin/view/index/plugins/autoComponents.ts +10 -0
  370. package/template/meadmin/view/index/plugins/autoImport.ts +64 -0
  371. package/template/meadmin/view/index/plugins/autoImportApi.ts +14 -0
  372. package/template/meadmin/view/index/plugins/babel.ts +25 -0
  373. package/template/meadmin/view/index/plugins/index.ts +103 -0
  374. package/template/meadmin/view/index/plugins/svgLoader.ts +22 -0
  375. package/template/meadmin/view/index/plugins/vueSetUpExtend.ts +5 -0
  376. package/template/meadmin/view/index/public/favicon.ico +0 -0
  377. package/template/meadmin/view/index/public/logo.png +0 -0
  378. package/template/meadmin/view/index/public/logo.svg +1 -0
  379. package/template/meadmin/view/index/src/App.vue +30 -0
  380. package/template/meadmin/view/index/src/api/api.model.ts +11 -0
  381. package/template/meadmin/view/index/src/api/file.ts +123 -0
  382. package/template/meadmin/view/index/src/api/index.ts +25 -0
  383. package/template/meadmin/view/index/src/api/login.ts +72 -0
  384. package/template/meadmin/view/index/src/api/user.ts +42 -0
  385. package/template/meadmin/view/index/src/app.ts +39 -0
  386. package/template/meadmin/view/index/src/assets/images/404.svg +339 -0
  387. package/template/meadmin/view/index/src/assets/images/avatar.jpg +0 -0
  388. package/template/meadmin/view/index/src/components/meButton.vue +34 -0
  389. package/template/meadmin/view/index/src/components/meDialog/hooks/minMax.ts +166 -0
  390. package/template/meadmin/view/index/src/components/meDialog/index.vue +86 -0
  391. package/template/meadmin/view/index/src/components/meNumber.vue +74 -0
  392. package/template/meadmin/view/index/src/components/meSelectFile/index.vue +92 -0
  393. package/template/meadmin/view/index/src/components/meSelectFile/meSelectFile.ts +3 -0
  394. package/template/meadmin/view/index/src/components/meUpAvatar.vue +166 -0
  395. package/template/meadmin/view/index/src/components/meUpload.vue +111 -0
  396. package/template/meadmin/view/index/src/components/meVxeTable/components/pagination.vue +67 -0
  397. package/template/meadmin/view/index/src/components/meVxeTable/directives/resize.ts +31 -0
  398. package/template/meadmin/view/index/src/components/meVxeTable/index.vue +286 -0
  399. package/template/meadmin/view/index/src/components/meVxeTable/install.ts +18 -0
  400. package/template/meadmin/view/index/src/components/meVxeTable/util.ts +11 -0
  401. package/template/meadmin/view/index/src/components/meWangEditor/index.vue +121 -0
  402. package/template/meadmin/view/index/src/components/meWangEditor/meWangEditor.scss +24 -0
  403. package/template/meadmin/view/index/src/components/service/meImageViewer.ts +23 -0
  404. package/template/meadmin/view/index/src/config/index.ts +2 -0
  405. package/template/meadmin/view/index/src/config/login.ts +5 -0
  406. package/template/meadmin/view/index/src/dict/eventEnmu.ts +13 -0
  407. package/template/meadmin/view/index/src/dict/pageEnum.ts +8 -0
  408. package/template/meadmin/view/index/src/directives/clickOutside.ts +2 -0
  409. package/template/meadmin/view/index/src/entry-client.ts +8 -0
  410. package/template/meadmin/view/index/src/entry-server.ts +83 -0
  411. package/template/meadmin/view/index/src/env.d.ts +6 -0
  412. package/template/meadmin/view/index/src/event/index.ts +23 -0
  413. package/template/meadmin/view/index/src/hooks/actionModel.ts +54 -0
  414. package/template/meadmin/view/index/src/hooks/core/computedProxy.ts +10 -0
  415. package/template/meadmin/view/index/src/hooks/index.ts +24 -0
  416. package/template/meadmin/view/index/src/icons/index.ts +52 -0
  417. package/template/meadmin/view/index/src/icons/svg/dashboard.svg +5 -0
  418. package/template/meadmin/view/index/src/icons/svg/moon.svg +5 -0
  419. package/template/meadmin/view/index/src/icons/svg/size.svg +5 -0
  420. package/template/meadmin/view/index/src/icons/svg/sunny.svg +5 -0
  421. package/template/meadmin/view/index/src/icons/svg/translation.svg +5 -0
  422. package/template/meadmin/view/index/src/layout/default/components/footer.vue +22 -0
  423. package/template/meadmin/view/index/src/layout/default/components/header/components/menuItem.vue +69 -0
  424. package/template/meadmin/view/index/src/layout/default/components/header/components/user.vue +55 -0
  425. package/template/meadmin/view/index/src/layout/default/components/header/index.vue +53 -0
  426. package/template/meadmin/view/index/src/layout/default/index.vue +63 -0
  427. package/template/meadmin/view/index/src/layout/default/layout.scss +1 -0
  428. package/template/meadmin/view/index/src/layout/default/page.vue +11 -0
  429. package/template/meadmin/view/index/src/layout/layoutRoute.vue +13 -0
  430. package/template/meadmin/view/index/src/main.ts +28 -0
  431. package/template/meadmin/view/index/src/router/guard/index.ts +53 -0
  432. package/template/meadmin/view/index/src/router/index.ts +73 -0
  433. package/template/meadmin/view/index/src/router/routes/001-index.ts +42 -0
  434. package/template/meadmin/view/index/src/router/routes/002-demo.ts +12 -0
  435. package/template/meadmin/view/index/src/router/routes/003-user.ts +27 -0
  436. package/template/meadmin/view/index/src/router/routes/demo/001-demo.ts +36 -0
  437. package/template/meadmin/view/index/src/setElGlobel.ts +7 -0
  438. package/template/meadmin/view/index/src/store/index.ts +11 -0
  439. package/template/meadmin/view/index/src/store/module.ts +5 -0
  440. package/template/meadmin/view/index/src/store/modules/global.ts +52 -0
  441. package/template/meadmin/view/index/src/store/modules/route.ts +20 -0
  442. package/template/meadmin/view/index/src/store/modules/user.ts +98 -0
  443. package/template/meadmin/view/index/src/styles/element-plus.scss +40 -0
  444. package/template/meadmin/view/index/src/styles/index.scss +122 -0
  445. package/template/meadmin/view/index/src/styles/transition.scss +33 -0
  446. package/template/meadmin/view/index/src/styles/variables.scss +6 -0
  447. package/template/meadmin/view/index/src/utils/cookies.ts +59 -0
  448. package/template/meadmin/view/index/src/utils/fileMd5Work.ts +109 -0
  449. package/template/meadmin/view/index/src/utils/fileUpload.ts +156 -0
  450. package/template/meadmin/view/index/src/utils/helper.ts +261 -0
  451. package/template/meadmin/view/index/src/utils/loading.ts +71 -0
  452. package/template/meadmin/view/index/src/utils/log.ts +8 -0
  453. package/template/meadmin/view/index/src/utils/mitt.ts +152 -0
  454. package/template/meadmin/view/index/src/utils/nProgress.ts +52 -0
  455. package/template/meadmin/view/index/src/utils/request.ts +182 -0
  456. package/template/meadmin/view/index/src/utils/server.ts +73 -0
  457. package/template/meadmin/view/index/src/utils/validate.ts +17 -0
  458. package/template/meadmin/view/index/src/views/404.vue +50 -0
  459. package/template/meadmin/view/index/src/views/index/index.vue +137 -0
  460. package/template/meadmin/view/index/src/views/login/components/login.vue +117 -0
  461. package/template/meadmin/view/index/src/views/login/components/register.vue +192 -0
  462. package/template/meadmin/view/index/src/views/login/index.vue +147 -0
  463. package/template/meadmin/view/index/src/views/promiseError.vue +48 -0
  464. package/template/meadmin/view/index/src/views/redirect.vue +9 -0
  465. package/template/meadmin/view/index/src/views/user/components/editPass.vue +83 -0
  466. package/template/meadmin/view/index/src/views/user/components/userInfo.vue +91 -0
  467. package/template/meadmin/view/index/src/views/user/index.vue +67 -0
  468. package/template/meadmin/view/index/template/components.d.ts +9 -0
  469. package/template/meadmin/view/index/template/directives.d.ts +6 -0
  470. package/template/meadmin/view/index/template/meIconComponents.d.ts +6 -0
  471. package/template/meadmin/view/index/tsconfig.json +33 -0
  472. package/template/meadmin/view/index/tsconfig.node.json +17 -0
  473. package/template/meadmin/view/index/types/api.d.ts +15 -0
  474. package/template/meadmin/view/index/types/auto-imports.d.ts +301 -0
  475. package/template/meadmin/view/index/types/components.d.ts +25 -0
  476. package/template/meadmin/view/index/types/directives.d.ts +7 -0
  477. package/template/meadmin/view/index/types/global.d.ts +51 -0
  478. package/template/meadmin/view/index/types/globalComponents.d.ts +14 -0
  479. package/template/meadmin/view/index/types/meIconComponents.d.ts +11 -0
  480. package/template/meadmin/view/index/types/vue-router.d.ts +17 -0
  481. package/template/meadmin/view/index/types/vueCustomProperties .d.ts +6 -0
  482. package/template/meadmin/view/index/types/vueExtendType.d.ts +43 -0
  483. package/template/meadmin/view/index/vite.config.ts +92 -0
@@ -0,0 +1,145 @@
1
+ <template>
2
+ <page>
3
+ <template #searchForm>
4
+ <me-search-form :model="params" :default-all="true" class="search-form" @search="search(1)">
5
+ <el-form-item :label="t('ID')" prop="id">
6
+ <el-input v-model="params.id" clearable></el-input>
7
+ </el-form-item>
8
+ <el-form-item :label="t('用户名')" prop="username">
9
+ <el-input v-model="params.username" clearable></el-input>
10
+ </el-form-item>
11
+ <el-form-item :label="t('昵称')" prop="nickname">
12
+ <el-input v-model="params.nickname" clearable></el-input>
13
+ </el-form-item>
14
+ <el-form-item :label="t('邮箱')" prop="email">
15
+ <el-input v-model="params.email" clearable></el-input>
16
+ </el-form-item>
17
+ <el-form-item :label="t('手机号')" prop="mobile">
18
+ <el-input v-model="params.mobile" clearable></el-input>
19
+ </el-form-item>
20
+ <el-form-item :label="t('登录失败次数')" prop="loginFailure">
21
+ <el-input-number v-model="params.loginFailure" clearable></el-input-number>
22
+ </el-form-item>
23
+ <el-form-item :label="t('最后登录时间')" prop="lastLoginAt">
24
+ <el-date-picker v-model="params.startLastLoginAt" type="datetime" value-format="YYYY-MM-DD HH:mm:ss" clearable />&nbsp; - &nbsp;
25
+ <el-form-item prop="priceEnd">
26
+ <el-date-picker v-model="params.endLastLoginAt" type="datetime" value-format="YYYY-MM-DD HH:mm:ss" clearable />
27
+ </el-form-item>
28
+ </el-form-item>
29
+ <el-form-item :label="t('最后登录ip')" prop="lastLoginIp">
30
+ <el-input v-model="params.lastLoginIp" clearable></el-input>
31
+ </el-form-item>
32
+ <el-form-item :label="t('状态')" prop="status">
33
+ <el-select v-model="params.status" clearable>
34
+ <el-option v-for="val in dict.status" :key="val.value" :value="val.value" :label="val.label" />
35
+ </el-select>
36
+ </el-form-item>
37
+ <el-form-item :label="t('创建者Id')" prop="createdUserId">
38
+ <el-input v-model="params.createdUserId" clearable></el-input>
39
+ </el-form-item>
40
+ <el-form-item :label="t('创建时间')" prop="createdAt">
41
+ <el-date-picker v-model="params.startCreatedAt" type="datetime" value-format="YYYY-MM-DD HH:mm:ss" clearable />&nbsp; - &nbsp;
42
+ <el-form-item prop="priceEnd">
43
+ <el-date-picker v-model="params.endCreatedAt" type="datetime" value-format="YYYY-MM-DD HH:mm:ss" clearable />
44
+ </el-form-item>
45
+ </el-form-item>
46
+ <el-form-item :label="t('最后更新时间')" prop="updatedAt">
47
+ <el-date-picker v-model="params.startUpdatedAt" type="datetime" value-format="YYYY-MM-DD HH:mm:ss" clearable />&nbsp; - &nbsp;
48
+ <el-form-item prop="priceEnd">
49
+ <el-date-picker v-model="params.endUpdatedAt" type="datetime" value-format="YYYY-MM-DD HH:mm:ss" clearable />
50
+ </el-form-item>
51
+ </el-form-item>
52
+ </me-search-form>
53
+ </template>
54
+ <me-vxe-table
55
+ align="center"
56
+ border
57
+ :loading="loading"
58
+ :data="data?.list"
59
+ :pagination-options="{
60
+ currentPage: params.page,
61
+ pageSize: params.pageSize,
62
+ total: data?.total ?? 0,
63
+ layout: 'sizes, prev, pager, next, jumper, ->, total',
64
+ change: search,
65
+ }"
66
+ :on-add="permission('user_add') ? showAddOrUp : undefined"
67
+ @refresh="search(1)"
68
+ >
69
+ <vxe-column field="id" :title="t('ID')" :formatter="formatterStr"></vxe-column>
70
+ <vxe-column field="username" :title="t('用户名')" :formatter="formatterStr"></vxe-column>
71
+ <vxe-column field="nickname" :title="t('昵称')" :formatter="formatterStr"></vxe-column>
72
+ <vxe-column field="avatar" :title="t('头像')">
73
+ <template #default="{ row }: { row: UserInfo }">
74
+ <me-files-view :files="row.avatar ? [row.avatar] : []"></me-files-view>
75
+ </template>
76
+ </vxe-column>
77
+ <vxe-column field="email" :title="t('邮箱')" :formatter="formatterStr"></vxe-column>
78
+ <vxe-column field="mobile" :title="t('手机号')" :formatter="formatterStr"></vxe-column>
79
+ <vxe-column field="loginFailure" :title="t('登录失败次数')" :formatter="formatterStr"></vxe-column>
80
+ <vxe-column field="lastLoginAt" :title="t('最后登录时间')" :formatter="formatterAt"></vxe-column>
81
+ <vxe-column field="lastLoginIp" :title="t('最后登录ip')" :formatter="formatterStr"></vxe-column>
82
+ <vxe-column field="status" :title="t('状态')" :formatter="formatterDict"></vxe-column>
83
+ <vxe-column field="createdUser" :title="t('创建者(用户)')" :formatter="formatterObjectFn((obj) => `${obj.nickname}(${obj.username})`)"></vxe-column>
84
+ <vxe-column field="updatedUser" :title="t('最后更新者(用户)')" :formatter="formatterObjectFn((obj) => `${obj.nickname}(${obj.username})`)"></vxe-column>
85
+ <vxe-column field="createdAt" :title="t('创建时间')" :formatter="formatterAt"></vxe-column>
86
+ <vxe-column field="updatedAt" :title="t('最后更新时间')" :formatter="formatterAt"></vxe-column
87
+ ><vxe-column v-if="permission(['user_add', 'user_edit', 'user_del'])" :title="t('操作')" fixed="right" min-width="150px">
88
+ <template #default="{ row }: { row: UserInfo }">
89
+ <me-button v-if="permission('user_info')" link :title="t('详情')" @click="showInfo(row.id)">
90
+ <mel-icon-memo />
91
+ </me-button>
92
+ <me-button v-if="permission('user_edit')" link :title="t('编辑')" @click="showAddOrUp(row.id)">
93
+ <mel-icon-edit />
94
+ </me-button>
95
+ <el-popconfirm v-if="permission('user_del')" :title="t('确认删除?')" placement="left" @confirm="del(row.id)">
96
+ <template #reference>
97
+ <me-button :key="row.id" :loading="delLoading && delId === row.id" type="danger" link :title="t('删除')">
98
+ <mel-icon-delete />
99
+ </me-button>
100
+ </template>
101
+ </el-popconfirm>
102
+ </template>
103
+ </vxe-column>
104
+ </me-vxe-table>
105
+ </page>
106
+ </template>
107
+
108
+ <script setup lang="ts" name="User">
109
+ import { delUserApi, UserInfo, userListApi, UserListParam } from '@/api/user';
110
+ import { useActionModel } from '@/hooks/index.js';
111
+ import { useLocalesI18n } from '@/locales/i18n';
112
+ import { createformatterDictFn, formatterAt, formatterObjectFn, formatterStr } from '@/utils/helper.js';
113
+ import { permission } from '@/utils/permission.js';
114
+ import AddOrUp from './components/addOrUp.vue';
115
+ import Info from './components/info.vue';
116
+ import { getDict } from './dict.js';
117
+ const { open: openInfo } = useActionModel(Info);
118
+ const { open: openAddOrUp } = useActionModel(AddOrUp);
119
+ let { t, loadRes } = useLocalesI18n({}, [(locale: string) => import(`./lang/${locale}.json`), 'user']);
120
+ const dict = getDict(t);
121
+ const formatterDict = createformatterDictFn<UserInfo>(dict);
122
+ const params = reactive(new UserListParam());
123
+ const { loading, data, runAsync } = userListApi();
124
+ const search = (page = params.page, pageSize = params.pageSize) => runAsync(Object.assign(params, { page, pageSize }));
125
+ const { runAsync: delRun, loading: delLoading } = delUserApi();
126
+ const delId = ref<string>();
127
+ const del = async (id: string) => {
128
+ delId.value = id;
129
+ await delRun(id);
130
+ await search(1);
131
+ };
132
+ const showInfo = (id?: string) => {
133
+ openInfo({ id });
134
+ };
135
+ const showAddOrUp = (id?: string) => {
136
+ openAddOrUp({
137
+ id,
138
+ onSuccess: async () => {
139
+ await search(1);
140
+ },
141
+ });
142
+ };
143
+
144
+ await Promise.all([loadRes, search(1)]);
145
+ </script>
@@ -0,0 +1,18 @@
1
+ {
2
+ "ID": "Id",
3
+ "用户名": "Username",
4
+ "昵称": "Nickname",
5
+ "密码": "Password",
6
+ "头像": "Avatar",
7
+ "邮箱": "Email",
8
+ "手机号": "Mobile",
9
+ "登录失败次数": "Login failure",
10
+ "最后登录时间": "Last login time",
11
+ "最后登录ip": "Last login ip",
12
+ "状态": "Status",
13
+ "创建者Id": "Created user id",
14
+ "创建者": "Created user",
15
+ "最后更新者": "Updated user",
16
+ "创建时间": "Created time",
17
+ "最后更新时间": "Updated time"
18
+ }
@@ -0,0 +1,9 @@
1
+ declare module 'vue' {
2
+ export interface GlobalComponents {
3
+ //code
4
+ }
5
+ }
6
+ declare global {
7
+ //typeCode
8
+ }
9
+ export {};
@@ -0,0 +1,6 @@
1
+ declare module 'vue' {
2
+ export interface ComponentCustomProperties {
3
+ //code
4
+ }
5
+ }
6
+ export {};
@@ -0,0 +1,6 @@
1
+ declare module 'vue' {
2
+ export interface GlobalComponents {
3
+ //code
4
+ }
5
+ }
6
+ export {};
@@ -0,0 +1,33 @@
1
+ {
2
+ "compilerOptions": {
3
+ "forceConsistentCasingInFileNames": true,
4
+ "target": "esnext",
5
+ "useDefineForClassFields": true,
6
+ "module": "esnext",
7
+ "moduleResolution": "node",
8
+ "strict": true,
9
+ "jsx": "preserve",
10
+ "sourceMap": true,
11
+ "resolveJsonModule": true,
12
+ "isolatedModules": true,
13
+ "esModuleInterop": true,
14
+ "lib": ["esnext", "dom"],
15
+ "skipLibCheck": true,
16
+ "baseUrl": ".",
17
+ "paths": {
18
+ "@/*": ["src/*"],
19
+ "#/*": ["types/*"]
20
+ },
21
+ "typeRoots": ["./node_modules/@types/", "./types", "./node_modules"],
22
+ "types": ["element-plus/global", "vite/client", "vite-svg-loader"]
23
+ },
24
+ "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "types/**/*.d.ts", "mock/**/*.ts"],
25
+ "references": [
26
+ {
27
+ "path": "./tsconfig.node.json"
28
+ }
29
+ ],
30
+ "vueCompilerOptions": {
31
+ "strictTemplates": false
32
+ }
33
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "forceConsistentCasingInFileNames": true,
4
+ "target": "ESNext",
5
+ "strict": true,
6
+ "composite": true,
7
+ "module": "nodenext",
8
+ "moduleResolution": "nodenext",
9
+ "allowSyntheticDefaultImports": true
10
+ },
11
+ "include": ["vite.config.ts", "./plugins/*.ts", "./cli/*.ts"],
12
+ "ts-node": {
13
+ "compilerOptions": {
14
+ "module": "NodeNext"
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,15 @@
1
+ declare global {
2
+ type BasePageParams<P extends Record<string, any> = unknown> = {
3
+ page: number;
4
+ size: number;
5
+ } & P;
6
+
7
+ type BasePageResult<R> = {
8
+ page: number;
9
+ size: number;
10
+ count: number;
11
+ list: R[];
12
+ };
13
+ }
14
+
15
+ export {};
@@ -0,0 +1,302 @@
1
+ /* eslint-disable */
2
+ /* prettier-ignore */
3
+ // @ts-nocheck
4
+ // noinspection JSUnusedGlobalSymbols
5
+ // Generated by unplugin-auto-import
6
+ // biome-ignore lint: disable
7
+ export {}
8
+ declare global {
9
+ const EffectScope: typeof import('vue').EffectScope
10
+ const ElLoading: typeof import('element-plus/es').ElLoading
11
+ const ElMessage: typeof import('element-plus/es').ElMessage
12
+ const ElMessageBox: typeof import('element-plus/es').ElMessageBox
13
+ const acceptHMRUpdate: typeof import('pinia').acceptHMRUpdate
14
+ const asyncComputed: typeof import('@vueuse/core').asyncComputed
15
+ const autoResetRef: typeof import('@vueuse/core').autoResetRef
16
+ const computed: typeof import('vue').computed
17
+ const computedAsync: typeof import('@vueuse/core').computedAsync
18
+ const computedEager: typeof import('@vueuse/core').computedEager
19
+ const computedInject: typeof import('@vueuse/core').computedInject
20
+ const computedWithControl: typeof import('@vueuse/core').computedWithControl
21
+ const controlledComputed: typeof import('@vueuse/core').controlledComputed
22
+ const controlledRef: typeof import('@vueuse/core').controlledRef
23
+ const createApp: typeof import('vue').createApp
24
+ const createEventHook: typeof import('@vueuse/core').createEventHook
25
+ const createGlobalState: typeof import('@vueuse/core').createGlobalState
26
+ const createInjectionState: typeof import('@vueuse/core').createInjectionState
27
+ const createPinia: typeof import('pinia').createPinia
28
+ const createReactiveFn: typeof import('@vueuse/core').createReactiveFn
29
+ const createSharedComposable: typeof import('@vueuse/core').createSharedComposable
30
+ const createUnrefFn: typeof import('@vueuse/core').createUnrefFn
31
+ const customRef: typeof import('vue').customRef
32
+ const debouncedRef: typeof import('@vueuse/core').debouncedRef
33
+ const debouncedWatch: typeof import('@vueuse/core').debouncedWatch
34
+ const defineAsyncComponent: typeof import('vue').defineAsyncComponent
35
+ const defineComponent: typeof import('vue').defineComponent
36
+ const defineStore: typeof import('pinia').defineStore
37
+ const eagerComputed: typeof import('@vueuse/core').eagerComputed
38
+ const effectScope: typeof import('vue').effectScope
39
+ const extendRef: typeof import('@vueuse/core').extendRef
40
+ const getActivePinia: typeof import('pinia').getActivePinia
41
+ const getCurrentInstance: typeof import('vue').getCurrentInstance
42
+ const getCurrentScope: typeof import('vue').getCurrentScope
43
+ const getCurrentWatcher: typeof import('vue').getCurrentWatcher
44
+ const h: typeof import('vue').h
45
+ const ignorableWatch: typeof import('@vueuse/core').ignorableWatch
46
+ const inject: typeof import('vue').inject
47
+ const isDefined: typeof import('@vueuse/core').isDefined
48
+ const isProxy: typeof import('vue').isProxy
49
+ const isReactive: typeof import('vue').isReactive
50
+ const isReadonly: typeof import('vue').isReadonly
51
+ const isRef: typeof import('vue').isRef
52
+ const isShallow: typeof import('vue').isShallow
53
+ const makeDestructurable: typeof import('@vueuse/core').makeDestructurable
54
+ const mapActions: typeof import('pinia').mapActions
55
+ const mapGetters: typeof import('pinia').mapGetters
56
+ const mapState: typeof import('pinia').mapState
57
+ const mapStores: typeof import('pinia').mapStores
58
+ const mapWritableState: typeof import('pinia').mapWritableState
59
+ const markRaw: typeof import('vue').markRaw
60
+ const nextTick: typeof import('vue').nextTick
61
+ const onActivated: typeof import('vue').onActivated
62
+ const onBeforeMount: typeof import('vue').onBeforeMount
63
+ const onBeforeRouteLeave: typeof import('vue-router').onBeforeRouteLeave
64
+ const onBeforeRouteUpdate: typeof import('vue-router').onBeforeRouteUpdate
65
+ const onBeforeUnmount: typeof import('vue').onBeforeUnmount
66
+ const onBeforeUpdate: typeof import('vue').onBeforeUpdate
67
+ const onClickOutside: typeof import('@vueuse/core').onClickOutside
68
+ const onDeactivated: typeof import('vue').onDeactivated
69
+ const onErrorCaptured: typeof import('vue').onErrorCaptured
70
+ const onKeyStroke: typeof import('@vueuse/core').onKeyStroke
71
+ const onLongPress: typeof import('@vueuse/core').onLongPress
72
+ const onMounted: typeof import('vue').onMounted
73
+ const onRenderTracked: typeof import('vue').onRenderTracked
74
+ const onRenderTriggered: typeof import('vue').onRenderTriggered
75
+ const onScopeDispose: typeof import('vue').onScopeDispose
76
+ const onServerPrefetch: typeof import('vue').onServerPrefetch
77
+ const onStartTyping: typeof import('@vueuse/core').onStartTyping
78
+ const onUnmounted: typeof import('vue').onUnmounted
79
+ const onUpdated: typeof import('vue').onUpdated
80
+ const onWatcherCleanup: typeof import('vue').onWatcherCleanup
81
+ const pausableWatch: typeof import('@vueuse/core').pausableWatch
82
+ const provide: typeof import('vue').provide
83
+ const reactify: typeof import('@vueuse/core').reactify
84
+ const reactifyObject: typeof import('@vueuse/core').reactifyObject
85
+ const reactive: typeof import('vue').reactive
86
+ const reactiveComputed: typeof import('@vueuse/core').reactiveComputed
87
+ const reactiveOmit: typeof import('@vueuse/core').reactiveOmit
88
+ const reactivePick: typeof import('@vueuse/core').reactivePick
89
+ const readonly: typeof import('vue').readonly
90
+ const ref: typeof import('vue').ref
91
+ const refAutoReset: typeof import('@vueuse/core').refAutoReset
92
+ const refDebounced: typeof import('@vueuse/core').refDebounced
93
+ const refDefault: typeof import('@vueuse/core').refDefault
94
+ const refThrottled: typeof import('@vueuse/core').refThrottled
95
+ const refWithControl: typeof import('@vueuse/core').refWithControl
96
+ const resolveComponent: typeof import('vue').resolveComponent
97
+ const resolveRef: typeof import('@vueuse/core').resolveRef
98
+ const resolveUnref: typeof import('@vueuse/core').resolveUnref
99
+ const setActivePinia: typeof import('pinia').setActivePinia
100
+ const setMapStoreSuffix: typeof import('pinia').setMapStoreSuffix
101
+ const shallowReactive: typeof import('vue').shallowReactive
102
+ const shallowReadonly: typeof import('vue').shallowReadonly
103
+ const shallowRef: typeof import('vue').shallowRef
104
+ const storeToRefs: typeof import('pinia').storeToRefs
105
+ const syncRef: typeof import('@vueuse/core').syncRef
106
+ const syncRefs: typeof import('@vueuse/core').syncRefs
107
+ const templateRef: typeof import('@vueuse/core').templateRef
108
+ const throttledRef: typeof import('@vueuse/core').throttledRef
109
+ const throttledWatch: typeof import('@vueuse/core').throttledWatch
110
+ const toRaw: typeof import('vue').toRaw
111
+ const toReactive: typeof import('@vueuse/core').toReactive
112
+ const toRef: typeof import('vue').toRef
113
+ const toRefs: typeof import('vue').toRefs
114
+ const toValue: typeof import('vue').toValue
115
+ const triggerRef: typeof import('vue').triggerRef
116
+ const tryOnBeforeMount: typeof import('@vueuse/core').tryOnBeforeMount
117
+ const tryOnBeforeUnmount: typeof import('@vueuse/core').tryOnBeforeUnmount
118
+ const tryOnMounted: typeof import('@vueuse/core').tryOnMounted
119
+ const tryOnScopeDispose: typeof import('@vueuse/core').tryOnScopeDispose
120
+ const tryOnUnmounted: typeof import('@vueuse/core').tryOnUnmounted
121
+ const unref: typeof import('vue').unref
122
+ const unrefElement: typeof import('@vueuse/core').unrefElement
123
+ const until: typeof import('@vueuse/core').until
124
+ const useActiveElement: typeof import('@vueuse/core').useActiveElement
125
+ const useArrayEvery: typeof import('@vueuse/core').useArrayEvery
126
+ const useArrayFilter: typeof import('@vueuse/core').useArrayFilter
127
+ const useArrayFind: typeof import('@vueuse/core').useArrayFind
128
+ const useArrayFindIndex: typeof import('@vueuse/core').useArrayFindIndex
129
+ const useArrayFindLast: typeof import('@vueuse/core').useArrayFindLast
130
+ const useArrayJoin: typeof import('@vueuse/core').useArrayJoin
131
+ const useArrayMap: typeof import('@vueuse/core').useArrayMap
132
+ const useArrayReduce: typeof import('@vueuse/core').useArrayReduce
133
+ const useArraySome: typeof import('@vueuse/core').useArraySome
134
+ const useArrayUnique: typeof import('@vueuse/core').useArrayUnique
135
+ const useAsyncQueue: typeof import('@vueuse/core').useAsyncQueue
136
+ const useAsyncState: typeof import('@vueuse/core').useAsyncState
137
+ const useAttrs: typeof import('vue').useAttrs
138
+ const useBase64: typeof import('@vueuse/core').useBase64
139
+ const useBattery: typeof import('@vueuse/core').useBattery
140
+ const useBluetooth: typeof import('@vueuse/core').useBluetooth
141
+ const useBreakpoints: typeof import('@vueuse/core').useBreakpoints
142
+ const useBroadcastChannel: typeof import('@vueuse/core').useBroadcastChannel
143
+ const useBrowserLocation: typeof import('@vueuse/core').useBrowserLocation
144
+ const useCached: typeof import('@vueuse/core').useCached
145
+ const useClipboard: typeof import('@vueuse/core').useClipboard
146
+ const useCloned: typeof import('@vueuse/core').useCloned
147
+ const useColorMode: typeof import('@vueuse/core').useColorMode
148
+ const useConfirmDialog: typeof import('@vueuse/core').useConfirmDialog
149
+ const useCounter: typeof import('@vueuse/core').useCounter
150
+ const useCssModule: typeof import('vue').useCssModule
151
+ const useCssVar: typeof import('@vueuse/core').useCssVar
152
+ const useCssVars: typeof import('vue').useCssVars
153
+ const useCurrentElement: typeof import('@vueuse/core').useCurrentElement
154
+ const useCycleList: typeof import('@vueuse/core').useCycleList
155
+ const useDark: typeof import('@vueuse/core').useDark
156
+ const useDateFormat: typeof import('@vueuse/core').useDateFormat
157
+ const useDebounce: typeof import('@vueuse/core').useDebounce
158
+ const useDebounceFn: typeof import('@vueuse/core').useDebounceFn
159
+ const useDebouncedRefHistory: typeof import('@vueuse/core').useDebouncedRefHistory
160
+ const useDeviceMotion: typeof import('@vueuse/core').useDeviceMotion
161
+ const useDeviceOrientation: typeof import('@vueuse/core').useDeviceOrientation
162
+ const useDevicePixelRatio: typeof import('@vueuse/core').useDevicePixelRatio
163
+ const useDevicesList: typeof import('@vueuse/core').useDevicesList
164
+ const useDisplayMedia: typeof import('@vueuse/core').useDisplayMedia
165
+ const useDocumentVisibility: typeof import('@vueuse/core').useDocumentVisibility
166
+ const useDraggable: typeof import('@vueuse/core').useDraggable
167
+ const useDropZone: typeof import('@vueuse/core').useDropZone
168
+ const useElementBounding: typeof import('@vueuse/core').useElementBounding
169
+ const useElementByPoint: typeof import('@vueuse/core').useElementByPoint
170
+ const useElementHover: typeof import('@vueuse/core').useElementHover
171
+ const useElementSize: typeof import('@vueuse/core').useElementSize
172
+ const useElementVisibility: typeof import('@vueuse/core').useElementVisibility
173
+ const useEventBus: typeof import('@vueuse/core').useEventBus
174
+ const useEventListener: typeof import('@vueuse/core').useEventListener
175
+ const useEventSource: typeof import('@vueuse/core').useEventSource
176
+ const useEyeDropper: typeof import('@vueuse/core').useEyeDropper
177
+ const useFavicon: typeof import('@vueuse/core').useFavicon
178
+ const useFetch: typeof import('@vueuse/core').useFetch
179
+ const useFileDialog: typeof import('@vueuse/core').useFileDialog
180
+ const useFileSystemAccess: typeof import('@vueuse/core').useFileSystemAccess
181
+ const useFocus: typeof import('@vueuse/core').useFocus
182
+ const useFocusWithin: typeof import('@vueuse/core').useFocusWithin
183
+ const useFps: typeof import('@vueuse/core').useFps
184
+ const useFullscreen: typeof import('@vueuse/core').useFullscreen
185
+ const useGamepad: typeof import('@vueuse/core').useGamepad
186
+ const useGeolocation: typeof import('@vueuse/core').useGeolocation
187
+ const useId: typeof import('vue').useId
188
+ const useIdle: typeof import('@vueuse/core').useIdle
189
+ const useImage: typeof import('@vueuse/core').useImage
190
+ const useInfiniteScroll: typeof import('@vueuse/core').useInfiniteScroll
191
+ const useIntersectionObserver: typeof import('@vueuse/core').useIntersectionObserver
192
+ const useInterval: typeof import('@vueuse/core').useInterval
193
+ const useIntervalFn: typeof import('@vueuse/core').useIntervalFn
194
+ const useKeyModifier: typeof import('@vueuse/core').useKeyModifier
195
+ const useLastChanged: typeof import('@vueuse/core').useLastChanged
196
+ const useLink: typeof import('vue-router').useLink
197
+ const useLocalStorage: typeof import('@vueuse/core').useLocalStorage
198
+ const useMagicKeys: typeof import('@vueuse/core').useMagicKeys
199
+ const useManualRefHistory: typeof import('@vueuse/core').useManualRefHistory
200
+ const useMediaControls: typeof import('@vueuse/core').useMediaControls
201
+ const useMediaQuery: typeof import('@vueuse/core').useMediaQuery
202
+ const useMemoize: typeof import('@vueuse/core').useMemoize
203
+ const useMemory: typeof import('@vueuse/core').useMemory
204
+ const useModel: typeof import('vue').useModel
205
+ const useMounted: typeof import('@vueuse/core').useMounted
206
+ const useMouse: typeof import('@vueuse/core').useMouse
207
+ const useMouseInElement: typeof import('@vueuse/core').useMouseInElement
208
+ const useMousePressed: typeof import('@vueuse/core').useMousePressed
209
+ const useMutationObserver: typeof import('@vueuse/core').useMutationObserver
210
+ const useNavigatorLanguage: typeof import('@vueuse/core').useNavigatorLanguage
211
+ const useNetwork: typeof import('@vueuse/core').useNetwork
212
+ const useNow: typeof import('@vueuse/core').useNow
213
+ const useObjectUrl: typeof import('@vueuse/core').useObjectUrl
214
+ const useOffsetPagination: typeof import('@vueuse/core').useOffsetPagination
215
+ const useOnline: typeof import('@vueuse/core').useOnline
216
+ const usePageLeave: typeof import('@vueuse/core').usePageLeave
217
+ const useParallax: typeof import('@vueuse/core').useParallax
218
+ const usePermission: typeof import('@vueuse/core').usePermission
219
+ const usePointer: typeof import('@vueuse/core').usePointer
220
+ const usePointerLock: typeof import('@vueuse/core').usePointerLock
221
+ const usePointerSwipe: typeof import('@vueuse/core').usePointerSwipe
222
+ const usePreferredColorScheme: typeof import('@vueuse/core').usePreferredColorScheme
223
+ const usePreferredContrast: typeof import('@vueuse/core').usePreferredContrast
224
+ const usePreferredDark: typeof import('@vueuse/core').usePreferredDark
225
+ const usePreferredLanguages: typeof import('@vueuse/core').usePreferredLanguages
226
+ const usePreferredReducedMotion: typeof import('@vueuse/core').usePreferredReducedMotion
227
+ const usePrevious: typeof import('@vueuse/core').usePrevious
228
+ const useRafFn: typeof import('@vueuse/core').useRafFn
229
+ const useRefHistory: typeof import('@vueuse/core').useRefHistory
230
+ const useResizeObserver: typeof import('@vueuse/core').useResizeObserver
231
+ const useRoute: typeof import('vue-router').useRoute
232
+ const useRouter: typeof import('vue-router').useRouter
233
+ const useScreenOrientation: typeof import('@vueuse/core').useScreenOrientation
234
+ const useScreenSafeArea: typeof import('@vueuse/core').useScreenSafeArea
235
+ const useScriptTag: typeof import('@vueuse/core').useScriptTag
236
+ const useScroll: typeof import('@vueuse/core').useScroll
237
+ const useScrollLock: typeof import('@vueuse/core').useScrollLock
238
+ const useSessionStorage: typeof import('@vueuse/core').useSessionStorage
239
+ const useShare: typeof import('@vueuse/core').useShare
240
+ const useSlots: typeof import('vue').useSlots
241
+ const useSorted: typeof import('@vueuse/core').useSorted
242
+ const useSpeechRecognition: typeof import('@vueuse/core').useSpeechRecognition
243
+ const useSpeechSynthesis: typeof import('@vueuse/core').useSpeechSynthesis
244
+ const useStepper: typeof import('@vueuse/core').useStepper
245
+ const useStorage: typeof import('@vueuse/core').useStorage
246
+ const useStorageAsync: typeof import('@vueuse/core').useStorageAsync
247
+ const useStyleTag: typeof import('@vueuse/core').useStyleTag
248
+ const useSupported: typeof import('@vueuse/core').useSupported
249
+ const useSwipe: typeof import('@vueuse/core').useSwipe
250
+ const useTemplateRef: typeof import('vue').useTemplateRef
251
+ const useTemplateRefsList: typeof import('@vueuse/core').useTemplateRefsList
252
+ const useTextDirection: typeof import('@vueuse/core').useTextDirection
253
+ const useTextSelection: typeof import('@vueuse/core').useTextSelection
254
+ const useTextareaAutosize: typeof import('@vueuse/core').useTextareaAutosize
255
+ const useThrottle: typeof import('@vueuse/core').useThrottle
256
+ const useThrottleFn: typeof import('@vueuse/core').useThrottleFn
257
+ const useThrottledRefHistory: typeof import('@vueuse/core').useThrottledRefHistory
258
+ const useTimeAgo: typeof import('@vueuse/core').useTimeAgo
259
+ const useTimeout: typeof import('@vueuse/core').useTimeout
260
+ const useTimeoutFn: typeof import('@vueuse/core').useTimeoutFn
261
+ const useTimeoutPoll: typeof import('@vueuse/core').useTimeoutPoll
262
+ const useTimestamp: typeof import('@vueuse/core').useTimestamp
263
+ const useTitle: typeof import('@vueuse/core').useTitle
264
+ const useToNumber: typeof import('@vueuse/core').useToNumber
265
+ const useToString: typeof import('@vueuse/core').useToString
266
+ const useToggle: typeof import('@vueuse/core').useToggle
267
+ const useTransition: typeof import('@vueuse/core').useTransition
268
+ const useUrlSearchParams: typeof import('@vueuse/core').useUrlSearchParams
269
+ const useUserMedia: typeof import('@vueuse/core').useUserMedia
270
+ const useVModel: typeof import('@vueuse/core').useVModel
271
+ const useVModels: typeof import('@vueuse/core').useVModels
272
+ const useVibrate: typeof import('@vueuse/core').useVibrate
273
+ const useVirtualList: typeof import('@vueuse/core').useVirtualList
274
+ const useWakeLock: typeof import('@vueuse/core').useWakeLock
275
+ const useWebNotification: typeof import('@vueuse/core').useWebNotification
276
+ const useWebSocket: typeof import('@vueuse/core').useWebSocket
277
+ const useWebWorker: typeof import('@vueuse/core').useWebWorker
278
+ const useWebWorkerFn: typeof import('@vueuse/core').useWebWorkerFn
279
+ const useWindowFocus: typeof import('@vueuse/core').useWindowFocus
280
+ const useWindowScroll: typeof import('@vueuse/core').useWindowScroll
281
+ const useWindowSize: typeof import('@vueuse/core').useWindowSize
282
+ const watch: typeof import('vue').watch
283
+ const watchArray: typeof import('@vueuse/core').watchArray
284
+ const watchAtMost: typeof import('@vueuse/core').watchAtMost
285
+ const watchDebounced: typeof import('@vueuse/core').watchDebounced
286
+ const watchEffect: typeof import('vue').watchEffect
287
+ const watchIgnorable: typeof import('@vueuse/core').watchIgnorable
288
+ const watchOnce: typeof import('@vueuse/core').watchOnce
289
+ const watchPausable: typeof import('@vueuse/core').watchPausable
290
+ const watchPostEffect: typeof import('vue').watchPostEffect
291
+ const watchSyncEffect: typeof import('vue').watchSyncEffect
292
+ const watchThrottled: typeof import('@vueuse/core').watchThrottled
293
+ const watchTriggerable: typeof import('@vueuse/core').watchTriggerable
294
+ const watchWithFilter: typeof import('@vueuse/core').watchWithFilter
295
+ const whenever: typeof import('@vueuse/core').whenever
296
+ }
297
+ // for type re-export
298
+ declare global {
299
+ // @ts-ignore
300
+ export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
301
+ import('vue')
302
+ }
@@ -0,0 +1,60 @@
1
+ import { ElTable } from 'element-plus';
2
+ import { DefineComponent, Prop } from 'vue';
3
+ declare global {
4
+ //unplugin-auto-import的Element是在页面加载到的时候才生成类型,这里全局声明一下
5
+ const ElLoading: typeof import('element-plus/es')['ElLoading'];
6
+ const ElMessage: typeof import('element-plus/es')['ElMessage'];
7
+ const ElMessageBox: typeof import('element-plus/es')['ElMessageBox'];
8
+ const ElNotification: typeof import('element-plus/es')['ElNotification'];
9
+ // svg-icon /el-cion-*组件定义
10
+ type Icon = DefineComponent<{
11
+ size: (StringConstructor | NumberConstructor)[];
12
+ color: StringConstructor;
13
+ }>;
14
+
15
+ /* eslint-disable */
16
+ declare const __SSR__: boolean;
17
+ declare const __DEV__: boolean;
18
+ declare const __COMPAT__: boolean;
19
+
20
+ // Feature flags
21
+ declare const __FEATURE_PROD_DEVTOOLS__: boolean;
22
+ declare const __FEATURE_SUSPENSE__: boolean;
23
+ /* eslint-disable */
24
+
25
+ type ComponentProps<Component> = {
26
+ -readonly [K in keyof Omit<InstanceType<Component>['$props'], keyof InstanceType<DefineComponent>['$props']>]: InstanceType<Component>['$props'][K];
27
+ };
28
+
29
+ //将 对象类型 转化为合法的组件props声明类型
30
+ type ComponentObjectPropsOptionsFromData<P = Record<string, unknown>> = {
31
+ [K in keyof P]-?: undefined extends P[K] ? Prop<P[K] | undefined> : Prop<P[K]>;
32
+ };
33
+
34
+ //判断是否是字符串
35
+ type IsStringLiteral<T> = T extends string ? (string extends T ? false : true) : false;
36
+ //将数组类型emit转化为对象函数类型emit
37
+ type ArrayEmitsOptionsToFns<T extends any[]> = {
38
+ [K in T[0]]: IsStringLiteral<K> extends true ? (...args: T extends [e: infer E, ...args: infer P] ? (K extends E ? P : never) : never) => void : never;
39
+ };
40
+
41
+ type ELTableInstance = InstanceType<typeof ElTable> & {
42
+ getSelectionIndexs: () => number[]; //获取选中行的索引
43
+ };
44
+
45
+ type KeyOfMap<T extends Map> = Parameters<T['get']>[0];
46
+
47
+ type ValueOfMap<T extends Map> = ReturnType<T['get']>;
48
+ }
49
+
50
+ //_或-间隔转换为驼峰
51
+ type CamelCase<S extends string> = S extends `${infer First}_${infer Second}${infer Rest}`
52
+ ? `${First}${Uppercase<Second>}${CamelCase<Rest>}`
53
+ : S extends `${infer First}-${infer Second}${infer Rest}`
54
+ ? `${First}${Uppercase<Second>}${CamelCase<Rest>}`
55
+ : S;
56
+
57
+ //数组key转换为驼峰
58
+ type SnakeToCamelCase<T> = {
59
+ [K in keyof T as CamelCase<K>]: T[K];
60
+ };
@@ -0,0 +1,13 @@
1
+ declare module 'vue' {
2
+ export interface GlobalComponents {
3
+ LayoutMenuItem: typeof import('../src/layout/components/menu/components/menuItem.vue')['default'];
4
+ }
5
+ }
6
+ import { StateTree } from 'pinia';
7
+ declare global {
8
+ interface Window {
9
+ __pinia?: Record<string, StateTree>;
10
+ }
11
+ type TestIndex = number;
12
+ }
13
+ export {};
@@ -0,0 +1,9 @@
1
+ import { icons } from '@element-plus/icons-vue/global';
2
+ declare module 'vue' {
3
+ type GlobalComponentsTypes = {
4
+ [k in `MelIcon${keyof typeof icons}`]: Icon;
5
+ };
6
+ // eslint-disable-next-line
7
+ interface GlobalComponents extends GlobalComponentsTypes {}
8
+ }
9
+ export {};