Skip to content

Commit d2f3b67

Browse files
committed
表单优化
1 parent 5bc5c7b commit d2f3b67

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

src/test/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ myProps: #自定义的属性和值
1313
key1: value1
1414
key2: value2
1515
server:
16-
port: 8081
16+
port: 8082

src/test/resources/static/form/switch.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,38 @@
1111

1212
<v-app id="app" :data="data">
1313

14+
<v-box title="开关">
15+
<v-form-item label="开关">
16+
<v-switch ref="a1" v-model="bind_value1"></v-switch>
17+
</v-form-item>
1418

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>
1546

1647
</v-app>
1748

0 commit comments

Comments
 (0)