refactor: ele DocAlert 样式优化和 antd 的保持一致
parent
bf44d97e0b
commit
64dd603dbb
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue