ant-design/components/input/demo/tooltip.md

21 lines
575 B
Markdown
Raw Normal View History

## 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.
2019-05-07 14:57:32 +08:00
```css
2017-01-05 15:35:43 +08:00
/* 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;
}
2019-05-07 14:57:32 +08:00
```