Files
JayuCloud/YumiNail-Frontend/src/components/admin/AdminMobileFab.vue
T

29 lines
453 B
Vue
Raw Normal View History

<template>
<button
v-if="visible"
class="admin-mobile-fab"
type="button"
:aria-label="label"
:title="label"
@click="$emit('click')"
>
<PlusOutlined />
</button>
</template>
<script setup lang="ts">
import { PlusOutlined } from '@ant-design/icons-vue'
withDefaults(defineProps<{
visible?: boolean
label?: string
}>(), {
visible: false,
label: '新增'
})
defineEmits<{
(event: 'click'): void
}>()
</script>