29 lines
453 B
Vue
29 lines
453 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">
|
||
|
|
import { PlusOutlined } from '@ant-design/icons-vue'
|
||
|
|
|
||
|
|
withDefaults(defineProps<{
|
||
|
|
visible?: boolean
|
||
|
|
label?: string
|
||
|
|
}>(), {
|
||
|
|
visible: false,
|
||
|
|
label: '新增'
|
||
|
|
})
|
||
|
|
|
||
|
|
defineEmits<{
|
||
|
|
(event: 'click'): void
|
||
|
|
}>()
|
||
|
|
</script>
|