From e0172caee4f58609908e8b0d6057291e3f69e075 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=B2=E8=80=98=E2=84=A2?= Date: Thu, 17 Mar 2016 11:10:58 +0800 Subject: [PATCH] feat(checkbox group): checkbox group support disable specified item. --- components/checkbox/Group.jsx | 2 +- components/checkbox/demo/group.md | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/components/checkbox/Group.jsx b/components/checkbox/Group.jsx index 02995db992..abfff666c9 100644 --- a/components/checkbox/Group.jsx +++ b/components/checkbox/Group.jsx @@ -63,7 +63,7 @@ export default React.createClass({
{ options.map(option => - diff --git a/components/checkbox/demo/group.md b/components/checkbox/demo/group.md index eb0d77ca03..c853508fb9 100644 --- a/components/checkbox/demo/group.md +++ b/components/checkbox/demo/group.md @@ -25,12 +25,19 @@ const options = [{ label: '橘', value: 'Orange', }]; +const optionsWithDisabled = [ + { label: '苹果', value: 'Apple' }, + { label: '梨', value: 'Pear' }, + { label: '橘', value: 'Orange', disabled: false }, +]; ReactDOM.render(

+
+
, mountNode); ````