dk-plus
Version:
15 lines (14 loc) • 387 B
JavaScript
import { reactive as c, toRef as n } from "vue";
import { isString as f, isObject as s } from "../../../_utils/typeof/index.js";
const P = (e) => ({
filter: (o) => {
const t = c({});
return o.forEach((r) => {
f(r) ? t[r] = n(e, r) : s(r) && (t[r.key] = n(e, r.key));
}), t;
},
interceptProps: (o, t, r = null) => t() ? n(e, o) : r
});
export {
P as getProps
};