element-plus
Version:
A Component Library for Vue 3
1 lines • 541 B
Source Map (JSON)
{"version":3,"file":"useOption.mjs","sources":["../../../../../../packages/components/color-picker/src/useOption.ts"],"sourcesContent":["import { inject } from 'vue'\n\nimport type { ComputedRef } from 'vue'\n\nexport interface IUseOptions {\n currentColor: ComputedRef<string>\n}\n\nexport const OPTIONS_KEY = Symbol()\n\nexport const useOptions = () => {\n return inject<IUseOptions>(OPTIONS_KEY)\n}\n"],"names":[],"mappings":";;AACY,MAAC,WAAW,GAAG,MAAM,GAAG;AACxB,MAAC,UAAU,GAAG,MAAM;AAChC,EAAE,OAAO,MAAM,CAAC,WAAW,CAAC,CAAC;AAC7B;;;;"}