Skip to content

Commit 05b6bb6

Browse files
author
liyuan-meng
committed
🐛[InputNumber]修改样式,解决 addAfter设置文本后,文本折行的问题
1 parent f599c0f commit 05b6bb6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/input-number/demos/complex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function InputDemo() {
1919
<h5>后置</h5>
2020
<div style={{ display: 'flex', gap: 10, flexWrap: 'wrap' }}>
2121
<InputNumber style={{ width: 200 }} placeholder="请输入" size="large" noStep addonAfter="" />
22-
<InputNumber style={{ width: 200 }} placeholder="请输入" noStep addonAfter="" />
22+
<InputNumber style={{ width: 200 }} placeholder="请输入" noStep addonAfter="积分/" />
2323
<InputNumber style={{ width: 200 }} placeholder="请输入" size="small" noStep addonAfter="" />
2424
</div>
2525
<h5>前置</h5>

src/components/input-number/index.less

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@
258258
}
259259

260260
.@{input-number-prefix-cls} {
261+
flex: 1;
261262
border-radius: 0 2px 2px 0;
262263
}
263264
}
@@ -269,6 +270,7 @@
269270
}
270271

271272
.@{input-number-prefix-cls} {
273+
flex: 1;
272274
border-radius: 2px 0 0 2px;
273275
}
274276
}

0 commit comments

Comments
 (0)