Files
monisuo/monisuo-admin/dist/assets/useForwardPropsEmits-ixfQllIc.js
2026-03-22 23:32:23 +08:00

1 line
597 B
JavaScript

import{T as e,g as t,kt as n,wt as r}from"./vue.runtime.esm-bundler-DQjudA8G.js";import{t as i}from"./useForwardProps-B-1JXcFn.js";function a(){let e=document.activeElement;if(e==null)return null;for(;e!=null&&e.shadowRoot!=null&&e.shadowRoot.activeElement!=null;)e=e.shadowRoot.activeElement;return e}function o(t){let i=e(),a=i?.type.emits,o={};return a?.length||console.warn(`No emitted event found. Please check component: ${i?.type.__name}`),a?.forEach(e=>{o[n(r(e))]=(...n)=>t(e,...n)}),o}function s(e,n){let r=i(e),a=n?o(n):{};return t(()=>({...r.value,...a}))}export{o as n,a as r,s as t};