element-plus/packages/utils/config.ts

16 lines
243 B
TypeScript
Raw Normal View History

2020-07-28 17:48:40 +08:00
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,
}