From 8f474da314fbf06fbe9c8b1f19e26d7d17c85688 Mon Sep 17 00:00:00 2001 From: cookfront Date: Wed, 15 Feb 2017 09:58:19 +0800 Subject: [PATCH] radio components --- docs/examples/radio.md | 24 ++++++++++++++++++++++++ packages/radio/src/radio-group.vue | 11 +++++++++++ packages/radio/src/radio.vue | 25 +++++++++++++++++++++---- 3 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 packages/radio/src/radio-group.vue diff --git a/docs/examples/radio.md b/docs/examples/radio.md index 75a86f5f0..47fdbd35f 100644 --- a/docs/examples/radio.md +++ b/docs/examples/radio.md @@ -1 +1,25 @@ + + ## Radio组件 + +### 基础用法 + +:::demo +```html + +``` +::: + +### API + +| 参数 | 说明 | 类型 | 默认值 | 可选值 | +|-----------|-----------|-----------|-------------|-------------| +| disabled | 是否禁用单选框 | Boolean | false | | diff --git a/packages/radio/src/radio-group.vue b/packages/radio/src/radio-group.vue new file mode 100644 index 000000000..1e8417089 --- /dev/null +++ b/packages/radio/src/radio-group.vue @@ -0,0 +1,11 @@ + + + diff --git a/packages/radio/src/radio.vue b/packages/radio/src/radio.vue index 789b41ee4..642e1e5a6 100644 --- a/packages/radio/src/radio.vue +++ b/packages/radio/src/radio.vue @@ -1,11 +1,28 @@