File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -17,4 +17,6 @@ export default {
17
17
'你可以设置 activeValue 和 inactiveValue 属性, 它们接受 Boolean、String 或 Number 类型的值。' ,
18
18
cswitch07010 : '禁用状态' ,
19
19
cswitch07020 : '设置disabled属性,接受一个Boolean,设置true即可禁用。' ,
20
+ cswitch08010 : '加载状态' ,
21
+ cswitch08020 : '设置loading属性,接受一个Boolean,设置true即加载中状态。' ,
20
22
} ;
Original file line number Diff line number Diff line change 11
11
12
12
let value3 = ' 100' ;
13
13
let value4 = true ;
14
+ let value5 = true ;
14
15
</script >
15
16
16
17
<h1 >{$langFn (' cswitch01010' )}</h1 >
158
159
<SvelSwitch class =" ml-2" />
159
160
</Example >
160
161
162
+ <h2 >{$langFn (' cswitch08010' )}</h2 >
163
+ <p >{$langFn (' cswitch08020' )}</p >
164
+
165
+ <Example
166
+ code ={`
167
+ <SvelSwitch bind:value={value5} loading />
168
+ <SvelSwitch class="ml-2" loading />
169
+ ` }
170
+ >
171
+ <SvelSwitch bind:value ={value5 } loading />
172
+ <SvelSwitch class =" ml-2" loading />
173
+ </Example >
174
+
161
175
<style >
162
176
</style >
You can’t perform that action at this time.
0 commit comments