chore: 适配 element-plus 2.5.2

This commit is contained in:
pany 2024-01-19 19:37:28 +08:00
parent 7317e96e7b
commit 2e1e72099a

View File

@ -1,5 +1,4 @@
<script lang="ts" setup> <script lang="ts" setup>
import { h } from "vue"
import { useTheme } from "@/hooks/useTheme" import { useTheme } from "@/hooks/useTheme"
import { ElNotification } from "element-plus" import { ElNotification } from "element-plus"
// Element Plus // Element Plus
@ -14,11 +13,9 @@ initTheme()
ElNotification({ ElNotification({
title: "Hello", title: "Hello",
type: "success", type: "success",
message: h( dangerouslyUseHTMLString: true,
"a", message:
{ style: "color: teal", target: "_blank", href: "https://github.com/un-pany/v3-admin-vite" }, "<a style='color: teal' target='_blank' href='https://github.com/un-pany/v3-admin-vite'>小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)</a>",
"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"
),
duration: 0, duration: 0,
position: "bottom-right" position: "bottom-right"
}) })