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
parent
commit
121036348a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      components/select/__tests__/__snapshots__/demo-extend.test.ts.snap
  2. 7
      components/select/__tests__/__snapshots__/demo.test.ts.snap
  3. 2
      components/select/demo/size.tsx

7
components/select/__tests__/__snapshots__/demo-extend.test.ts.snap

@ -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"

7
components/select/__tests__/__snapshots__/demo.test.ts.snap

@ -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"

2
components/select/demo/size.tsx

@ -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 />

Loading…
Cancel
Save