mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
radio component
This commit is contained in:
27
docs/examples/radio.vue
Normal file
27
docs/examples/radio.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<div class="page-switch">
|
||||
<h1 class="page-title">Radio</h1>
|
||||
|
||||
<h2 class="page-sub-title">基础用法</h2>
|
||||
<z-radio-group v-model="radio1">
|
||||
<z-radio name="1">单选框1</z-radio>
|
||||
<z-radio name="2">单选框2</z-radio>
|
||||
</z-radio-group>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
radio1: '1'
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
radio1(val) {
|
||||
console.log(val);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user