mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +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,
|
|
}
|