adverich-kun-ui 0.1.396 → 0.1.398
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import { kunCardProps as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { computed as y, resolveComponent as _, createBlock as r, openBlock as o, withCtx as l, resolveDynamicComponent as $, mergeProps as h, withKeys as z, withModifiers as B, createElementBlock as i, createCommentVNode as n, createVNode as s, renderSlot as u } from "vue";
|
|
2
|
+
import { kunCardProps as g } from "../composables/kunCardProps.js";
|
|
3
|
+
import a from "../../../KunCardItem/src/components/KunCardItem.vue.js";
|
|
4
|
+
import v from "../../../KunCardTitle/src/components/KunCardTitle.vue.js";
|
|
5
|
+
import b from "../../../KunCardText/src/components/KunCardText.vue.js";
|
|
6
|
+
import C from "../../../KunCardActions/src/components/KunCardActions.vue.js";
|
|
7
|
+
const L = { key: 0 }, j = { key: 1 }, D = { key: 2 }, N = { key: 0 }, P = { key: 1 }, R = { key: 2 }, q = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
8
8
|
__name: "KunCard",
|
|
9
|
-
props:
|
|
10
|
-
setup(
|
|
11
|
-
const t =
|
|
9
|
+
props: g,
|
|
10
|
+
setup(w) {
|
|
11
|
+
const t = w, f = y(() => !!(t.to || t.href)), m = y(() => [
|
|
12
12
|
"w-full",
|
|
13
13
|
t.bgColor,
|
|
14
14
|
t.textColor || "text-black",
|
|
@@ -17,33 +17,32 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
|
|
|
17
17
|
t.flat ? "shadow-none" : `shadow-${t.elevation}`,
|
|
18
18
|
f.value ? "cursor-pointer" : ""
|
|
19
19
|
].filter(Boolean).join(" "));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
function p(e, k) {
|
|
21
|
+
e.ctrlKey || e.metaKey || e.button === 1 || (e.preventDefault(), k(e));
|
|
22
|
+
}
|
|
23
|
+
return (e, k) => {
|
|
24
|
+
const K = _("RouterLink");
|
|
25
|
+
return f.value ? (o(), r(K, {
|
|
23
26
|
key: 0,
|
|
24
27
|
to: t.to,
|
|
25
28
|
replace: t.replace,
|
|
26
|
-
custom: !0
|
|
27
|
-
role: "link",
|
|
28
|
-
tabindex: "0"
|
|
29
|
+
custom: !0
|
|
29
30
|
}, {
|
|
30
|
-
default:
|
|
31
|
-
(o(),
|
|
32
|
-
href:
|
|
31
|
+
default: l(({ href: S, navigate: c }) => [
|
|
32
|
+
(o(), r($("a"), h({
|
|
33
|
+
href: S,
|
|
33
34
|
class: m.value
|
|
34
35
|
}, e.$attrs, {
|
|
35
|
-
onClick: (
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
l.ctrlKey || l.metaKey || l.button === 1 || p(l);
|
|
40
|
-
}, ["prevent"]), ["enter"])
|
|
36
|
+
onClick: (d) => p(d, c),
|
|
37
|
+
onKeydown: z(B((d) => p(d, c), ["prevent"]), ["enter"]),
|
|
38
|
+
role: "link",
|
|
39
|
+
tabindex: "0"
|
|
41
40
|
}), {
|
|
42
|
-
default:
|
|
43
|
-
e.$slots.title || e.title || e.subtitle ? (o(),
|
|
44
|
-
|
|
45
|
-
default:
|
|
46
|
-
|
|
41
|
+
default: l(() => [
|
|
42
|
+
e.$slots.title || e.title || e.subtitle ? (o(), i("div", L, [
|
|
43
|
+
s(a, { dense: "" }, {
|
|
44
|
+
default: l(() => [
|
|
45
|
+
s(v, {
|
|
47
46
|
title: e.title,
|
|
48
47
|
subtitle: e.subtitle,
|
|
49
48
|
titleSize: e.titleSize
|
|
@@ -52,18 +51,18 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
|
|
|
52
51
|
_: 1
|
|
53
52
|
})
|
|
54
53
|
])) : n("", !0),
|
|
55
|
-
e.$slots.default || e.text ? (o(),
|
|
56
|
-
e.text ? (o(),
|
|
57
|
-
default:
|
|
58
|
-
|
|
54
|
+
e.$slots.default || e.text ? (o(), i("div", j, [
|
|
55
|
+
e.text ? (o(), r(a, { key: 0 }, {
|
|
56
|
+
default: l(() => [
|
|
57
|
+
s(b, { text: e.text }, null, 8, ["text"])
|
|
59
58
|
]),
|
|
60
59
|
_: 1
|
|
61
|
-
})) :
|
|
60
|
+
})) : u(e.$slots, "default", { key: 1 })
|
|
62
61
|
])) : n("", !0),
|
|
63
|
-
e.$slots.actions ? (o(),
|
|
64
|
-
|
|
65
|
-
default:
|
|
66
|
-
|
|
62
|
+
e.$slots.actions ? (o(), i("div", D, [
|
|
63
|
+
s(C, null, {
|
|
64
|
+
default: l(() => [
|
|
65
|
+
u(e.$slots, "actions")
|
|
67
66
|
]),
|
|
68
67
|
_: 3
|
|
69
68
|
})
|
|
@@ -73,15 +72,15 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
|
|
|
73
72
|
}, 1040, ["href", "class", "onClick", "onKeydown"]))
|
|
74
73
|
]),
|
|
75
74
|
_: 3
|
|
76
|
-
}, 8, ["to", "replace"])) : (o(),
|
|
75
|
+
}, 8, ["to", "replace"])) : (o(), r($("div"), h({
|
|
77
76
|
key: 1,
|
|
78
77
|
class: m.value
|
|
79
78
|
}, e.$attrs), {
|
|
80
|
-
default:
|
|
81
|
-
e.$slots.title || e.title || e.subtitle ? (o(),
|
|
82
|
-
|
|
83
|
-
default:
|
|
84
|
-
|
|
79
|
+
default: l(() => [
|
|
80
|
+
e.$slots.title || e.title || e.subtitle ? (o(), i("div", N, [
|
|
81
|
+
s(a, { dense: "" }, {
|
|
82
|
+
default: l(() => [
|
|
83
|
+
s(v, {
|
|
85
84
|
title: e.title,
|
|
86
85
|
subtitle: e.subtitle,
|
|
87
86
|
titleSize: e.titleSize
|
|
@@ -90,18 +89,18 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
|
|
|
90
89
|
_: 1
|
|
91
90
|
})
|
|
92
91
|
])) : n("", !0),
|
|
93
|
-
e.$slots.default || e.text ? (o(),
|
|
94
|
-
e.text ? (o(),
|
|
95
|
-
default:
|
|
96
|
-
|
|
92
|
+
e.$slots.default || e.text ? (o(), i("div", P, [
|
|
93
|
+
e.text ? (o(), r(a, { key: 0 }, {
|
|
94
|
+
default: l(() => [
|
|
95
|
+
s(b, { text: e.text }, null, 8, ["text"])
|
|
97
96
|
]),
|
|
98
97
|
_: 1
|
|
99
|
-
})) :
|
|
98
|
+
})) : u(e.$slots, "default", { key: 1 })
|
|
100
99
|
])) : n("", !0),
|
|
101
|
-
e.$slots.actions ? (o(),
|
|
102
|
-
|
|
103
|
-
default:
|
|
104
|
-
|
|
100
|
+
e.$slots.actions ? (o(), i("div", R, [
|
|
101
|
+
s(C, null, {
|
|
102
|
+
default: l(() => [
|
|
103
|
+
u(e.$slots, "actions")
|
|
105
104
|
]),
|
|
106
105
|
_: 3
|
|
107
106
|
})
|
|
@@ -113,5 +112,5 @@ const B = { key: 0 }, g = { key: 1 }, L = { key: 2 }, j = { key: 0 }, N = { key:
|
|
|
113
112
|
}
|
|
114
113
|
});
|
|
115
114
|
export {
|
|
116
|
-
|
|
115
|
+
q as default
|
|
117
116
|
};
|