nuxt-hs-ui 2.1.3 → 2.1.5
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.
package/dist/module.json
CHANGED
|
@@ -20,14 +20,24 @@ import CardItem from "../layout/card-item.vue";
|
|
|
20
20
|
interface Props {
|
|
21
21
|
class?: ClassType;
|
|
22
22
|
links: { label: string; to?: string }[];
|
|
23
|
+
classLink?: ClassType;
|
|
24
|
+
classUnlink?: ClassType;
|
|
23
25
|
}
|
|
24
26
|
const props = withDefaults(defineProps<Props>(), {
|
|
25
27
|
class: "",
|
|
28
|
+
classLink: "",
|
|
29
|
+
classUnlink: "",
|
|
26
30
|
});
|
|
27
31
|
|
|
28
32
|
const classStyle = computed(() => {
|
|
29
33
|
return twMerge(`w-full min-w-0`, ClassTypeToString(props.class));
|
|
30
34
|
});
|
|
35
|
+
const classStyleLink = computed(() => {
|
|
36
|
+
return twMerge(`text-main1`, ClassTypeToString(props.classLink));
|
|
37
|
+
});
|
|
38
|
+
const classStyleUnlink = computed(() => {
|
|
39
|
+
return twMerge(`text-gray-600`, ClassTypeToString(props.classLink));
|
|
40
|
+
});
|
|
31
41
|
</script>
|
|
32
42
|
|
|
33
43
|
<template>
|
|
@@ -43,15 +53,14 @@ const classStyle = computed(() => {
|
|
|
43
53
|
<NuxtLink
|
|
44
54
|
v-if="item.to !== undefined"
|
|
45
55
|
:to="item.to"
|
|
46
|
-
class="
|
|
47
|
-
:class="{ hasBefore: index !== 0 }"
|
|
56
|
+
:class="[classStyleLink, { hasBefore: index !== 0 }]"
|
|
48
57
|
>
|
|
49
58
|
{{ item.label }}
|
|
50
59
|
</NuxtLink>
|
|
51
60
|
<span
|
|
52
61
|
v-else
|
|
53
|
-
class="
|
|
54
|
-
:class="{ hasBefore: index !== 0 }"
|
|
62
|
+
class=""
|
|
63
|
+
:class="[classStyleUnlink, { hasBefore: index !== 0 }]"
|
|
55
64
|
>
|
|
56
65
|
{{ item.label }}
|
|
57
66
|
</span>
|