From 89ffb0ec448bbd204a866255f0f37cf8f99acb29 Mon Sep 17 00:00:00 2001 From: shifeng1993 Date: Sun, 17 Nov 2024 18:22:25 +0800 Subject: [PATCH] feat: switch support cssvar --- components/switch/demo/basic.vue | 3 ++- components/switch/demo/size.vue | 2 +- components/switch/demo/text.vue | 4 ++-- components/switch/style/index.ts | 18 ++++++++++++------ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/components/switch/demo/basic.vue b/components/switch/demo/basic.vue index af7d01376c..076d7b4ea1 100644 --- a/components/switch/demo/basic.vue +++ b/components/switch/demo/basic.vue @@ -19,7 +19,8 @@ The most basic usage. + diff --git a/components/switch/demo/size.vue b/components/switch/demo/size.vue index 7bc9687582..145345d71b 100644 --- a/components/switch/demo/size.vue +++ b/components/switch/demo/size.vue @@ -27,6 +27,6 @@ title: import { reactive } from 'vue'; const state = reactive({ checked1: true, - checked2: false, + checked2: true, }); diff --git a/components/switch/demo/text.vue b/components/switch/demo/text.vue index e1e8a64504..5173471343 100644 --- a/components/switch/demo/text.vue +++ b/components/switch/demo/text.vue @@ -18,7 +18,7 @@ With text and icon.