In my Vue component, I am utilizing an options prop with a predefined default value.
export default {
props: {
options: {
required: false,
type: Object,
default: () => ({
someOption: false,
someOtherOption: {
a: true,
b: false,
},
}),
},
},
};
When the options object is passed as a prop to the component, it replaces the default value. However, I am interested in passing a partial object and only overriding specific values without replacing the entire object. For instance, how can I override just one or two properties within the options object?