/** * @file 角标组件 */ import React from 'react'; import hoistNonReactStatic from 'hoist-non-react-statics'; import { ClassNamesFn } from 'amis-core'; /** * Badge 角标。 * 文档:https://baidu.gitee.io/amis/docs/components/badge */ export interface BadgeObject { className?: string; /** * 文本内容 */ text?: string | number; /** * 大小 */ size?: number; /** * 角标类型 */ mode?: 'text' | 'dot' | 'ribbon'; /** * 角标位置,相对于position的位置进行偏移 */ offset?: [number | string, number | string]; /** * 角标位置 */ position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'; /** * 封顶的数字值 */ overflowCount?: number; /** * 动态控制是否显示 */ visibleOn?: string; /** * 是否显示动画 */ animation?: boolean; /** * 角标的自定义样式 */ style?: { [propName: string]: any; }; /** * 提示类型 */ level?: 'info' | 'warning' | 'success' | 'danger' | string; } export interface BadgeProps { badge?: BadgeObject; classnames: ClassNamesFn; data?: any; } export declare class Badge extends React.Component { static propsList: Array; constructor(props: BadgeProps); renderBadge(text: any, size: number, position: any, offsetStyle: any, sizeStyle: any, animationElement: any): JSX.Element | null; render(): React.ReactNode; } export declare function withBadge

(Component: React.ComponentType

): import("react").ComponentType & hoistNonReactStatic.NonReactStatics, {}>;