File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,4 @@ myProps: #自定义的属性和值
13
13
key1 : value1
14
14
key2 : value2
15
15
server :
16
- port : 8081
16
+ port : 8082
Original file line number Diff line number Diff line change 11
11
12
12
< v-app id ="app " :data ="data ">
13
13
14
+ < v-box title ="开关 ">
15
+ < v-form-item label ="开关 ">
16
+ < v-switch ref ="a1 " v-model ="bind_value1 "> </ v-switch >
17
+ </ v-form-item >
14
18
19
+ < v-form-item label ="开关 ">
20
+ < v-switch ref ="a2 " :items ="items " v-model ="bind_value2 "> </ v-switch >
21
+ </ v-form-item >
22
+
23
+ < v-form-item label ="开关3 ">
24
+ < v-switch ref ="a3 " :items ="items2 " v-model ="bind_value3 "> </ v-switch >
25
+ </ v-form-item >
26
+
27
+ < v-form-item label ="开关3 ">
28
+ < v-switch ref ="a4 " :items ="items2 " v-model ="bind_value3 "> </ v-switch >
29
+ </ v-form-item >
30
+
31
+ < br >
32
+ < v-row >
33
+ < v-col >
34
+ < v-button @click ="set_value "> set_value</ v-button >
35
+ < v-button @click ="reset "> reset</ v-button >
36
+ < v-button @click ="queryValues "> get_value</ v-button >
37
+ < br >
38
+ < br >
39
+ bind_value1: {{bind_value1}}< br >
40
+ bind_value2: {{bind_value2}}< br >
41
+ bind_value3: {{bind_value3}}< br >
42
+ all_values: {{all_values}}< br >
43
+ </ v-col >
44
+ </ v-row >
45
+ </ v-box >
15
46
16
47
</ v-app >
17
48
You can’t perform that action at this time.
0 commit comments