mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
修复ts报错
This commit is contained in:
parent
1b3033d73d
commit
6f1ccef6f1
@ -124,7 +124,7 @@ export interface ThemeProps {
|
||||
}
|
||||
|
||||
export let defaultTheme: string = 'default';
|
||||
export const ThemeContext = React.createContext(undefined);
|
||||
export const ThemeContext = React.createContext('');
|
||||
|
||||
export function themeable<
|
||||
T extends React.ComponentType<React.ComponentProps<T> & ThemeProps> & {
|
||||
|
Loading…
Reference in New Issue
Block a user