@kevairy/template 0.1.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/LICENSE +21 -0
- package/README.md +14 -0
- package/package.json +37 -0
- package/template/.env +22 -0
- package/template/.env.development +13 -0
- package/template/.env.production +10 -0
- package/template/.prettierignore +3 -0
- package/template/.prettierrc +20 -0
- package/template/.stylelintignore +9 -0
- package/template/.stylelintrc.cjs +84 -0
- package/template/LICENSE +21 -0
- package/template/README.md +22 -0
- package/template/_gitignore +19 -0
- package/template/eslint-auto-import.json +324 -0
- package/template/eslint.config.mjs +83 -0
- package/template/index.html +25 -0
- package/template/package.json +79 -0
- package/template/playwright.config.ts +25 -0
- package/template/public/favicon.ico +0 -0
- package/template/src/App.vue +39 -0
- package/template/src/adapters/auth/index.ts +9 -0
- package/template/src/adapters/auth/mock.ts +10 -0
- package/template/src/adapters/auth/types.ts +11 -0
- package/template/src/adapters/navigation/index.ts +13 -0
- package/template/src/adapters/navigation/types.ts +6 -0
- package/template/src/api/auth.ts +23 -0
- package/template/src/assets/images/avatar/avatar.webp +0 -0
- package/template/src/assets/images/avatar/avatar1.webp +0 -0
- package/template/src/assets/images/avatar/avatar10.webp +0 -0
- package/template/src/assets/images/avatar/avatar2.webp +0 -0
- package/template/src/assets/images/avatar/avatar3.webp +0 -0
- package/template/src/assets/images/avatar/avatar4.webp +0 -0
- package/template/src/assets/images/avatar/avatar5.webp +0 -0
- package/template/src/assets/images/avatar/avatar6.webp +0 -0
- package/template/src/assets/images/avatar/avatar7.webp +0 -0
- package/template/src/assets/images/avatar/avatar8.webp +0 -0
- package/template/src/assets/images/avatar/avatar9.webp +0 -0
- package/template/src/assets/images/ceremony/hb.png +0 -0
- package/template/src/assets/images/ceremony/sd.png +0 -0
- package/template/src/assets/images/ceremony/xc.png +0 -0
- package/template/src/assets/images/ceremony/yd.png +0 -0
- package/template/src/assets/images/common/logo.webp +0 -0
- package/template/src/assets/images/draw/draw1.png +0 -0
- package/template/src/assets/images/favicon.ico +0 -0
- package/template/src/assets/images/lock/bg_dark.webp +0 -0
- package/template/src/assets/images/lock/bg_light.webp +0 -0
- package/template/src/assets/images/login/kylin-hero-source.png +0 -0
- package/template/src/assets/images/login/lf_icon2.webp +0 -0
- package/template/src/assets/images/settings/menu_layouts/dual_column.png +0 -0
- package/template/src/assets/images/settings/menu_layouts/horizontal.png +0 -0
- package/template/src/assets/images/settings/menu_layouts/mixed.png +0 -0
- package/template/src/assets/images/settings/menu_layouts/vertical.png +0 -0
- package/template/src/assets/images/settings/menu_styles/dark.png +0 -0
- package/template/src/assets/images/settings/menu_styles/design.png +0 -0
- package/template/src/assets/images/settings/menu_styles/light.png +0 -0
- package/template/src/assets/images/settings/theme_styles/dark.png +0 -0
- package/template/src/assets/images/settings/theme_styles/light.png +0 -0
- package/template/src/assets/images/settings/theme_styles/system.png +0 -0
- package/template/src/assets/images/svg/403.svg +1 -0
- package/template/src/assets/images/svg/404.svg +1 -0
- package/template/src/assets/images/svg/500.svg +5 -0
- package/template/src/assets/images/svg/login_icon.svg +1 -0
- package/template/src/assets/images/user/avatar.webp +0 -0
- package/template/src/assets/images/user/bg.webp +0 -0
- package/template/src/assets/styles/core/app.scss +227 -0
- package/template/src/assets/styles/core/dark.scss +93 -0
- package/template/src/assets/styles/core/el-dark.scss +2 -0
- package/template/src/assets/styles/core/el-light.scss +34 -0
- package/template/src/assets/styles/core/el-ui.scss +519 -0
- package/template/src/assets/styles/core/md.scss +1036 -0
- package/template/src/assets/styles/core/mixin.scss +157 -0
- package/template/src/assets/styles/core/reset.scss +41 -0
- package/template/src/assets/styles/core/router-transition.scss +104 -0
- package/template/src/assets/styles/core/tailwind.css +219 -0
- package/template/src/assets/styles/core/theme-animation.scss +63 -0
- package/template/src/assets/styles/core/theme-change.scss +11 -0
- package/template/src/assets/styles/custom/one-dark-pro.scss +98 -0
- package/template/src/assets/styles/index.scss +23 -0
- package/template/src/assets/svg/loading.ts +32 -0
- package/template/src/bootstrap/initializeApp.ts +30 -0
- package/template/src/components/core/banners/art-basic-banner/index.vue +343 -0
- package/template/src/components/core/banners/art-card-banner/index.vue +114 -0
- package/template/src/components/core/base/art-back-to-top/index.vue +40 -0
- package/template/src/components/core/base/art-logo/index.vue +34 -0
- package/template/src/components/core/base/art-svg-icon/index.vue +24 -0
- package/template/src/components/core/cards/art-bar-chart-card/index.vue +103 -0
- package/template/src/components/core/cards/art-data-list-card/index.vue +74 -0
- package/template/src/components/core/cards/art-donut-chart-card/index.vue +124 -0
- package/template/src/components/core/cards/art-image-card/index.vue +89 -0
- package/template/src/components/core/cards/art-line-chart-card/index.vue +126 -0
- package/template/src/components/core/cards/art-progress-card/index.vue +86 -0
- package/template/src/components/core/cards/art-stats-card/index.vue +67 -0
- package/template/src/components/core/cards/art-timeline-list-card/index.vue +69 -0
- package/template/src/components/core/charts/art-bar-chart/index.vue +203 -0
- package/template/src/components/core/charts/art-dual-bar-compare-chart/index.vue +195 -0
- package/template/src/components/core/charts/art-h-bar-chart/index.vue +208 -0
- package/template/src/components/core/charts/art-k-line-chart/index.vue +152 -0
- package/template/src/components/core/charts/art-line-chart/index.vue +371 -0
- package/template/src/components/core/charts/art-radar-chart/index.vue +105 -0
- package/template/src/components/core/charts/art-ring-chart/index.vue +133 -0
- package/template/src/components/core/charts/art-scatter-chart/index.vue +115 -0
- package/template/src/components/core/feedback/art-page-loading/index.vue +281 -0
- package/template/src/components/core/forms/art-button-more/index.vue +71 -0
- package/template/src/components/core/forms/art-button-table/index.vue +59 -0
- package/template/src/components/core/forms/art-drag-verify/index.vue +430 -0
- package/template/src/components/core/forms/art-excel-export/index.vue +390 -0
- package/template/src/components/core/forms/art-excel-import/index.vue +62 -0
- package/template/src/components/core/forms/art-form/index.vue +507 -0
- package/template/src/components/core/forms/art-wang-editor/index.vue +261 -0
- package/template/src/components/core/forms/art-wang-editor/style.scss +273 -0
- package/template/src/components/core/layouts/art-breadcrumb/index.vue +142 -0
- package/template/src/components/core/layouts/art-chat-window/index.vue +262 -0
- package/template/src/components/core/layouts/art-fast-enter/index.vue +113 -0
- package/template/src/components/core/layouts/art-fireworks-effect/index.vue +633 -0
- package/template/src/components/core/layouts/art-global-component/index.vue +14 -0
- package/template/src/components/core/layouts/art-global-search/index.vue +431 -0
- package/template/src/components/core/layouts/art-header-bar/index.vue +485 -0
- package/template/src/components/core/layouts/art-header-bar/widget/ArtUserMenu.vue +118 -0
- package/template/src/components/core/layouts/art-menus/art-horizontal-menu/index.vue +110 -0
- package/template/src/components/core/layouts/art-menus/art-horizontal-menu/widget/HorizontalSubmenu.vue +106 -0
- package/template/src/components/core/layouts/art-menus/art-mixed-menu/index.vue +279 -0
- package/template/src/components/core/layouts/art-menus/art-sidebar-menu/index.vue +354 -0
- package/template/src/components/core/layouts/art-menus/art-sidebar-menu/style.scss +251 -0
- package/template/src/components/core/layouts/art-menus/art-sidebar-menu/theme.scss +258 -0
- package/template/src/components/core/layouts/art-menus/art-sidebar-menu/widget/SidebarSubmenu.vue +190 -0
- package/template/src/components/core/layouts/art-notification/index.vue +456 -0
- package/template/src/components/core/layouts/art-page-content/index.vue +137 -0
- package/template/src/components/core/layouts/art-settings-panel/composables/useSettingsConfig.ts +248 -0
- package/template/src/components/core/layouts/art-settings-panel/composables/useSettingsHandlers.ts +167 -0
- package/template/src/components/core/layouts/art-settings-panel/composables/useSettingsPanel.ts +233 -0
- package/template/src/components/core/layouts/art-settings-panel/composables/useSettingsState.ts +37 -0
- package/template/src/components/core/layouts/art-settings-panel/index.vue +72 -0
- package/template/src/components/core/layouts/art-settings-panel/style.scss +92 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/BasicSettings.vue +77 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/BoxStyleSettings.vue +38 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/ColorSettings.vue +35 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/ContainerSettings.vue +33 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/MenuLayoutSettings.vue +31 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/MenuStyleSettings.vue +44 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/SectionTitle.vue +17 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/SettingActions.vue +236 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/SettingDrawer.vue +51 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/SettingHeader.vue +18 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/SettingItem.vue +101 -0
- package/template/src/components/core/layouts/art-settings-panel/widget/ThemeSettings.vue +28 -0
- package/template/src/components/core/layouts/art-work-tab/index.vue +584 -0
- package/template/src/components/core/media/art-cutter-img/index.vue +350 -0
- package/template/src/components/core/media/art-video-player/index.vue +111 -0
- package/template/src/components/core/others/art-menu-right/index.vue +415 -0
- package/template/src/components/core/others/art-watermark/index.vue +64 -0
- package/template/src/components/core/text-effect/art-count-to/index.vue +310 -0
- package/template/src/components/core/text-effect/art-festival-text-scroll/index.vue +32 -0
- package/template/src/components/core/text-effect/art-text-scroll/index.vue +285 -0
- package/template/src/components/core/theme/theme-svg/index.vue +100 -0
- package/template/src/components/core/views/exception/ArtException.vue +55 -0
- package/template/src/components/core/views/login/AuthTopBar.vue +149 -0
- package/template/src/components/core/views/login/LoginLeftView.vue +602 -0
- package/template/src/components/core/views/result/ArtResultPage.vue +43 -0
- package/template/src/components/core/widget/art-icon-button/index.vue +23 -0
- package/template/src/config/assets/images.ts +61 -0
- package/template/src/config/index.ts +170 -0
- package/template/src/config/modules/component.ts +98 -0
- package/template/src/config/modules/fastEnter.ts +16 -0
- package/template/src/config/modules/festival.ts +51 -0
- package/template/src/config/modules/headerBar.ts +64 -0
- package/template/src/config/setting.ts +109 -0
- package/template/src/directives/core/auth.ts +66 -0
- package/template/src/directives/core/highlight-loader.ts +37 -0
- package/template/src/directives/core/highlight.ts +253 -0
- package/template/src/directives/core/ripple.ts +116 -0
- package/template/src/directives/core/roles.ts +87 -0
- package/template/src/directives/index.ts +14 -0
- package/template/src/enums/appEnum.ts +81 -0
- package/template/src/enums/formEnum.ts +17 -0
- package/template/src/env.d.ts +32 -0
- package/template/src/hooks/core/useAppMode.ts +45 -0
- package/template/src/hooks/core/useAuth.ts +74 -0
- package/template/src/hooks/core/useCeremony.ts +184 -0
- package/template/src/hooks/core/useChart.ts +745 -0
- package/template/src/hooks/core/useCommon.ts +87 -0
- package/template/src/hooks/core/useFastEnter.ts +55 -0
- package/template/src/hooks/core/useHeaderBar.ts +201 -0
- package/template/src/hooks/core/useLayoutHeight.ts +148 -0
- package/template/src/hooks/core/useTableColumns.ts +313 -0
- package/template/src/hooks/core/useTheme.ts +174 -0
- package/template/src/hooks/index.ts +29 -0
- package/template/src/locales/index.ts +123 -0
- package/template/src/locales/langs/en.json +283 -0
- package/template/src/locales/langs/zh.json +283 -0
- package/template/src/main.ts +29 -0
- package/template/src/mock/auth.ts +46 -0
- package/template/src/plugins/echarts.ts +76 -0
- package/template/src/plugins/index.ts +6 -0
- package/template/src/router/core/ComponentLoader.ts +82 -0
- package/template/src/router/core/IframeRouteManager.ts +78 -0
- package/template/src/router/core/MenuProcessor.ts +280 -0
- package/template/src/router/core/RoutePermissionValidator.ts +161 -0
- package/template/src/router/core/RouteRegistry.ts +90 -0
- package/template/src/router/core/RouteTransformer.ts +132 -0
- package/template/src/router/core/RouteValidator.ts +187 -0
- package/template/src/router/core/index.ts +14 -0
- package/template/src/router/guards/afterEach.ts +34 -0
- package/template/src/router/guards/beforeEach.ts +442 -0
- package/template/src/router/index.ts +24 -0
- package/template/src/router/modules/dashboard.ts +23 -0
- package/template/src/router/modules/examples.ts +109 -0
- package/template/src/router/modules/exception.ts +46 -0
- package/template/src/router/modules/index.ts +12 -0
- package/template/src/router/modules/result.ts +32 -0
- package/template/src/router/routes/asyncRoutes.ts +9 -0
- package/template/src/router/routes/staticRoutes.ts +60 -0
- package/template/src/router/routesAlias.ts +8 -0
- package/template/src/services/auth.ts +15 -0
- package/template/src/store/index.ts +52 -0
- package/template/src/store/modules/menu.ts +109 -0
- package/template/src/store/modules/setting.ts +450 -0
- package/template/src/store/modules/user.ts +218 -0
- package/template/src/store/modules/worktab.ts +568 -0
- package/template/src/types/api/api.d.ts +86 -0
- package/template/src/types/common/index.ts +95 -0
- package/template/src/types/common/response.ts +32 -0
- package/template/src/types/component/chart.ts +324 -0
- package/template/src/types/component/index.ts +86 -0
- package/template/src/types/config/index.ts +253 -0
- package/template/src/types/directive/directive.d.ts +15 -0
- package/template/src/types/import/auto-imports.d.ts +319 -0
- package/template/src/types/import/components.d.ts +126 -0
- package/template/src/types/index.ts +22 -0
- package/template/src/types/router/index.ts +80 -0
- package/template/src/types/store/index.ts +157 -0
- package/template/src/utils/form/index.ts +9 -0
- package/template/src/utils/form/validator.ts +316 -0
- package/template/src/utils/http/contract.ts +39 -0
- package/template/src/utils/http/error.ts +182 -0
- package/template/src/utils/http/index.ts +226 -0
- package/template/src/utils/http/status.ts +18 -0
- package/template/src/utils/index.ts +31 -0
- package/template/src/utils/navigation/index.ts +10 -0
- package/template/src/utils/navigation/jump.ts +68 -0
- package/template/src/utils/navigation/route.ts +85 -0
- package/template/src/utils/navigation/worktab.ts +67 -0
- package/template/src/utils/router.ts +63 -0
- package/template/src/utils/socket/index.ts +423 -0
- package/template/src/utils/storage/index.ts +7 -0
- package/template/src/utils/storage/storage-config.ts +127 -0
- package/template/src/utils/storage/storage-key-manager.ts +97 -0
- package/template/src/utils/storage/storage.ts +250 -0
- package/template/src/utils/sys/console.ts +9 -0
- package/template/src/utils/sys/error-handle.ts +143 -0
- package/template/src/utils/sys/index.ts +2 -0
- package/template/src/utils/sys/mittBus.ts +61 -0
- package/template/src/utils/ui/animation.ts +80 -0
- package/template/src/utils/ui/colors.ts +273 -0
- package/template/src/utils/ui/emojo.ts +24 -0
- package/template/src/utils/ui/iconify-loader.ts +31 -0
- package/template/src/utils/ui/index.ts +11 -0
- package/template/src/utils/ui/loading.ts +158 -0
- package/template/src/utils/ui/tabs.ts +60 -0
- package/template/src/views/auth/forget-password/index.vue +62 -0
- package/template/src/views/auth/login/index.vue +166 -0
- package/template/src/views/auth/login/style.css +38 -0
- package/template/src/views/auth/register/index.vue +240 -0
- package/template/src/views/dashboard/console/index.vue +173 -0
- package/template/src/views/examples/analytics/index.vue +389 -0
- package/template/src/views/examples/complex-form/index.vue +395 -0
- package/template/src/views/examples/crud-workspace/index.vue +412 -0
- package/template/src/views/examples/navigation/detail/index.vue +151 -0
- package/template/src/views/examples/navigation/state/index.vue +226 -0
- package/template/src/views/examples/overview/index.vue +309 -0
- package/template/src/views/examples/permissions/index.vue +303 -0
- package/template/src/views/examples/search-table/index.vue +182 -0
- package/template/src/views/examples/search-table/search.config.ts +81 -0
- package/template/src/views/examples/search-table/service.ts +116 -0
- package/template/src/views/examples/search-table/table.config.ts +37 -0
- package/template/src/views/exception/403/index.vue +16 -0
- package/template/src/views/exception/404/index.vue +16 -0
- package/template/src/views/exception/500/index.vue +16 -0
- package/template/src/views/index/index.vue +29 -0
- package/template/src/views/index/style.scss +93 -0
- package/template/src/views/outside/Iframe.vue +42 -0
- package/template/src/views/result/fail/index.vue +28 -0
- package/template/src/views/result/success/index.vue +21 -0
- package/template/tests/e2e/auth.spec.ts +14 -0
- package/template/tests/e2e/search-table.spec.ts +154 -0
- package/template/tests/unit/adapters/auth.spec.ts +38 -0
- package/template/tests/unit/config/app-config.spec.ts +17 -0
- package/template/tests/unit/directives/highlight.spec.ts +20 -0
- package/template/tests/unit/http/contract.spec.ts +47 -0
- package/template/tests/unit/mock/search-table.spec.ts +62 -0
- package/template/tests/unit/router/examples.spec.ts +52 -0
- package/template/tsconfig.json +28 -0
- package/template/vite.config.ts +181 -0
- package/template/vitest.config.ts +27 -0
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
// 优化 Element Plus 组件库默认样式
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
// 系统主色
|
|
5
|
+
--main-color: var(--el-color-primary);
|
|
6
|
+
--el-color-white: white !important;
|
|
7
|
+
--el-color-black: white !important;
|
|
8
|
+
// 输入框边框颜色
|
|
9
|
+
// --el-border-color: #E4E4E7 !important; // DCDFE6
|
|
10
|
+
// 按钮粗度
|
|
11
|
+
--el-font-weight-primary: 400 !important;
|
|
12
|
+
|
|
13
|
+
--el-component-custom-height: 36px !important;
|
|
14
|
+
|
|
15
|
+
--el-component-size: var(--el-component-custom-height) !important;
|
|
16
|
+
|
|
17
|
+
// 边框、按钮圆角...
|
|
18
|
+
--el-border-radius-base: calc(var(--custom-radius) / 3 + 2px) !important;
|
|
19
|
+
|
|
20
|
+
--el-border-radius-small: calc(var(--custom-radius) / 3 + 4px) !important;
|
|
21
|
+
--el-messagebox-border-radius: calc(var(--custom-radius) / 3 + 4px) !important;
|
|
22
|
+
--el-popover-border-radius: calc(var(--custom-radius) / 3 + 4px) !important;
|
|
23
|
+
|
|
24
|
+
.region .el-radio-button__original-radio:checked + .el-radio-button__inner {
|
|
25
|
+
color: var(--theme-color);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// 优化 el-form-item 标签高度
|
|
30
|
+
.el-form-item__label {
|
|
31
|
+
height: var(--el-component-custom-height) !important;
|
|
32
|
+
line-height: var(--el-component-custom-height) !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 日期选择器
|
|
36
|
+
.el-date-range-picker {
|
|
37
|
+
--el-datepicker-inrange-bg-color: var(--art-gray-200) !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// el-card 背景色跟系统背景色保持一致
|
|
41
|
+
html.dark .el-card {
|
|
42
|
+
--el-card-bg-color: var(--default-box-color) !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// 修改 el-pagination 大小
|
|
46
|
+
.el-pagination--default {
|
|
47
|
+
& {
|
|
48
|
+
--el-pagination-button-width: 32px !important;
|
|
49
|
+
--el-pagination-button-height: var(--el-pagination-button-width) !important;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (max-width: 1180px) {
|
|
53
|
+
& {
|
|
54
|
+
--el-pagination-button-width: 28px !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.el-select--default .el-select__wrapper {
|
|
59
|
+
min-height: var(--el-pagination-button-width) !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.el-pagination__jump .el-input {
|
|
63
|
+
height: var(--el-pagination-button-width) !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.el-pager li {
|
|
68
|
+
padding: 0 10px !important;
|
|
69
|
+
// border: 1px solid red !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// 优化菜单折叠展开动画(提升动画流畅度)
|
|
73
|
+
.el-menu.el-menu--inline {
|
|
74
|
+
transition: max-height 0.26s cubic-bezier(0.4, 0, 0.2, 1) !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// 优化菜单 item hover 动画(提升鼠标跟手感)
|
|
78
|
+
.el-sub-menu__title,
|
|
79
|
+
.el-menu-item {
|
|
80
|
+
transition: background-color 0s !important;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// -------------------------------- 修改 el-size=default 组件默认高度 start --------------------------------
|
|
84
|
+
// 修改 el-button 高度
|
|
85
|
+
.el-button--default {
|
|
86
|
+
height: var(--el-component-custom-height) !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// circle 按钮宽度优化
|
|
90
|
+
.el-button--default.is-circle {
|
|
91
|
+
width: var(--el-component-custom-height) !important;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// 修改 el-select 高度
|
|
95
|
+
.el-select--default {
|
|
96
|
+
.el-select__wrapper {
|
|
97
|
+
min-height: var(--el-component-custom-height) !important;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// 修改 el-checkbox-button 高度
|
|
102
|
+
.el-checkbox-button--default .el-checkbox-button__inner,
|
|
103
|
+
// 修改 el-radio-button 高度
|
|
104
|
+
.el-radio-button--default .el-radio-button__inner {
|
|
105
|
+
padding: 10px 15px !important;
|
|
106
|
+
}
|
|
107
|
+
// -------------------------------- 修改 el-size=default 组件默认高度 end --------------------------------
|
|
108
|
+
|
|
109
|
+
.el-pagination.is-background .btn-next,
|
|
110
|
+
.el-pagination.is-background .btn-prev,
|
|
111
|
+
.el-pagination.is-background .el-pager li {
|
|
112
|
+
border-radius: 6px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.el-popover {
|
|
116
|
+
min-width: 80px;
|
|
117
|
+
border-radius: var(--el-border-radius-small) !important;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.el-dialog {
|
|
121
|
+
border-radius: 100px !important;
|
|
122
|
+
border-radius: calc(var(--custom-radius) / 1.2 + 2px) !important;
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.el-dialog__header {
|
|
127
|
+
.el-dialog__title {
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.el-dialog__body {
|
|
133
|
+
padding: 25px 0 !important;
|
|
134
|
+
position: relative; // 为了兼容 el-pagination 样式,需要设置 relative,不然会影响 el-pagination 的样式,比如 el-pagination__jump--small 会被影响,导致 el-pagination__jump--small 按钮无法点击,详见 URL_ADDRESS.com/element-plus/element-plus/issues/5684#issuecomment-1176299275;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.el-dialog.el-dialog-border {
|
|
138
|
+
.el-dialog__body {
|
|
139
|
+
// 上边框
|
|
140
|
+
&::before,
|
|
141
|
+
// 下边框
|
|
142
|
+
&::after {
|
|
143
|
+
content: '';
|
|
144
|
+
position: absolute;
|
|
145
|
+
left: -16px;
|
|
146
|
+
width: calc(100% + 32px);
|
|
147
|
+
height: 1px;
|
|
148
|
+
background-color: var(--art-gray-300);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&::before {
|
|
152
|
+
top: 0;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
&::after {
|
|
156
|
+
bottom: 0;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// el-message 样式优化
|
|
162
|
+
.el-message {
|
|
163
|
+
background-color: var(--default-box-color) !important;
|
|
164
|
+
border: 0 !important;
|
|
165
|
+
box-shadow:
|
|
166
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
167
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
168
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05) !important;
|
|
169
|
+
|
|
170
|
+
p {
|
|
171
|
+
font-size: 13px;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// 修改 el-dropdown 样式
|
|
176
|
+
.el-dropdown-menu {
|
|
177
|
+
padding: 6px !important;
|
|
178
|
+
border-radius: 10px !important;
|
|
179
|
+
border: none !important;
|
|
180
|
+
|
|
181
|
+
.el-dropdown-menu__item {
|
|
182
|
+
padding: 6px 16px !important;
|
|
183
|
+
border-radius: 6px !important;
|
|
184
|
+
|
|
185
|
+
&:hover:not(.is-disabled) {
|
|
186
|
+
color: var(--art-gray-900) !important;
|
|
187
|
+
background-color: var(--art-el-active-color) !important;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&:focus:not(.is-disabled) {
|
|
191
|
+
color: var(--art-gray-900) !important;
|
|
192
|
+
background-color: var(--art-gray-200) !important;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// 隐藏 select、dropdown 的三角
|
|
198
|
+
.el-select__popper,
|
|
199
|
+
.el-dropdown__popper {
|
|
200
|
+
margin-top: -6px !important;
|
|
201
|
+
|
|
202
|
+
.el-popper__arrow {
|
|
203
|
+
display: none;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.el-dropdown-selfdefine:focus {
|
|
208
|
+
outline: none !important;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// 处理移动端组件兼容性
|
|
212
|
+
@media screen and (max-width: 640px) {
|
|
213
|
+
.el-message-box,
|
|
214
|
+
.el-dialog {
|
|
215
|
+
width: calc(100% - 24px) !important;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.el-date-picker.has-sidebar.has-time {
|
|
219
|
+
width: calc(100% - 24px);
|
|
220
|
+
left: 12px !important;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.el-picker-panel *[slot='sidebar'],
|
|
224
|
+
.el-picker-panel__sidebar {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.el-picker-panel *[slot='sidebar'] + .el-picker-panel__body,
|
|
229
|
+
.el-picker-panel__sidebar + .el-picker-panel__body {
|
|
230
|
+
margin-left: 0;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// 修改el-button样式
|
|
235
|
+
.el-button {
|
|
236
|
+
&.el-button--text {
|
|
237
|
+
background-color: transparent !important;
|
|
238
|
+
padding: 0 !important;
|
|
239
|
+
|
|
240
|
+
span {
|
|
241
|
+
margin-left: 0 !important;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// 修改el-tag样式
|
|
247
|
+
.el-tag {
|
|
248
|
+
font-weight: 500;
|
|
249
|
+
transition: all 0s !important;
|
|
250
|
+
|
|
251
|
+
&.el-tag--default {
|
|
252
|
+
height: 26px !important;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.el-checkbox-group {
|
|
257
|
+
&.el-table-filter__checkbox-group label.el-checkbox {
|
|
258
|
+
height: 17px !important;
|
|
259
|
+
|
|
260
|
+
.el-checkbox__label {
|
|
261
|
+
font-weight: 400 !important;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.el-radio--default {
|
|
267
|
+
// 优化单选按钮大小
|
|
268
|
+
.el-radio__input {
|
|
269
|
+
.el-radio__inner {
|
|
270
|
+
width: 16px;
|
|
271
|
+
height: 16px;
|
|
272
|
+
|
|
273
|
+
&::after {
|
|
274
|
+
width: 6px;
|
|
275
|
+
height: 6px;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.el-checkbox {
|
|
282
|
+
.el-checkbox__inner {
|
|
283
|
+
border-radius: 2px !important;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// 优化复选框样式
|
|
288
|
+
.el-checkbox--default {
|
|
289
|
+
.el-checkbox__inner {
|
|
290
|
+
width: 16px !important;
|
|
291
|
+
height: 16px !important;
|
|
292
|
+
border-radius: 4px !important;
|
|
293
|
+
|
|
294
|
+
&::before {
|
|
295
|
+
content: '';
|
|
296
|
+
height: 4px !important;
|
|
297
|
+
top: 5px !important;
|
|
298
|
+
background-color: #fff !important;
|
|
299
|
+
transform: scale(0.6) !important;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.is-checked {
|
|
304
|
+
.el-checkbox__inner {
|
|
305
|
+
&::after {
|
|
306
|
+
width: 3px;
|
|
307
|
+
height: 8px;
|
|
308
|
+
margin: auto;
|
|
309
|
+
border: 2px solid var(--el-checkbox-checked-icon-color);
|
|
310
|
+
border-left: 0;
|
|
311
|
+
border-top: 0;
|
|
312
|
+
transform: translate(-45%, -60%) rotate(45deg) scale(0.86) !important;
|
|
313
|
+
transform-origin: center;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.el-notification .el-notification__icon {
|
|
320
|
+
font-size: 22px !important;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// 修改 el-message-box 样式
|
|
324
|
+
.el-message-box__headerbtn .el-message-box__close,
|
|
325
|
+
.el-dialog__headerbtn .el-dialog__close {
|
|
326
|
+
top: 7px;
|
|
327
|
+
right: 7px;
|
|
328
|
+
width: 30px;
|
|
329
|
+
height: 30px;
|
|
330
|
+
border-radius: 5px;
|
|
331
|
+
transition: all 0.3s;
|
|
332
|
+
|
|
333
|
+
&:hover {
|
|
334
|
+
background-color: var(--art-hover-color) !important;
|
|
335
|
+
color: var(--art-gray-900) !important;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.el-message-box {
|
|
340
|
+
padding: 25px 20px !important;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.el-message-box__title {
|
|
344
|
+
font-weight: 500 !important;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.el-table__column-filter-trigger i {
|
|
348
|
+
color: var(--theme-color) !important;
|
|
349
|
+
margin: -3px 0 0 2px;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// 去除 el-dropdown 鼠标放上去出现的边框
|
|
353
|
+
.el-tooltip__trigger:focus-visible {
|
|
354
|
+
outline: unset;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
// ipad 表单右侧按钮优化
|
|
358
|
+
@media screen and (max-width: 1180px) {
|
|
359
|
+
.el-table-fixed-column--right {
|
|
360
|
+
padding-right: 0 !important;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.login-out-dialog {
|
|
365
|
+
padding: 30px 20px !important;
|
|
366
|
+
border-radius: 10px !important;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
// 修改 dialog 动画
|
|
370
|
+
.dialog-fade-enter-active {
|
|
371
|
+
.el-dialog:not(.is-draggable) {
|
|
372
|
+
animation: dialog-open 0.3s cubic-bezier(0.32, 0.14, 0.15, 0.86);
|
|
373
|
+
|
|
374
|
+
// 修复 el-dialog 动画后宽度不自适应问题
|
|
375
|
+
.el-select__selected-item {
|
|
376
|
+
display: inline-block;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.dialog-fade-leave-active {
|
|
382
|
+
animation: fade-out 0.2s linear;
|
|
383
|
+
|
|
384
|
+
.el-dialog:not(.is-draggable) {
|
|
385
|
+
animation: dialog-close 0.5s;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@keyframes dialog-open {
|
|
390
|
+
0% {
|
|
391
|
+
opacity: 0;
|
|
392
|
+
transform: scale(0.2);
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
100% {
|
|
396
|
+
opacity: 1;
|
|
397
|
+
transform: scale(1);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
@keyframes dialog-close {
|
|
402
|
+
0% {
|
|
403
|
+
opacity: 1;
|
|
404
|
+
transform: scale(1);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
100% {
|
|
408
|
+
opacity: 0;
|
|
409
|
+
transform: scale(0.2);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// 遮罩层动画
|
|
414
|
+
@keyframes fade-out {
|
|
415
|
+
0% {
|
|
416
|
+
opacity: 1;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
100% {
|
|
420
|
+
opacity: 0;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
// 修改 el-select 样式
|
|
425
|
+
.el-select__popper:not(.el-tree-select__popper) {
|
|
426
|
+
.el-select-dropdown__list {
|
|
427
|
+
padding: 5px !important;
|
|
428
|
+
|
|
429
|
+
.el-select-dropdown__item {
|
|
430
|
+
height: 34px !important;
|
|
431
|
+
line-height: 34px !important;
|
|
432
|
+
border-radius: 6px !important;
|
|
433
|
+
|
|
434
|
+
&.is-selected {
|
|
435
|
+
color: var(--art-gray-900) !important;
|
|
436
|
+
font-weight: 400 !important;
|
|
437
|
+
background-color: var(--art-el-active-color) !important;
|
|
438
|
+
margin-bottom: 4px !important;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
&:hover {
|
|
442
|
+
background-color: var(--art-hover-color) !important;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.el-select-dropdown__item:hover ~ .is-selected,
|
|
447
|
+
.el-select-dropdown__item.is-selected:has(~ .el-select-dropdown__item:hover) {
|
|
448
|
+
background-color: transparent !important;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
// 修改 el-tree-select 样式
|
|
454
|
+
.el-tree-select__popper {
|
|
455
|
+
.el-select-dropdown__list {
|
|
456
|
+
padding: 5px !important;
|
|
457
|
+
|
|
458
|
+
.el-tree-node {
|
|
459
|
+
.el-tree-node__content {
|
|
460
|
+
height: 36px !important;
|
|
461
|
+
border-radius: 6px !important;
|
|
462
|
+
|
|
463
|
+
&:hover {
|
|
464
|
+
background-color: var(--art-gray-200) !important;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
// 实现水波纹在文字下面效果
|
|
472
|
+
.el-button > span {
|
|
473
|
+
position: relative;
|
|
474
|
+
z-index: 10;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
// 优化颜色选择器圆角
|
|
478
|
+
.el-color-picker__color {
|
|
479
|
+
border-radius: 2px !important;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// 优化日期时间选择器底部圆角
|
|
483
|
+
.el-picker-panel {
|
|
484
|
+
.el-picker-panel__footer {
|
|
485
|
+
border-radius: 0 0 var(--el-border-radius-base) var(--el-border-radius-base);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
// 优化树型菜单样式
|
|
490
|
+
.el-tree-node__content {
|
|
491
|
+
border-radius: 4px;
|
|
492
|
+
margin-bottom: 4px;
|
|
493
|
+
padding: 1px 0;
|
|
494
|
+
|
|
495
|
+
&:hover {
|
|
496
|
+
background-color: var(--art-hover-color) !important;
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.dark {
|
|
501
|
+
.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
|
|
502
|
+
background-color: var(--art-gray-300) !important;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// 隐藏折叠菜单弹窗 hover 出现的边框
|
|
507
|
+
.menu-left-popper:focus-within,
|
|
508
|
+
.horizontal-menu-popper:focus-within {
|
|
509
|
+
box-shadow: none !important;
|
|
510
|
+
outline: none !important;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// 数字输入组件右侧按钮高度跟随自定义组件高度
|
|
514
|
+
.el-input-number--default.is-controls-right {
|
|
515
|
+
.el-input-number__decrease,
|
|
516
|
+
.el-input-number__increase {
|
|
517
|
+
height: calc((var(--el-component-size) / 2)) !important;
|
|
518
|
+
}
|
|
519
|
+
}
|