test-nut-ui
Version:
<p align="center"> <img alt="logo" src="https://img11.360buyimg.com/imagetools/jfs/t1/211965/25/7152/22022/61b16785E433119bb/aa41d7a9f7e823f3.png" width="150" style="margin-bottom: 10px;"> </p>
24 lines (23 loc) • 801 B
TypeScript
import React, { FunctionComponent } from 'react';
import { BaseLang } from '../../locales/base';
import type { NutCSSVariables } from './types';
export interface ConfigProviderProps {
/**
* 设置多语言包
* @default zhCN
*/
locale: BaseLang
/**
* 设置主题
* @default -
*/
theme?: Record<string | NutCSSVariables, string>
[key: string]: any;
}
export declare const defaultConfigRef: {
current: ConfigProviderProps;
};
export declare const setDefaultConfig: (config: ConfigProviderProps) => void;
export declare const getDefaultConfig: () => ConfigProviderProps;
export declare const useConfig: () => ConfigProviderProps;
export declare const ConfigProvider: FunctionComponent<Partial<ConfigProviderProps> & React.HTMLAttributes<HTMLDivElement>>;