refactor(ui): 优化 Alert 组件的包裹结构

This commit is contained in:
dap
2026-03-23 11:49:44 +08:00
parent aa1ffd221b
commit b69447efea

View File

@@ -84,22 +84,29 @@ function keepOneMessage() {
<template> <template>
<div class="p-5"> <div class="p-5">
<Alert class="mb-5" :show-icon="true" type="success"> <div class="mb-5">
<template #message> <Alert :show-icon="true" type="success">
该分支使用antdv-next替代不维护的ant-design-vue <template #message>
<a-button class="ml-2" size="small" type="primary" @click="handleClick"> 该分支使用antdv-next替代不维护的ant-design-vue
新的 notification 样式 <a-button
</a-button> class="ml-2"
<a-button size="small"
class="ml-2" type="primary"
size="small" @click="handleClick"
type="primary" >
@click="keepOneMessage" 新的 notification 样式
> </a-button>
保持一条消息 <a-button
</a-button> class="ml-2"
</template> size="small"
</Alert> type="primary"
@click="keepOneMessage"
>
保持一条消息
</a-button>
</template>
</Alert>
</div>
<Spin :spinning="loading"> <Spin :spinning="loading">
<MarkdownPreviewer <MarkdownPreviewer