#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 BaseStyle from '@primevue/core/base/style';
|
||||||
import PrimeVueService from '@primevue/core/service';
|
import PrimeVueService from '@primevue/core/service';
|
||||||
import { inject, reactive, ref, watch } from 'vue';
|
import { inject, reactive, ref, watch } from 'vue';
|
||||||
|
import { mergeKeys } from '@primeuix/utils';
|
||||||
|
|
||||||
export const defaultOptions = {
|
export const defaultOptions = {
|
||||||
ripple: false,
|
ripple: false,
|
||||||
|
@ -266,7 +267,7 @@ export function setupConfig(app, PrimeVue) {
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
install: (app, options) => {
|
install: (app, options) => {
|
||||||
const configOptions = { ...defaultOptions, ...options };
|
const configOptions = mergeKeys(defaultOptions, options);
|
||||||
|
|
||||||
setup(app, configOptions);
|
setup(app, configOptions);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue