From a0de3c660a60dd24bd4f6d3663e144a4a3c1aa39 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Tue, 15 Apr 2025 21:26:50 +0800 Subject: [PATCH] feat(theme): add `target/rel` props support for `LinkCard` (#556) --- docs/notes/theme/guide/components/link-card.md | 1 + theme/src/client/components/global/VPLinkCard.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/notes/theme/guide/components/link-card.md b/docs/notes/theme/guide/components/link-card.md index 8c9d8581..2c6fc317 100644 --- a/docs/notes/theme/guide/components/link-card.md +++ b/docs/notes/theme/guide/components/link-card.md @@ -17,6 +17,7 @@ permalink: /guide/components/link-card/ | icon | `string \| { svg: string }` | `''` | 显示在标题左侧的图标,支持 iconify 所有图标,也可以使用 图片链接 | | href | `string` | `''` | 链接 | | description | `string` | `''` | 详情 | +| target | `string` | `''` | 链接打开方式 | ## 插槽 diff --git a/theme/src/client/components/global/VPLinkCard.vue b/theme/src/client/components/global/VPLinkCard.vue index 611edac1..f35a2252 100644 --- a/theme/src/client/components/global/VPLinkCard.vue +++ b/theme/src/client/components/global/VPLinkCard.vue @@ -7,13 +7,15 @@ defineProps<{ title?: string icon?: string | { svg: string } description?: string + target?: string + rel?: string }>()