UNPKG

@fe6/water-pro

Version:

An enterprise-class UI design language and Vue-based implementation

15 lines (10 loc) 286 B
/** @format */ import { unref } from 'vue'; // dynamic use hook props export function getDynamicProps<T, U>(props: T): Partial<U> { const ret: Recordable = {}; Object.keys(props).map(key => { ret[key] = unref((props as Recordable)[key]); }); return ret as Partial<U>; }