Browse Source
docs(select): Make size demo check the default value (#40536)
Co-authored-by: Yuiai01 <dujiaqi@kezaihui.com>
pull/40541/head
JiaQi
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
9 additions and
7 deletions
-
components/select/__tests__/__snapshots__/demo-extend.test.ts.snap
-
components/select/__tests__/__snapshots__/demo.test.ts.snap
-
components/select/demo/size.tsx
|
|
@ -6076,15 +6076,16 @@ Array [ |
|
|
|
</span> |
|
|
|
</label> |
|
|
|
<label |
|
|
|
class="ant-radio-button-wrapper" |
|
|
|
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" |
|
|
|
> |
|
|
|
<span |
|
|
|
class="ant-radio-button" |
|
|
|
class="ant-radio-button ant-radio-button-checked" |
|
|
|
> |
|
|
|
<input |
|
|
|
checked="" |
|
|
|
class="ant-radio-button-input" |
|
|
|
type="radio" |
|
|
|
value="default" |
|
|
|
value="middle" |
|
|
|
/> |
|
|
|
<span |
|
|
|
class="ant-radio-button-inner" |
|
|
|
|
|
@ -2160,15 +2160,16 @@ Array [ |
|
|
|
</span> |
|
|
|
</label> |
|
|
|
<label |
|
|
|
class="ant-radio-button-wrapper" |
|
|
|
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked" |
|
|
|
> |
|
|
|
<span |
|
|
|
class="ant-radio-button" |
|
|
|
class="ant-radio-button ant-radio-button-checked" |
|
|
|
> |
|
|
|
<input |
|
|
|
checked="" |
|
|
|
class="ant-radio-button-input" |
|
|
|
type="radio" |
|
|
|
value="default" |
|
|
|
value="middle" |
|
|
|
/> |
|
|
|
<span |
|
|
|
class="ant-radio-button-inner" |
|
|
|
|
|
@ -27,7 +27,7 @@ const App: React.FC = () => { |
|
|
|
<> |
|
|
|
<Radio.Group value={size} onChange={handleSizeChange}> |
|
|
|
<Radio.Button value="large">Large</Radio.Button> |
|
|
|
<Radio.Button value="default">Default</Radio.Button> |
|
|
|
<Radio.Button value="middle">Default</Radio.Button> |
|
|
|
<Radio.Button value="small">Small</Radio.Button> |
|
|
|
</Radio.Group> |
|
|
|
<br /> |
|
|
|