primevue-mirror/components/lib/passthrough/index.js

18 lines
399 B
JavaScript
Raw Normal View History

/**
* @todo: Add dynamic params support;
*
* Exp;
* usePassThrough(pt1, pt2, pt3, pt*, { merge: true });
* usePassThrough(pt1, { merge: true });
*/
export const usePassThrough = (pt1 = {}, pt2 = {}, { merge = true, useMergeProps = true } = {}) => {
return {
_usept: {
merge,
useMergeProps
},
originalValue: pt1,
value: pt2
};
2023-08-05 01:36:07 +00:00
};