فهرست منبع

验证错误信息样式

zhouna 4 سال پیش
والد
کامیت
0cd94ed6f0
2فایلهای تغییر یافته به همراه13 افزوده شده و 6 حذف شده
  1. 2 1
      src/components/knowledgeExtra/AddDiagBase.vue
  2. 11 5
      src/components/knowledgeExtra/DiagBaseItem.vue

+ 2 - 1
src/components/knowledgeExtra/AddDiagBase.vue

@@ -304,7 +304,8 @@
         .discDesc{
             margin-bottom: 20px;
             .el-form-item__error{
-                top: auto;
+                top: 9px;
+                left:200px;
                 white-space: nowrap;
                 background: #fff;
             }

+ 11 - 5
src/components/knowledgeExtra/DiagBaseItem.vue

@@ -351,13 +351,19 @@
             margin-bottom: 6px;
             &.min-margin{
                 margin-bottom: 0;
+                position: relative;
+                .el-form-item__content{
+                    position: unset;
+                }
+                .el-form-item__error{
+                    top:10px;
+                    left: 460px;
+                    white-space: normal;
+                    width: 260px;
+                }
             }
         }
-        .el-form-item__error{
-            top: auto;
-            white-space: nowrap;
-            background: #fff;
-        }
+
         .el-input-number{
             width: 95px;
         }