UNPKG

@ucloud-fe/react-components

Version:
51 lines (50 loc) 1.53 kB
export default Icon; declare class Icon extends React.PureComponent<any, any, any> { static propTypes: { /** @ignore */ children: PropTypes.Requireable<PropTypes.ReactNodeLike>; /** * 自定义 icon */ icon: PropTypes.Requireable<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>; /** 同 Icon 组件 prefix */ prefix: PropTypes.Requireable<string>; /** * 样式风格 */ styleType: PropTypes.Requireable<string>; /** * icon 大小 */ iconSize: PropTypes.Requireable<string>; /** * 是否开启border样式 */ border: PropTypes.Requireable<boolean>; /** * border 类型 */ borderType: PropTypes.Requireable<string>; /** * 自定义样式 */ customStyle: PropTypes.Requireable<PropTypes.InferProps<{ /** 字色/图标色 */ color: PropTypes.Requireable<string>; /** 边框色 */ borderColor: PropTypes.Requireable<string>; /** 背景色 */ background: PropTypes.Requireable<string>; }>>; }; static defaultProps: { borderType: string; iconSize: string; border: boolean; }; constructor(props: any); constructor(props: any, context: any); render(): JSX.Element; } import React from "react"; import PropTypes from "prop-types";