From b0304fd87504b45d043c54bf2782f578f426639c Mon Sep 17 00:00:00 2001 From: Ran_Chen <1908198662@qq.com> Date: Thu, 27 Mar 2025 11:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E2=80=9C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E2=80=9D=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/AddModelDialog.vue | 177 +++++++++--------- 1 file changed, 90 insertions(+), 87 deletions(-) diff --git a/main/manager-web/src/components/AddModelDialog.vue b/main/manager-web/src/components/AddModelDialog.vue index f8370a5f..074be175 100644 --- a/main/manager-web/src/components/AddModelDialog.vue +++ b/main/manager-web/src/components/AddModelDialog.vue @@ -1,16 +1,25 @@ @@ -216,6 +219,7 @@ export default { border-radius: 20px; overflow: hidden; background: white; + padding-bottom: 17px; } .custom-dialog .el-dialog__header { @@ -223,6 +227,18 @@ export default { border-bottom: none; } +.center-dialog { + display: flex; + align-items: center; + justify-content: center; +} + +.center-dialog .el-dialog { + margin: 4% 0 auto !important; + display: flex; + flex-direction: column; +} + .custom-close-btn { position: absolute; top: 20px; @@ -249,19 +265,15 @@ export default { border-color: #409EFF; } -.custom-select .el-input__inner { - padding-right: 30px !important; -} - .custom-select .el-input__suffix { background: #e6e8ea; - right: 7px; - width: 24px; - height: 24px; + right: 6px; + width: 20px; + height: 20px; display: flex; justify-content: center; align-items: center; - top: 7px; + top: 9px; } .custom-select .el-input__suffix-inner { @@ -276,42 +288,34 @@ export default { display: inline-block; width: 0; height: 0; - border-left: 6px solid transparent; - border-right: 6px solid transparent; - border-top: 8px solid #c0c4cc; + border-left: 5px solid transparent; + border-right: 5px solid transparent; + border-top: 7px solid #c0c4cc; position: relative; - top: -1px; + top: -2px; transform: rotate(180deg); } -.custom-select .el-select .el-input .el-select__caret { - color: #c0c4cc; - font-size: 14px; - transition: transform .3s; - transform: rotateZ(0deg); - cursor: pointer; -} - -.custom-select .el-select .el-input.is-focus .el-icon-arrow-up:before { - transform: rotateZ(180deg); -} - -/* 表单样式调整 */ .custom-form .el-form-item { - margin-bottom: 0; + margin-bottom: 20px; /* 统一设置所有表单项的间距 */ } .custom-form .el-form-item__label { color: #3d4566; font-weight: normal; text-align: right; - padding-right: 15px; + padding-right: 20px; + +} + +.custom-form .el-form-item.prop-remark .el-form-item__label { + margin-top: -4px; } /* 修改placeholder颜色 */ .custom-input-bg .el-input__inner::-webkit-input-placeholder, .custom-input-bg .el-textarea__inner::-webkit-input-placeholder { - color: #9c9f9e ; + color: #9c9f9e; } /* 输入框背景色 */ @@ -320,16 +324,6 @@ export default { background-color: #f6f8fc; } -.custom-form .el-input__inner, -.custom-form .el-textarea__inner { - border-radius: 4px; - border: 1px solid #DCDFE6; -} - -.custom-form .el-input__inner:focus, -.custom-form .el-textarea__inner:focus { - border-color: #409EFF; -} .save-btn { background: #e6f0fd; @@ -347,10 +341,6 @@ export default { border: none; } -/* 修复select宽度问题 */ -.el-select { - display: block; -} /* 修改开关样式 */ .custom-switch .el-switch__core { @@ -381,4 +371,17 @@ export default { margin-left: -18px; background-color: #1b47ee; } + + +/* 调整flex布局的gap */ +[style*="display: flex"] { + gap: 20px; /* 扩大flex项间距 */ +} + +/* 调整输入框高度 */ +.custom-input-bg .el-input__inner { + height: 32px; /* 固定输入框高度 */ +} + + \ No newline at end of file