jcloud/dashboard/src2/components/AlertAddressableError.vue
2025-04-12 17:39:38 +08:00

24 lines
547 B
Vue

<template>
<AlertBanner :title="title" type="error">
<Button class="ml-auto" variant="outline" @click="show"> 查看 </Button>
</AlertBanner>
</template>
<script>
import AlertBanner from './AlertBanner.vue';
import { addressableErrorDialog } from '../utils/components';
export default {
name: 'AlertAddressableError',
components: { AlertBanner },
emits: ['done'],
props: {
name: String,
title: String
},
methods: {
show() {
addressableErrorDialog(this.name, () => this.$emit('done'));
}
}
};
</script>