UNPKG

cjd-parkball

Version:

> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用

39 lines (31 loc) 602 B
--- category: 2 title: 自定义标题 title_en: Title --- zh-CN 设置鼠标放在状态点上时显示的文字 en-US The badge will display `title` when hovered over, instead of `count`. ````jsx import { Badge } from 'parkball'; ReactDOM.render( <div> <Badge count={5} title="Custom hover text"> <a href="#" className="head-example" /> </Badge> </div>, mountNode); ```` <style> .ant-badge:not(.ant-badge-not-a-wrapper) { margin-right: 20px; } .head-example { width: 42px; height: 42px; border-radius: 4px; background: #eee; display: inline-block; } </style>