UNPKG

vue-admin-core

Version:
1 lines 936 B
{"version":3,"file":"useElDrawer.mjs","sources":["../../../../../package/hooks/elementPlus/useElDrawer.tsx"],"sourcesContent":["import { Component, ExtractPropTypes, VNode } from \"vue\";\nimport { ElDrawer, drawerProps } from \"element-plus\";\nimport { useCorePopup, PopupProps, PopupTitle } from \"../__shared__/useCorePopup\";\n\nexport type DrawerProps = Omit<ExtractPropTypes<typeof drawerProps>, \"title\"> & PopupProps;\n\nexport type DrawerContent = Component | (() => VNode);\n\nexport function useElDrawer(title: DrawerProps | PopupTitle, content: DrawerContent) {\n return useCorePopup<DrawerProps | PopupTitle, DrawerProps | PopupTitle, DrawerProps | PopupTitle>(\n title,\n ElDrawer,\n content\n );\n}\n"],"names":["useElDrawer","title","content","useCorePopup","ElDrawer"],"mappings":";;;AAQgBA,SAAAA,WAAAA,CAAYC,OAAiCC,OAAwB,EAAA;AACnF,EAAOC,OAAAA,YAAAA,CACLF,KACAG,EAAAA,QAAAA,EACAF,OACF,CAAA,CAAA;AACF;;;;"}