adverich-kun-ui 0.1.302 → 0.1.303
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.
|
@@ -16,10 +16,7 @@ const $ = { class: "flex items-center justify-between gap-2 mb-2 print:hidden" }
|
|
|
16
16
|
hasActions: Boolean,
|
|
17
17
|
loading: Boolean,
|
|
18
18
|
rowClass: String,
|
|
19
|
-
border: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: "border border-slate-300 dark:border-slate-700"
|
|
22
|
-
},
|
|
19
|
+
border: { type: String, default: "border border-slate-300 dark:border-slate-700" },
|
|
23
20
|
rounded: { type: String, default: "rounded-sm" },
|
|
24
21
|
rowClassCondition: [String, Function],
|
|
25
22
|
customSlots: Object
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { useSlots as k, ref as c, computed as s, createBlock as r, openBlock as o, resolveDynamicComponent as $, mergeProps as p, withCtx as
|
|
1
|
+
import { useSlots as k, ref as c, computed as s, createBlock as r, openBlock as o, resolveDynamicComponent as $, mergeProps as p, withCtx as w, renderSlot as n, createCommentVNode as i, createElementVNode as d, createElementBlock as a, normalizeClass as u, normalizeStyle as B } from "vue";
|
|
2
2
|
import f from "./KunToolbarTitle.vue.js";
|
|
3
3
|
const N = {
|
|
4
4
|
key: 0,
|
|
5
|
-
class: "pl-2"
|
|
5
|
+
class: "pl-2 max-w-1/2"
|
|
6
6
|
}, P = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "flex-1 flex justify-center items-center"
|
|
8
|
+
class: "flex-1 flex justify-center items-center max-w-1/2"
|
|
9
9
|
}, R = {
|
|
10
10
|
key: 0,
|
|
11
|
-
class: "pr-2"
|
|
11
|
+
class: "pr-2 max-w-1/2"
|
|
12
12
|
}, H = {
|
|
13
13
|
__name: "KunToolbar",
|
|
14
14
|
props: {
|
|
@@ -38,7 +38,7 @@ const N = {
|
|
|
38
38
|
rightSectionClass: { type: String, default: "flex items-center gap-2 justify-end ml-auto" }
|
|
39
39
|
},
|
|
40
40
|
setup(t) {
|
|
41
|
-
const e = t,
|
|
41
|
+
const e = t, m = k(), g = c(null), h = c(null), x = s(() => e.extended || !!m.extension), y = s(() => {
|
|
42
42
|
switch (e.density) {
|
|
43
43
|
case "prominent":
|
|
44
44
|
return "min-h-[96px]";
|
|
@@ -66,13 +66,13 @@ const N = {
|
|
|
66
66
|
return (l, j) => (o(), r($(t.tag), p({
|
|
67
67
|
class: ["w-full flex flex-col relative", C.value]
|
|
68
68
|
}, l.$attrs), {
|
|
69
|
-
default:
|
|
69
|
+
default: w(() => [
|
|
70
70
|
t.image ? n(l.$slots, "image", { key: 0 }) : i("", !0),
|
|
71
71
|
d("div", {
|
|
72
72
|
ref_key: "contentRef",
|
|
73
|
-
ref:
|
|
73
|
+
ref: g,
|
|
74
74
|
class: u(["flex items-center w-full justify-between", [
|
|
75
|
-
|
|
75
|
+
y.value,
|
|
76
76
|
t.extended ? "min-h-[96px]" : "",
|
|
77
77
|
"px-4"
|
|
78
78
|
]])
|
|
@@ -114,12 +114,12 @@ const N = {
|
|
|
114
114
|
n(l.$slots, "append")
|
|
115
115
|
], 2)
|
|
116
116
|
], 2),
|
|
117
|
-
|
|
117
|
+
x.value ? (o(), a("div", {
|
|
118
118
|
key: 1,
|
|
119
119
|
ref_key: "extensionRef",
|
|
120
120
|
ref: h,
|
|
121
121
|
class: "w-full",
|
|
122
|
-
style:
|
|
122
|
+
style: B({ height: `${t.extensionHeight}px` })
|
|
123
123
|
}, [
|
|
124
124
|
n(l.$slots, "extension")
|
|
125
125
|
], 4)) : i("", !0)
|