feat: remove unnecessary prop from Card
This commit is contained in:
parent
43e38fae17
commit
1eb1aa2575
@ -11,7 +11,7 @@
|
|||||||
{{ title }}
|
{{ title }}
|
||||||
</p>
|
</p>
|
||||||
<BaseButton
|
<BaseButton
|
||||||
v-if="hasClose"
|
v-if="$attrs.onClose"
|
||||||
v-tooltip="$t('misc.close')"
|
v-tooltip="$t('misc.close')"
|
||||||
class="card-header-icon"
|
class="card-header-icon"
|
||||||
:aria-label="$t('misc.close')"
|
:aria-label="$t('misc.close')"
|
||||||
@ -51,7 +51,6 @@ import BaseButton from '@/components/base/BaseButton.vue'
|
|||||||
withDefaults(defineProps<{
|
withDefaults(defineProps<{
|
||||||
title?: string
|
title?: string
|
||||||
padding?: boolean
|
padding?: boolean
|
||||||
hasClose?: boolean
|
|
||||||
closeIcon?: IconProp
|
closeIcon?: IconProp
|
||||||
shadow?: boolean
|
shadow?: boolean
|
||||||
hasContent?: boolean
|
hasContent?: boolean
|
||||||
@ -59,7 +58,6 @@ withDefaults(defineProps<{
|
|||||||
}>(), {
|
}>(), {
|
||||||
title: '',
|
title: '',
|
||||||
padding: true,
|
padding: true,
|
||||||
hasClose: false,
|
|
||||||
closeIcon: 'times',
|
closeIcon: 'times',
|
||||||
shadow: true,
|
shadow: true,
|
||||||
hasContent: true,
|
hasContent: true,
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
:shadow="false"
|
:shadow="false"
|
||||||
:padding="false"
|
:padding="false"
|
||||||
class="has-text-left"
|
class="has-text-left"
|
||||||
:has-close="true"
|
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
@close="$router.back()"
|
@close="$router.back()"
|
||||||
>
|
>
|
||||||
|
@ -7,7 +7,6 @@
|
|||||||
<Card
|
<Card
|
||||||
class="has-no-shadow"
|
class="has-no-shadow"
|
||||||
:title="$t('about.title')"
|
:title="$t('about.title')"
|
||||||
:has-close="true"
|
|
||||||
:padding="false"
|
:padding="false"
|
||||||
@close="$router.back()"
|
@close="$router.back()"
|
||||||
>
|
>
|
||||||
|
@ -62,7 +62,6 @@
|
|||||||
>
|
>
|
||||||
<Card
|
<Card
|
||||||
:title="$t('label.edit.header')"
|
:title="$t('label.edit.header')"
|
||||||
:has-close="true"
|
|
||||||
@close="() => isLabelEdit = false"
|
@close="() => isLabelEdit = false"
|
||||||
>
|
>
|
||||||
<form @submit.prevent="editLabelSubmit()">
|
<form @submit.prevent="editLabelSubmit()">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user