Files
aurora-admin/frameworks/FullScreenModal.vue3.vue
T

26 lines
714 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<div class="aa-fs-mask" v-if="visible">
<div class="aa-fs-head">
<span class="aa-fs-title">{{ title }}</span>
<button class="aa-fs-close" @click="$emit('cancel')">×</button>
</div>
<div class="aa-fs-body">
<slot>内容区</slot>
</div>
<div class="aa-fs-foot">
<button class="aa-btn" @click="$emit('cancel')">取消</button>
<button class="aa-btn aa-btn--primary" @click="$emit('ok')">保存</button>
</div>
</div>
</template>
<script setup>
defineProps({
visible: { type: Boolean, default: false },
title: { type: String, default: '全屏弹窗' }
});
defineEmits(['cancel', 'ok']);
</script>
<style src="./FullScreenModal.css"></style>