UNPKG

vuestic-ui

Version:
25 lines (24 loc) 775 B
import { c as createProxyComponent } from "./createProxyComponent.js"; const CLASS_COMPONENT_KEY = "__c"; const patchClassComponent = (component) => { component[CLASS_COMPONENT_KEY] = createProxyComponent(component[CLASS_COMPONENT_KEY]); return component; }; const withConfigTransport = (component) => { if ("setup" in component) { return createProxyComponent(component); } else if (CLASS_COMPONENT_KEY in component) { return patchClassComponent(component); } else { component.setup = () => ({ /* Fake setup function */ }); return createProxyComponent(component); } }; const withConfigTransport$1 = withConfigTransport; export { withConfigTransport as a, withConfigTransport$1 as w }; //# sourceMappingURL=withConfigTransport.js.map