fix: name
This commit is contained in:
parent
c2848d1005
commit
893b4e6a2a
1 changed files with 27 additions and 0 deletions
27
src/components/button/ViewButton.vue
Normal file
27
src/components/button/ViewButton.vue
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<script lang="ts" setup>
|
||||
import MainButton from './MainButton.vue';
|
||||
|
||||
defineEmits<{
|
||||
(e: 'click', v: MouseEvent): void;
|
||||
}>();
|
||||
defineProps<{
|
||||
iconOnly?: boolean;
|
||||
solid?: boolean;
|
||||
outlined?: boolean;
|
||||
disabled?: boolean;
|
||||
dark?: boolean;
|
||||
size?: string;
|
||||
}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<MainButton
|
||||
@click="(e) => $emit('click', e)"
|
||||
v-bind="{ ...$props, ...$attrs }"
|
||||
icon="mdi-eye-outline"
|
||||
color="var(--gray-8-hsl)"
|
||||
:title="iconOnly ? $t('general.viewDetail') : undefined"
|
||||
>
|
||||
{{ $t('general.viewDetail') }}
|
||||
</MainButton>
|
||||
</template>
|
||||
Loading…
Add table
Add a link
Reference in a new issue