mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
radio components
This commit is contained in:
11
packages/radio/src/radio-group.vue
Normal file
11
packages/radio/src/radio-group.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div class="o2-radio-group">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
|
||||
};
|
||||
</script>
|
@@ -1,11 +1,28 @@
|
||||
<template>
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<o2-cell
|
||||
class="o2-radio"
|
||||
:class="{
|
||||
'is-disabled': disabled
|
||||
}">
|
||||
</o2-cell>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import O2Cell from 'packages/cell';
|
||||
|
||||
export default {
|
||||
name: 'o2-radio'
|
||||
name: 'o2-radio',
|
||||
|
||||
components: {
|
||||
O2Cell
|
||||
},
|
||||
|
||||
props: {
|
||||
disabled: Boolean,
|
||||
value: {}
|
||||
},
|
||||
|
||||
created() {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user