From a42edf17ec11ff1da2394c91023480a11221707b Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Wed, 9 Oct 2024 14:32:06 +0800 Subject: [PATCH] fixed: Fixed an issue where the font size of the resource is too large due to the parent element's font size being overridden --- src/components/Dialog/index.vue | 1 + src/components/Form/AutoDataForm/index.vue | 4 ++-- src/layout/components/NavHeader/index.vue | 2 +- src/styles/index.scss | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Dialog/index.vue b/src/components/Dialog/index.vue index cbed6fe07..23ea0e696 100644 --- a/src/components/Dialog/index.vue +++ b/src/components/Dialog/index.vue @@ -123,6 +123,7 @@ export default { &__body { padding: 20px 30px; + font-size: 13px; &:has(.el-table) { background: #f3f3f4; diff --git a/src/components/Form/AutoDataForm/index.vue b/src/components/Form/AutoDataForm/index.vue index 2168d3841..cb233523d 100644 --- a/src/components/Form/AutoDataForm/index.vue +++ b/src/components/Form/AutoDataForm/index.vue @@ -7,7 +7,7 @@ v-bind="$attrs" v-on="$listeners" > - - + diff --git a/src/layout/components/NavHeader/index.vue b/src/layout/components/NavHeader/index.vue index a2f7de1b9..83fdcefa4 100644 --- a/src/layout/components/NavHeader/index.vue +++ b/src/layout/components/NavHeader/index.vue @@ -176,7 +176,7 @@ export default { // 未找到与之对应的 & ::v-deep .el-submenu__title { - font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; padding: 0 8px; line-height: $headerHeight; height: $headerHeight; diff --git a/src/styles/index.scss b/src/styles/index.scss index d692e30aa..c8c17612a 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -38,7 +38,7 @@ body { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: auto; color: var(--color-text-primary); - font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 13px; line-height: 1.428; }