element-plus/packages/tokens/config-provider.ts
msidolphin 66043aa3b5
refactor(components): [el-config-provider] improve componomponent extendiability (#4175)
re #4146

added button configuration
added useGlobalConfig hook
2021-11-05 18:10:07 +08:00

8 lines
329 B
TypeScript

import type { configProviderProps } from '@element-plus/components/config-provider/config-provider'
import type { InjectionKey, ExtractPropTypes } from 'vue'
export type ConfigProvdierContext = ExtractPropTypes<typeof configProviderProps>
export const configProviderContextKey: InjectionKey<ConfigProvdierContext> =
Symbol()