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 }>()