I am currently customizing an Element-UI datepicker component to meet my specific requirements. I am looking to introduce one or more props to set a default value.
pickerOptions: {
type: Object,
default: () => ({
addedProp: '',
defaultProp: 'firstDayOfWeek: 1',
}),
},
Is there a way to make the value of addedProp
dynamic? How can I configure this prop within the component? The defaultProp
should always be active by default, while the addedProp
should be toggleable based on necessity.