mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-27 03:01:14 +08:00
13 lines
342 B
TypeScript
13 lines
342 B
TypeScript
import { inject } from 'vue'
|
|
import { configProviderContextKey } from '@element-plus/tokens'
|
|
import type { ConfigProviderContext } from '@element-plus/tokens'
|
|
|
|
const defaultConfig: ConfigProviderContext = {
|
|
button: {
|
|
autoInsertSpace: false,
|
|
},
|
|
}
|
|
|
|
export const useGlobalConfig = () =>
|
|
inject(configProviderContextKey, defaultConfig)
|