UNPKG

@ucloud-pccl/react-components

Version:
48 lines (47 loc) 1.48 kB
/** * @deprecated * 后续会移除,请使用 Badge 替代 */ export class Bubble extends React.PureComponent<any, any, any> { static propTypes: { /** @ignore */ children: PropTypes.Requireable<PropTypes.ReactNodeLike>; /** 泡泡内容 */ bubble: PropTypes.Requireable<PropTypes.ReactNodeLike>; /** 内置样式风格 */ styleType: PropTypes.Validator<string>; /** 尺寸 */ size: PropTypes.Requireable<string>; /** 自定义样式 */ customStyle: PropTypes.Requireable<PropTypes.InferProps<{ /** 泡泡字色 */ bubbleColor: PropTypes.Requireable<string>; /** 泡泡的背景色 */ bubbleBackground: PropTypes.Requireable<string>; }>>; /** * @ignore * 自定义冒泡层定位的目标元素 */ getBubbleTarget: PropTypes.Requireable<(...args: any[]) => any>; /** 自定义偏移量 */ offset: PropTypes.Requireable<any[]>; }; static defaultProps: { offset: number[]; size: string; }; constructor(props: any); constructor(props: any, context: any); componentDidMount(): void; render(): React.JSX.Element; } export namespace Bubble { export { StyleType }; export { Size }; } export default Bubble; import React from "react"; import PropTypes from "prop-types"; declare const StyleType: string[]; declare const Size: string[];