mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
14 lines
353 B
TypeScript
14 lines
353 B
TypeScript
import { inject } from 'vue'
|
|
import { configProviderContextKey } from '@element-plus/tokens'
|
|
import type { ConfigProvdierContext } from '@element-plus/tokens'
|
|
|
|
const defaultConfig: ConfigProvdierContext = {
|
|
button: {
|
|
autoInsertSpace: false,
|
|
},
|
|
}
|
|
|
|
export const useGlobalConfig = () => {
|
|
return inject(configProviderContextKey, defaultConfig)
|
|
}
|