element-plus/packages/utils/config.ts
jeremywu 79ce9ae5a2
fix(message): message covered by dialog (#701)
- Fix the bug that cause poppup-manager unable to use zIndex from global config
2020-11-26 19:56:10 +08:00

22 lines
330 B
TypeScript

export interface InstallOptions {
size: ComponentSize
zIndex: number
locale?: any
}
let $ELEMENT = { } as InstallOptions
const setConfig = (option: InstallOptions): void => {
$ELEMENT = option
}
const getConfig = (key: keyof InstallOptions): unknown => {
return $ELEMENT[key]
}
export {
getConfig,
setConfig,
}