mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 09:50:58 +08:00
79ce9ae5a2
- Fix the bug that cause poppup-manager unable to use zIndex from global config
22 lines
330 B
TypeScript
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,
|
|
}
|