Files
aurora-admin/site/sources/alertmodal/vue2.txt
T
aurora-admin c65a69c34e
Deploy to GitHub Pages / deploy (push) Failing after 16s
Regression / regression (push) Failing after 15m2s
feat(P4): precompute移植+app.js sources双向回填+回归1003/1003+验收体积/文件/data.json
2026-09-12 14:18:41 +08:00

33 lines
984 B
Plaintext

<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>
export default {
name: 'AaAlertModal',
props: {
visible: { type: Boolean, default: false },
type: { type: String, default: 'info' },
title: { type: String, default: '提示' },
content: { type: String, default: '' },
okText: { type: String, default: '知道了' }
},
data: function () {
return { iconMap: { success: '✓', error: '✕', warning: '!', info: 'i' } };
}
};
</script>
<style src="./AlertModal.css"></style>