33 lines
635 B
Vue
33 lines
635 B
Vue
<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">
|
|
/**
|
|
* AdminMobileFab page script.
|
|
* Call guide: the template binds the reactive state below, and the methods are triggered by button clicks, lifecycle hooks, or router events.
|
|
*/
|
|
import { PlusOutlined } from '@ant-design/icons-vue'
|
|
|
|
withDefaults(defineProps<{
|
|
visible?: boolean
|
|
label?: string
|
|
}>(), {
|
|
visible: false,
|
|
label: '新增'
|
|
})
|
|
|
|
defineEmits<{
|
|
(event: 'click'): void
|
|
}>()
|
|
</script>
|