From c98acc813b9172b18768f6f063bd6dc5d45553cf Mon Sep 17 00:00:00 2001
From: Tevin <tingquanren@163.com>
Date: Mon, 10 Mar 2025 10:43:21 +0800
Subject: [PATCH] 输入框,修复小程序中光标位置总是跳到首位的问题

---
 forms/switch/cSwitch.scss |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/forms/switch/cSwitch.scss b/forms/switch/cSwitch.scss
index 2e6d5d0..3288c4c 100644
--- a/forms/switch/cSwitch.scss
+++ b/forms/switch/cSwitch.scss
@@ -82,7 +82,7 @@
             display: none;
         }
         .c-switch-radio-group {
-            @include flexbox(flex, flex-start center, n wrap);
+            @include flexbox(flex, flex-end center, n wrap);
             flex: 1;
         }
         .c-switch-radio-item {
@@ -118,6 +118,7 @@
     }
     &.c-switch-radio-left {
         .c-switch-radio-group {
+            @include flexbox(flex, flex-start center, n wrap);
             padding-right: 0;
             .c-switch-radio-item {
                 padding-left: 0;

--
Gitblit v1.9.1