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