mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-18 22:20:49 +08:00
24 lines
499 B
Vue
24 lines
499 B
Vue
<script lang="ts" setup>
|
|
// 定义输入参数
|
|
const props = defineProps({
|
|
// 是否显示
|
|
innerClass: String,
|
|
})
|
|
// 定义触发的自定义事件
|
|
const emit = defineEmits(['click', 'update:modelValue'])
|
|
// 按钮点击
|
|
function onClick() {
|
|
emit('update:modelValue', false)
|
|
emit('click')
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<IconBtn
|
|
:class="props.innerClass ? props.innerClass : 'absolute right-3 top-3 z-10'"
|
|
@click.stop="onClick"
|
|
>
|
|
<VIcon icon="mdi-close" />
|
|
</IconBtn>
|
|
</template>
|