vuestic-ui
Version:
Vue 3 UI Framework
15 lines (14 loc) • 389 B
JavaScript
import { getCurrentInstance, computed } from "vue";
const filterComponentProps = (childProps) => {
const { props } = getCurrentInstance();
return computed(() => {
return Object.keys(childProps).reduce((acc, propName) => {
acc[propName] = props[propName];
return acc;
}, {});
});
};
export {
filterComponentProps as f
};
//# sourceMappingURL=filter-props.js.map