feat: add tooltip
This commit is contained in:
parent
2be34124e1
commit
536cf51acb
7 changed files with 7 additions and 0 deletions
|
|
@ -19,6 +19,7 @@ defineProps<{
|
|||
v-bind="{ ...$props, ...$attrs }"
|
||||
icon="mdi-plus"
|
||||
color="var(--info-bg)"
|
||||
:title="iconOnly ? $t('add') : undefined"
|
||||
>
|
||||
{{ $t('add') }}
|
||||
</MainButton>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ defineProps<{
|
|||
v-bind="{ ...$props, ...$attrs }"
|
||||
icon="mdi-close"
|
||||
color="var(--negative-bg)"
|
||||
:title="iconOnly ? $t('cancel') : undefined"
|
||||
>
|
||||
{{ $t('cancel') }}
|
||||
</MainButton>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue