feat: reduce eslint warnings (#2396)
Also added `Destructuring the 'props' will cause the value to lose reactivity` as a warning to prepare for the removal of the propsDestructure option in vite. Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/2396 Reviewed-by: konrad <k@knt.li> Co-authored-by: Dominik Pschenitschni <mail@celement.de> Co-committed-by: Dominik Pschenitschni <mail@celement.de>
This commit is contained in:

committed by
konrad

parent
c6e934bd6b
commit
2004d129c3
@ -73,14 +73,16 @@ export interface BaseButtonProps extends /* @vue-ignore */ HTMLAttributes {
|
||||
}
|
||||
|
||||
export interface BaseButtonEmits {
|
||||
(e: 'click', payload: MouseEvent): void
|
||||
click: [payload: MouseEvent]
|
||||
}
|
||||
|
||||
const {
|
||||
type = BASE_BUTTON_TYPES_MAP.BUTTON,
|
||||
disabled = false,
|
||||
openExternalInNewTab = true,
|
||||
} = defineProps<BaseButtonProps>()
|
||||
withDefaults(defineProps<BaseButtonProps>(), {
|
||||
type: BASE_BUTTON_TYPES_MAP.BUTTON,
|
||||
disabled: false,
|
||||
to: undefined,
|
||||
href: undefined,
|
||||
openExternalInNewTab: true,
|
||||
})
|
||||
|
||||
const emit = defineEmits<BaseButtonEmits>()
|
||||
|
||||
|
Reference in New Issue
Block a user