feat: add tooltip

This commit is contained in:
Methapon2001 2024-08-09 11:33:03 +07:00
parent 2be34124e1
commit 536cf51acb
7 changed files with 7 additions and 0 deletions

View file

@ -19,6 +19,7 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-plus"
color="var(--info-bg)"
:title="iconOnly ? $t('add') : undefined"
>
{{ $t('add') }}
</MainButton>

View file

@ -19,6 +19,7 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-arrow-left"
color="var(--info-bg)"
:title="iconOnly ? $t('back') : undefined"
>
{{ $t('back') }}
</MainButton>

View file

@ -19,6 +19,7 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-close"
color="var(--negative-bg)"
:title="iconOnly ? $t('cancel') : undefined"
>
{{ $t('cancel') }}
</MainButton>

View file

@ -19,6 +19,7 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-trash-can-outline"
color="var(--negative-bg)"
:title="iconOnly ? $t('delete') : undefined"
>
{{ $t('delete') }}
</MainButton>

View file

@ -19,6 +19,7 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-pencil-outline"
color="var(--cyan-6-hsl)"
:title="iconOnly ? $t('edit') : undefined"
>
{{ $t('edit') }}
</MainButton>

View file

@ -19,6 +19,7 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-content-save-outline"
color="207 96% 32%"
:title="iconOnly ? $t('save') : undefined"
>
{{ $t('save') }}
</MainButton>

View file

@ -19,6 +19,7 @@ defineProps<{
v-bind="{ ...$props, ...$attrs }"
icon="mdi-arrow-left"
color="var(--gray-8-hsl)"
:title="iconOnly ? $t('undo') : undefined"
>
{{ $t('undo') }}
</MainButton>