#6125 Fix (DatePicker, Locale) - deep merge options
parent
81f55dade7
commit
d309fd632e
|
@ -3,6 +3,7 @@ import { FilterMatchMode } from '@primevue/core/api';
|
|||
import BaseStyle from '@primevue/core/base/style';
|
||||
import PrimeVueService from '@primevue/core/service';
|
||||
import { inject, reactive, ref, watch } from 'vue';
|
||||
import { mergeKeys } from '@primeuix/utils';
|
||||
|
||||
export const defaultOptions = {
|
||||
ripple: false,
|
||||
|
@ -266,7 +267,7 @@ export function setupConfig(app, PrimeVue) {
|
|||
|
||||
export default {
|
||||
install: (app, options) => {
|
||||
const configOptions = { ...defaultOptions, ...options };
|
||||
const configOptions = mergeKeys(defaultOptions, options);
|
||||
|
||||
setup(app, configOptions);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue