tav-ui
Version:
1 lines • 717 B
Source Map (JSON)
{"version":3,"file":"useComponentRegister2.mjs","sources":["../../../../../../../../packages/components/form/src/hooks/useComponentRegister.ts"],"sourcesContent":["import { tryOnUnmounted } from '@vueuse/core'\nimport { add, del } from '../componentMap'\nimport type { Component } from 'vue'\nimport type { ComponentType } from '../types/index'\n\nexport function useComponentRegister(compName: ComponentType, comp: Component) {\n add(compName, comp)\n tryOnUnmounted(() => {\n del(compName)\n })\n}\n"],"names":[],"mappings":";;;AAEO,SAAS,oBAAoB,CAAC,QAAQ,EAAE,IAAI,EAAE;AACrD,EAAE,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACtB,EAAE,cAAc,CAAC,MAAM;AACvB,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;AAClB,GAAG,CAAC,CAAC;AACL;;;;"}