Skip to content

Commit 254c413

Browse files
author
liyuan-meng
committed
✨[Select]修改Select最小宽
1 parent 97c42ff commit 254c413

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/select/demos/sizeSelect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function SelectDemo() {
6767
))}
6868
</Select>
6969
<Select
70-
style={{ width: 65 }}
70+
style={{ width: 65, minWidth: 65 }}
7171
allowClear
7272
size={size}
7373
placeholder=""

src/components/select/index.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
@line-height: 18px;
1414
@max-height: 280px;
15-
@min-width: 50px;
15+
@min-width: 100px;
1616
@max-width: 400px;
1717
@text-icon-gap: 20px;
1818
@search-input-height: 25px;
@@ -461,7 +461,6 @@
461461
box-sizing: @box-sizing;
462462
padding: 0;
463463
margin: 0;
464-
min-width: @min-width;
465464
width: 100%;
466465
cursor: pointer;
467466

0 commit comments

Comments
 (0)