test-nut-ui
Version:
<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>
36 lines (35 loc) • 842 B
TypeScript
import { FunctionComponent, ReactNode } from 'react';
import { BasicComponent } from '../../utils/typings';
export interface BadgeProps extends BasicComponent {
/**
* 显示的内容,支持数字、字符和自定义内容
* @default -
*/
value: ReactNode
/**
* 是否为小点
* @default false
*/
dot: boolean
/**
* value 为数值时,最大值
* @default 99
*/
max: number
/**
* 上下偏移量,支持单位设置,可设置为:5 等
* @default 0
*/
top: string
/**
* 左右偏移量,支持单位设置,可设置为:5 等
* @default 0
*/
right: string
/**
* 徽标背景颜色,默认值为当前主题色
* @default -
*/
color: string
}
export declare const Badge: FunctionComponent<Partial<BadgeProps>>;