@bjj/nuxt-layer-shadcn-ui 0.12.9 → 0.12.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -18,8 +18,6 @@ const localePath = useLocalePath()
|
|
|
18
18
|
|
|
19
19
|
const isExternal = computed(() => props.href ? isUrl(props.href) : false)
|
|
20
20
|
|
|
21
|
-
const showExternalIcon = computed(() => props.externalIcon && isExternal.value)
|
|
22
|
-
|
|
23
21
|
// Compute the final destination (supports both href string and to route object)
|
|
24
22
|
const finalTo = computed<RouteLocationRaw | undefined>(() => {
|
|
25
23
|
if (props.to) return props.to
|
|
@@ -39,6 +37,8 @@ const finalRel = computed(() => {
|
|
|
39
37
|
return finalTarget.value === '_blank' ? 'noopener noreferrer' : undefined
|
|
40
38
|
})
|
|
41
39
|
|
|
40
|
+
const showExternalIcon = computed(() => props.externalIcon && finalTarget.value === '_blank')
|
|
41
|
+
|
|
42
42
|
// Merge default class with external class
|
|
43
43
|
const mergedClass = computed(() => {
|
|
44
44
|
if (props.unstyled) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bjj/nuxt-layer-shadcn-ui",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.10",
|
|
4
4
|
"description": "Nuxt layer providing shadcn-vue based UI components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"vue-i18n": "^11",
|
|
43
43
|
"vue-router": "^4 || ^5"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "acf837f913649d6fc7abc4688ddcdee097e45ab9"
|
|
46
46
|
}
|