File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <script >
2+ export default {
3+ data () {
4+ return {
5+ radio: ' 1'
6+ };
7+ }
8+ };
9+ </script >
10+
111## Radio组件
12+
13+ ### 基础用法
14+
15+ ::: demo
16+ ``` html
17+ <o2-radio v-model =" radio" ></o2-radio >
18+ ```
19+ :::
20+
21+ ### API
22+
23+ | 参数 | 说明 | 类型 | 默认值 | 可选值 |
24+ | -----------| -----------| -----------| -------------| -------------|
25+ | disabled | 是否禁用单选框 | Boolean | false | |
Original file line number Diff line number Diff line change 1+ <template >
2+ <div class =" o2-radio-group" >
3+ <slot ></slot >
4+ </div >
5+ </template >
6+
7+ <script >
8+ export default {
9+
10+ };
11+ </script >
Original file line number Diff line number Diff line change 11<template >
2- <div >
3-
4- </div >
2+ <o2-cell
3+ class =" o2-radio"
4+ :class =" {
5+ 'is-disabled': disabled
6+ }" >
7+ </o2-cell >
58</template >
69
710<script >
11+ import O2Cell from ' packages/cell' ;
12+
813export default {
9- name: ' o2-radio'
14+ name: ' o2-radio' ,
15+
16+ components: {
17+ O2Cell
18+ },
19+
20+ props: {
21+ disabled: Boolean ,
22+ value: {}
23+ },
24+
25+ created () {
26+ }
1027};
1128 </script >
You can’t perform that action at this time.
0 commit comments