Browse Source
fix: Select width getting smaller when search (#41646)
* chore: upgrade rc-select
* demo: update select size demo
* demo: update select size demo
* fix rc-select version
* fix rc-select version
* demo: fix Select demo
pull/41845/head
afc163
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with
12 additions and
10 deletions
-
components/select/__tests__/__snapshots__/demo-extend.test.ts.snap
-
components/select/__tests__/__snapshots__/demo.test.ts.snap
-
components/select/demo/size.md
-
components/select/style/single.less
-
package.json
|
|
@ -5968,15 +5968,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" |
|
|
|
|
|
@ -2074,15 +2074,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" |
|
|
|
|
|
@ -42,7 +42,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 /> |
|
|
|
|
|
@ -24,7 +24,7 @@ |
|
|
|
.@{select-prefix-cls}-selection-placeholder { |
|
|
|
padding: 0; |
|
|
|
line-height: @select-height-without-border; |
|
|
|
transition: all 0.3s; |
|
|
|
transition: all .3s, visibility 0s; |
|
|
|
} |
|
|
|
|
|
|
|
.@{select-prefix-cls}-selection-item { |
|
|
|
|
|
@ -144,7 +144,7 @@ |
|
|
|
"rc-rate": "~2.9.0", |
|
|
|
"rc-resize-observer": "^1.2.0", |
|
|
|
"rc-segmented": "~2.1.0", |
|
|
|
"rc-select": "~14.1.13", |
|
|
|
"rc-select": "~14.1.17", |
|
|
|
"rc-slider": "~10.0.0", |
|
|
|
"rc-steps": "~5.0.0-alpha.2", |
|
|
|
"rc-switch": "~3.2.0", |
|
|
@ -166,7 +166,7 @@ |
|
|
|
"@docsearch/css": "^3.0.0", |
|
|
|
"@qixian.cs/github-contributors-list": "^1.0.3", |
|
|
|
"@size-limit/file": "^8.0.0", |
|
|
|
"@stackblitz/sdk": "^1.3.0", |
|
|
|
"@stackblitz/sdk": "~1.8.2", |
|
|
|
"@testing-library/dom": "^9.0.0", |
|
|
|
"@testing-library/jest-dom": "^5.16.3", |
|
|
|
"@testing-library/react": "^12.0.0", |
|
|
|