refactor: ele DocAlert 样式优化和 antd 的保持一致

pull/102/head
puhui999 2025-05-13 11:05:55 +08:00
parent bf44d97e0b
commit 64dd603dbb
1 changed files with 7 additions and 11 deletions

View File

@ -23,16 +23,12 @@ const goToUrl = () => {
}; };
</script> </script>
<!-- TODO @puhui999样式有点问题间隔没了可以看下 antd 版本的例子哈 -->
<template> <template>
<ElAlert <div class="mb-2 rounded">
v-if="isDocAlertEnable()" <ElAlert v-if="isDocAlertEnable()" type="info" :closable="false" show-icon>
type="info" <ElLink type="primary" @click="goToUrl">
:closable="false" {{ title }}文档地址{{ url }}
class="mb-2 rounded" </ElLink>
> </ElAlert>
<ElLink type="primary" @click="goToUrl"> </div>
{{ title }}文档地址{{ url }}
</ElLink>
</ElAlert>
</template> </template>