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.
- package/bin/cli.js +3 -0
- package/bin/index.js +3 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +97 -0
- package/dist/file-zuupOgeh.js +78 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +98 -0
- package/package.json +38 -0
- package/template/meadmin/.editorconfig +11 -0
- package/template/meadmin/.env +21 -0
- package/template/meadmin/.eslintrc.json +7 -0
- package/template/meadmin/.husky/pre-commit +4 -0
- package/template/meadmin/.mocharc.json +6 -0
- package/template/meadmin/.prettierignore +30 -0
- package/template/meadmin/.prettierrc.cjs +47 -0
- package/template/meadmin/.vscode/extensions.json +3 -0
- package/template/meadmin/.vscode/settings.json +28 -0
- package/template/meadmin/README.md +41 -0
- package/template/meadmin/bootstrap.js +2 -0
- package/template/meadmin/meadmin.sql +571 -0
- package/template/meadmin/nx.json +10 -0
- package/template/meadmin/packageTemplate.json +80 -0
- package/template/meadmin/pnpm-workspace.yaml +4 -0
- package/template/meadmin/public/admin/.gitkeep +0 -0
- package/template/meadmin/public/index/.gitkeep +0 -0
- package/template/meadmin/public/index/images/layout/bannerCode.jpg +0 -0
- package/template/meadmin/public/index/images/layout/bannerGift.jpg +0 -0
- package/template/meadmin/public/index/images/layout/bannerManage.jpg +0 -0
- package/template/meadmin/src/app/admin/controller/base.controller.ts +6 -0
- package/template/meadmin/src/app/admin/controller/example/demo.controller.ts +98 -0
- package/template/meadmin/src/app/admin/controller/file.controller.ts +105 -0
- package/template/meadmin/src/app/admin/controller/login.controller.ts +81 -0
- package/template/meadmin/src/app/admin/controller/system/admin.controller.ts +73 -0
- package/template/meadmin/src/app/admin/controller/system/menu.controller.ts +80 -0
- package/template/meadmin/src/app/admin/controller/system/role.controller.ts +81 -0
- package/template/meadmin/src/app/admin/controller/user.controller.ts +86 -0
- package/template/meadmin/src/app/admin/controller/userFile.controller.ts +84 -0
- package/template/meadmin/src/app/admin/dto/captchaResult.dto.ts +8 -0
- package/template/meadmin/src/app/admin/dto/example/demoCreate.dto.ts +9 -0
- package/template/meadmin/src/app/admin/dto/example/demoQuery.dto.ts +20 -0
- package/template/meadmin/src/app/admin/dto/example/demoUpdate.dto.ts +11 -0
- package/template/meadmin/src/app/admin/dto/fileCreate.dto.ts +9 -0
- package/template/meadmin/src/app/admin/dto/fileQuery.dto.ts +20 -0
- package/template/meadmin/src/app/admin/dto/fileUp.dto.ts +28 -0
- package/template/meadmin/src/app/admin/dto/fileUpdate.dto.ts +11 -0
- package/template/meadmin/src/app/admin/dto/loginCaptchaParam.dto.ts +9 -0
- package/template/meadmin/src/app/admin/dto/loginInfoResult.dto.ts +24 -0
- package/template/meadmin/src/app/admin/dto/loginParam.dto.ts +13 -0
- package/template/meadmin/src/app/admin/dto/loginResult.dto.ts +10 -0
- package/template/meadmin/src/app/admin/dto/system/adminCreate.dto.ts +14 -0
- package/template/meadmin/src/app/admin/dto/system/adminQuery.dto.ts +30 -0
- package/template/meadmin/src/app/admin/dto/system/adminUpdate.dto.ts +24 -0
- package/template/meadmin/src/app/admin/dto/system/menuCreate.dto.ts +11 -0
- package/template/meadmin/src/app/admin/dto/system/menuQuery.dto.ts +20 -0
- package/template/meadmin/src/app/admin/dto/system/menuTreeAllResult.dto.ts +9 -0
- package/template/meadmin/src/app/admin/dto/system/menuUpdate.dto.ts +8 -0
- package/template/meadmin/src/app/admin/dto/system/roleCreate.dto.ts +11 -0
- package/template/meadmin/src/app/admin/dto/system/roleQuery.dto.ts +20 -0
- package/template/meadmin/src/app/admin/dto/system/roleTreeAllResult.dto.ts +12 -0
- package/template/meadmin/src/app/admin/dto/system/roleUpdate.dto.ts +14 -0
- package/template/meadmin/src/app/admin/dto/userCreate.dto.ts +9 -0
- package/template/meadmin/src/app/admin/dto/userFileCreate.dto.ts +9 -0
- package/template/meadmin/src/app/admin/dto/userFileQuery.dto.ts +20 -0
- package/template/meadmin/src/app/admin/dto/userFileUp.dto.ts +28 -0
- package/template/meadmin/src/app/admin/dto/userFileUpdate.dto.ts +11 -0
- package/template/meadmin/src/app/admin/dto/userQuery.dto.ts +26 -0
- package/template/meadmin/src/app/admin/dto/userUpdate.dto.ts +11 -0
- package/template/meadmin/src/app/admin/middleware/admin.middleware.ts +41 -0
- package/template/meadmin/src/app/admin/service/example/demo.service.ts +260 -0
- package/template/meadmin/src/app/admin/service/file.service.ts +123 -0
- package/template/meadmin/src/app/admin/service/login.serveice.ts +209 -0
- package/template/meadmin/src/app/admin/service/system/admin.service.ts +206 -0
- package/template/meadmin/src/app/admin/service/system/menu.service.ts +133 -0
- package/template/meadmin/src/app/admin/service/system/role.service.ts +161 -0
- package/template/meadmin/src/app/admin/service/user.service.ts +205 -0
- package/template/meadmin/src/app/admin/service/userFile.service.ts +126 -0
- package/template/meadmin/src/app/home.controller.ts +19 -0
- package/template/meadmin/src/app/index/controller/base.controller.ts +6 -0
- package/template/meadmin/src/app/index/controller/file.controller.ts +116 -0
- package/template/meadmin/src/app/index/controller/index.controller.ts +70 -0
- package/template/meadmin/src/app/index/controller/login.controller.ts +81 -0
- package/template/meadmin/src/app/index/controller/user.controller.ts +43 -0
- package/template/meadmin/src/app/index/dto/captchaResult.dto.ts +8 -0
- package/template/meadmin/src/app/index/dto/fileCreate.dto.ts +9 -0
- package/template/meadmin/src/app/index/dto/fileQuery.dto.ts +20 -0
- package/template/meadmin/src/app/index/dto/fileUp.dto.ts +28 -0
- package/template/meadmin/src/app/index/dto/fileUpdate.dto.ts +11 -0
- package/template/meadmin/src/app/index/dto/loginCaptchaParam.dto.ts +9 -0
- package/template/meadmin/src/app/index/dto/loginParam.dto.ts +13 -0
- package/template/meadmin/src/app/index/dto/loginResult.dto.ts +10 -0
- package/template/meadmin/src/app/index/dto/userCreate.dto.ts +26 -0
- package/template/meadmin/src/app/index/dto/userUpdate.dto.ts +33 -0
- package/template/meadmin/src/app/index/middleware/index.middleware.ts +28 -0
- package/template/meadmin/src/app/index/service/file.service.ts +127 -0
- package/template/meadmin/src/app/index/service/login.serveice.ts +178 -0
- package/template/meadmin/src/app/index/service/user.service.ts +87 -0
- package/template/meadmin/src/config/config.default.ts +154 -0
- package/template/meadmin/src/config/config.unittest.ts +7 -0
- package/template/meadmin/src/config/database.ts +30 -0
- package/template/meadmin/src/configuration.ts +107 -0
- package/template/meadmin/src/controller/api.controller.ts +21 -0
- package/template/meadmin/src/decorators/admin/permission.ts +41 -0
- package/template/meadmin/src/decorators/index/permission.ts +37 -0
- package/template/meadmin/src/decorators/index.ts +61 -0
- package/template/meadmin/src/decorators/sequelize.ts +65 -0
- package/template/meadmin/src/decorators/swagger.ts +170 -0
- package/template/meadmin/src/decorators/transactions.ts +42 -0
- package/template/meadmin/src/dict/code.enum.ts +8 -0
- package/template/meadmin/src/dto/page.dto.ts +16 -0
- package/template/meadmin/src/entities/abstract/adminBase.entity.ts +35 -0
- package/template/meadmin/src/entities/abstract/adminTree.entity.ts +258 -0
- package/template/meadmin/src/entities/abstract/base.entity.ts +69 -0
- package/template/meadmin/src/entities/abstract/indexBase.entity.ts +39 -0
- package/template/meadmin/src/entities/exampleBook.entity.ts +22 -0
- package/template/meadmin/src/entities/exampleDemo.entity.ts +104 -0
- package/template/meadmin/src/entities/file.entity.ts +68 -0
- package/template/meadmin/src/entities/systemAdmin.entity.ts +164 -0
- package/template/meadmin/src/entities/systemMenu.entity.ts +161 -0
- package/template/meadmin/src/entities/systemRole.entity.ts +99 -0
- package/template/meadmin/src/entities/user.entity.ts +160 -0
- package/template/meadmin/src/entities/userFile.entity.ts +68 -0
- package/template/meadmin/src/fileManage/index.ts +12 -0
- package/template/meadmin/src/fileManage/storage/base.ts +6 -0
- package/template/meadmin/src/fileManage/storage/local.ts +93 -0
- package/template/meadmin/src/filter/badRequest.filter.ts +14 -0
- package/template/meadmin/src/filter/default.filter.ts +28 -0
- package/template/meadmin/src/filter/forbidden.filter.ts +15 -0
- package/template/meadmin/src/filter/index.ts +6 -0
- package/template/meadmin/src/filter/notfound.filter.ts +10 -0
- package/template/meadmin/src/filter/unauthorized.filter.ts +15 -0
- package/template/meadmin/src/filter/validate.filter.ts +23 -0
- package/template/meadmin/src/helper/dotenv.ts +13 -0
- package/template/meadmin/src/helper/dto.ts +195 -0
- package/template/meadmin/src/helper/snowflake.ts +50 -0
- package/template/meadmin/src/helper/utils.ts +57 -0
- package/template/meadmin/src/interface.ts +12 -0
- package/template/meadmin/src/locales/en.json +13 -0
- package/template/meadmin/src/logger.ts +24 -0
- package/template/meadmin/src/middleware/report.middleware.ts +23 -0
- package/template/meadmin/src/response/apiBase.res.ts +12 -0
- package/template/meadmin/src/response/apiError.res.ts +6 -0
- package/template/meadmin/src/response/apiPage.res.ts +19 -0
- package/template/meadmin/src/response/apiSuccess.res.ts +17 -0
- package/template/meadmin/src/ruleType/index.ts +3 -0
- package/template/meadmin/src/ruleType/string.ts +29 -0
- package/template/meadmin/src/service/dataSourceManager.service.ts +55 -0
- package/template/meadmin/src/service/response.service.ts +65 -0
- package/template/meadmin/src/types/decorator.ts +31 -0
- package/template/meadmin/src/types/entity.ts +209 -0
- package/template/meadmin/src/types/fileManage.ts +48 -0
- package/template/meadmin/src/types/koa.interface.ts +12 -0
- package/template/meadmin/src/types/uploadOptions.ts +7 -0
- package/template/meadmin/test/controller/api.test.ts +17 -0
- package/template/meadmin/test/controller/home.test.ts +18 -0
- package/template/meadmin/test/setup.ts +15 -0
- package/template/meadmin/test/tsconfig.json +19 -0
- package/template/meadmin/tsconfig.json +28 -0
- package/template/meadmin/types/mwtsc.d.ts +9 -0
- package/template/meadmin/uploadFile/admin/.gitkeep +0 -0
- package/template/meadmin/uploadFile/index/.gitkeep +0 -0
- package/template/meadmin/view/admin/.prettierignore +28 -0
- package/template/meadmin/view/admin/.prettierrc.cjs +4 -0
- package/template/meadmin/view/admin/cli/autoImport.ts +3 -0
- package/template/meadmin/view/admin/eslint.config.js +91 -0
- package/template/meadmin/view/admin/index.html +65 -0
- package/template/meadmin/view/admin/packageTemplate.json +123 -0
- package/template/meadmin/view/admin/plugins/autoComponents.ts +10 -0
- package/template/meadmin/view/admin/plugins/autoImport.ts +64 -0
- package/template/meadmin/view/admin/plugins/autoImportApi.ts +14 -0
- package/template/meadmin/view/admin/plugins/babel.ts +25 -0
- package/template/meadmin/view/admin/plugins/index.ts +107 -0
- package/template/meadmin/view/admin/plugins/svgLoader.ts +22 -0
- package/template/meadmin/view/admin/plugins/vueSetUpExtend.ts +5 -0
- package/template/meadmin/view/admin/public/favicon.ico +0 -0
- package/template/meadmin/view/admin/public/logo.png +0 -0
- package/template/meadmin/view/admin/public/logo.svg +1 -0
- package/template/meadmin/view/admin/src/App.vue +46 -0
- package/template/meadmin/view/admin/src/api/api.model.ts +11 -0
- package/template/meadmin/view/admin/src/api/example/demo.ts +189 -0
- package/template/meadmin/view/admin/src/api/file.ts +124 -0
- package/template/meadmin/view/admin/src/api/login.ts +55 -0
- package/template/meadmin/view/admin/src/api/system/admin.ts +111 -0
- package/template/meadmin/view/admin/src/api/system/menu.ts +125 -0
- package/template/meadmin/view/admin/src/api/system/role.ts +111 -0
- package/template/meadmin/view/admin/src/api/user.ts +106 -0
- package/template/meadmin/view/admin/src/api/userFile.ts +121 -0
- package/template/meadmin/view/admin/src/app.ts +13 -0
- package/template/meadmin/view/admin/src/assets/images/404.svg +339 -0
- package/template/meadmin/view/admin/src/assets/images/captcha.png +0 -0
- package/template/meadmin/view/admin/src/components/meButton.vue +39 -0
- package/template/meadmin/view/admin/src/components/meComponent.ts +73 -0
- package/template/meadmin/view/admin/src/components/meDarkSwitch.vue +36 -0
- package/template/meadmin/view/admin/src/components/meDialog/hooks/minMax.ts +163 -0
- package/template/meadmin/view/admin/src/components/meDialog/index.vue +86 -0
- package/template/meadmin/view/admin/src/components/meFilesView.vue +52 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/core/Suspense.ts +15 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/core/apiAsyncComponent.ts +3 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/core/component.ts +5 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/core/componentPublicInstance.ts +6 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/core/devtools.ts +43 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/core/errorHandling.ts +17 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/core/renderer.ts +103 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/core/shapeFlags.ts +13 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/core/vnode.ts +9 -0
- package/template/meadmin/view/admin/src/components/meKeepAlive/index.ts +347 -0
- package/template/meadmin/view/admin/src/components/meLocaleSelect.vue +34 -0
- package/template/meadmin/view/admin/src/components/meNumber.vue +74 -0
- package/template/meadmin/view/admin/src/components/meSearchForm.vue +175 -0
- package/template/meadmin/view/admin/src/components/meSearchMenu/index.vue +87 -0
- package/template/meadmin/view/admin/src/components/meSearchMenu/useSearchMenu.ts +87 -0
- package/template/meadmin/view/admin/src/components/meSelectFile/index.vue +87 -0
- package/template/meadmin/view/admin/src/components/meSelectFile/meSelectFile.ts +3 -0
- package/template/meadmin/view/admin/src/components/meSelectList.vue +80 -0
- package/template/meadmin/view/admin/src/components/meSelectUserFile/index.vue +96 -0
- package/template/meadmin/view/admin/src/components/meSelectUserFile/meSelectUserFile.ts +3 -0
- package/template/meadmin/view/admin/src/components/meSetting.vue +20 -0
- package/template/meadmin/view/admin/src/components/meSettingMenu.vue +152 -0
- package/template/meadmin/view/admin/src/components/meSizeSelect.vue +28 -0
- package/template/meadmin/view/admin/src/components/meUpload.vue +114 -0
- package/template/meadmin/view/admin/src/components/meUploadUserFile.vue +114 -0
- package/template/meadmin/view/admin/src/components/meVxeTable/components/pagination.vue +67 -0
- package/template/meadmin/view/admin/src/components/meVxeTable/directives/resize.ts +31 -0
- package/template/meadmin/view/admin/src/components/meVxeTable/index.vue +287 -0
- package/template/meadmin/view/admin/src/components/meVxeTable/install.ts +30 -0
- package/template/meadmin/view/admin/src/components/meVxeTable/util.ts +11 -0
- package/template/meadmin/view/admin/src/components/meWangEditor/index.vue +121 -0
- package/template/meadmin/view/admin/src/components/meWangEditor/meWangEditor.scss +24 -0
- package/template/meadmin/view/admin/src/components/page.vue +24 -0
- package/template/meadmin/view/admin/src/components/service/meImageViewer.ts +23 -0
- package/template/meadmin/view/admin/src/config/index.ts +11 -0
- package/template/meadmin/view/admin/src/config/locale.ts +245 -0
- package/template/meadmin/view/admin/src/config/login.ts +5 -0
- package/template/meadmin/view/admin/src/config/theme.ts +19 -0
- package/template/meadmin/view/admin/src/dict/configEnum.ts +5 -0
- package/template/meadmin/view/admin/src/dict/eventEnmu.ts +14 -0
- package/template/meadmin/view/admin/src/dict/menuModeEnum.ts +5 -0
- package/template/meadmin/view/admin/src/dict/pageEnum.ts +6 -0
- package/template/meadmin/view/admin/src/directives/clickOutside.ts +2 -0
- package/template/meadmin/view/admin/src/entry-client.ts +8 -0
- package/template/meadmin/view/admin/src/entry-server.ts +69 -0
- package/template/meadmin/view/admin/src/env.d.ts +6 -0
- package/template/meadmin/view/admin/src/event/index.ts +30 -0
- package/template/meadmin/view/admin/src/event/module.ts +1 -0
- package/template/meadmin/view/admin/src/event/modules/core.ts +27 -0
- package/template/meadmin/view/admin/src/hooks/actionModel.ts +54 -0
- package/template/meadmin/view/admin/src/hooks/core/computedProxy.ts +10 -0
- package/template/meadmin/view/admin/src/hooks/index.ts +24 -0
- package/template/meadmin/view/admin/src/icons/index.ts +52 -0
- package/template/meadmin/view/admin/src/icons/svg/dashboard.svg +5 -0
- package/template/meadmin/view/admin/src/icons/svg/moon.svg +5 -0
- package/template/meadmin/view/admin/src/icons/svg/size.svg +5 -0
- package/template/meadmin/view/admin/src/icons/svg/sunny.svg +5 -0
- package/template/meadmin/view/admin/src/icons/svg/translation.svg +5 -0
- package/template/meadmin/view/admin/src/layout/components/expand.vue +18 -0
- package/template/meadmin/view/admin/src/layout/components/header/components/tagBar/components/contextmenu.vue +180 -0
- package/template/meadmin/view/admin/src/layout/components/header/components/tagBar/index.vue +322 -0
- package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/left.vue +59 -0
- package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/right/components/messageBox.vue +82 -0
- package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/right/components/user.vue +53 -0
- package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/right/index.vue +44 -0
- package/template/meadmin/view/admin/src/layout/components/header/components/topBar/components/topMenu.vue +33 -0
- package/template/meadmin/view/admin/src/layout/components/header/components/topBar/index.vue +30 -0
- package/template/meadmin/view/admin/src/layout/components/header/index.vue +15 -0
- package/template/meadmin/view/admin/src/layout/components/menu/components/menuItem.vue +72 -0
- package/template/meadmin/view/admin/src/layout/components/menu/index.vue +147 -0
- package/template/meadmin/view/admin/src/layout/components/page.vue +33 -0
- package/template/meadmin/view/admin/src/layout/components/title.vue +21 -0
- package/template/meadmin/view/admin/src/layout/index.vue +104 -0
- package/template/meadmin/view/admin/src/locales/helper.ts +127 -0
- package/template/meadmin/view/admin/src/locales/hooks.ts +50 -0
- package/template/meadmin/view/admin/src/locales/i18n.ts +16 -0
- package/template/meadmin/view/admin/src/locales/lang/en/default.json +65 -0
- package/template/meadmin/view/admin/src/locales/lang/en/index.ts +7 -0
- package/template/meadmin/view/admin/src/locales/lang/en/meTable.json +7 -0
- package/template/meadmin/view/admin/src/locales/lang/en/meVxeTable.ts +11 -0
- package/template/meadmin/view/admin/src/locales/lang/en/menu.json +1 -0
- package/template/meadmin/view/admin/src/locales/lang/en/rule.json +12 -0
- package/template/meadmin/view/admin/src/locales/lang/zh-cn/default.json +6 -0
- package/template/meadmin/view/admin/src/locales/lang/zh-cn/index.ts +7 -0
- package/template/meadmin/view/admin/src/locales/lang/zh-cn/meVxeTable.ts +2 -0
- package/template/meadmin/view/admin/src/main.ts +21 -0
- package/template/meadmin/view/admin/src/router/constant.ts +2 -0
- package/template/meadmin/view/admin/src/router/guard/index.ts +52 -0
- package/template/meadmin/view/admin/src/router/index.ts +115 -0
- package/template/meadmin/view/admin/src/setElGlobel.ts +16 -0
- package/template/meadmin/view/admin/src/store/index.ts +8 -0
- package/template/meadmin/view/admin/src/store/modules/global.ts +66 -0
- package/template/meadmin/view/admin/src/store/modules/route.ts +69 -0
- package/template/meadmin/view/admin/src/store/modules/setting.ts +46 -0
- package/template/meadmin/view/admin/src/store/modules/user.ts +115 -0
- package/template/meadmin/view/admin/src/styles/element-plus.scss +40 -0
- package/template/meadmin/view/admin/src/styles/index.scss +122 -0
- package/template/meadmin/view/admin/src/styles/transition.scss +33 -0
- package/template/meadmin/view/admin/src/styles/variables.scss +5 -0
- package/template/meadmin/view/admin/src/utils/fileMd5Work.ts +109 -0
- package/template/meadmin/view/admin/src/utils/fileUpload.ts +154 -0
- package/template/meadmin/view/admin/src/utils/formatting.ts +62 -0
- package/template/meadmin/view/admin/src/utils/helper.ts +315 -0
- package/template/meadmin/view/admin/src/utils/loading.ts +63 -0
- package/template/meadmin/view/admin/src/utils/log.ts +8 -0
- package/template/meadmin/view/admin/src/utils/mitt.ts +152 -0
- package/template/meadmin/view/admin/src/utils/nProgress.ts +31 -0
- package/template/meadmin/view/admin/src/utils/permission.ts +76 -0
- package/template/meadmin/view/admin/src/utils/request.ts +152 -0
- package/template/meadmin/view/admin/src/utils/userFileUpload.ts +154 -0
- package/template/meadmin/view/admin/src/utils/validate.ts +17 -0
- package/template/meadmin/view/admin/src/views/404.vue +50 -0
- package/template/meadmin/view/admin/src/views/example/demo/components/addOrUp.vue +118 -0
- package/template/meadmin/view/admin/src/views/example/demo/components/info.vue +56 -0
- package/template/meadmin/view/admin/src/views/example/demo/dict.ts +8 -0
- package/template/meadmin/view/admin/src/views/example/demo/index.vue +126 -0
- package/template/meadmin/view/admin/src/views/example/demo/lang/dict.ts +8 -0
- package/template/meadmin/view/admin/src/views/example/demo/lang/en.json +14 -0
- package/template/meadmin/view/admin/src/views/file/components/add.vue +24 -0
- package/template/meadmin/view/admin/src/views/file/components/info.vue +51 -0
- package/template/meadmin/view/admin/src/views/file/components/up.vue +72 -0
- package/template/meadmin/view/admin/src/views/file/index.vue +132 -0
- package/template/meadmin/view/admin/src/views/file/lang/en.json +11 -0
- package/template/meadmin/view/admin/src/views/login/components/header.vue +20 -0
- package/template/meadmin/view/admin/src/views/login/index.vue +163 -0
- package/template/meadmin/view/admin/src/views/redirect.vue +12 -0
- package/template/meadmin/view/admin/src/views/system/admin/components/addOrUp.vue +111 -0
- package/template/meadmin/view/admin/src/views/system/admin/components/info.vue +75 -0
- package/template/meadmin/view/admin/src/views/system/admin/dict.ts +7 -0
- package/template/meadmin/view/admin/src/views/system/admin/index.vue +145 -0
- package/template/meadmin/view/admin/src/views/system/admin/lang/en.json +19 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/components/addOrUp.vue +145 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/components/info.vue +68 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/dict.ts +36 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/index.vue +162 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/menu/lang/en.json +20 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/role/components/addOrUp.vue +94 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/role/components/info.vue +59 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/role/dict.ts +7 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/role/index.vue +153 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/components/role/lang/en.json +14 -0
- package/template/meadmin/view/admin/src/views/system/menuRole/index.vue +59 -0
- package/template/meadmin/view/admin/src/views/user/components/addOrUp.vue +120 -0
- package/template/meadmin/view/admin/src/views/user/components/info.vue +56 -0
- package/template/meadmin/view/admin/src/views/user/dict.ts +7 -0
- package/template/meadmin/view/admin/src/views/user/file/components/add.vue +24 -0
- package/template/meadmin/view/admin/src/views/user/file/components/info.vue +54 -0
- package/template/meadmin/view/admin/src/views/user/file/components/up.vue +82 -0
- package/template/meadmin/view/admin/src/views/user/file/index.vue +148 -0
- package/template/meadmin/view/admin/src/views/user/file/lang/en.json +17 -0
- package/template/meadmin/view/admin/src/views/user/index.vue +145 -0
- package/template/meadmin/view/admin/src/views/user/lang/en.json +18 -0
- package/template/meadmin/view/admin/template/components.d.ts +9 -0
- package/template/meadmin/view/admin/template/directives.d.ts +6 -0
- package/template/meadmin/view/admin/template/meIconComponents.d.ts +6 -0
- package/template/meadmin/view/admin/tsconfig.json +33 -0
- package/template/meadmin/view/admin/tsconfig.node.json +17 -0
- package/template/meadmin/view/admin/types/api.d.ts +15 -0
- package/template/meadmin/view/admin/types/auto-imports.d.ts +302 -0
- package/template/meadmin/view/admin/types/global.d.ts +60 -0
- package/template/meadmin/view/admin/types/globalComponents.d.ts +13 -0
- package/template/meadmin/view/admin/types/melIconComponents.d.d.ts +9 -0
- package/template/meadmin/view/admin/types/vue-router.d.ts +39 -0
- package/template/meadmin/view/admin/types/vueCustomProperties .d.ts +6 -0
- package/template/meadmin/view/admin/types/vueExtendType.d.ts +43 -0
- package/template/meadmin/view/admin/vite.config.ts +110 -0
- package/template/meadmin/view/index/.prettierignore +28 -0
- package/template/meadmin/view/index/.prettierrc.cjs +4 -0
- package/template/meadmin/view/index/README.md +84 -0
- package/template/meadmin/view/index/cli/autoImport.ts +3 -0
- package/template/meadmin/view/index/eslint.config.js +91 -0
- package/template/meadmin/view/index/index.html +22 -0
- package/template/meadmin/view/index/packageTemplate.json +122 -0
- package/template/meadmin/view/index/plugins/autoComponents.ts +10 -0
- package/template/meadmin/view/index/plugins/autoImport.ts +64 -0
- package/template/meadmin/view/index/plugins/autoImportApi.ts +14 -0
- package/template/meadmin/view/index/plugins/babel.ts +25 -0
- package/template/meadmin/view/index/plugins/index.ts +103 -0
- package/template/meadmin/view/index/plugins/svgLoader.ts +22 -0
- package/template/meadmin/view/index/plugins/vueSetUpExtend.ts +5 -0
- package/template/meadmin/view/index/public/favicon.ico +0 -0
- package/template/meadmin/view/index/public/logo.png +0 -0
- package/template/meadmin/view/index/public/logo.svg +1 -0
- package/template/meadmin/view/index/src/App.vue +30 -0
- package/template/meadmin/view/index/src/api/api.model.ts +11 -0
- package/template/meadmin/view/index/src/api/file.ts +123 -0
- package/template/meadmin/view/index/src/api/index.ts +25 -0
- package/template/meadmin/view/index/src/api/login.ts +72 -0
- package/template/meadmin/view/index/src/api/user.ts +42 -0
- package/template/meadmin/view/index/src/app.ts +39 -0
- package/template/meadmin/view/index/src/assets/images/404.svg +339 -0
- package/template/meadmin/view/index/src/assets/images/avatar.jpg +0 -0
- package/template/meadmin/view/index/src/components/meButton.vue +34 -0
- package/template/meadmin/view/index/src/components/meDialog/hooks/minMax.ts +166 -0
- package/template/meadmin/view/index/src/components/meDialog/index.vue +86 -0
- package/template/meadmin/view/index/src/components/meNumber.vue +74 -0
- package/template/meadmin/view/index/src/components/meSelectFile/index.vue +92 -0
- package/template/meadmin/view/index/src/components/meSelectFile/meSelectFile.ts +3 -0
- package/template/meadmin/view/index/src/components/meUpAvatar.vue +166 -0
- package/template/meadmin/view/index/src/components/meUpload.vue +111 -0
- package/template/meadmin/view/index/src/components/meVxeTable/components/pagination.vue +67 -0
- package/template/meadmin/view/index/src/components/meVxeTable/directives/resize.ts +31 -0
- package/template/meadmin/view/index/src/components/meVxeTable/index.vue +286 -0
- package/template/meadmin/view/index/src/components/meVxeTable/install.ts +18 -0
- package/template/meadmin/view/index/src/components/meVxeTable/util.ts +11 -0
- package/template/meadmin/view/index/src/components/meWangEditor/index.vue +121 -0
- package/template/meadmin/view/index/src/components/meWangEditor/meWangEditor.scss +24 -0
- package/template/meadmin/view/index/src/components/service/meImageViewer.ts +23 -0
- package/template/meadmin/view/index/src/config/index.ts +2 -0
- package/template/meadmin/view/index/src/config/login.ts +5 -0
- package/template/meadmin/view/index/src/dict/eventEnmu.ts +13 -0
- package/template/meadmin/view/index/src/dict/pageEnum.ts +8 -0
- package/template/meadmin/view/index/src/directives/clickOutside.ts +2 -0
- package/template/meadmin/view/index/src/entry-client.ts +8 -0
- package/template/meadmin/view/index/src/entry-server.ts +83 -0
- package/template/meadmin/view/index/src/env.d.ts +6 -0
- package/template/meadmin/view/index/src/event/index.ts +23 -0
- package/template/meadmin/view/index/src/hooks/actionModel.ts +54 -0
- package/template/meadmin/view/index/src/hooks/core/computedProxy.ts +10 -0
- package/template/meadmin/view/index/src/hooks/index.ts +24 -0
- package/template/meadmin/view/index/src/icons/index.ts +52 -0
- package/template/meadmin/view/index/src/icons/svg/dashboard.svg +5 -0
- package/template/meadmin/view/index/src/icons/svg/moon.svg +5 -0
- package/template/meadmin/view/index/src/icons/svg/size.svg +5 -0
- package/template/meadmin/view/index/src/icons/svg/sunny.svg +5 -0
- package/template/meadmin/view/index/src/icons/svg/translation.svg +5 -0
- package/template/meadmin/view/index/src/layout/default/components/footer.vue +22 -0
- package/template/meadmin/view/index/src/layout/default/components/header/components/menuItem.vue +69 -0
- package/template/meadmin/view/index/src/layout/default/components/header/components/user.vue +55 -0
- package/template/meadmin/view/index/src/layout/default/components/header/index.vue +53 -0
- package/template/meadmin/view/index/src/layout/default/index.vue +63 -0
- package/template/meadmin/view/index/src/layout/default/layout.scss +1 -0
- package/template/meadmin/view/index/src/layout/default/page.vue +11 -0
- package/template/meadmin/view/index/src/layout/layoutRoute.vue +13 -0
- package/template/meadmin/view/index/src/main.ts +28 -0
- package/template/meadmin/view/index/src/router/guard/index.ts +53 -0
- package/template/meadmin/view/index/src/router/index.ts +73 -0
- package/template/meadmin/view/index/src/router/routes/001-index.ts +42 -0
- package/template/meadmin/view/index/src/router/routes/002-demo.ts +12 -0
- package/template/meadmin/view/index/src/router/routes/003-user.ts +27 -0
- package/template/meadmin/view/index/src/router/routes/demo/001-demo.ts +36 -0
- package/template/meadmin/view/index/src/setElGlobel.ts +7 -0
- package/template/meadmin/view/index/src/store/index.ts +11 -0
- package/template/meadmin/view/index/src/store/module.ts +5 -0
- package/template/meadmin/view/index/src/store/modules/global.ts +52 -0
- package/template/meadmin/view/index/src/store/modules/route.ts +20 -0
- package/template/meadmin/view/index/src/store/modules/user.ts +98 -0
- package/template/meadmin/view/index/src/styles/element-plus.scss +40 -0
- package/template/meadmin/view/index/src/styles/index.scss +122 -0
- package/template/meadmin/view/index/src/styles/transition.scss +33 -0
- package/template/meadmin/view/index/src/styles/variables.scss +6 -0
- package/template/meadmin/view/index/src/utils/cookies.ts +59 -0
- package/template/meadmin/view/index/src/utils/fileMd5Work.ts +109 -0
- package/template/meadmin/view/index/src/utils/fileUpload.ts +156 -0
- package/template/meadmin/view/index/src/utils/helper.ts +261 -0
- package/template/meadmin/view/index/src/utils/loading.ts +71 -0
- package/template/meadmin/view/index/src/utils/log.ts +8 -0
- package/template/meadmin/view/index/src/utils/mitt.ts +152 -0
- package/template/meadmin/view/index/src/utils/nProgress.ts +52 -0
- package/template/meadmin/view/index/src/utils/request.ts +182 -0
- package/template/meadmin/view/index/src/utils/server.ts +73 -0
- package/template/meadmin/view/index/src/utils/validate.ts +17 -0
- package/template/meadmin/view/index/src/views/404.vue +50 -0
- package/template/meadmin/view/index/src/views/index/index.vue +137 -0
- package/template/meadmin/view/index/src/views/login/components/login.vue +117 -0
- package/template/meadmin/view/index/src/views/login/components/register.vue +192 -0
- package/template/meadmin/view/index/src/views/login/index.vue +147 -0
- package/template/meadmin/view/index/src/views/promiseError.vue +48 -0
- package/template/meadmin/view/index/src/views/redirect.vue +9 -0
- package/template/meadmin/view/index/src/views/user/components/editPass.vue +83 -0
- package/template/meadmin/view/index/src/views/user/components/userInfo.vue +91 -0
- package/template/meadmin/view/index/src/views/user/index.vue +67 -0
- package/template/meadmin/view/index/template/components.d.ts +9 -0
- package/template/meadmin/view/index/template/directives.d.ts +6 -0
- package/template/meadmin/view/index/template/meIconComponents.d.ts +6 -0
- package/template/meadmin/view/index/tsconfig.json +33 -0
- package/template/meadmin/view/index/tsconfig.node.json +17 -0
- package/template/meadmin/view/index/types/api.d.ts +15 -0
- package/template/meadmin/view/index/types/auto-imports.d.ts +301 -0
- package/template/meadmin/view/index/types/components.d.ts +25 -0
- package/template/meadmin/view/index/types/directives.d.ts +7 -0
- package/template/meadmin/view/index/types/global.d.ts +51 -0
- package/template/meadmin/view/index/types/globalComponents.d.ts +14 -0
- package/template/meadmin/view/index/types/meIconComponents.d.ts +11 -0
- package/template/meadmin/view/index/types/vue-router.d.ts +17 -0
- package/template/meadmin/view/index/types/vueCustomProperties .d.ts +6 -0
- package/template/meadmin/view/index/types/vueExtendType.d.ts +43 -0
- package/template/meadmin/view/index/vite.config.ts +92 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 1920 1080" style="enable-background:new 0 0 1920 1080;" xml:space="preserve">
|
|
5
|
+
<style type="text/css">
|
|
6
|
+
.st0{fill:none;stroke:#F7F9FC;stroke-width:3;stroke-miterlimit:10;}
|
|
7
|
+
.st1{fill:#74BAAB;}
|
|
8
|
+
.st2{fill:#93B4F6;}
|
|
9
|
+
.st3{fill:#274D76;}
|
|
10
|
+
.st4{fill:#FDFFFF;}
|
|
11
|
+
.st5{fill:#FFF3A1;}
|
|
12
|
+
.st6{fill:#EC8C92;}
|
|
13
|
+
.st7{fill:#F2BDBA;}
|
|
14
|
+
.st8{fill:#FFFFFF;}
|
|
15
|
+
.st9{fill:#FDFDFF;}
|
|
16
|
+
.st10{fill:#FAFCFC;}
|
|
17
|
+
</style>
|
|
18
|
+
<g id="BG">
|
|
19
|
+
<path class="st0" d="M1431.59,796.45"/>
|
|
20
|
+
<g>
|
|
21
|
+
<path class="st1" d="M1163.38,526.52c-3.73-12.53-13.4-22.1-31.27-19.67l-85.4,11.41c-10.26,1.05-14.16-9.1-4.55-11.83
|
|
22
|
+
l71.02-21.12c27.42-7.42,37.23-24.37,37.65-43.98c0.28-13.33-10.08-24.62-23.08-25.17c-15.68-0.66-36.9,8.6-84.2,15.32
|
|
23
|
+
c-7.58,1.08-9.33-1.51-7.64-6.45c4.54-13.35,42.2-19.94,59.91-21.53c21.29-1.91,22.56-15.98,24.88-22.58
|
|
24
|
+
c7.02-19.93,0.15-95.01-4.04-118c-0.94-5.16-5.87-7.9-13.15-7.03c-24.96,3-102.29,48.63-131.65,65.8
|
|
25
|
+
c-7.75,4.53-12.82,15.61-4.26,39.49c5.84,16.28,3.42,34.75-2.94,42.94c-4.61,5.93-10.53,4.62-12.4-1.8
|
|
26
|
+
c-5.97-20.44-12.91-40.27-12.91-40.27c-3.6-13.19-20.34-17.04-33.94-11.05c-11.58,5.1-16.38,6.52-28.91,13.18
|
|
27
|
+
c-21.27,11.32-29.73,31-20.82,48.69l32.41,64.32c3.45,6.84-10.36,11.12-15.2,4.71l-44.72-59.21c-6.99-10.09-26.65-11.36-36.2-2.37
|
|
28
|
+
c-5.31,5-14.77,18.28-19.12,24.09c-10.71,14.3-7.04,25.84,2.11,41.19l35.39,58.48c6.21,11.05-2.36,15.22-5.94,11.05
|
|
29
|
+
c-12.95-15.11-37.34-48.31-37.34-48.31c-6.69-9.33-21.11-7.29-24.94,3.53c-4.35,12.28-10.92,31.65-12.26,35.44l52.31,286.63
|
|
30
|
+
l374.95-2.65l10.04-289.4C1166,535.71,1164.74,531.1,1163.38,526.52z"/>
|
|
31
|
+
</g>
|
|
32
|
+
<g>
|
|
33
|
+
<path class="st2" d="M818.1,699.3c-4.02,0.17-5.77-2.92-2.48-5.23c2.12-1.48,3.84-2.75,4.45-3.34c6.19-6.05,6.34-11.61,4.83-17.76
|
|
34
|
+
c-4.19-17.05-14.28-33.06-21.08-39.78c-4.25-4.2-11.41-3.66-15.46,0.73l-1.12,1.21c-2.49,2.7-6.72-0.58-4.73-3.66l9.69-15.04
|
|
35
|
+
c2.51-3.9,3.02-8.78,1.35-13.11c-17.09-44.07-36.26-59.17-53.49-70c-7.27-4.57-16.88-0.8-19.01,7.52l-13.57,52.89
|
|
36
|
+
c-1.58,6.16-10.74,4.5-10.06-1.82l6.04-56.19c0.57-6.13-0.67-13.32-5.86-16.63c-12.21-7.79-35.09-12.36-53.49-13.27
|
|
37
|
+
c-4.63-0.23-8.5,3.47-8.42,8.11l0.79,44.67c-0.21,7.39-9.71,5.75-10.95-1.54l-8.46-43.85c-1.59-5.92-5.92-10.23-11.95-11.36
|
|
38
|
+
c-26.9-5.08-53.28-6.35-70.2-4.11c-12.75,1.68-15.48,14.65-13.47,24.04l9.14,44.03c2.02,6.63,4.57,9.77,11.38,11.02l46.69,8.12
|
|
39
|
+
c7.49,0.63,7.74,7.48,0.31,8.59c-21.41,3.2-41.95,5.87-55.1,8.31c-4.08,0.76-7.16,4.16-7.47,8.3c-0.67,8.9-2.32,18.81,5.07,27.28
|
|
40
|
+
c7.82,8.95,46.08,13.21,81.85,20.39c5.27,1.06,5.94,5.41,0.75,6.81c0,0-46.14,6.72-61.79,15.26
|
|
41
|
+
c-10.61,5.78-11.36,11.17-10.8,22.23c0.34,6.61,1.78,17.31,3.16,26.47c1.52,10.11,9.83,17.83,20.03,18.58c0,0,40.7,2.63,53.9,6.46
|
|
42
|
+
c8.78,2.55,1.84,8.29-2.57,10.44c-11.73,5.71-33.98,16.96-33.98,16.96c-10.58,4.97-15.02,16.15-15.07,27.84
|
|
43
|
+
c-0.03,7.92,1.22,23.72,1.22,23.72h265.47c0,0,9.9-62.36-1.71-127.04c-0.7-3.88-4.17-6.63-8.1-6.46L818.1,699.3z"/>
|
|
44
|
+
</g>
|
|
45
|
+
<g>
|
|
46
|
+
<path class="st3" d="M631.34,813.31c-6.47-23.96,84.65-50.46,99.72,18.36c-16.35,0.03-7.11,0-27.59,0
|
|
47
|
+
C671.98,812.1,636.05,830.77,631.34,813.31z"/>
|
|
48
|
+
</g>
|
|
49
|
+
<path class="st4" d="M623.51,726.65c-1.05-6.9,4.87-13.01,11.65-14.63c45.46-10.83,51.27,22.45,56.7,28.89
|
|
50
|
+
c3.84,4.55,14.4,1.8,20.04,8.47c3.66,4.33-0.71,17.5,3.56,23.46c4.69,6.54,11.77,1.2,17.33,9.41c4.87,7.19-5.09,14.89-1.86,22.66
|
|
51
|
+
c4.24,10.21,18.96,5.98,10.63,25.26c-7.13-0.03-8.58-0.05-8.58-0.05s-20.62-2.5-18.13-17.95c1.05-6.49-15.78-1.83-19.8-7.82
|
|
52
|
+
c-3.21-4.78,1.8-9.26-4.12-11.66c-3.67-1.49-17.16,0.46-20.83-7.32c-2.8-5.92,4.64-13.13-4.23-15.4
|
|
53
|
+
C645.98,764.87,628.37,758.67,623.51,726.65z"/>
|
|
54
|
+
<path class="st4" d="M724.59,787.96c5.49-16.39,7.03-33.13,17.44-36.9c7.53-2.73,9.5,3.98,14.87,2.48
|
|
55
|
+
c7.49-2.09,6.74-37.84,54.59-34.2c14.63,1.11,23.66,25.15-2.41,32.59c-13.92,3.98,1.92,6.04-2.35,13.62
|
|
56
|
+
c-6.02,10.68-29.64,5.73-37.19,15.68c-4.46,5.88,3.44,16.57-4.41,32.04c-1.84,3.63-3.96,7.1-6.13,10.28
|
|
57
|
+
c-6.04,8.87-19.47,7.6-23.72-2.25C729.69,808.34,722.98,792.77,724.59,787.96z"/>
|
|
58
|
+
<path class="st4" d="M729.47,817.22c-5.7-20.07-8.47-40.59-7.9-59.03c0.81-25.9,8.13-46.17,21.16-58.61l4.14,4.34
|
|
59
|
+
c-24.14,23.03-23,72.09-11.3,112.79C736.86,821.15,730.85,822.09,729.47,817.22z"/>
|
|
60
|
+
<g>
|
|
61
|
+
<path class="st3" d="M716.37,699.87l34.99-1.32l-2.86,8.74l9.83,13.89c0.83,1.42-1.19,3.31-3.72,2.53
|
|
62
|
+
c-2.44-0.74-4.94-3.32-6.51-5.97c-0.8-1.35-1.86-0.49-1.8,0.5c0.15,2.5,0.32,6.76,0.32,6.76c0.17,2.59-1.89,3.27-4.38,0.44
|
|
63
|
+
c-3.42-3.89-3.79-8.38-4.25-11.73c-0.16-1.15-1.33-1.62-2.4-1.19c0,0-7.75,2.11-10.28,2.99c-3.06,1.07-4.95-1.18-2.5-3.29
|
|
64
|
+
c0.95-0.82,3.68-3.45,3.68-3.45c0.75-0.6,0.51-1.79-0.42-2.05l-10.04-3.16C713.26,702.79,713.49,699.9,716.37,699.87z"/>
|
|
65
|
+
</g>
|
|
66
|
+
<g>
|
|
67
|
+
<path class="st5" d="M717.53,660.23l2.48,0.44c1.05,0.19,1.97-0.71,1.82-1.76l-0.65-4.47c-0.47-3.24,2.96-5.63,5.83-4.05l2,1.1
|
|
68
|
+
c0.97,0.53,2.17-0.09,2.3-1.19l0.44-3.76c0.32-2.72,3.68-3.82,5.54-1.81l1.45,1.57c0.69,0.75,1.9,0.64,2.45-0.21l3.16-4.88
|
|
69
|
+
c1.78-2.75,5.88-2.5,7.32,0.44l1.71,3.51c0.46,0.93,1.68,1.17,2.45,0.47l2.68-2.43c2.24-2.03,5.84-0.71,6.24,2.28l0.29,2.13
|
|
70
|
+
c0.14,1,1.18,1.61,2.12,1.24l4.42-1.74c1.8-0.71,3.63,0.97,3.08,2.83l-0.4,1.34c-0.35,1.17,0.72,2.27,1.9,1.95l4.52-1.23
|
|
71
|
+
c3.49-0.95,6.22,3.04,4.07,5.95l-1.18,1.6c-0.73,0.98-0.09,2.38,1.13,2.48l6.54,0.53c3.47,0.28,4.88,4.61,2.24,6.88l-2.03,1.74
|
|
72
|
+
c-0.99,0.85-0.56,2.47,0.72,2.71l3.32,0.65c1.85,0.36,2.3,2.79,0.71,3.8l-1.41,0.89c-1.18,0.75-0.86,2.55,0.51,2.84l2.17,0.46
|
|
73
|
+
c2.35,0.5,2.56,3.77,0.29,4.57l-2.67,0.94c-1.24,0.44-1.42,2.11-0.3,2.8l2.52,1.55c2.49,1.54,1.62,5.36-1.29,5.66l-2.26,0.23
|
|
74
|
+
c-1.19,0.12-1.8,1.48-1.11,2.45l1.48,2.1c1.38,1.95-0.55,4.52-2.81,3.75l-2.48-0.85c-1.06-0.36-2.15,0.48-2.06,1.6l0.24,2.99
|
|
75
|
+
c0.13,1.64-1.62,2.76-3.04,1.95l-1.6-0.91c-0.95-0.54-2.15,0.05-2.31,1.13l-0.13,0.91c-0.32,2.15-2.98,3-4.48,1.42l-1.25-1.31
|
|
76
|
+
c-0.85-0.89-2.34-0.5-2.64,0.7l-0.57,2.28c-0.72,2.89-4.56,3.53-6.17,1.02l-1.16-1.81c-0.63-0.98-2.07-0.95-2.66,0.05l-0.32,0.54
|
|
77
|
+
c-0.62,1.05-2.15,1.02-2.72-0.06l0,0c-0.56-1.06-2.06-1.11-2.7-0.1l-0.48,0.77c-0.71,1.12-2.4,0.91-2.81-0.35l-0.42-1.32
|
|
78
|
+
c-0.27-0.85-1.2-1.3-2.04-0.98l-2.4,0.91c-1.14,0.43-2.31-0.55-2.09-1.74l0.14-0.74c0.2-1.09-0.76-2.03-1.85-1.81l-2.5,0.51
|
|
79
|
+
c-1.04,0.21-1.99-0.65-1.86-1.71l0.1-0.9c0.13-1.09-0.87-1.96-1.93-1.69l-3.14,0.8c-1.29,0.33-2.38-1.01-1.78-2.21l0.19-0.37
|
|
80
|
+
c0.53-1.07-0.28-2.32-1.48-2.25l-2.94,0.16c-2.05,0.11-3.53-1.92-2.79-3.84l0.49-1.29c0.35-0.92-0.23-1.93-1.2-2.1l-4.5-0.74
|
|
81
|
+
c-1.81-0.3-2.25-2.7-0.67-3.62l0,0c1.25-0.73,0.92-2.61-0.5-2.88l-2.19-0.41c-2.43-0.45-2.92-3.73-0.72-4.86l0.47-0.25
|
|
82
|
+
c1.26-0.65,1.07-2.51-0.3-2.89l-1.17-0.32c-2.59-0.71-2.45-4.43,0.18-4.95h0c1.47-0.29,1.72-2.28,0.38-2.93l-2.8-1.35
|
|
83
|
+
c-1.96-0.95-1.28-3.9,0.9-3.89l2.84,0.02c1.38,0.01,2.09-1.65,1.13-2.64l-1.36-1.4C715.08,661.77,716.04,659.97,717.53,660.23z"/>
|
|
84
|
+
</g>
|
|
85
|
+
<rect x="760.26" y="693.68" transform="matrix(1 -3.089629e-03 3.089629e-03 1 -2.1606 2.3553)" width="2" height="13.59"/>
|
|
86
|
+
<rect x="760.14" y="655.58" transform="matrix(1 -3.091242e-03 3.091242e-03 1 -2.0444 2.356)" width="2" height="13.91"/>
|
|
87
|
+
<rect x="772.92" y="690.31" transform="matrix(0.7557 -0.655 0.655 0.7557 -268.2382 677.5146)" width="2" height="15.9"/>
|
|
88
|
+
<rect x="745.34" y="654.61" transform="matrix(0.8707 -0.4919 0.4919 0.8707 -229.1705 452.7404)" width="2" height="15.1"/>
|
|
89
|
+
<rect x="766.76" y="667.73" transform="matrix(0.8436 -0.537 0.537 0.8436 -237.9227 520.6445)" width="16" height="2"/>
|
|
90
|
+
<rect x="730.96" y="660.39" transform="matrix(0.3411 -0.94 0.94 0.3411 -147.4221 1129.4573)" width="2" height="19"/>
|
|
91
|
+
<rect x="779.11" y="675.42" transform="matrix(0.1433 -0.9897 0.9897 0.1433 -9.9345 1359.1355)" width="2" height="19.77"/>
|
|
92
|
+
<rect x="738.1" y="695.61" transform="matrix(0.7713 -0.6365 0.6365 0.7713 -272.7273 634.2744)" width="16.13" height="2"/>
|
|
93
|
+
<rect x="720.07" y="682.89" transform="matrix(0.9906 -0.1368 0.1368 0.9906 -86.6527 106.8653)" width="28.25" height="2"/>
|
|
94
|
+
<path d="M743.59,795.46l-1.76-0.96c16.43-30.1,52.08-57.8,52.44-58.08l1.22,1.58C795.15,738.29,759.82,765.73,743.59,795.46z"/>
|
|
95
|
+
<path d="M708.64,787.61c-21.92-31.19-39.66-42.63-51.4-50.2c-1.38-0.89-2.69-1.73-3.91-2.55l1.11-1.66
|
|
96
|
+
c1.21,0.81,2.51,1.65,3.89,2.53c11.87,7.65,29.81,19.22,51.95,50.73L708.64,787.61z"/>
|
|
97
|
+
<path d="M529.7,802.54l-1.95-0.43c2.15-9.77,1.97-13.99,1.45-15.8c-0.62-2.14-1.62-3.39-2.98-3.7c-1.81-0.42-4.34,0.85-6.59,3.31
|
|
98
|
+
c-2.09,2.29-4.7,3.14-6.99,2.26c-2.3-0.88-3.75-3.28-3.78-6.27c-0.15-15.58-3.18-27.75-9.27-37.22c-1.73-2.69-4.28-4.3-6.34-4
|
|
99
|
+
c-1.3,0.19-2.24,1.14-2.71,2.76c-0.44,1.49-2.34,6.27-8.6,5.06c-6.46-1.25-12.19-11.77-15.27-17.42c-0.46-0.84-0.83-1.53-1.12-2.02
|
|
100
|
+
c-2.05-3.47-4.74-4.91-7.78-4.18c-5.59,1.34-10.93,9.31-11.42,17.05c-0.21,3.34-0.13,7.64,0.22,11.5l-1.99,0.18
|
|
101
|
+
c-0.36-3.96-0.44-8.37-0.22-11.81c0.55-8.68,6.48-17.32,12.95-18.87c3.92-0.94,7.46,0.87,9.97,5.11c0.3,0.51,0.69,1.22,1.16,2.09
|
|
102
|
+
c2.71,4.98,8.36,15.35,13.9,16.42c4.3,0.83,5.79-1.94,6.3-3.66c0.7-2.39,2.25-3.88,4.35-4.18c2.86-0.42,6.12,1.51,8.3,4.9
|
|
103
|
+
c6.3,9.79,9.43,22.31,9.59,38.28c0.02,2.15,0.98,3.84,2.49,4.42c1.51,0.58,3.26-0.05,4.8-1.74c2.78-3.05,5.97-4.51,8.52-3.91
|
|
104
|
+
c1.45,0.34,3.41,1.5,4.45,5.09C531.97,788.71,531.49,794.36,529.7,802.54z"/>
|
|
105
|
+
<path d="M499.24,824.2c-1-37.34-14.96-65.02-15.1-65.3l1.78-0.91c0.14,0.28,14.31,28.34,15.32,66.16L499.24,824.2z"/>
|
|
106
|
+
<path d="M529.98,832.81c-0.39,0-0.77,0-1.17-0.01l0.03-2c11.72,0.19,20.42-2.42,24.41-7.35c2.23-2.75,2.91-6.14,2.01-10.07
|
|
107
|
+
c-1.08-4.73-4.2-8.17-9.02-9.94c-8.78-3.23-22.06-0.42-31.57,6.68c-11.4,8.51-17.94,22.12-18,22.26l-1.81-0.86
|
|
108
|
+
c0.27-0.58,6.82-14.2,18.61-23c10.18-7.6,23.94-10.46,33.46-6.95c5.49,2.02,9.04,5.95,10.28,11.38c1.03,4.5,0.19,8.57-2.41,11.78
|
|
109
|
+
C550.57,829.95,541.77,832.81,529.98,832.81z"/>
|
|
110
|
+
<path d="M494.77,832.05c-1.99-18.45-6.83-30.04-10.55-36.52c-4.01-7-7.6-9.69-7.64-9.72c-1.02-0.73-1.85-1.05-2.34-0.9
|
|
111
|
+
c-0.66,0.21-1.1,1.46-1.49,2.55c-0.48,1.37-0.94,2.66-2.08,3.11c-0.62,0.24-1.3,0.17-2.02-0.22c-1.63-0.87-2.21-2.68-3.07-5.43
|
|
112
|
+
c-1.54-4.87-4.11-13.02-15.05-25.05c-3.01-3.31-13.55-13.94-22.59-11.62c-2.39,0.61-4.1,2.16-4.57,4.13
|
|
113
|
+
c-0.51,2.1-2.4,3.46-4.51,3.22c-3-0.34-10.47-0.71-14.94,2.97c-2.12,1.75-3.32,4.23-3.57,7.38c-0.84,10.56,12.75,15.25,23.68,19.02
|
|
114
|
+
c5.44,1.87,10.13,3.49,12.09,5.59c0.96,1.02,1.01,2.03,0.88,2.69c-0.52,2.73-5.08,4.9-8.74,6.64c-1.31,0.62-2.54,1.21-3.09,1.61
|
|
115
|
+
c-1.64,1.19-3.31,3.37-2.6,5.61c0.54,1.74,3.44,5.83,18.49,6.13c13.55,0.28,21.69,5.13,26.13,9.15c4.86,4.4,6.46,8.72,6.53,8.9
|
|
116
|
+
l-1.88,0.68c-0.06-0.16-6.23-16.24-30.82-16.74c-14.98-0.31-19.34-4.27-20.36-7.54c-0.84-2.68,0.47-5.76,3.34-7.83
|
|
117
|
+
c0.7-0.5,1.89-1.07,3.41-1.79c2.73-1.3,7.31-3.48,7.63-5.21c0.04-0.21,0.03-0.51-0.38-0.95c-1.62-1.74-6.31-3.35-11.28-5.07
|
|
118
|
+
c-10.97-3.78-25.99-8.96-25.02-21.07c0.3-3.71,1.74-6.65,4.29-8.76c4.88-4.03,12.39-3.87,16.43-3.42c1.09,0.13,2.08-0.59,2.35-1.7
|
|
119
|
+
c0.65-2.71,2.9-4.8,6.02-5.6c3.27-0.84,12.24-1.33,24.56,12.21c11.24,12.36,13.9,20.77,15.48,25.8c0.74,2.35,1.19,3.78,2.11,4.26
|
|
120
|
+
c0.23,0.12,0.34,0.13,0.36,0.12c0.29-0.11,0.7-1.28,0.92-1.91c0.54-1.54,1.16-3.29,2.78-3.8c1.15-0.36,2.49,0.03,4.11,1.19
|
|
121
|
+
c0.62,0.45,15.09,11.37,19,47.64L494.77,832.05z"/>
|
|
122
|
+
<path d="M503.71,832.68l-1.36-1.46c16.74-15.6,35.57-20.51,35.76-20.56l0.49,1.94C538.42,812.64,520.06,817.44,503.71,832.68z"/>
|
|
123
|
+
<path d="M480.6,831.8c-0.03-31.19-49.94-63.48-50.44-63.8l1.08-1.69c0.13,0.08,12.95,8.33,25.59,20.41
|
|
124
|
+
c17.09,16.32,25.76,31.49,25.77,45.08L480.6,831.8z"/>
|
|
125
|
+
<path d="M1394.47,405.32h-227.76c-4.29,0-7.86-1.55-10.32-4.48c-2.15-2.56-3.34-6.05-3.34-9.84c0-7.56,4.96-15.59,14.16-15.59
|
|
126
|
+
h16.28c1.63,0,2.81-0.45,3.61-1.37c2.66-3.05,1.52-11.22,0.09-21.57c-0.4-2.86-0.81-5.82-1.18-8.96l-0.07-0.57
|
|
127
|
+
c-1.44-12.01-4.43-37,20.94-46.1c9.79-3.51,14.64-4.86,23.45-7.29c2.29-0.63,4.85-1.34,7.85-2.19c7.85-2.21,13.61-2.27,18.69-0.19
|
|
128
|
+
c6.19,2.53,11.22,8.37,15.36,17.84c5.52,12.63,10.09,16.52,17.45,14.85c49.07-11.15,56.9,8.93,64.47,28.35
|
|
129
|
+
c0.47,1.2,0.93,2.39,1.41,3.58c4.92,12.27,10.9,23.62,21.24,23.62h17.17c9.59,0,14.6,7.66,14.6,15.22
|
|
130
|
+
C1408.57,397.71,1404.16,405.32,1394.47,405.32z M1167.21,377.42c-7.98,0-12.16,6.84-12.16,13.59c0,3.31,1.02,6.35,2.87,8.55
|
|
131
|
+
c2.07,2.46,5.11,3.77,8.79,3.77h227.76c8.32,0,12.1-6.58,12.1-12.69c0-6.37-3.94-13.22-12.6-13.22h-17.17
|
|
132
|
+
c-11.54,0-17.92-11.96-23.1-24.88c-0.48-1.19-0.95-2.39-1.42-3.59c-3.63-9.31-7.39-18.95-16-24.68
|
|
133
|
+
c-9.73-6.49-24.84-7.29-46.17-2.44c-9.64,2.19-14.7-4.5-19.73-16c-8.22-18.8-18.61-20.2-31.67-16.52c-3,0.84-5.57,1.56-7.86,2.19
|
|
134
|
+
c-9.04,2.5-13.58,3.76-23.31,7.25c-23.87,8.56-21.01,32.48-19.63,43.98l0.07,0.57c0.37,3.12,0.78,6.07,1.17,8.93
|
|
135
|
+
c1.56,11.27,2.69,19.42-0.56,23.15c-1.19,1.36-2.91,2.05-5.12,2.05H1167.21z"/>
|
|
136
|
+
<path d="M731.84,427h-183.3c-3.48,0-6.38-1.07-8.4-3.08c-1.8-1.8-2.79-4.26-2.79-6.93c0-5.27,4.06-10.87,11.59-10.87h13.1
|
|
137
|
+
c1.41,0,2.39-0.35,2.99-1.06c1.77-2.08,0.85-7.63-0.21-14.06c-0.32-1.94-0.65-3.94-0.95-6.07l-0.05-0.39
|
|
138
|
+
c-1.17-8.23-3.6-25.34,17.03-31.57c7.89-2.38,11.8-3.29,18.89-4.94c1.84-0.43,3.9-0.91,6.3-1.48c9.84-2.33,20-2.48,27.56,12.07
|
|
139
|
+
c3.86,7.41,7.21,11.19,13.89,9.91c39.58-7.56,45.92,6.11,52.05,19.33c0.38,0.81,0.75,1.62,1.13,2.42
|
|
140
|
+
c3.92,8.23,8.69,15.84,16.94,15.84h13.81c7.84,0,11.95,5.34,11.95,10.62C743.39,421.68,739.78,427,731.84,427z M548.95,408.12
|
|
141
|
+
c-6.29,0-9.59,4.46-9.59,8.87c0,2.13,0.78,4.09,2.2,5.51c1.63,1.63,4.05,2.5,6.98,2.5h183.3c6.56,0,9.55-4.28,9.55-8.26
|
|
142
|
+
c0-4.15-3.11-8.62-9.95-8.62h-13.81c-9.36,0-14.54-8.16-18.75-16.98c-0.38-0.81-0.76-1.62-1.14-2.43
|
|
143
|
+
c-6.08-13.1-11.81-25.48-49.87-18.21c-7.83,1.5-11.94-3.08-16.04-10.96c-6.55-12.59-14.87-13.52-25.33-11.05
|
|
144
|
+
c-2.41,0.57-4.47,1.05-6.31,1.48c-7.28,1.7-10.94,2.55-18.77,4.91c-18.99,5.73-16.8,21.11-15.63,29.37l0.06,0.39
|
|
145
|
+
c0.3,2.11,0.63,4.1,0.94,6.03c1.23,7.48,2.12,12.89-0.24,15.68c-1,1.17-2.52,1.77-4.52,1.77H548.95z"/>
|
|
146
|
+
<path d="M724.24,799.67c-1.56-8.12-3.12-20.16-3.13-20.28l1.98-0.26c0.01,0.12,1.56,12.1,3.11,20.16L724.24,799.67z"/>
|
|
147
|
+
<rect x="408.94" y="830.8" width="1225.29" height="2"/>
|
|
148
|
+
</g>
|
|
149
|
+
<g id="naturalist">
|
|
150
|
+
<g>
|
|
151
|
+
<path class="st6" d="M732.77,830.84h331.23V694.86c0,0-250.28,83.62-333.95,109.66C712.48,809.99,712.17,830.84,732.77,830.84z"/>
|
|
152
|
+
</g>
|
|
153
|
+
<g>
|
|
154
|
+
<path class="st6" d="M1478.64,754.43l69.92,46.91c10.14,0,17.29-9.94,14.05-19.55l-53.6-159.41c-6.01-17.89-25.5-27.4-43.3-21.15
|
|
155
|
+
l-137.51,48.31c-146.33,57.81-17.55,146.92,6.73,137.41l109.8-42.99C1457.09,739.13,1471.16,743.47,1478.64,754.43z"/>
|
|
156
|
+
</g>
|
|
157
|
+
<g>
|
|
158
|
+
<path class="st5" d="M1509.02,622.37c-6.01-17.89-25.5-27.4-43.3-21.15l-114.01,40.06c15.02,22.72,33.1,79.11,40.75,123.15
|
|
159
|
+
l52.28-20.47c12.36-4.84,26.42-0.5,33.91,10.46l36.81,31.38c2.92,3.77,33.11,15.53,33.11,15.53c10.14,0,17.29-9.94,14.05-19.55
|
|
160
|
+
L1509.02,622.37z"/>
|
|
161
|
+
</g>
|
|
162
|
+
<g>
|
|
163
|
+
<path class="st3" d="M992.33,677.37l156.05,123.23l-12.67,30.24h92.18c8.18,0,17.14,0,23.5,0h28.16
|
|
164
|
+
c34.48,0,62.43-27.95,62.43-62.43V604.55c0-66.44-50.99-76.18-99.05-95.05l-250.6,140.38V677.37z"/>
|
|
165
|
+
</g>
|
|
166
|
+
<path d="M845.34,822.12h-2c0-5.31,1.92-10.44,5.4-14.45l10.72-12.33l1.51,1.31l-10.72,12.33
|
|
167
|
+
C847.09,812.62,845.34,817.29,845.34,822.12z"/>
|
|
168
|
+
<path d="M812.9,822.12h-2c0-4.59,0.96-10.85,5.53-14.57c7.67-6.25,26.74-21.15,26.93-21.3l1.23,1.58
|
|
169
|
+
c-0.19,0.15-19.25,15.04-26.9,21.28C813.73,812.33,812.9,817.96,812.9,822.12z"/>
|
|
170
|
+
<path d="M770.54,822.12h-2c0-5.25,0-11.77,11.05-17.28c10.57-5.26,38.4-18.58,38.68-18.71l0.86,1.8
|
|
171
|
+
c-0.28,0.13-28.09,13.44-38.65,18.7C770.54,811.58,770.54,817.18,770.54,822.12z"/>
|
|
172
|
+
<g>
|
|
173
|
+
<path class="st3" d="M1562.62,781.78l-11-32.71l0,0l-3.56-10.59l-6.14-18.26l-4.34-12.9l0,0l-28.57-84.96
|
|
174
|
+
c-5.38-16.01-21.56-25.3-37.66-22.59l37.89,101.33c-13.63-2.19-29.22-3.51-45.28-2.54c-7.03-35.11-19.26-66.23-28.58-86.69
|
|
175
|
+
l-17.15,6.03c12.32,26.94,30.81,74.95,33.11,124.36c6.33-0.85,12.72,0.47,18.15,3.65c-0.27-9.95-1.14-19.82-2.49-29.48
|
|
176
|
+
c13.04-0.62,25.83,0.43,37.29,2.17c7.55,1.15,13.87,6.34,16.54,13.5l1.87,4.99c-21.02,6.22-34.1,14.39-41.61,20.49l11,14.2
|
|
177
|
+
c2.51-2.08,6.08-4.67,10.96-7.39c5.37-2.99,12.9-6.42,22.98-9.52c1.67-0.51,3.46,0.36,4.07,2l1.9,5.08
|
|
178
|
+
c4.32,11.55-4.22,23.85-16.55,23.85l33.11,15.53C1558.7,801.33,1565.85,791.39,1562.62,781.78z"/>
|
|
179
|
+
</g>
|
|
180
|
+
<g>
|
|
181
|
+
<path class="st3" d="M1504.23,783.94l31.72,40.93c2.92,3.77,7.43,5.98,12.2,5.98h26c10.14,0,17.29-9.95,14.05-19.55l-53.6-159.41
|
|
182
|
+
c-6.01-17.89-25.5-27.4-43.3-21.15l-137.51,48.31c-5.77,2.03-11.82-2.26-11.82-8.37V569.79c0-36.96-29.4-67.77-66.36-68.25
|
|
183
|
+
c-37.55-0.49-68.15,29.81-68.15,67.25v214.72c0,26.14,21.19,47.34,47.34,47.34h29.54c26.07,0,51.91-4.88,76.18-14.38l109.8-42.99
|
|
184
|
+
C1482.68,768.64,1496.75,772.97,1504.23,783.94z"/>
|
|
185
|
+
</g>
|
|
186
|
+
<g>
|
|
187
|
+
<path class="st7" d="M924.46,752.65l-32.01-5.06c-8.68-1.37-17.11,3.65-20.03,11.94l-8.9,25.24c-0.1,0.29-0.19,0.58-0.28,0.87
|
|
188
|
+
c-2.37,8.43,4.36,16.7,13.11,16.66l35.55-0.17L924.46,752.65z"/>
|
|
189
|
+
</g>
|
|
190
|
+
<g>
|
|
191
|
+
<path class="st7" d="M1534.61,651.88c-6.01-17.89-25.5-27.4-43.3-21.15l-137.51,48.31c-4.66,1.64-9.5-0.85-11.19-5.09
|
|
192
|
+
l-14.93,26.36l-91.61,126.66c5.75,2.48,12.08,3.86,18.73,3.86h29.54c26.07,0,51.91-4.88,76.18-14.38l109.8-42.99
|
|
193
|
+
c12.36-4.84,26.42-0.5,33.91,10.46l31.72,40.93c2.92,3.77,7.43,5.98,12.2,5.98h26c10.14,0,17.29-9.95,14.05-19.55L1534.61,651.88z
|
|
194
|
+
"/>
|
|
195
|
+
</g>
|
|
196
|
+
<g>
|
|
197
|
+
<path class="st7" d="M1138.2,575.81l-0.79-0.15c-30.54-5.82-60.02,14.23-65.84,44.77l-18.55,101.59
|
|
198
|
+
c-1.74,9.14-8.88,16.29-18.02,18.04c0,0-122.88,20.54-142.74,22.65c-14.53,1.54-17.34,14.66-9.18,26.17
|
|
199
|
+
c-5.94,4.76-4.51,20.93,5.49,25.37c-4.97,9.67,1.72,20.96,10.62,24.67c-7.57,11.22,8.29,26.12,26.87,23.81
|
|
200
|
+
c45.15-5.61,144.95-17.85,194.95-25.61c16.21-2.52,28.04-17.38,31.17-33.84l30.79-161.63
|
|
201
|
+
C1188.79,611.11,1168.75,581.63,1138.2,575.81z"/>
|
|
202
|
+
</g>
|
|
203
|
+
<path class="st8" d="M1277.15,679.32c-2.27,0-4.53-0.54-6.6-1.62l-24.52-12.83c-8.09-4.23-13.12-12.54-13.12-21.67v-59.99
|
|
204
|
+
c0-6.52,5.31-11.83,11.83-11.83h64.82c6.52,0,11.83,5.31,11.83,11.83v59.99c0,9.13-5.03,17.44-13.12,21.67l-24.53,12.83
|
|
205
|
+
C1281.68,678.78,1279.41,679.32,1277.15,679.32z M1244.74,573.37c-5.42,0-9.83,4.41-9.83,9.83v59.99c0,8.39,4.62,16.01,12.05,19.9
|
|
206
|
+
l24.52,12.83c3.55,1.86,7.79,1.86,11.34,0l24.53-12.83c7.43-3.89,12.05-11.51,12.05-19.9v-59.99c0-5.42-4.41-9.83-9.83-9.83
|
|
207
|
+
H1244.74z"/>
|
|
208
|
+
<path class="st8" d="M1277.45,624.83c-2.58,0-4.99-1.27-6.44-3.39c-6.13-8.95-16.26-14.29-27.09-14.29h-11.01v-23.94
|
|
209
|
+
c0-6.52,5.31-11.83,11.83-11.83h64.82c6.52,0,11.83,5.31,11.83,11.83v23.94h-10.41c-10.83,0-20.96,5.34-27.09,14.29
|
|
210
|
+
C1282.43,623.56,1280.02,624.83,1277.45,624.83z M1234.9,605.14h9.01c11.49,0,22.23,5.67,28.74,15.16c1.1,1.6,2.84,2.52,4.79,2.52
|
|
211
|
+
c1.95,0,3.69-0.92,4.79-2.52c6.5-9.49,17.25-15.16,28.74-15.16h8.41v-21.94c0-5.42-4.41-9.83-9.83-9.83h-64.82
|
|
212
|
+
c-5.42,0-9.83,4.41-9.83,9.83V605.14z"/>
|
|
213
|
+
<path class="st9" d="M1277.19,614.19L1277.19,614.19c-4.11,0-7.44-3.33-7.44-7.44l0,0c0-4.11,3.33-7.44,7.44-7.44l0,0
|
|
214
|
+
c4.11,0,7.44,3.33,7.44,7.44l0,0C1284.63,610.85,1281.3,614.19,1277.19,614.19z"/>
|
|
215
|
+
<path class="st8" d="M1292.12,673.5l-1.96-0.38c2.2-11.25,3.51-27.1,3.51-42.4c0-6.42-0.23-12.76-0.67-18.85l1.99-0.15
|
|
216
|
+
c0.45,6.14,0.68,12.53,0.68,19C1295.66,646.13,1294.33,662.12,1292.12,673.5z"/>
|
|
217
|
+
<path class="st8" d="M1264.3,674.61c-2.36-11.58-3.77-27.99-3.77-43.9c0-6.08,0.2-12.1,0.6-17.9l2,0.14
|
|
218
|
+
c-0.4,5.75-0.6,11.73-0.6,17.77c0,15.79,1.39,32.05,3.73,43.5L1264.3,674.61z"/>
|
|
219
|
+
<g>
|
|
220
|
+
<path class="st5" d="M1534.61,651.88c-6.01-17.89-25.5-27.4-43.3-21.15l-132.57,46.58c19.77,26.87,40.87,85.58,45.79,121.92
|
|
221
|
+
l65.8-25.76c12.36-4.84,26.42-0.5,33.91,10.46l31.72,40.93c2.92,3.77,7.43,5.98,12.2,5.98h26c10.14,0,17.29-9.95,14.05-19.55
|
|
222
|
+
L1534.61,651.88z"/>
|
|
223
|
+
</g>
|
|
224
|
+
<g>
|
|
225
|
+
<path class="st3" d="M1588.21,811.29l-11-32.71l0,0l-3.56-10.59l-6.14-18.26l-4.34-12.9v0l-28.57-84.96
|
|
226
|
+
c-5.38-16.01-21.56-25.3-37.66-22.59l37.89,101.33c-13.63-2.19-29.22-3.51-45.28-2.54c-7.03-35.11-19.26-66.23-28.58-86.69
|
|
227
|
+
l-17.15,6.03c12.32,26.94,30.81,74.95,33.11,124.36c6.33-0.85,12.72,0.47,18.15,3.65c-0.27-9.95-1.14-19.82-2.49-29.48
|
|
228
|
+
c13.04-0.62,25.83,0.43,37.29,2.17c7.55,1.15,13.87,6.34,16.54,13.5l1.87,4.99c-21.02,6.22-34.1,14.39-41.61,20.49l11,14.2
|
|
229
|
+
c2.51-2.08,6.08-4.67,10.96-7.38c5.37-2.99,12.9-6.42,22.98-9.52c1.67-0.51,3.46,0.36,4.07,2l1.9,5.08
|
|
230
|
+
c4.32,11.55-4.22,23.85-16.55,23.85h-12.49l7.4,9.55c2.92,3.77,7.43,5.98,12.2,5.98h26
|
|
231
|
+
C1584.29,830.84,1591.44,820.9,1588.21,811.29z"/>
|
|
232
|
+
</g>
|
|
233
|
+
<rect x="894.92" y="781.67" transform="matrix(0.2464 -0.9692 0.9692 0.2464 -92.716 1465.385)" width="2" height="21.29"/>
|
|
234
|
+
<rect x="901.64" y="809.42" transform="matrix(0.2467 -0.9691 0.9691 0.2467 -113.9409 1491.8171)" width="2" height="19.57"/>
|
|
235
|
+
<rect x="909.19" y="835.25" transform="matrix(0.2656 -0.9641 0.9641 0.2656 -144.3418 1496.6754)" width="2" height="15.66"/>
|
|
236
|
+
<rect x="1351.72" y="656.05" transform="matrix(0.9436 -0.3311 0.3311 0.9436 -137.6615 506.0874)" width="129.38" height="2"/>
|
|
237
|
+
<g>
|
|
238
|
+
<path class="st2" d="M1349.52,679.45c-3.73-0.57-6.86-3.53-7.43-7.47l-134.62,65.06v46.47c0,25.64,20.39,46.51,45.84,47.3
|
|
239
|
+
L1349.52,679.45z"/>
|
|
240
|
+
</g>
|
|
241
|
+
<g>
|
|
242
|
+
<g>
|
|
243
|
+
<path d="M916.08,766.3c-4.79,0.14-9.82-1.04-10.58-5.51c-1.23-7.14-2.95-28.71-2.95-28.71l14.94-4.16l8.96,28.71
|
|
244
|
+
C927.59,763.16,922.88,766.11,916.08,766.3z"/>
|
|
245
|
+
</g>
|
|
246
|
+
</g>
|
|
247
|
+
<g>
|
|
248
|
+
<path d="M934.2,673.46c-7.29-28.78-24.15-49.34-37.68-45.91l-23.07,5.84l0,0l0,0c13.52-3.42,30.39,17.13,37.68,45.91
|
|
249
|
+
c7.29,28.78,2.23,54.89-11.3,58.31l23.07-5.84C936.43,728.35,941.49,702.24,934.2,673.46z"/>
|
|
250
|
+
</g>
|
|
251
|
+
<g>
|
|
252
|
+
<g>
|
|
253
|
+
|
|
254
|
+
<ellipse transform="matrix(0.9694 -0.2454 0.2454 0.9694 -141.1089 238.5416)" class="st3" cx="886.64" cy="685.5" rx="25.26" ry="53.75"/>
|
|
255
|
+
</g>
|
|
256
|
+
</g>
|
|
257
|
+
<g>
|
|
258
|
+
<path class="st1" d="M889.9,639.28c-6.45,8.9-7.96,27.31-2.94,47.15c4.85,19.17,14.43,34.26,24.01,39.56
|
|
259
|
+
c4.42-10.98,4.82-28.28,0.16-46.69C906.66,661.65,898.59,647.11,889.9,639.28z"/>
|
|
260
|
+
</g>
|
|
261
|
+
<path class="st10" d="M895.34,731.29c-11.68-5.12-21.21-19.24-26.14-38.74c-6.48-25.62-2.98-47.88,8.51-54.15l0.96,1.76
|
|
262
|
+
c-10.53,5.74-13.69,27.57-7.53,51.91c4.78,18.89,13.9,32.52,25,37.39L895.34,731.29z"/>
|
|
263
|
+
<g>
|
|
264
|
+
<path class="st7" d="M1036.1,695.36c-2.86-10.42-7.08-27.39-10.76-42.49c5.61-1.42,9.78-6.49,9.78-12.54
|
|
265
|
+
c0-7.15-5.8-12.95-12.95-12.95h-2.97c-0.95-4-1.52-6.4-1.52-6.4h-70.31v85.61c0,16.13,13.07,29.2,29.2,29.2h26.82
|
|
266
|
+
C1022.06,735.79,1041.94,716.68,1036.1,695.36z"/>
|
|
267
|
+
</g>
|
|
268
|
+
<g>
|
|
269
|
+
<g>
|
|
270
|
+
<path class="st3" d="M964.04,553.94c0,0-6.55-27.33-5.81-40.11c0.68-11.87,13.02-19.12,22.64-16.7
|
|
271
|
+
c11.49,2.9,8.25,18.33,15.09,22.44c9.03,5.42,18.96-4.21,31.92,2.11c16.24,7.92,9.87,35.51-35.72,44.22
|
|
272
|
+
c-6.91,1.32-14.07,0.4-20.44-2.59c-0.03-0.01-0.04-0.02-0.04-0.02C967.53,561.64,964.66,558.12,964.04,553.94z"/>
|
|
273
|
+
</g>
|
|
274
|
+
</g>
|
|
275
|
+
<g>
|
|
276
|
+
<path class="st5" d="M932.8,624.6c17.34,6.74,57.91,17.87,111.93,2.78c4.17-1.16,4.83-6.8,1.04-8.89
|
|
277
|
+
c-23.41-12.91-48.59-26.36-56.13-30.38c-1.41-0.75-3.1-0.75-4.51-0.01l-52.81,27.74C928.66,617.76,928.95,623.1,932.8,624.6z"/>
|
|
278
|
+
</g>
|
|
279
|
+
<g>
|
|
280
|
+
<path class="st2" d="M1023.17,605.27c0.07-2.71-0.07-6.89-0.21-8.19c-1.97-18.33-17.49-32.6-36.35-32.6l0,0
|
|
281
|
+
c-20.19,0-36.56,16.37-36.56,36.56v4.23h0C968.21,611.34,1003.77,613.84,1023.17,605.27z"/>
|
|
282
|
+
</g>
|
|
283
|
+
<g>
|
|
284
|
+
<path class="st5" d="M986.61,564.48c-15.39,0-28.55,9.51-33.94,22.97c17.95,5.22,49.08,7.19,67.96,0.2
|
|
285
|
+
C1015.29,574.09,1002.07,564.48,986.61,564.48z"/>
|
|
286
|
+
</g>
|
|
287
|
+
<path class="st3" d="M953.92,550.2c-9.46-7.61-13.44-16.44-15.11-22.5c-1.81-6.59-1.38-11.34-1.36-11.54l1.99,0.19
|
|
288
|
+
c-0.02,0.18-1.52,18.42,15.74,32.29L953.92,550.2z"/>
|
|
289
|
+
<path class="st3" d="M954.66,547.66c-8.7-17.91-6.03-32.97-5.91-33.6l1.97,0.37c-0.03,0.15-2.65,15.07,5.75,32.36L954.66,547.66z"
|
|
290
|
+
/>
|
|
291
|
+
<g>
|
|
292
|
+
<g>
|
|
293
|
+
<path class="st3" d="M953.51,542.89L953.51,542.89c2.42-0.66,4.91,0.8,5.53,3.23l0.75,2.99c0.3,1.17,1.06,2.18,2.1,2.79
|
|
294
|
+
l11.1,6.42c4.66,2.69,17.07,12.85,12.77,16.09l0,0c-1.43,1.13-3.34,1.44-5.05,0.84c-4.88-1.73-8-2.86-11.37-4.03
|
|
295
|
+
c-4.7-1.64-8.66-4.91-11.18-9.2l-7.27-12.41C949.29,547.04,950.61,543.68,953.51,542.89z"/>
|
|
296
|
+
</g>
|
|
297
|
+
</g>
|
|
298
|
+
<g>
|
|
299
|
+
<g>
|
|
300
|
+
<path class="st8" d="M967.24,551.91c0,0,2.42-27.25,6.98-38.82c4.24-10.75,17.61-13.65,25.57-8.45
|
|
301
|
+
c9.51,6.21,1.86,19.46,6.8,25.36c6.51,7.79,18.44,1.94,28.23,11.77c12.26,12.3-1.89,35.8-45.72,29.85
|
|
302
|
+
C982.4,570.72,966.47,561.66,967.24,551.91z"/>
|
|
303
|
+
</g>
|
|
304
|
+
</g>
|
|
305
|
+
<path d="M987.34,674.19l-1.45-1.37c0.26-0.28,6.52-6.75,17.75-3.66l-0.53,1.93C993.09,668.34,987.57,673.95,987.34,674.19z"/>
|
|
306
|
+
<path d="M1006.72,657.19c-0.82-0.07-4.85-0.46-8.74-0.88c-7.16-0.76-8.22-0.88-8.36-1.57c-0.13-0.15-0.24-0.33-0.32-0.52
|
|
307
|
+
c-0.27-0.68-0.09-1.44,0.45-1.92l8.99-8.13l1.34,1.48l-8.7,7.86c2.46,0.41,13.68,1.53,15.51,1.68L1006.72,657.19z M990.88,653.31
|
|
308
|
+
l0.05,1.98c0.28-0.09,0.62-0.38,0.66-0.85c0.03-0.36-0.13-0.65-0.33-0.82l-0.19,0.17c0.06-0.05,0.1-0.15,0.08-0.25
|
|
309
|
+
c-0.07-0.05-0.13-0.08-0.2-0.09c0.04,0.01,0.1,0.03,0.18,0.04C991.1,653.37,990.98,653.31,990.88,653.31
|
|
310
|
+
C990.89,653.31,990.89,653.31,990.88,653.31L990.88,653.31z"/>
|
|
311
|
+
<path d="M964.63,664c-3.38,0-6.12-2.75-6.12-6.12v-4.78c0-3.38,2.75-6.12,6.12-6.12c3.38,0,6.12,2.75,6.12,6.12v4.78
|
|
312
|
+
C970.75,661.26,968.01,664,964.63,664z M964.63,648.97c-2.27,0-4.12,1.85-4.12,4.12v4.78c0,2.27,1.85,4.12,4.12,4.12
|
|
313
|
+
s4.12-1.85,4.12-4.12v-4.78C968.75,650.82,966.9,648.97,964.63,648.97z"/>
|
|
314
|
+
<rect x="956.48" y="687.83" width="2" height="27.04"/>
|
|
315
|
+
<rect x="971.83" y="693.55" width="2" height="30.66"/>
|
|
316
|
+
<rect x="988.93" y="691.21" transform="matrix(0.9999 -0.0153 0.0153 0.9999 -10.7457 15.2102)" width="2" height="39.11"/>
|
|
317
|
+
<rect x="1006.13" y="687.82" transform="matrix(0.9994 -0.0336 0.0336 0.9994 -23.1883 34.2722)" width="2" height="37.14"/>
|
|
318
|
+
<rect x="1020.64" y="675.99" transform="matrix(0.9924 -0.1228 0.1228 0.9924 -77.492 130.691)" width="2" height="36.2"/>
|
|
319
|
+
<g>
|
|
320
|
+
<path class="st2" d="M1138.2,575.81l-0.79-0.15c-30.54-5.82-60.02,14.23-65.84,44.77l-18.55,97.39c-0.29,1.5-1.05,3.73-1.99,5.9
|
|
321
|
+
c14.27,11.27,85.37,65.84,101.42,78.19l30.53-160.27C1188.79,611.11,1168.75,581.63,1138.2,575.81z"/>
|
|
322
|
+
</g>
|
|
323
|
+
<rect x="1213.32" y="723.79" transform="matrix(0.8526 -0.5225 0.5225 0.8526 -192.3995 767.3809)" width="101.86" height="2"/>
|
|
324
|
+
<rect x="1204.39" y="755.56" transform="matrix(0.7353 -0.6777 0.6777 0.7353 -180.2728 1051.5311)" width="103.42" height="2"/>
|
|
325
|
+
<rect x="1240.93" y="756.12" transform="matrix(0.5808 -0.8141 0.8141 0.5808 -77.6535 1363.4602)" width="88.1" height="2"/>
|
|
326
|
+
<rect x="1103.01" y="699.2" transform="matrix(0.5599 -0.8285 0.8285 0.5599 -127.2868 1240.3514)" width="2" height="81.61"/>
|
|
327
|
+
<rect x="1098.15" y="680.64" transform="matrix(0.5302 -0.8479 0.8479 0.5302 -88.5753 1267.1403)" width="2" height="65.71"/>
|
|
328
|
+
<rect x="1130.37" y="701.56" transform="matrix(0.4969 -0.8678 0.8678 0.4969 -53.4692 1342.8442)" width="2" height="31.95"/>
|
|
329
|
+
<rect x="1206.47" y="600.8" width="2" height="174.98"/>
|
|
330
|
+
<path d="M988.91,611.81c-12.72,0-25.56-1.67-35.18-4.21l0.51-1.93c16.64,4.39,43.05,6.15,61.35,1l0.54,1.93
|
|
331
|
+
C1008.1,610.85,998.54,611.81,988.91,611.81z"/>
|
|
332
|
+
<path d="M879.59,804.88c-1.99-6.26-1.06-12.84,2.18-16.14c-4.24-6.37-5.35-13.26-2.95-18.58c2.15-4.75,6.88-7.75,13.34-8.43
|
|
333
|
+
l0.21,1.99c-5.72,0.61-9.89,3.19-11.73,7.27c-2.2,4.87-0.98,11.35,3.26,17.33l0.55,0.77l-0.74,0.59c-3.11,2.5-4.07,8.77-2.21,14.61
|
|
334
|
+
L879.59,804.88z"/>
|
|
335
|
+
<path d="M1058.95,695.14l-1.97-0.36l13.61-74.53c5.91-31.04,35.97-51.48,67.01-45.57l0.79,0.15c12.92,2.46,24.26,9.03,32.79,19
|
|
336
|
+
l-1.52,1.3c-8.23-9.62-19.18-15.96-31.65-18.34l-0.79-0.15c-14.51-2.76-29.23,0.29-41.44,8.59c-12.21,8.31-20.46,20.87-23.23,35.38
|
|
337
|
+
L1058.95,695.14z"/>
|
|
338
|
+
</g>
|
|
339
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-button v-bind="omit(attrs, 'onClick', 'loading')" :ref="changeRef" :loading="loading" @click="handleClick">
|
|
3
|
+
<template v-for="(_, name) in $slots" #[name]="data">
|
|
4
|
+
<slot :name="name" v-bind="data || {}"></slot>
|
|
5
|
+
</template>
|
|
6
|
+
</el-button>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup lang="ts" name="MeButton">
|
|
10
|
+
import { ButtonInstance } from 'element-plus';
|
|
11
|
+
import { omit } from 'lodash-es';
|
|
12
|
+
import { ComponentPublicInstance } from 'vue';
|
|
13
|
+
|
|
14
|
+
const loading = ref(false);
|
|
15
|
+
const attrs = useAttrs();
|
|
16
|
+
defineOptions({ inheritAttrs: false });
|
|
17
|
+
async function handleClick(event: MouseEvent) {
|
|
18
|
+
loading.value = true;
|
|
19
|
+
try {
|
|
20
|
+
await (attrs.onClick as (...args: any[]) => any)?.(event);
|
|
21
|
+
} finally {
|
|
22
|
+
loading.value = false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const vm = getCurrentInstance();
|
|
26
|
+
function changeRef(ref: Element | ComponentPublicInstance | null) {
|
|
27
|
+
if (vm) {
|
|
28
|
+
//暴露elButton属性
|
|
29
|
+
vm.exposed = ref;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//声明类型
|
|
33
|
+
defineExpose({} as ButtonInstance);
|
|
34
|
+
</script>
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
//扩展 el-dailog 最大化最小化可移动
|
|
2
|
+
export default (el: HTMLDivElement & { fullscreen: boolean }) => {
|
|
3
|
+
if (el.fullscreen !== undefined) {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
//自定义尺寸变化事件
|
|
7
|
+
const resizeEvent = new CustomEvent('drag-resize', { detail: '尺寸变化', bubbles: false });
|
|
8
|
+
el.fullscreen = false;
|
|
9
|
+
//当前宽高
|
|
10
|
+
let nowWidth = el.offsetWidth;
|
|
11
|
+
let nowHight = el.offsetHeight;
|
|
12
|
+
//弹框可拉伸最小宽高
|
|
13
|
+
const minWidth = Math.min(nowWidth, 300);
|
|
14
|
+
const minHeight = Math.min(nowHight, 300);
|
|
15
|
+
//当前顶部高度
|
|
16
|
+
let nowMarginTop = '0';
|
|
17
|
+
//获取弹框头部(这部分可双击全屏)
|
|
18
|
+
const dialogHeaderEl = el.querySelector('.el-dialog__header') as HTMLDivElement;
|
|
19
|
+
//弹窗
|
|
20
|
+
const dragDom = el;
|
|
21
|
+
let setedWidth = '';
|
|
22
|
+
let setedHeight = '';
|
|
23
|
+
const setWidthHeight = (width: string, height: string) => {
|
|
24
|
+
dragDom.style.maxHeight = 'unset';
|
|
25
|
+
if (width) {
|
|
26
|
+
setedWidth = width;
|
|
27
|
+
dragDom.style.width = width;
|
|
28
|
+
}
|
|
29
|
+
if (height) {
|
|
30
|
+
setedHeight = height;
|
|
31
|
+
dragDom.style.height = height;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
setWidthHeight(nowWidth + 'px', nowHight + 'px');
|
|
35
|
+
//清除选择头部文字效果
|
|
36
|
+
dialogHeaderEl.onselectstart = () => false;
|
|
37
|
+
//头部加上可拖动cursor
|
|
38
|
+
dialogHeaderEl.style.cursor = 'move';
|
|
39
|
+
|
|
40
|
+
// 获取原有属性 ie dom元素.currentStyle 火狐谷歌 window.getComputedStyle(dom元素, null);
|
|
41
|
+
const sty = window.getComputedStyle(dragDom, null);
|
|
42
|
+
|
|
43
|
+
//头部插入最大化最小化元素
|
|
44
|
+
const fullscreenSvg =
|
|
45
|
+
'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-029747aa=""><path fill="currentColor" d="m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"></path></svg>';
|
|
46
|
+
const cropSvg =
|
|
47
|
+
'<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" data-v-029747aa=""><path fill="currentColor" d="M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0v672z"></path><path fill="currentColor" d="M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32z"></path></svg>';
|
|
48
|
+
const maxMinButton = document.createElement('button');
|
|
49
|
+
maxMinButton.className = 'el-dialog__headerbtn';
|
|
50
|
+
maxMinButton.style.color = 'var(--el-color-info)';
|
|
51
|
+
maxMinButton.onmouseover = function () {
|
|
52
|
+
//设置其背景颜色为主色
|
|
53
|
+
maxMinButton.style.color = 'var(--el-color-primary)';
|
|
54
|
+
};
|
|
55
|
+
maxMinButton.onmouseout = function () {
|
|
56
|
+
//设置其背景颜色为默认色
|
|
57
|
+
maxMinButton.style.color = 'var(--el-color-info)';
|
|
58
|
+
};
|
|
59
|
+
if (dialogHeaderEl.querySelector('.el-dialog__close')) {
|
|
60
|
+
maxMinButton.style.right = dialogHeaderEl.querySelector('.el-dialog__close')!.parentElement!.clientWidth + 'px';
|
|
61
|
+
}
|
|
62
|
+
const maxMin = document.createElement('i');
|
|
63
|
+
maxMinButton.appendChild(maxMin);
|
|
64
|
+
maxMin.style.fontSize = 'inherit';
|
|
65
|
+
maxMin.className = 'el-icon';
|
|
66
|
+
maxMin.innerHTML = el.fullscreen ? cropSvg : fullscreenSvg;
|
|
67
|
+
dialogHeaderEl.appendChild(maxMinButton);
|
|
68
|
+
const moveDown = (e: MouseEvent) => {
|
|
69
|
+
// 鼠标按下,计算当前元素距离可视区的距离
|
|
70
|
+
const disX = e.clientX ?? 0 - dialogHeaderEl.offsetLeft;
|
|
71
|
+
const disY = e.clientY ?? 0 - dialogHeaderEl.offsetTop;
|
|
72
|
+
// 获取到的值带px 正则匹配替换
|
|
73
|
+
let styL: number, styT: number;
|
|
74
|
+
// 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
|
|
75
|
+
if (sty.left.includes('%')) {
|
|
76
|
+
styL = +document.body.clientWidth * (+sty.left.replace(/%/g, '') / 100);
|
|
77
|
+
styT = +document.body.clientHeight * (+sty.top.replace(/%/g, '') / 100);
|
|
78
|
+
} else {
|
|
79
|
+
styL = +sty.left.replace(/\px/g, '');
|
|
80
|
+
styT = +sty.top.replace(/\px/g, '');
|
|
81
|
+
}
|
|
82
|
+
document.onmousemove = function (e) {
|
|
83
|
+
// 通过事件委托,计算移动的距离
|
|
84
|
+
const l = e.clientX - disX;
|
|
85
|
+
const t = e.clientY - disY;
|
|
86
|
+
// 移动当前元素
|
|
87
|
+
dragDom.style.left = `${l + styL}px`;
|
|
88
|
+
dragDom.style.top = `${t + styT}px`;
|
|
89
|
+
|
|
90
|
+
//将此时的位置传出去
|
|
91
|
+
//binding.value({x:e.pageX,y:e.pageY})
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
document.onmouseup = function () {
|
|
95
|
+
document.onmousemove = null;
|
|
96
|
+
document.onmouseup = null;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
dialogHeaderEl.onmousedown = moveDown;
|
|
100
|
+
const setMaxMin = () => {
|
|
101
|
+
if (el.fullscreen) {
|
|
102
|
+
maxMin.innerHTML = fullscreenSvg;
|
|
103
|
+
setWidthHeight(nowWidth + 'px', nowHight + 'px');
|
|
104
|
+
dragDom.style.marginTop = nowMarginTop;
|
|
105
|
+
dragDom.style.position = 'relative';
|
|
106
|
+
el.fullscreen = false;
|
|
107
|
+
dialogHeaderEl.style.cursor = 'move';
|
|
108
|
+
dialogHeaderEl.onmousedown = moveDown;
|
|
109
|
+
} else {
|
|
110
|
+
maxMin.innerHTML = cropSvg;
|
|
111
|
+
nowHight = dragDom.clientHeight;
|
|
112
|
+
nowWidth = dragDom.clientWidth;
|
|
113
|
+
nowMarginTop = dragDom.style.marginTop;
|
|
114
|
+
dragDom.style.left = '0';
|
|
115
|
+
dragDom.style.top = '0';
|
|
116
|
+
setWidthHeight('100vw', '100vh');
|
|
117
|
+
dragDom.style.marginTop = '0';
|
|
118
|
+
dragDom.style.position = 'fixed';
|
|
119
|
+
el.fullscreen = true;
|
|
120
|
+
dialogHeaderEl.style.cursor = 'initial';
|
|
121
|
+
dialogHeaderEl.onmousedown = null;
|
|
122
|
+
}
|
|
123
|
+
maxMinButton.style.color = 'var(--el-color-info)';
|
|
124
|
+
el.dispatchEvent(resizeEvent);
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
//点击放大缩小效果
|
|
128
|
+
maxMinButton.onclick = setMaxMin;
|
|
129
|
+
//双击头部效果
|
|
130
|
+
dialogHeaderEl.ondblclick = setMaxMin;
|
|
131
|
+
//拉伸
|
|
132
|
+
const resizeEl = document.createElement('div');
|
|
133
|
+
dragDom.appendChild(resizeEl);
|
|
134
|
+
//在弹窗右下角加上一个10-10px的控制块
|
|
135
|
+
resizeEl.style.cursor = 'se-resize';
|
|
136
|
+
resizeEl.style.position = 'absolute';
|
|
137
|
+
resizeEl.style.height = '10px';
|
|
138
|
+
resizeEl.style.width = '10px';
|
|
139
|
+
resizeEl.style.right = '0px';
|
|
140
|
+
resizeEl.style.bottom = '0px';
|
|
141
|
+
resizeEl.style.zIndex = '1999';
|
|
142
|
+
|
|
143
|
+
//鼠标拉伸弹窗
|
|
144
|
+
resizeEl.onmousedown = (e) => {
|
|
145
|
+
// 记录初始x位置
|
|
146
|
+
const clientX = e.clientX;
|
|
147
|
+
// 鼠标按下,计算当前元素距离可视区的距离
|
|
148
|
+
const disX = e.clientX - resizeEl.offsetLeft;
|
|
149
|
+
const disY = e.clientY - resizeEl.offsetTop;
|
|
150
|
+
document.onmousemove = function (e) {
|
|
151
|
+
e.preventDefault(); // 移动时禁用默认事件
|
|
152
|
+
// 通过事件委托,计算移动的距离
|
|
153
|
+
const x = e.clientX - disX + (e.clientX - clientX); //这里 由于elementUI的dialog控制居中的,所以水平拉伸效果是双倍
|
|
154
|
+
const y = e.clientY - disY;
|
|
155
|
+
//比较是否小于最小宽高
|
|
156
|
+
setWidthHeight(x > minWidth ? `${x}px` : minWidth + 'px', y > minHeight ? `${y}px` : minHeight + 'px');
|
|
157
|
+
};
|
|
158
|
+
//拉伸结束
|
|
159
|
+
document.onmouseup = function () {
|
|
160
|
+
document.onmousemove = null;
|
|
161
|
+
document.onmouseup = null;
|
|
162
|
+
el.dispatchEvent(resizeEvent);
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
return { resetWH: () => setWidthHeight(setedWidth, setedHeight) };
|
|
166
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog ref="elDialogRef" class="me-dialog" :style="{ maxHeight }" @open="openHandle">
|
|
3
|
+
<template v-for="(item, key) in ($slots as Record<string,any>)" :key="key" #[key]>
|
|
4
|
+
<component :is="item"></component>
|
|
5
|
+
</template>
|
|
6
|
+
</el-dialog>
|
|
7
|
+
</template>
|
|
8
|
+
<script lang="ts">
|
|
9
|
+
import { ElDialog } from 'element-plus';
|
|
10
|
+
import minMax from './hooks/minMax';
|
|
11
|
+
const props = {
|
|
12
|
+
full: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: true,
|
|
15
|
+
},
|
|
16
|
+
maxHeight: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: '80vh',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const emits = ['open'] as unknown as {
|
|
23
|
+
open: () => void;
|
|
24
|
+
} & ArrayEmitsOptionsToFns<Parameters<InstanceType<typeof ElDialog>['$emit']>>;
|
|
25
|
+
export default defineComponent({
|
|
26
|
+
name: 'MeDialog',
|
|
27
|
+
props: props as unknown as typeof props & ComponentObjectPropsOptionsFromData<InstanceType<typeof ElDialog>['$props']>,
|
|
28
|
+
emits: emits,
|
|
29
|
+
setup(props, { expose, emit }) {
|
|
30
|
+
const elDialogRef = ref<InstanceType<typeof ElDialog>>();
|
|
31
|
+
let resetWH: undefined | (() => void);
|
|
32
|
+
watch(
|
|
33
|
+
[() => elDialogRef.value?.dialogContentRef, () => props.full],
|
|
34
|
+
async () => {
|
|
35
|
+
if (elDialogRef.value?.dialogContentRef && props.full) {
|
|
36
|
+
await nextTick();
|
|
37
|
+
resetWH = minMax(elDialogRef.value!.dialogContentRef.$el)?.resetWH;
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{ immediate: true },
|
|
41
|
+
);
|
|
42
|
+
const openHandle = () => {
|
|
43
|
+
resetWH?.();
|
|
44
|
+
emit('open');
|
|
45
|
+
};
|
|
46
|
+
expose({ elDialogRef });
|
|
47
|
+
return {
|
|
48
|
+
elDialogRef,
|
|
49
|
+
openHandle,
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
</script>
|
|
54
|
+
<style lang="scss">
|
|
55
|
+
.me-dialog {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
.el-dialog__headerbtn {
|
|
59
|
+
width: 40px;
|
|
60
|
+
}
|
|
61
|
+
.el-dialog__header {
|
|
62
|
+
position: sticky;
|
|
63
|
+
top: 0;
|
|
64
|
+
z-index: $z-index-top;
|
|
65
|
+
background-color: inherit;
|
|
66
|
+
flex-grow: 0;
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
padding-right: 80px;
|
|
69
|
+
}
|
|
70
|
+
.el-dialog__body {
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
flex: 1;
|
|
73
|
+
margin-top: 10px;
|
|
74
|
+
flex-shrink: 0;
|
|
75
|
+
padding: 0 10px;
|
|
76
|
+
}
|
|
77
|
+
.el-dialog__footer {
|
|
78
|
+
position: sticky;
|
|
79
|
+
bottom: 0;
|
|
80
|
+
z-index: $z-index-top;
|
|
81
|
+
background-color: inherit;
|
|
82
|
+
flex-grow: 0;
|
|
83
|
+
flex-shrink: 0;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
</style>
|