adverich-kun-ui 0.1.303 → 0.1.305
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 { 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
|
|
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 l, createCommentVNode as i, createElementVNode as u, createElementBlock as a, normalizeClass as d, 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 max-w-1/2"
|
|
5
|
+
class: "pl-2 max-w-1/2 truncate"
|
|
6
6
|
}, P = {
|
|
7
7
|
key: 0,
|
|
8
|
-
class: "flex
|
|
8
|
+
class: "flex justify-center items-center max-w-1/2 truncate"
|
|
9
9
|
}, R = {
|
|
10
10
|
key: 0,
|
|
11
|
-
class: "pr-2 max-w-1/2"
|
|
11
|
+
class: "pr-2 max-w-1/2 truncate"
|
|
12
12
|
}, H = {
|
|
13
13
|
__name: "KunToolbar",
|
|
14
14
|
props: {
|
|
@@ -34,8 +34,8 @@ const N = {
|
|
|
34
34
|
theme: String,
|
|
35
35
|
tile: Boolean,
|
|
36
36
|
title: String,
|
|
37
|
-
leftSectionClass: { type: String, default: "flex items-center gap-2" },
|
|
38
|
-
rightSectionClass: { type: String, default: "flex items-center gap-2 justify-end
|
|
37
|
+
leftSectionClass: { type: String, default: "flex items-center gap-x-2" },
|
|
38
|
+
rightSectionClass: { type: String, default: "flex items-center gap-x-2 justify-end" }
|
|
39
39
|
},
|
|
40
40
|
setup(t) {
|
|
41
41
|
const e = t, m = k(), g = c(null), h = c(null), x = s(() => e.extended || !!m.extension), y = s(() => {
|
|
@@ -63,26 +63,26 @@ const N = {
|
|
|
63
63
|
b.value,
|
|
64
64
|
S.value
|
|
65
65
|
);
|
|
66
|
-
return (
|
|
66
|
+
return (n, j) => (o(), r($(t.tag), p({
|
|
67
67
|
class: ["w-full flex flex-col relative", C.value]
|
|
68
|
-
},
|
|
68
|
+
}, n.$attrs), {
|
|
69
69
|
default: w(() => [
|
|
70
|
-
t.image ? n
|
|
71
|
-
|
|
70
|
+
t.image ? l(n.$slots, "image", { key: 0 }) : i("", !0),
|
|
71
|
+
u("div", {
|
|
72
72
|
ref_key: "contentRef",
|
|
73
73
|
ref: g,
|
|
74
|
-
class:
|
|
74
|
+
class: d(["flex items-center w-full justify-between", [
|
|
75
75
|
y.value,
|
|
76
76
|
t.extended ? "min-h-[96px]" : "",
|
|
77
|
-
"px-
|
|
77
|
+
"px-2"
|
|
78
78
|
]])
|
|
79
79
|
}, [
|
|
80
|
-
|
|
81
|
-
class:
|
|
80
|
+
u("div", {
|
|
81
|
+
class: d(t.leftSectionClass)
|
|
82
82
|
}, [
|
|
83
|
-
n
|
|
83
|
+
l(n.$slots, "prepend"),
|
|
84
84
|
t.titlePosition === "left" ? (o(), a("div", N, [
|
|
85
|
-
n
|
|
85
|
+
l(n.$slots, "title", {}, () => [
|
|
86
86
|
t.title ? (o(), r(f, {
|
|
87
87
|
key: 0,
|
|
88
88
|
text: t.title
|
|
@@ -90,28 +90,28 @@ const N = {
|
|
|
90
90
|
])
|
|
91
91
|
])) : i("", !0)
|
|
92
92
|
], 2),
|
|
93
|
-
n
|
|
93
|
+
l(n.$slots, "default"),
|
|
94
94
|
t.titlePosition === "center" ? (o(), a("div", P, [
|
|
95
|
-
n
|
|
95
|
+
l(n.$slots, "title", {}, () => [
|
|
96
96
|
t.title ? (o(), r(f, {
|
|
97
97
|
key: 0,
|
|
98
98
|
text: t.title
|
|
99
99
|
}, null, 8, ["text"])) : i("", !0)
|
|
100
100
|
])
|
|
101
101
|
])) : i("", !0),
|
|
102
|
-
|
|
103
|
-
class:
|
|
102
|
+
u("div", {
|
|
103
|
+
class: d(t.rightSectionClass)
|
|
104
104
|
}, [
|
|
105
|
-
n
|
|
105
|
+
l(n.$slots, "items"),
|
|
106
106
|
t.titlePosition === "right" ? (o(), a("div", R, [
|
|
107
|
-
n
|
|
107
|
+
l(n.$slots, "title", {}, () => [
|
|
108
108
|
t.title ? (o(), r(f, {
|
|
109
109
|
key: 0,
|
|
110
110
|
text: t.title
|
|
111
111
|
}, null, 8, ["text"])) : i("", !0)
|
|
112
112
|
])
|
|
113
113
|
])) : i("", !0),
|
|
114
|
-
n
|
|
114
|
+
l(n.$slots, "append")
|
|
115
115
|
], 2)
|
|
116
116
|
], 2),
|
|
117
117
|
x.value ? (o(), a("div", {
|
|
@@ -121,7 +121,7 @@ const N = {
|
|
|
121
121
|
class: "w-full",
|
|
122
122
|
style: B({ height: `${t.extensionHeight}px` })
|
|
123
123
|
}, [
|
|
124
|
-
n
|
|
124
|
+
l(n.$slots, "extension")
|
|
125
125
|
], 4)) : i("", !0)
|
|
126
126
|
]),
|
|
127
127
|
_: 3
|