mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
16 lines
243 B
TypeScript
16 lines
243 B
TypeScript
|
|
||
|
const $ELEMENT: Record<string, unknown> = { }
|
||
|
|
||
|
const setConfig = (key: string, value: unknown): void => {
|
||
|
$ELEMENT[key] = value
|
||
|
}
|
||
|
|
||
|
const getConfig = (key: string): unknown => {
|
||
|
return $ELEMENT[key]
|
||
|
}
|
||
|
|
||
|
export {
|
||
|
getConfig,
|
||
|
setConfig,
|
||
|
}
|