@ucloud-pccl/react-components
Version:
UCloud pccl react components
22 lines (21 loc) • 560 B
TypeScript
export default ThemeProvider;
declare class ThemeProvider extends React.Component<any, any, any> {
static propTypes: {
/**
* 自定义主题
*/
theme: PropTypes.Validator<object>;
};
constructor(props: any);
cache: string;
state: {
theme: any;
};
uid: string;
getMergedTheme: (theme: any) => any;
componentWillReceiveProps(nextProps: any): void;
componentWillUnmount: () => void;
render(): React.JSX.Element;
}
import React from "react";
import PropTypes from "prop-types";