diff --git a/components/config-provider/index.tsx b/components/config-provider/index.tsx index 5b09ec16b8..dabc2fbaa0 100644 --- a/components/config-provider/index.tsx +++ b/components/config-provider/index.tsx @@ -290,6 +290,7 @@ const ConfigProvider = defineComponent({ }); ConfigProvider.config = setGlobalConfig; +ConfigProvider.useConfigContextInject = useConfigContextInject; ConfigProvider.install = function (app: App) { app.component(ConfigProvider.name, ConfigProvider); @@ -298,4 +299,5 @@ ConfigProvider.install = function (app: App) { export default ConfigProvider as typeof ConfigProvider & Plugin & { readonly config: typeof setGlobalConfig; + readonly useConfigContextInject: typeof useConfigContextInject; }; diff --git a/components/theme/index.ts b/components/theme/index.ts index 92eed83022..cc5beeb9b7 100644 --- a/components/theme/index.ts +++ b/components/theme/index.ts @@ -4,6 +4,7 @@ import type { GlobalToken } from './interface'; import defaultAlgorithm from './themes/default'; import darkAlgorithm from './themes/dark'; import compactAlgorithm from './themes/compact'; +import formatToken from './util/alias'; // ZombieJ: We export as object to user but array in internal. // This is used to minimize the bundle size for antd package but safe to refactor as object also. @@ -25,6 +26,7 @@ export default { defaultSeed: defaultConfig.token, useToken, + formatToken, defaultAlgorithm, darkAlgorithm, compactAlgorithm,