Skip to content

Commit 0389bfc

Browse files
committed
chore(demo): radio group demo
1 parent c528eea commit 0389bfc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

example/pages/radio.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77
<p>selected value: {{selected2}}</p>
88
<cube-radio-group v-model="selected3" :options="options3" :horizontal="true" />
99
<p>selected value: {{selected3}}</p>
10-
<cube-radio-group>
10+
<cube-radio-group v-model="selected4">
1111
<cube-radio
1212
v-for="(option, index) in options4"
1313
:key="index"
14-
:option="option"
15-
v-model="selected4">
16-
<img :src="option.src" />
14+
:option="option">
15+
<img :src="option.src">
1716
</cube-radio>
1817
</cube-radio-group>
1918
<p>selected img: {{selected4}}</p>

0 commit comments

Comments
 (0)