UNPKG

@muban/muban

Version:

Writing components for server-rendered HTML

12 lines (11 loc) 351 B
import { reactive } from '@vue/reactivity'; export function createReactivePropertySource() { return () => { const props = reactive({}); return { sourceName: 'reactive', hasProp: (propInfo) => propInfo.source.name in props, getProp: (propInfo) => props[propInfo.source.name], }; }; }