From c9443e038bc0c2f8eff336f74097e563ab4f8509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=9C=E5=86=BB=E6=A9=99?= Date: Sun, 5 Jan 2025 16:55:25 +0800 Subject: [PATCH] feat: switch support cssvar (#7940) --- 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 af7d01376..076d7b4ea 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 7bc968758..145345d71 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 e1e8a6450..517347134 100644 --- a/components/switch/demo/text.vue +++ b/components/switch/demo/text.vue @@ -18,7 +18,7 @@ With text and icon.