Merge 0b1963805d
into 35c1ad9c80
commit
ca015a8100
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue