From aa6c0a19c8e91f4a7231eb9de2011beaaf81b5e9 Mon Sep 17 00:00:00 2001 From: xrkffgg Date: Thu, 11 Jun 2020 13:21:54 +0800 Subject: [PATCH] feat: add radio `optionType` api to set radio option type (#24809) * feat: radio component * docs: update md * fix: snap * test components * fix: use optionType * fix name * add warning * fix --- .../__tests__/__snapshots__/demo.test.js.snap | 97 ++++++++++++++++--- components/radio/demo/radiogroup-options.md | 33 +++++-- components/radio/group.tsx | 6 +- components/radio/index.en-US.md | 21 ++-- components/radio/index.zh-CN.md | 21 ++-- components/radio/interface.tsx | 2 + components/radio/radio.tsx | 5 + 7 files changed, 143 insertions(+), 42 deletions(-) diff --git a/components/radio/__tests__/__snapshots__/demo.test.js.snap b/components/radio/__tests__/__snapshots__/demo.test.js.snap index 3aa3dbe8a9..77d5410566 100644 --- a/components/radio/__tests__/__snapshots__/demo.test.js.snap +++ b/components/radio/__tests__/__snapshots__/demo.test.js.snap @@ -1110,6 +1110,7 @@ Array [ , +
,
@@ -1153,13 +1154,14 @@ Array [
, +
, +
,
+
, +
, +
, +
+ + +