mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4342 - Rename merge and useMergeProps options with mergeSections and mergeProps options on usePassThrough method
This commit is contained in:
parent
ed62934411
commit
c57faf3db1
3 changed files with 10 additions and 10 deletions
|
@ -2,16 +2,16 @@
|
|||
* @todo: Add dynamic params support;
|
||||
*
|
||||
* Exp;
|
||||
* usePassThrough(pt1, pt2, pt3, pt*, { merge: true });
|
||||
* usePassThrough(pt1, { merge: true });
|
||||
* usePassThrough(pt1, pt2, pt3, pt*, { mergeSections: true });
|
||||
* usePassThrough(pt1, { mergeSections: true });
|
||||
*/
|
||||
export const usePassThrough = (pt1 = {}, pt2 = {}, { merge = true, useMergeProps = true } = {}) => {
|
||||
export const usePassThrough = (pt1 = {}, pt2 = {}, { mergeSections = true, mergeProps = false } = {}) => {
|
||||
return {
|
||||
_usept: {
|
||||
merge,
|
||||
useMergeProps
|
||||
mergeSections,
|
||||
mergeProps
|
||||
},
|
||||
originalValue: pt1,
|
||||
value: pt2
|
||||
value: { ...pt1, ...pt2 }
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue