element-plus/packages/utils/config.ts
2020-07-29 11:44:12 +08:00

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,
}