mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-25 08:43:57 +08:00
7d798e3f34
Co-authored-by: chinasoft.jt.li <lijintao056@chinasoftinc.com>
21 lines
575 B
Markdown
21 lines
575 B
Markdown
## zh-CN
|
|
|
|
结合 [Tooltip](/components/tooltip-cn) 组件,实现一个数值输入框,方便内容超长时的全量展现。
|
|
|
|
## en-US
|
|
|
|
You can use the Input in conjunction with [Tooltip](/components/tooltip) component to create a Numeric Input, which can provide a good experience for extra-long content display.
|
|
|
|
```css
|
|
/* to prevent the arrow overflow the popup container,
|
|
or the height is not enough when content is empty */
|
|
.numeric-input .ant-tooltip-inner {
|
|
min-width: 32px;
|
|
min-height: 37px;
|
|
}
|
|
|
|
.numeric-input .numeric-input-title {
|
|
font-size: 14px;
|
|
}
|
|
```
|