@@ -76,23 +76,27 @@ export default defineComponent({
7676``` vue
7777<template>
7878 <div style="display: flex;">
79- <d-switch v-model="checkedSmContent" size="sm">
80- <template #checkedContent>开</template>
81- <template #uncheckedContent>关</template>
82- </d-switch>
8379 <d-switch class="mr-1" v-model="checkedColor" color="#FECC55"></d-switch>
84- <d-switch class="mr-1" v-model="checkedContent">
85- <template #checkedContent>开</template>
86- <template #uncheckedContent>关</template>
87- </d-switch>
8880 <d-switch class="mr-1" color="#50D4AB" v-model="checkedIcon">
8981 <template #checkedContent>
9082 <i class="icon-right"></i>
9183 </template>
9284 <template #uncheckedContent>
9385 <i class="icon-error"></i>
9486 </template>
95- </d-switch>
87+ </d-switch>
88+ <d-switch v-model="checkedSmContent" size="sm">
89+ <template #checkedContent>开</template>
90+ <template #uncheckedContent>关</template>
91+ </d-switch>
92+ <d-switch v-model="checkedContent">
93+ <template #checkedContent>开</template>
94+ <template #uncheckedContent>关</template>
95+ </d-switch>
96+ <d-switch v-model="checkedLgContent" size="lg">
97+ <template #checkedContent>开</template>
98+ <template #uncheckedContent>关</template>
99+ </d-switch>
96100 </div>
97101
98102</template>
@@ -104,11 +108,13 @@ export default defineComponent({
104108 const checkedColor = ref(true);
105109 const checkedContent = ref(false);
106110 const checkedSmContent = ref(false);
111+ const checkedLgContent = ref(false);
107112 const checkedIcon = ref(true);
108113 return {
109114 checkedColor,
110115 checkedContent,
111116 checkedSmContent,
117+ checkedLgContent,
112118 checkedIcon,
113119 };
114120 },
0 commit comments