Merge pull request #6143 from avramz/master
#6125 Fix (DatePicker, Locale) - deep merge options during installpull/6161/head
commit
18f3b744bd
|
@ -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