mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Fixed #4473 - Add ptOptions option to PrimeVue config
This commit is contained in:
parent
234c9a48d2
commit
31c3bdf566
5 changed files with 12 additions and 9 deletions
|
@ -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 }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue