@dazhicheng/ui 1.6.38 → 1.6.40
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/assets/svg/download.svg.js +1 -1
- package/dist/components/tt-area/TtArea.vue.js +1 -1
- package/dist/components/tt-drawer/src/components/DrawerHeader.vue.js +2 -2
- package/dist/components/tt-icon/index.vue.js +2 -2
- package/dist/components/tt-loading/src/loading.vue.js +2 -2
- package/dist/components/tt-modal/src/RenderModal.vue.js +258 -231
- package/dist/components/tt-modal/src/utils/modal-z-index.d.ts +7 -0
- package/dist/components/tt-modal/src/utils/modal-z-index.js +16 -14
- package/dist/components/tt-modal/src/utils/resolve-modal-target.d.ts +13 -0
- package/dist/components/tt-modal/src/utils/resolve-modal-target.js +106 -73
- package/dist/components/tt-nav-anchor/src/TtNavAnchor.vue.js +208 -181
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { TtIcon as
|
|
4
|
-
import { TtText as
|
|
1
|
+
import { defineComponent as $e, ref as h, computed as $, watch as _, useTemplateRef as U, onMounted as Ce, onActivated as Me, onDeactivated as ke, onBeforeUnmount as Re, watchPostEffect as Ne, nextTick as le, createElementBlock as g, openBlock as d, Fragment as ae, createElementVNode as u, createBlock as Ie, normalizeClass as a, unref as o, Teleport as Ae, createCommentVNode as j, normalizeStyle as Ee, createVNode as H, withCtx as re, createTextVNode as Ve, toDisplayString as se, renderList as De, renderSlot as He, isVNode as Oe, h as Se } from "vue";
|
|
2
|
+
import ze from "../../../assets/svg/drag.svg.js";
|
|
3
|
+
import { TtIcon as Pe } from "../../tt-icon/index.js";
|
|
4
|
+
import { TtText as Fe } from "../../tt-text/index.js";
|
|
5
5
|
import "../../../node_modules/.pnpm/vue-types@5.1.3_vue@3.5.21_typescript@5.9.3_/node_modules/vue-types/shim/index.modern.js";
|
|
6
|
-
import { useDesign as
|
|
6
|
+
import { useDesign as Be } from "../../../packages/hooks/src/useDesign.js";
|
|
7
7
|
import "axios";
|
|
8
|
-
import { useZIndex as
|
|
9
|
-
import { isString as
|
|
8
|
+
import { useZIndex as Ze, ElScrollbar as Xe } from "element-plus";
|
|
9
|
+
import { isString as Le, isFunction as ue, isNullOrUnDef as We, isArray as Ye, isObject as Ue } from "../../../packages/utils/src/is.js";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "numeral";
|
|
12
12
|
import "xe-utils";
|
|
@@ -19,9 +19,9 @@ import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-
|
|
|
19
19
|
import "../../../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-pkcs7.js";
|
|
20
20
|
import "lodash-es";
|
|
21
21
|
import "vue-router";
|
|
22
|
-
import { useElementSize as
|
|
23
|
-
import { TT_NAV_ANCHOR_DRAG_VISIBLE_SIZE_PX as
|
|
24
|
-
const
|
|
22
|
+
import { useElementSize as je, useDraggable as Ge } from "@vueuse/core";
|
|
23
|
+
import { TT_NAV_ANCHOR_DRAG_VISIBLE_SIZE_PX as O, TT_NAV_ANCHOR_ROOT_WIDTH_PX as y } from "./constants.js";
|
|
24
|
+
const qe = ["tabindex"], Je = ["onClick"], Ke = ["title"], xt = /* @__PURE__ */ $e({
|
|
25
25
|
name: "TtNavAnchor",
|
|
26
26
|
__name: "TtNavAnchor",
|
|
27
27
|
props: {
|
|
@@ -38,267 +38,294 @@ const Ze = ["tabindex"], Ye = ["onClick"], Ue = ["title"], _t = /* @__PURE__ */
|
|
|
38
38
|
collapseMode: {}
|
|
39
39
|
},
|
|
40
40
|
emits: ["change", "update:modelValue"],
|
|
41
|
-
setup(
|
|
42
|
-
var
|
|
43
|
-
const { prefixCls:
|
|
44
|
-
function
|
|
45
|
-
return
|
|
41
|
+
setup(ce, { emit: de }) {
|
|
42
|
+
var ie;
|
|
43
|
+
const { prefixCls: l } = Be("nav-anchor"), i = ce, G = de;
|
|
44
|
+
function fe(e) {
|
|
45
|
+
return We(e) || Oe(e) || Ye(e) ? e : Ue(e) || ue(e) ? Se(e) : e;
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
const { title:
|
|
49
|
-
return
|
|
47
|
+
function ve(e) {
|
|
48
|
+
const { title: n } = e.row;
|
|
49
|
+
return fe(ue(n) ? n(e.row) : n);
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
let
|
|
53
|
-
|
|
54
|
-
() =>
|
|
51
|
+
const C = h(i.modelValue || ((ie = i.items[0]) == null ? void 0 : ie.key) || ""), M = $(() => i.collapseMode), q = $(() => !!M.value), f = h(!1);
|
|
52
|
+
let w;
|
|
53
|
+
_(
|
|
54
|
+
() => i.modelValue,
|
|
55
55
|
(e) => {
|
|
56
|
-
e && (
|
|
56
|
+
e && (C.value = e);
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
|
-
function
|
|
60
|
-
|
|
59
|
+
function pe(e) {
|
|
60
|
+
C.value = e, G("update:modelValue", e), G("change", e);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
62
|
+
function S() {
|
|
63
|
+
w && (clearTimeout(w), w = void 0);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
65
|
+
function J() {
|
|
66
|
+
M.value === "hover" && (S(), f.value = !0);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
70
|
-
f.value = !1,
|
|
68
|
+
function K() {
|
|
69
|
+
M.value === "hover" && (S(), w = setTimeout(() => {
|
|
70
|
+
f.value = !1, w = void 0;
|
|
71
71
|
}, 180));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
|
|
73
|
+
function me(e) {
|
|
74
|
+
var n;
|
|
75
|
+
if (W(), I) {
|
|
76
|
+
I = !1;
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
M.value === "click" && (!f.value || (n = z.value) != null && n.contains(e.target)) && (f.value = !f.value);
|
|
80
80
|
}
|
|
81
|
-
const
|
|
82
|
-
function c(e,
|
|
83
|
-
return e == null ?
|
|
81
|
+
const b = U("navRef"), z = U("headerRef"), k = U("sourceRef"), R = h(!0), P = h(i.teleportTo || null), { height: F } = je(b);
|
|
82
|
+
function c(e, n) {
|
|
83
|
+
return e == null ? n : typeof e == "number" ? e : parseInt(e, 10) || n;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
86
|
-
let
|
|
87
|
-
function
|
|
88
|
-
if (typeof window > "u") return { x: e, y:
|
|
89
|
-
const
|
|
90
|
-
return { x: Math.max(0, Math.min(e,
|
|
85
|
+
const N = h(!1);
|
|
86
|
+
let B = { x: 0, y: 0 }, I = !1;
|
|
87
|
+
function he(e, n, t) {
|
|
88
|
+
if (typeof window > "u") return { x: e, y: n };
|
|
89
|
+
const r = Math.max(0, window.innerWidth - y), s = t > 0 ? Math.max(0, window.innerHeight - t) : window.innerHeight;
|
|
90
|
+
return { x: Math.max(0, Math.min(e, r)), y: Math.max(0, Math.min(n, s)) };
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
const { nextZIndex: A } = Ze(), x = h(A());
|
|
93
|
+
function Z() {
|
|
94
|
+
const e = k.value;
|
|
94
95
|
return e ? e.closest(".el-dialog, .tt-ui-modal") : null;
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function Q() {
|
|
98
|
+
var e;
|
|
99
|
+
return ((e = Z()) == null ? void 0 : e.closest(".el-overlay")) ?? null;
|
|
100
|
+
}
|
|
101
|
+
function _e(e) {
|
|
102
|
+
const n = e.style.zIndex || getComputedStyle(e).zIndex, t = Number.parseInt(n, 10);
|
|
103
|
+
return Number.isNaN(t) ? 0 : t;
|
|
104
|
+
}
|
|
105
|
+
function ee() {
|
|
106
|
+
const e = Q();
|
|
107
|
+
if (!e) return;
|
|
108
|
+
const n = _e(e);
|
|
109
|
+
if (x.value > n) return;
|
|
110
|
+
let t = A(), r = 0;
|
|
111
|
+
for (; t <= n && r < 2e3; )
|
|
112
|
+
t = A(), r += 1;
|
|
113
|
+
x.value = t;
|
|
114
|
+
}
|
|
115
|
+
function E(e) {
|
|
97
116
|
if (typeof window > "u") return { x: 0, y: 0 };
|
|
98
|
-
const
|
|
99
|
-
let
|
|
100
|
-
if (
|
|
101
|
-
const
|
|
102
|
-
|
|
117
|
+
const n = Z(), t = n == null ? void 0 : n.getBoundingClientRect();
|
|
118
|
+
let r, s;
|
|
119
|
+
if (t && t.width > 0) {
|
|
120
|
+
const Y = c(i.left, 0), Te = c(i.right, 24);
|
|
121
|
+
i.left !== void 0 ? r = t.left - y - Y : r = t.right + Te, i.top !== void 0 ? s = t.top + c(i.top, 0) : i.bottom !== void 0 ? s = e > 0 ? t.bottom - e - c(i.bottom, 24) : t.top : s = t.top;
|
|
103
122
|
} else
|
|
104
|
-
|
|
105
|
-
return
|
|
123
|
+
r = i.left !== void 0 ? c(i.left, 0) : window.innerWidth - y - c(i.right, 24), i.top !== void 0 ? s = c(i.top, 24) : i.bottom !== void 0 ? s = e > 0 ? window.innerHeight - e - c(i.bottom, 24) : 0 : s = 24;
|
|
124
|
+
return he(r, s, e);
|
|
106
125
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
126
|
+
function te() {
|
|
127
|
+
N.value || i.position === "static" || (T.value = E(F.value));
|
|
109
128
|
}
|
|
110
|
-
let p,
|
|
111
|
-
function
|
|
112
|
-
p == null || p.disconnect(), p = void 0,
|
|
129
|
+
let v, p, m;
|
|
130
|
+
function X() {
|
|
131
|
+
v == null || v.disconnect(), v = void 0, p == null || p.disconnect(), p = void 0, m == null || m.disconnect(), m = void 0;
|
|
113
132
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
116
|
-
|
|
133
|
+
function V() {
|
|
134
|
+
te(), ee();
|
|
135
|
+
}
|
|
136
|
+
function L() {
|
|
137
|
+
X();
|
|
138
|
+
const e = Z();
|
|
117
139
|
if (!e) {
|
|
118
|
-
|
|
140
|
+
te();
|
|
119
141
|
return;
|
|
120
142
|
}
|
|
121
|
-
V(), typeof MutationObserver < "u"
|
|
143
|
+
if (V(), typeof MutationObserver < "u") {
|
|
144
|
+
v = new MutationObserver(V), v.observe(e, { attributes: !0, attributeFilter: ["style", "class"] });
|
|
145
|
+
const n = Q();
|
|
146
|
+
n && (m = new MutationObserver(V), m.observe(n, { attributes: !0, attributeFilter: ["style", "class"] }));
|
|
147
|
+
}
|
|
148
|
+
typeof ResizeObserver < "u" && (p = new ResizeObserver(V), p.observe(e));
|
|
122
149
|
}
|
|
123
|
-
const {
|
|
124
|
-
style:
|
|
125
|
-
isDragging:
|
|
126
|
-
position:
|
|
127
|
-
} =
|
|
128
|
-
handle:
|
|
129
|
-
initialValue:
|
|
150
|
+
const {
|
|
151
|
+
style: ge,
|
|
152
|
+
isDragging: ye,
|
|
153
|
+
position: T
|
|
154
|
+
} = Ge(b, {
|
|
155
|
+
handle: z,
|
|
156
|
+
initialValue: E(0),
|
|
130
157
|
preventDefault: !0,
|
|
131
158
|
onStart() {
|
|
132
|
-
|
|
159
|
+
N.value = !0, B = { ...T.value }, I = !1, W();
|
|
133
160
|
},
|
|
134
161
|
onMove(e) {
|
|
135
|
-
if (typeof window > "u" || !
|
|
136
|
-
(Math.abs(e.x -
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
x: Math.max(
|
|
140
|
-
y: Math.max(
|
|
162
|
+
if (typeof window > "u" || !b.value) return;
|
|
163
|
+
(Math.abs(e.x - B.x) > 3 || Math.abs(e.y - B.y) > 3) && (I = !0);
|
|
164
|
+
const n = b.value.getBoundingClientRect(), t = Math.min(0, O - n.width), r = Math.max(0, document.documentElement.clientWidth - O), s = Math.min(0, O - n.height), Y = Math.max(0, document.documentElement.clientHeight - O);
|
|
165
|
+
T.value = {
|
|
166
|
+
x: Math.max(t, Math.min(e.x, r)),
|
|
167
|
+
y: Math.max(s, Math.min(e.y, Y))
|
|
141
168
|
};
|
|
142
169
|
}
|
|
143
170
|
});
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}),
|
|
147
|
-
|
|
171
|
+
_(F, (e) => {
|
|
172
|
+
N.value || e <= 0 || (T.value = E(e));
|
|
173
|
+
}), _([() => i.left, () => i.right, () => i.top, () => i.bottom], () => {
|
|
174
|
+
N.value = !1, T.value = E(F.value), L();
|
|
148
175
|
});
|
|
149
|
-
const
|
|
150
|
-
const e = { "--tt-nav-anchor-root-width": `${
|
|
151
|
-
if (
|
|
152
|
-
return { "--tt-nav-anchor-root-width": `${
|
|
153
|
-
const
|
|
154
|
-
return typeof
|
|
155
|
-
}),
|
|
156
|
-
function
|
|
157
|
-
if (
|
|
176
|
+
const we = $(() => {
|
|
177
|
+
const e = { "--tt-nav-anchor-root-width": `${y}px`, zIndex: x.value };
|
|
178
|
+
if (i.position === "static")
|
|
179
|
+
return { "--tt-nav-anchor-root-width": `${y}px` };
|
|
180
|
+
const n = ge.value;
|
|
181
|
+
return typeof n == "string" ? `${n};--tt-nav-anchor-root-width:${y}px;z-index:${x.value}` : [n, e];
|
|
182
|
+
}), be = $(() => i.position === "static" || !!P.value), oe = $(() => R.value && be.value);
|
|
183
|
+
function xe() {
|
|
184
|
+
if (i.teleportTo) return i.teleportTo;
|
|
158
185
|
if (typeof window > "u" || !window.__MICRO_APP_ENVIRONMENT__) return "body";
|
|
159
|
-
const e =
|
|
186
|
+
const e = k.value;
|
|
160
187
|
return e ? e.closest("micro-app, [data-v-app], #app") ?? "body" : "body";
|
|
161
188
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
189
|
+
function ne() {
|
|
190
|
+
P.value = xe();
|
|
164
191
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
192
|
+
function W() {
|
|
193
|
+
x.value = A(), ee();
|
|
167
194
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
195
|
+
function D() {
|
|
196
|
+
ne(), le(() => L());
|
|
170
197
|
}
|
|
171
|
-
return
|
|
172
|
-
|
|
173
|
-
}),
|
|
174
|
-
|
|
175
|
-
}),
|
|
176
|
-
|
|
177
|
-
}),
|
|
178
|
-
|
|
179
|
-
}),
|
|
180
|
-
|
|
181
|
-
}),
|
|
182
|
-
() =>
|
|
198
|
+
return Ce(() => {
|
|
199
|
+
D();
|
|
200
|
+
}), Me(() => {
|
|
201
|
+
R.value = !0, D();
|
|
202
|
+
}), ke(() => {
|
|
203
|
+
R.value = !1, X();
|
|
204
|
+
}), Re(() => {
|
|
205
|
+
S(), X();
|
|
206
|
+
}), _(k, () => {
|
|
207
|
+
D();
|
|
208
|
+
}), _(
|
|
209
|
+
() => i.teleportTo,
|
|
183
210
|
() => {
|
|
184
|
-
|
|
211
|
+
D();
|
|
185
212
|
}
|
|
186
|
-
),
|
|
187
|
-
|
|
188
|
-
}),
|
|
189
|
-
e &&
|
|
190
|
-
}), (e,
|
|
213
|
+
), Ne(() => {
|
|
214
|
+
R.value && ne();
|
|
215
|
+
}), _(oe, (e) => {
|
|
216
|
+
e && le(() => L());
|
|
217
|
+
}), (e, n) => (d(), g(ae, null, [
|
|
191
218
|
u("span", {
|
|
192
219
|
ref_key: "sourceRef",
|
|
193
|
-
ref:
|
|
194
|
-
class:
|
|
220
|
+
ref: k,
|
|
221
|
+
class: a(`${o(l)}__source`),
|
|
195
222
|
"aria-hidden": "true"
|
|
196
223
|
}, null, 2),
|
|
197
|
-
(d(),
|
|
198
|
-
to:
|
|
224
|
+
(d(), Ie(Ae, {
|
|
225
|
+
to: P.value || "body",
|
|
199
226
|
disabled: e.position === "static"
|
|
200
227
|
}, [
|
|
201
|
-
|
|
228
|
+
oe.value ? (d(), g("div", {
|
|
202
229
|
key: 0,
|
|
203
230
|
ref_key: "navRef",
|
|
204
|
-
ref:
|
|
205
|
-
class:
|
|
206
|
-
|
|
207
|
-
{ [`${
|
|
208
|
-
{ [`${
|
|
209
|
-
{ [`${
|
|
231
|
+
ref: b,
|
|
232
|
+
class: a([
|
|
233
|
+
o(l),
|
|
234
|
+
{ [`${o(l)}--dragging`]: o(ye) },
|
|
235
|
+
{ [`${o(l)}--collapse-on-hover`]: q.value },
|
|
236
|
+
{ [`${o(l)}--collapse-on-hover-expanded`]: f.value }
|
|
210
237
|
]),
|
|
211
|
-
style:
|
|
212
|
-
tabindex:
|
|
213
|
-
onMouseenter:
|
|
214
|
-
onMouseleave:
|
|
215
|
-
onFocusin:
|
|
216
|
-
onFocusout:
|
|
217
|
-
onClick:
|
|
238
|
+
style: Ee(we.value),
|
|
239
|
+
tabindex: q.value ? 0 : void 0,
|
|
240
|
+
onMouseenter: J,
|
|
241
|
+
onMouseleave: K,
|
|
242
|
+
onFocusin: J,
|
|
243
|
+
onFocusout: K,
|
|
244
|
+
onClick: me
|
|
218
245
|
}, [
|
|
219
246
|
u("div", {
|
|
220
247
|
ref_key: "headerRef",
|
|
221
|
-
ref:
|
|
222
|
-
class:
|
|
223
|
-
onClick:
|
|
248
|
+
ref: z,
|
|
249
|
+
class: a(`${o(l)}__header`),
|
|
250
|
+
onClick: W
|
|
224
251
|
}, [
|
|
225
|
-
|
|
226
|
-
class:
|
|
227
|
-
icon:
|
|
252
|
+
H(o(Pe), {
|
|
253
|
+
class: a(["opacity-0", `${o(l)}__drag-icon`]),
|
|
254
|
+
icon: o(ze),
|
|
228
255
|
size: 16,
|
|
229
256
|
"is-custom-svg": ""
|
|
230
257
|
}, null, 8, ["icon", "class"]),
|
|
231
|
-
|
|
232
|
-
class:
|
|
258
|
+
H(o(Fe), {
|
|
259
|
+
class: a(`${o(l)}__title`),
|
|
233
260
|
"tool-tip": !1
|
|
234
261
|
}, {
|
|
235
|
-
default:
|
|
236
|
-
|
|
262
|
+
default: re(() => [
|
|
263
|
+
Ve(se(e.title), 1)
|
|
237
264
|
]),
|
|
238
265
|
_: 1
|
|
239
266
|
}, 8, ["class"])
|
|
240
267
|
], 2),
|
|
241
268
|
u("div", {
|
|
242
|
-
class:
|
|
269
|
+
class: a(`${o(l)}__body`)
|
|
243
270
|
}, [
|
|
244
|
-
|
|
271
|
+
H(o(Xe), {
|
|
245
272
|
tag: "ul",
|
|
246
|
-
"view-class": `${
|
|
273
|
+
"view-class": `${o(l)}__list`,
|
|
247
274
|
"max-height": 400
|
|
248
275
|
}, {
|
|
249
|
-
default:
|
|
250
|
-
(d(!0),
|
|
251
|
-
key:
|
|
252
|
-
class:
|
|
276
|
+
default: re(() => [
|
|
277
|
+
(d(!0), g(ae, null, De(e.items, (t, r) => (d(), g("li", {
|
|
278
|
+
key: t.key,
|
|
279
|
+
class: a(`${o(l)}__node`)
|
|
253
280
|
}, [
|
|
254
281
|
u("div", {
|
|
255
|
-
class:
|
|
282
|
+
class: a(`${o(l)}__content`)
|
|
256
283
|
}, [
|
|
257
284
|
u("div", {
|
|
258
|
-
class:
|
|
259
|
-
`${
|
|
260
|
-
{ [`${
|
|
261
|
-
{ [`${
|
|
285
|
+
class: a([
|
|
286
|
+
`${o(l)}__item`,
|
|
287
|
+
{ [`${o(l)}__item--active`]: C.value === t.key },
|
|
288
|
+
{ [`${o(l)}__item--error`]: e.badgeCounts[t.key] }
|
|
262
289
|
]),
|
|
263
|
-
onClick: (
|
|
290
|
+
onClick: (s) => pe(t.key)
|
|
264
291
|
}, [
|
|
265
|
-
e.badgeCounts[
|
|
292
|
+
e.badgeCounts[t.key] ? (d(), g("span", {
|
|
266
293
|
key: 0,
|
|
267
|
-
class:
|
|
268
|
-
},
|
|
294
|
+
class: a(`${o(l)}__badge`)
|
|
295
|
+
}, se(e.badgeCounts[t.key]), 3)) : j("", !0),
|
|
269
296
|
u("span", {
|
|
270
|
-
class:
|
|
297
|
+
class: a(`${o(l)}__item-main`)
|
|
271
298
|
}, [
|
|
272
299
|
u("span", {
|
|
273
|
-
class:
|
|
274
|
-
title:
|
|
300
|
+
class: a(`${o(l)}__item-text`),
|
|
301
|
+
title: o(Le)(t.title) ? t.title : void 0
|
|
275
302
|
}, [
|
|
276
|
-
|
|
277
|
-
], 10,
|
|
278
|
-
e.$slots.description ? (d(),
|
|
303
|
+
H(ve, { row: t }, null, 8, ["row"])
|
|
304
|
+
], 10, Ke),
|
|
305
|
+
e.$slots.description ? (d(), g("span", {
|
|
279
306
|
key: 0,
|
|
280
|
-
class:
|
|
307
|
+
class: a(`${o(l)}__item-description`)
|
|
281
308
|
}, [
|
|
282
|
-
|
|
283
|
-
], 2)) :
|
|
309
|
+
He(e.$slots, "description", { row: t })
|
|
310
|
+
], 2)) : j("", !0)
|
|
284
311
|
], 2)
|
|
285
|
-
], 10,
|
|
312
|
+
], 10, Je)
|
|
286
313
|
], 2),
|
|
287
314
|
u("div", {
|
|
288
|
-
class:
|
|
315
|
+
class: a(`${o(l)}__rail`)
|
|
289
316
|
}, [
|
|
290
317
|
u("span", {
|
|
291
|
-
class:
|
|
318
|
+
class: a([`${o(l)}__line-slot`, { [`${o(l)}__line-slot--visible`]: r > 0 }])
|
|
292
319
|
}, null, 2),
|
|
293
320
|
u("span", {
|
|
294
|
-
class:
|
|
295
|
-
`${
|
|
296
|
-
{ [`${
|
|
297
|
-
{ [`${
|
|
321
|
+
class: a([
|
|
322
|
+
`${o(l)}__dot`,
|
|
323
|
+
{ [`${o(l)}__dot--active`]: C.value === t.key },
|
|
324
|
+
{ [`${o(l)}__dot--error`]: e.badgeCounts[t.key] }
|
|
298
325
|
])
|
|
299
326
|
}, null, 2),
|
|
300
327
|
u("span", {
|
|
301
|
-
class:
|
|
328
|
+
class: a([`${o(l)}__line-slot`, { [`${o(l)}__line-slot--visible`]: r < e.items.length - 1 }])
|
|
302
329
|
}, null, 2)
|
|
303
330
|
], 2)
|
|
304
331
|
], 2))), 128))
|
|
@@ -306,11 +333,11 @@ const Ze = ["tabindex"], Ye = ["onClick"], Ue = ["title"], _t = /* @__PURE__ */
|
|
|
306
333
|
_: 3
|
|
307
334
|
}, 8, ["view-class"])
|
|
308
335
|
], 2)
|
|
309
|
-
], 46,
|
|
336
|
+
], 46, qe)) : j("", !0)
|
|
310
337
|
], 8, ["to", "disabled"]))
|
|
311
338
|
], 64));
|
|
312
339
|
}
|
|
313
340
|
});
|
|
314
341
|
export {
|
|
315
|
-
|
|
342
|
+
xt as default
|
|
316
343
|
};
|