From f75312def0ae5e05fdef98be52bac898d2d6d5f8 Mon Sep 17 00:00:00 2001 From: TanYibin <5491541@qq.com> Date: Mon, 2 Sep 2024 17:39:54 +0800 Subject: [PATCH] 首页样式优化 --- ant-design-vue-jeecg/src/components/layouts/UserLayoutLogin.vue | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/ant-design-vue-jeecg/src/components/layouts/UserLayoutLogin.vue b/ant-design-vue-jeecg/src/components/layouts/UserLayoutLogin.vue index 590e589..90cb325 100644 --- a/ant-design-vue-jeecg/src/components/layouts/UserLayoutLogin.vue +++ b/ant-design-vue-jeecg/src/components/layouts/UserLayoutLogin.vue @@ -318,7 +318,10 @@ export default { } /deep/ .ant-select-selection__rendered { - margin-top: 0.6vw; + margin-top: 0vw; + justify-content: center; + margin-left: 0.5vw; + line-height: 2vw; } /deep/ .ant-form { width: 100%; @@ -419,13 +422,14 @@ export default { width: 100%; /* 宽度 100% */ } #welcome { - margin-top: 20px; + margin-top: 2vw; color: #333333; font-size: 1.5vw; align-content: end; font-family: 'Microsoft YaHei', 'SimSun', sans-serif; text-align: center; margin-left: 1vw; + margin-bottom: 3vw; } #name { border-width: 1px; @@ -434,7 +438,6 @@ export default { width: 85%; height: 3vw; line-height: 3vw; - margin-top: 3vw; margin-left: 8%; margin-bottom: 0.5vw; background-image: url(../../assets/huiyuan.png); @@ -466,6 +469,7 @@ export default { height: 3vw; line-height: 3vw; margin-left: 8%; + margin-top: 0vw; margin-bottom: 0.5vw; background-image: url(../../assets/mima.png); padding-left: 12%; /* 留出图片的空间 */ @@ -485,6 +489,7 @@ export default { height: 3vw; line-height: 3vw; margin-left: 8%; + margin-top: 0vw; margin-bottom: 2.5vw; font-size: 1vw; text-align: center; @@ -502,15 +507,39 @@ export default { color: #999999; padding-left: 0px; } +/deep/ .ant-form-explain { + margin-top: 0.2vw; + margin-bottom: 0.2vw; + min-height: 1.2vw; + font-size: 0.8vw; +} + +/deep/ .ant-select-arrow { + font-size: 1vw; + right: 1vw; + margin-top: -0.4vw; +} + /deep/ .ant-form-item-control { - line-height: 3.5vw; + line-height: 0vw; } + /deep/ .ant-select-selection__rendered { - line-height: 1.5vw; + line-height: 3vw; + +} + +/deep/ .ant-col { + min-height: 5.6vw; +} + +/deep/ .ant-form-item-with-help { + margin-bottom: 0vw; } /deep/ .ant-form-item { - margin-bottom: 0w; + font-size: 3vw; + margin-bottom: 0vw; } a-select { -- libgit2 0.22.2