Aurora Admin v1.2.0: 79 components x 5 ends, doc site, contracts batch 1, playground, regression, deploy ready
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<div class="aa-modal-mask" v-if="visible" @click.self="emit('ok')">
|
||||
<div class="aa-alert" :class="'is-' + type">
|
||||
<div class="aa-alert-head">
|
||||
<span class="aa-alert-icon">{{ iconMap[type] || 'i' }}</span>
|
||||
<div class="aa-alert-title">{{ title }}</div>
|
||||
</div>
|
||||
<div class="aa-alert-content">{{ content }}</div>
|
||||
<div class="aa-alert-footer">
|
||||
<button class="aa-alert-btn" @click="emit('ok')">{{ okText }}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const props = defineProps({
|
||||
visible: { type: Boolean, default: false },
|
||||
type: { type: String, default: 'info' },
|
||||
title: { type: String, default: '提示' },
|
||||
content: { type: String, default: '' },
|
||||
okText: { type: String, default: '知道了' }
|
||||
});
|
||||
const emit = defineEmits(['ok']);
|
||||
const iconMap = { success: '✓', error: '✕', warning: '!', info: 'i' };
|
||||
</script>
|
||||
|
||||
<style src="./AlertModal.css"></style>
|
||||
Reference in New Issue
Block a user