From 0abe6710787db01e55ad78f8d82682de7acd2fa2 Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Mon, 09 Jan 2023 19:54:04 +0800
Subject: [PATCH] 微调表单组件

---
 forms/checkbox/cCheckBox.scss |    3 +++
 forms/form/CForm.vue          |    3 +++
 common/custom.scss            |   12 ++++++++++++
 3 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/common/custom.scss b/common/custom.scss
index 69b2f17..c1c4ec4 100644
--- a/common/custom.scss
+++ b/common/custom.scss
@@ -249,6 +249,18 @@
             overflow-y: scroll;
         }
     }
+    .at-steps {
+        .at-steps__single-icon {
+            width: 56px;
+            height: 56px;
+        }
+        .at-steps__right-line {
+            left: 80%;
+        }
+        .at-steps__left-line {
+            right: 80%;
+        }
+    }
 }
 
 .taro__toast {
diff --git a/forms/checkbox/cCheckBox.scss b/forms/checkbox/cCheckBox.scss
index f7e9b8e..1507019 100644
--- a/forms/checkbox/cCheckBox.scss
+++ b/forms/checkbox/cCheckBox.scss
@@ -43,6 +43,9 @@
                     border-color: #c9c9c9;
                 }
             }
+            .at-checkbox__title {
+                max-width: calc(100% - 80px);
+            }
         }
     }
     .at-input__icon {
diff --git a/forms/form/CForm.vue b/forms/form/CForm.vue
index 3cb1754..541c3b0 100644
--- a/forms/form/CForm.vue
+++ b/forms/form/CForm.vue
@@ -95,6 +95,9 @@
         $submit() {
             this.handleSubmit();
         },
+        $preVerify(keys, callback) {
+            this.preCheckValidators(keys, callback);
+        },
     },
     mounted() {
         // 当表单项变化时

--
Gitblit v1.9.1