2023-05-26 16:42:26 +08:00
|
|
|
|
import * as React from 'react';
|
2023-09-11 17:28:04 +08:00
|
|
|
|
|
|
|
|
|
import type { WarningContextProps } from '../_util/warning';
|
|
|
|
|
import type { ShowWaveEffect } from '../_util/wave/interface';
|
2024-01-30 16:47:42 +08:00
|
|
|
|
import type { AlertProps } from '../alert';
|
2023-06-29 16:43:11 +08:00
|
|
|
|
import type { BadgeProps } from '../badge';
|
2023-05-26 16:42:26 +08:00
|
|
|
|
import type { ButtonProps } from '../button';
|
2024-01-30 16:47:42 +08:00
|
|
|
|
import type { CardProps } from '../card';
|
2024-02-20 14:02:43 +08:00
|
|
|
|
import type { CollapseProps } from '../collapse';
|
2023-10-24 00:57:38 +08:00
|
|
|
|
import type { DrawerProps } from '../drawer';
|
2023-09-14 17:04:05 +08:00
|
|
|
|
import type { FlexProps } from '../flex/interface';
|
2024-03-19 17:14:22 +08:00
|
|
|
|
import type { FloatButtonGroupProps } from '../float-button/interface';
|
2024-01-26 13:53:52 +08:00
|
|
|
|
import type { FormProps } from '../form/Form';
|
2024-02-28 09:54:48 +08:00
|
|
|
|
import type { InputProps, TextAreaProps } from '../input';
|
2022-12-09 15:04:08 +08:00
|
|
|
|
import type { Locale } from '../locale';
|
2024-02-26 09:55:08 +08:00
|
|
|
|
import type { MenuProps } from '../menu';
|
2023-10-24 00:57:38 +08:00
|
|
|
|
import type { ModalProps } from '../modal';
|
2024-01-30 20:13:22 +08:00
|
|
|
|
import type { ArgsProps } from '../notification/interface';
|
2024-01-26 13:53:52 +08:00
|
|
|
|
import type { PaginationProps } from '../pagination';
|
|
|
|
|
import type { SelectProps } from '../select';
|
2023-06-02 15:03:29 +08:00
|
|
|
|
import type { SpaceProps } from '../space';
|
2024-01-30 13:57:49 +08:00
|
|
|
|
import type { TableProps } from '../table';
|
2023-09-11 17:28:04 +08:00
|
|
|
|
import type { TabsProps } from '../tabs';
|
2024-01-31 10:07:16 +08:00
|
|
|
|
import type { TagProps } from '../tag';
|
2023-07-27 11:31:38 +08:00
|
|
|
|
import type { AliasToken, MappingAlgorithm, OverrideToken } from '../theme/interface';
|
2024-01-29 11:01:30 +08:00
|
|
|
|
import type { TourProps } from '../tour/interface';
|
2024-02-02 10:48:05 +08:00
|
|
|
|
import type { TransferProps } from '../transfer';
|
2023-05-26 16:42:26 +08:00
|
|
|
|
import type { RenderEmptyHandler } from './defaultRenderEmpty';
|
2019-10-21 12:01:33 +08:00
|
|
|
|
|
2022-02-18 14:17:32 +08:00
|
|
|
|
export const defaultIconPrefixCls = 'anticon';
|
|
|
|
|
|
2021-09-01 10:56:50 +08:00
|
|
|
|
export interface Theme {
|
|
|
|
|
primaryColor?: string;
|
|
|
|
|
infoColor?: string;
|
|
|
|
|
successColor?: string;
|
|
|
|
|
processingColor?: string;
|
|
|
|
|
errorColor?: string;
|
|
|
|
|
warningColor?: string;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-21 12:01:33 +08:00
|
|
|
|
export interface CSPConfig {
|
|
|
|
|
nonce?: string;
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-03 16:22:18 +08:00
|
|
|
|
export type DirectionType = 'ltr' | 'rtl' | undefined;
|
|
|
|
|
|
2023-07-27 11:31:38 +08:00
|
|
|
|
type ComponentsConfig = {
|
|
|
|
|
[key in keyof OverrideToken]?: OverrideToken[key] & {
|
|
|
|
|
algorithm?: boolean | MappingAlgorithm | MappingAlgorithm[];
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-08-16 21:06:25 +08:00
|
|
|
|
|
2022-03-24 18:44:42 +08:00
|
|
|
|
export interface ThemeConfig {
|
2024-03-26 23:01:04 +08:00
|
|
|
|
/**
|
|
|
|
|
* @descCN 用于修改 Design Token。
|
|
|
|
|
* @descEN Modify Design Token.
|
|
|
|
|
*/
|
2022-09-15 21:26:04 +08:00
|
|
|
|
token?: Partial<AliasToken>;
|
2024-03-26 23:01:04 +08:00
|
|
|
|
/**
|
|
|
|
|
* @descCN 用于修改各个组件的 Component Token 以及覆盖该组件消费的 Alias Token。
|
|
|
|
|
* @descEN Modify Component Token and Alias Token applied to components.
|
|
|
|
|
*/
|
2023-07-27 11:31:38 +08:00
|
|
|
|
components?: ComponentsConfig;
|
2024-03-26 23:01:04 +08:00
|
|
|
|
/**
|
|
|
|
|
* @descCN 用于修改 Seed Token 到 Map Token 的算法。
|
|
|
|
|
* @descEN Modify the algorithms of theme.
|
|
|
|
|
* @default defaultAlgorithm
|
|
|
|
|
*/
|
2022-08-16 21:06:25 +08:00
|
|
|
|
algorithm?: MappingAlgorithm | MappingAlgorithm[];
|
2024-03-26 23:01:04 +08:00
|
|
|
|
/**
|
|
|
|
|
* @descCN 是否继承外层 `ConfigProvider` 中配置的主题。
|
|
|
|
|
* @descEN Whether to inherit the theme configured in the outer layer `ConfigProvider`.
|
|
|
|
|
* @default true
|
|
|
|
|
*/
|
2022-11-17 01:06:33 +08:00
|
|
|
|
inherit?: boolean;
|
2024-03-20 10:50:36 +08:00
|
|
|
|
/**
|
2024-03-26 23:01:04 +08:00
|
|
|
|
* @descCN 是否开启 `hashed` 属性。如果你的应用中只存在一个版本的 antd,你可以设置为 `false` 来进一步减小样式体积。
|
|
|
|
|
* @descEN Whether to enable the `hashed` attribute. If there is only one version of antd in your application, you can set `false` to reduce the bundle size.
|
|
|
|
|
* @default true
|
2024-04-24 22:32:50 +08:00
|
|
|
|
* @since 5.0.0
|
2024-03-20 10:50:36 +08:00
|
|
|
|
*/
|
|
|
|
|
hashed?: boolean;
|
|
|
|
|
/**
|
2024-03-26 23:01:04 +08:00
|
|
|
|
* @descCN 通过 `cssVar` 配置来开启 CSS 变量模式,这个配置会被继承。
|
|
|
|
|
* @descEN Enable CSS variable mode through `cssVar` configuration, This configuration will be inherited.
|
|
|
|
|
* @default false
|
|
|
|
|
* @since 5.12.0
|
2024-03-20 10:50:36 +08:00
|
|
|
|
*/
|
2023-11-10 10:02:46 +08:00
|
|
|
|
cssVar?:
|
|
|
|
|
| {
|
|
|
|
|
/**
|
2024-03-26 23:01:04 +08:00
|
|
|
|
* @descCN css 变量的前缀
|
|
|
|
|
* @descEN Prefix for css variable.
|
|
|
|
|
* @default ant
|
2023-11-10 10:02:46 +08:00
|
|
|
|
*/
|
|
|
|
|
prefix?: string;
|
|
|
|
|
/**
|
2024-03-26 23:01:04 +08:00
|
|
|
|
* @descCN 主题的唯一 key,版本低于 react@18 时需要手动设置。
|
|
|
|
|
* @descEN Unique key for theme, should be set manually < react@18.
|
2023-11-10 10:02:46 +08:00
|
|
|
|
*/
|
|
|
|
|
key?: string;
|
|
|
|
|
}
|
|
|
|
|
| boolean;
|
2022-03-24 18:44:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
2023-06-26 11:42:46 +08:00
|
|
|
|
export interface ComponentStyleConfig {
|
2023-05-26 16:42:26 +08:00
|
|
|
|
className?: string;
|
|
|
|
|
style?: React.CSSProperties;
|
2023-06-19 19:30:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
2024-01-30 13:57:49 +08:00
|
|
|
|
export interface TableConfig extends ComponentStyleConfig {
|
|
|
|
|
expandable?: {
|
|
|
|
|
expandIcon?: NonNullable<TableProps['expandable']>['expandIcon'];
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-01 17:43:00 +08:00
|
|
|
|
export interface ImageConfig extends ComponentStyleConfig {
|
|
|
|
|
preview?: Partial<Record<'closeIcon', React.ReactNode>>;
|
|
|
|
|
}
|
|
|
|
|
|
2024-02-20 14:02:43 +08:00
|
|
|
|
export type CollapseConfig = ComponentStyleConfig & Pick<CollapseProps, 'expandIcon'>;
|
|
|
|
|
|
2024-02-26 09:55:08 +08:00
|
|
|
|
export type MenuConfig = ComponentStyleConfig & Pick<MenuProps, 'expandIcon'>;
|
|
|
|
|
|
2024-01-29 11:01:30 +08:00
|
|
|
|
export type TourConfig = Pick<TourProps, 'closeIcon'>;
|
|
|
|
|
|
2024-01-30 14:42:46 +08:00
|
|
|
|
export type ModalConfig = ComponentStyleConfig &
|
2024-03-31 11:56:55 +08:00
|
|
|
|
Pick<ModalProps, 'classNames' | 'styles' | 'closeIcon' | 'closable'>;
|
2023-09-25 14:27:41 +08:00
|
|
|
|
|
2024-02-01 19:14:54 +08:00
|
|
|
|
export type TabsConfig = ComponentStyleConfig &
|
2024-02-05 11:45:24 +08:00
|
|
|
|
Pick<TabsProps, 'indicator' | 'indicatorSize' | 'moreIcon' | 'addIcon' | 'removeIcon'>;
|
2024-02-01 19:14:54 +08:00
|
|
|
|
|
2024-02-19 13:40:19 +08:00
|
|
|
|
export type AlertConfig = ComponentStyleConfig & Pick<AlertProps, 'closable' | 'closeIcon'>;
|
2024-01-30 16:47:42 +08:00
|
|
|
|
|
2024-01-26 13:53:52 +08:00
|
|
|
|
export type BadgeConfig = ComponentStyleConfig & Pick<BadgeProps, 'classNames' | 'styles'>;
|
2023-06-29 16:43:11 +08:00
|
|
|
|
|
2024-02-27 10:25:35 +08:00
|
|
|
|
export type InputConfig = ComponentStyleConfig &
|
|
|
|
|
Pick<InputProps, 'autoComplete' | 'classNames' | 'styles' | 'allowClear'>;
|
|
|
|
|
|
2024-02-28 09:54:48 +08:00
|
|
|
|
export type TextAreaConfig = ComponentStyleConfig &
|
|
|
|
|
Pick<TextAreaProps, 'autoComplete' | 'classNames' | 'styles' | 'allowClear'>;
|
|
|
|
|
|
2024-01-26 13:53:52 +08:00
|
|
|
|
export type ButtonConfig = ComponentStyleConfig & Pick<ButtonProps, 'classNames' | 'styles'>;
|
2023-05-26 16:42:26 +08:00
|
|
|
|
|
2024-01-30 20:13:22 +08:00
|
|
|
|
export type NotificationConfig = ComponentStyleConfig & Pick<ArgsProps, 'closeIcon'>;
|
|
|
|
|
|
2024-03-31 11:56:55 +08:00
|
|
|
|
export type TagConfig = ComponentStyleConfig & Pick<TagProps, 'closeIcon' | 'closable'>;
|
2024-01-31 10:07:16 +08:00
|
|
|
|
|
2024-02-28 11:53:01 +08:00
|
|
|
|
export type CardConfig = ComponentStyleConfig & Pick<CardProps, 'classNames' | 'styles'>;
|
2024-01-30 15:00:25 +08:00
|
|
|
|
|
2024-01-26 10:52:17 +08:00
|
|
|
|
export type DrawerConfig = ComponentStyleConfig &
|
2024-02-28 14:11:15 +08:00
|
|
|
|
Pick<DrawerProps, 'classNames' | 'styles' | 'closeIcon' | 'closable'>;
|
2023-09-25 20:37:37 +08:00
|
|
|
|
|
2024-01-26 13:53:52 +08:00
|
|
|
|
export type FlexConfig = ComponentStyleConfig & Pick<FlexProps, 'vertical'>;
|
2023-09-14 17:04:05 +08:00
|
|
|
|
|
2024-02-02 10:48:05 +08:00
|
|
|
|
export type TransferConfig = ComponentStyleConfig & Pick<TransferProps, 'selectionsIcon'>;
|
|
|
|
|
|
2024-02-28 11:53:01 +08:00
|
|
|
|
export type FormConfig = ComponentStyleConfig &
|
|
|
|
|
Pick<FormProps, 'requiredMark' | 'colon' | 'scrollToFirstError' | 'validateMessages'>;
|
|
|
|
|
|
2024-03-19 17:14:22 +08:00
|
|
|
|
export type FloatButtonGroupConfig = Pick<FloatButtonGroupProps, 'closeIcon'>;
|
|
|
|
|
|
2024-02-28 11:53:01 +08:00
|
|
|
|
export type PaginationConfig = ComponentStyleConfig & Pick<PaginationProps, 'showSizeChanger'>;
|
|
|
|
|
|
|
|
|
|
export type SelectConfig = ComponentStyleConfig & Pick<SelectProps, 'showSearch'>;
|
|
|
|
|
|
2024-02-28 13:29:43 +08:00
|
|
|
|
export type SpaceConfig = ComponentStyleConfig & Pick<SpaceProps, 'size' | 'classNames' | 'styles'>;
|
2024-02-28 11:53:01 +08:00
|
|
|
|
|
2023-04-07 10:17:00 +08:00
|
|
|
|
export type PopupOverflow = 'viewport' | 'scroll';
|
|
|
|
|
|
2023-07-25 16:29:47 +08:00
|
|
|
|
export interface WaveConfig {
|
2024-03-26 23:01:04 +08:00
|
|
|
|
/**
|
|
|
|
|
* @descCN 是否开启水波纹效果。如果需要关闭,可以设置为 `false`。
|
|
|
|
|
* @descEN Whether to use wave effect. If it needs to close, set to `false`.
|
|
|
|
|
* @default true
|
|
|
|
|
*/
|
2023-07-25 16:29:47 +08:00
|
|
|
|
disabled?: boolean;
|
2024-03-26 23:01:04 +08:00
|
|
|
|
/**
|
|
|
|
|
* @descCN 自定义水波纹效果。
|
|
|
|
|
* @descEN Customized wave effect.
|
|
|
|
|
*/
|
2023-07-25 16:29:47 +08:00
|
|
|
|
showEffect?: ShowWaveEffect;
|
|
|
|
|
}
|
|
|
|
|
|
2019-10-21 12:01:33 +08:00
|
|
|
|
export interface ConfigConsumerProps {
|
2020-04-29 20:22:16 +08:00
|
|
|
|
getTargetContainer?: () => HTMLElement;
|
2021-10-09 10:24:41 +08:00
|
|
|
|
getPopupContainer?: (triggerNode?: HTMLElement) => HTMLElement;
|
2019-10-21 12:01:33 +08:00
|
|
|
|
rootPrefixCls?: string;
|
2022-02-27 22:17:17 +08:00
|
|
|
|
iconPrefixCls: string;
|
2020-08-03 11:41:08 +08:00
|
|
|
|
getPrefixCls: (suffixCls?: string, customizePrefixCls?: string) => string;
|
2022-05-16 16:34:42 +08:00
|
|
|
|
renderEmpty?: RenderEmptyHandler;
|
2024-03-26 23:01:04 +08:00
|
|
|
|
/**
|
|
|
|
|
* @descCN 设置 [Content Security Policy](https://developer.mozilla.org/zh-CN/docs/Web/HTTP/CSP) 配置。
|
|
|
|
|
* @descEN Set the [Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) config.
|
|
|
|
|
*/
|
2019-10-21 12:01:33 +08:00
|
|
|
|
csp?: CSPConfig;
|
|
|
|
|
autoInsertSpaceInButton?: boolean;
|
2024-02-27 10:25:35 +08:00
|
|
|
|
input?: InputConfig;
|
2024-02-28 09:54:48 +08:00
|
|
|
|
textArea?: TextAreaConfig;
|
2024-02-28 11:53:01 +08:00
|
|
|
|
pagination?: PaginationConfig;
|
2019-10-21 12:01:33 +08:00
|
|
|
|
locale?: Locale;
|
2020-11-03 16:22:18 +08:00
|
|
|
|
direction?: DirectionType;
|
2024-02-28 11:53:01 +08:00
|
|
|
|
space?: SpaceConfig;
|
2020-05-05 15:00:43 +08:00
|
|
|
|
virtual?: boolean;
|
2023-04-04 17:17:36 +08:00
|
|
|
|
popupMatchSelectWidth?: boolean;
|
2023-04-07 10:17:00 +08:00
|
|
|
|
popupOverflow?: PopupOverflow;
|
2024-02-28 11:53:01 +08:00
|
|
|
|
form?: FormConfig;
|
2022-03-24 18:44:42 +08:00
|
|
|
|
theme?: ThemeConfig;
|
2024-02-28 11:53:01 +08:00
|
|
|
|
select?: SelectConfig;
|
2024-01-30 16:47:42 +08:00
|
|
|
|
alert?: AlertConfig;
|
2023-06-26 17:09:55 +08:00
|
|
|
|
anchor?: ComponentStyleConfig;
|
2023-05-26 16:42:26 +08:00
|
|
|
|
button?: ButtonConfig;
|
2023-06-26 11:42:46 +08:00
|
|
|
|
divider?: ComponentStyleConfig;
|
2023-09-25 20:37:37 +08:00
|
|
|
|
drawer?: DrawerConfig;
|
2023-07-06 09:38:21 +08:00
|
|
|
|
calendar?: ComponentStyleConfig;
|
2023-07-07 09:30:37 +08:00
|
|
|
|
carousel?: ComponentStyleConfig;
|
2023-06-27 17:13:27 +08:00
|
|
|
|
cascader?: ComponentStyleConfig;
|
2024-02-20 14:02:43 +08:00
|
|
|
|
collapse?: CollapseConfig;
|
2024-03-19 17:14:22 +08:00
|
|
|
|
floatButtonGroup?: FloatButtonGroupConfig;
|
2023-06-26 11:42:46 +08:00
|
|
|
|
typography?: ComponentStyleConfig;
|
2023-07-05 18:00:46 +08:00
|
|
|
|
skeleton?: ComponentStyleConfig;
|
2023-06-26 11:42:46 +08:00
|
|
|
|
spin?: ComponentStyleConfig;
|
|
|
|
|
segmented?: ComponentStyleConfig;
|
|
|
|
|
steps?: ComponentStyleConfig;
|
2023-07-06 21:54:54 +08:00
|
|
|
|
statistic?: ComponentStyleConfig;
|
2024-02-01 17:43:00 +08:00
|
|
|
|
image?: ImageConfig;
|
2023-06-28 13:51:24 +08:00
|
|
|
|
layout?: ComponentStyleConfig;
|
2023-07-06 09:43:03 +08:00
|
|
|
|
list?: ComponentStyleConfig;
|
2023-06-27 10:51:23 +08:00
|
|
|
|
mentions?: ComponentStyleConfig;
|
2023-09-25 14:27:41 +08:00
|
|
|
|
modal?: ModalConfig;
|
2023-07-05 19:21:56 +08:00
|
|
|
|
progress?: ComponentStyleConfig;
|
2023-06-26 11:42:46 +08:00
|
|
|
|
result?: ComponentStyleConfig;
|
|
|
|
|
slider?: ComponentStyleConfig;
|
|
|
|
|
breadcrumb?: ComponentStyleConfig;
|
2024-02-26 09:55:08 +08:00
|
|
|
|
menu?: MenuConfig;
|
2023-06-26 11:42:46 +08:00
|
|
|
|
checkbox?: ComponentStyleConfig;
|
2023-06-26 14:38:02 +08:00
|
|
|
|
descriptions?: ComponentStyleConfig;
|
2023-06-26 17:10:26 +08:00
|
|
|
|
empty?: ComponentStyleConfig;
|
2023-06-29 16:43:11 +08:00
|
|
|
|
badge?: BadgeConfig;
|
2023-06-26 19:07:57 +08:00
|
|
|
|
radio?: ComponentStyleConfig;
|
2023-06-29 19:30:34 +08:00
|
|
|
|
rate?: ComponentStyleConfig;
|
2023-06-30 11:29:39 +08:00
|
|
|
|
switch?: ComponentStyleConfig;
|
2024-02-02 10:48:05 +08:00
|
|
|
|
transfer?: TransferConfig;
|
2023-07-03 10:27:31 +08:00
|
|
|
|
avatar?: ComponentStyleConfig;
|
2023-07-03 20:38:14 +08:00
|
|
|
|
message?: ComponentStyleConfig;
|
2024-01-31 10:07:16 +08:00
|
|
|
|
tag?: TagConfig;
|
2024-01-30 13:57:49 +08:00
|
|
|
|
table?: TableConfig;
|
2024-01-30 15:00:25 +08:00
|
|
|
|
card?: CardConfig;
|
2024-02-01 19:14:54 +08:00
|
|
|
|
tabs?: TabsConfig;
|
2023-07-06 10:27:39 +08:00
|
|
|
|
timeline?: ComponentStyleConfig;
|
2023-07-07 19:02:55 +08:00
|
|
|
|
timePicker?: ComponentStyleConfig;
|
2024-01-29 11:01:30 +08:00
|
|
|
|
tour?: TourConfig;
|
2023-07-03 16:38:56 +08:00
|
|
|
|
upload?: ComponentStyleConfig;
|
2024-01-30 20:13:22 +08:00
|
|
|
|
notification?: NotificationConfig;
|
2023-07-03 22:42:46 +08:00
|
|
|
|
tree?: ComponentStyleConfig;
|
2023-07-04 11:23:58 +08:00
|
|
|
|
colorPicker?: ComponentStyleConfig;
|
2023-07-07 19:02:55 +08:00
|
|
|
|
datePicker?: ComponentStyleConfig;
|
2023-10-24 00:57:38 +08:00
|
|
|
|
rangePicker?: ComponentStyleConfig;
|
2023-11-02 00:48:26 +08:00
|
|
|
|
dropdown?: ComponentStyleConfig;
|
2023-09-14 17:04:05 +08:00
|
|
|
|
flex?: FlexConfig;
|
2023-07-25 16:29:47 +08:00
|
|
|
|
wave?: WaveConfig;
|
2023-09-11 17:28:04 +08:00
|
|
|
|
warning?: WarningContextProps;
|
2019-10-21 12:01:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
2021-01-09 15:22:08 +08:00
|
|
|
|
const defaultGetPrefixCls = (suffixCls?: string, customizePrefixCls?: string) => {
|
2023-06-20 14:35:05 +08:00
|
|
|
|
if (customizePrefixCls) {
|
|
|
|
|
return customizePrefixCls;
|
|
|
|
|
}
|
2021-01-09 15:22:08 +08:00
|
|
|
|
return suffixCls ? `ant-${suffixCls}` : 'ant';
|
|
|
|
|
};
|
|
|
|
|
|
2022-11-29 19:48:53 +08:00
|
|
|
|
// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will cause circular dependency.
|
2019-10-30 16:28:28 +08:00
|
|
|
|
export const ConfigContext = React.createContext<ConfigConsumerProps>({
|
2019-10-21 12:01:33 +08:00
|
|
|
|
// We provide a default function for Context without provider
|
2021-01-09 15:22:08 +08:00
|
|
|
|
getPrefixCls: defaultGetPrefixCls,
|
2022-02-18 14:17:32 +08:00
|
|
|
|
iconPrefixCls: defaultIconPrefixCls,
|
2019-10-21 12:01:33 +08:00
|
|
|
|
});
|
|
|
|
|
|
2022-12-25 22:54:56 +08:00
|
|
|
|
export const { Consumer: ConfigConsumer } = ConfigContext;
|