Benjy Cui
9 years ago
2 changed files with 19 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
# 格式化 `Tooltip` 内容 |
|||
|
|||
- order: 5 |
|||
|
|||
使用 `tipFormatter` 可以格式化 `Tooltip` 的内容。 |
|||
|
|||
--- |
|||
|
|||
````jsx |
|||
import { Slider } from 'antd'; |
|||
|
|||
function formatter(value) { |
|||
return '$' + value; |
|||
} |
|||
|
|||
ReactDOM.render(<Slider tipFormatter={formatter} /> |
|||
, document.getElementById('components-slider-demo-tip-formatter')); |
|||
```` |
Loading…
Reference in new issue