From ab7c131fce31c86d6951b570a931468a4a081867 Mon Sep 17 00:00:00 2001
From: Tyh2001 <1469442737@qq.com>
Date: Fri, 4 Aug 2023 19:43:38 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20switch=20=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
docs/components/switch.md | 6 ++-
.../fighting-design/switch/src/switch.vue | 6 ++-
.../fighting-theme/src/checkbox-group.scss | 40 ++++++++-----------
packages/fighting-theme/src/switch.scss | 15 +++++++
4 files changed, 40 insertions(+), 27 deletions(-)
diff --git a/docs/components/switch.md b/docs/components/switch.md
index 240ba0e227..1cd39a9772 100644
--- a/docs/components/switch.md
+++ b/docs/components/switch.md
@@ -90,7 +90,6 @@
:::
-
## 加载状态
`loading` 属性可以加载 `switch`
@@ -222,6 +221,7 @@
| `modelValue / v-model` | 绑定值 | string | —— | false |
| `size` | 组件尺寸 | FightingSize | `large` `middle` `small` `mini` | middle |
| `disabled` | 是否禁用 | boolean | —— | false |
+| `loading` | 是否为加载状态 | boolean | —— | false |
| `icon` | 自定义 icon | FightingIcon | —— | —— |
| `close-color` | 自定义关闭状态背景色 | string | —— | —— |
| `active-color` | 自定义开启状态背景色 | string | —— | —— |
@@ -249,6 +249,10 @@ import type { SwitchInstance, SwitchProps } from 'fighting-design'
+
+
+
+