UNPKG

zp-bee

Version:

zp-bee,是一款基于 Dumi,由 React + TypeScript 开发的组件库 🎉。

35 lines (34 loc) 1.36 kB
import React from 'react'; import { Locale } from '../bee-locale'; import { RenderEmptyHandler } from './renderEmpty'; import { ConfigConsumer, ConfigContext, CSPConfig, DirectionType, ConfigConsumerProps } from './context'; export { RenderEmptyHandler, ConfigContext, ConfigConsumer, CSPConfig, DirectionType, ConfigConsumerProps, }; export interface ConfigProviderProps { getTargetContainer?: () => HTMLElement; getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement; prefixCls?: string; iconPrefixCls?: string; children?: React.ReactNode; renderEmpty?: RenderEmptyHandler; autoInsertSpaceInButton?: boolean; input?: { autoComplete?: string; }; locale?: Locale; pageHeader?: { ghost: boolean; }; virtual?: boolean; dropdownMatchSelectWidth?: boolean; } export declare const defaultPrefixCls = "bee"; declare const setGlobalConfig: (params: Pick<ConfigProviderProps, 'prefixCls'>) => void; export declare const globalConfig: () => { getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string; getRootPrefixCls: (rootPrefixCls?: string, customizePrefixCls?: string) => string; }; declare const ConfigProvider: React.FC<ConfigProviderProps> & { ConfigContext: typeof ConfigContext; config: typeof setGlobalConfig; }; export default ConfigProvider;