Fixed #4473 - Add ptOptions option to PrimeVue config

This commit is contained in:
mertsincan 2023-09-20 12:25:33 +01:00
parent 234c9a48d2
commit 31c3bdf566
5 changed files with 12 additions and 9 deletions

View file

@ -5,12 +5,9 @@
* usePassThrough(pt1, pt2, pt3, pt*, { mergeSections: true });
* usePassThrough(pt1, { mergeSections: true });
*/
export const usePassThrough = (pt1 = {}, pt2 = {}, { mergeSections = true, mergeProps = false } = {}) => {
export const usePassThrough = (pt1 = {}, pt2 = {}, ptOptions) => {
return {
_usept: {
mergeSections,
mergeProps
},
_usept: ptOptions,
originalValue: pt1,
value: { ...pt1, ...pt2 }
};