naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
17 lines • 418 B
JavaScript
import { defineComponent } from 'vue';
export const NInjectionExtractor = defineComponent({
name: 'InjectionExtractor',
props: {
onSetup: Function
},
setup(props, {
slots
}) {
var _a;
(_a = props.onSetup) === null || _a === void 0 ? void 0 : _a.call(props);
return () => {
var _a;
return (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots);
};
}
});