@das-fed/ui 7.1.0-dev.10 → 7.1.0-dev.12
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/package.json +5 -5
- package/packages/business-components/ai-panel/{index-DMJXZM7n.js → index-8yffh0Id.js} +1056 -1067
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-MqhMkLo9.js → index-IzGl26KU.js} +9 -9
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-_q72oKSF.js → index-OwRrV6K8.js} +62 -63
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.d.ts +1 -1
- package/packages/business-components/device-panel/index.js +11286 -11344
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/render-panel.d.ts +2 -1
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/echarts/index.js +2049 -2056
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +72 -74
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +46 -46
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +99 -99
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +77 -77
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +213 -215
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1096 -1104
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +240 -243
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +294 -294
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/type.d.ts +2 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/autocomplete/index.js +6 -12
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/calendar/index.js +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +2 -2
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +30 -30
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/collapse-panel/index.js +64 -39
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-panel/style.css +1 -1
- package/packages/components/collapse-panel/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +212 -212
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.d.ts +3 -0
- package/packages/components/dialog/index.js +64 -65
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +2 -0
- package/packages/components/dialog/src/type.d.ts +2 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +75 -77
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +24 -25
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +397 -398
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +45 -47
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/hls-player/index.js +7 -14
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +143 -147
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +293 -297
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +52 -52
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +26 -26
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +248 -251
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +415 -421
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/popover/index.js +12 -12
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +34 -34
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4583 -4613
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +24 -24
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.js +60 -60
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +5 -9
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +14 -16
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +51 -53
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +33 -33
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +128 -129
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +178 -179
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +1 -1
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1093 -1117
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
|
@@ -15,63 +15,63 @@ import "@das-fed/ui/packages/global/theme";
|
|
|
15
15
|
const oe = () => ({ getDateTime: (t) => {
|
|
16
16
|
const v = `2020/${t}`;
|
|
17
17
|
return new Date(v).getTime();
|
|
18
|
-
}, formatDateStr: (t) => t >= 10 ? t : "0" + t }), Ee = (k,
|
|
19
|
-
const i = y({ begin: "", end: "" }), C = y(""), { getDateTime:
|
|
18
|
+
}, formatDateStr: (t) => t >= 10 ? t : "0" + t }), Ee = (k, g, r, t, v, l, w) => {
|
|
19
|
+
const i = y({ begin: "", end: "" }), C = y(""), { getDateTime: f, formatDateStr: u } = oe();
|
|
20
20
|
return {
|
|
21
21
|
popClickData: i,
|
|
22
22
|
isInRange: (n, s) => {
|
|
23
23
|
if (!i.value.begin || !i.value.end) return !1;
|
|
24
24
|
const m = {
|
|
25
25
|
left: k.value,
|
|
26
|
-
right:
|
|
27
|
-
}, o =
|
|
26
|
+
right: g.value
|
|
27
|
+
}, o = f(`${u(m[s])}/${u(n)}`), D = f(i.value.begin), $ = f(i.value.end);
|
|
28
28
|
return o <= $ && o >= D;
|
|
29
29
|
},
|
|
30
30
|
isInHoverRange: (n, s) => {
|
|
31
31
|
if (!r.value[0] || !r.value[1]) return !1;
|
|
32
32
|
const m = {
|
|
33
33
|
left: k.value,
|
|
34
|
-
right:
|
|
35
|
-
}, o =
|
|
34
|
+
right: g.value
|
|
35
|
+
}, o = f(`${u(m[s])}/${u(n)}`), D = f(r.value[0]), $ = f(r.value[1]);
|
|
36
36
|
return o <= $ && o >= D;
|
|
37
37
|
},
|
|
38
38
|
isInNewRange: (n, s) => {
|
|
39
39
|
if (!i.value.begin || !i.value.end || !C.value) return !1;
|
|
40
40
|
const m = {
|
|
41
41
|
left: k.value,
|
|
42
|
-
right:
|
|
43
|
-
}, o =
|
|
44
|
-
let $ =
|
|
42
|
+
right: g.value
|
|
43
|
+
}, o = f(`${u(m[s])}/${u(n)}`), D = f(C.value);
|
|
44
|
+
let $ = f(i.value.begin), L = f(i.value.end);
|
|
45
45
|
return t.value === "begin" ? (D > $ && ($ = D), o <= L && o >= $) : (D < L && (L = D), o <= L && o >= $);
|
|
46
46
|
},
|
|
47
47
|
outBeginDate: (n, s) => {
|
|
48
48
|
if (!i.value.begin) return !1;
|
|
49
49
|
const m = {
|
|
50
50
|
left: k.value,
|
|
51
|
-
right:
|
|
52
|
-
}, o =
|
|
51
|
+
right: g.value
|
|
52
|
+
}, o = f(`${u(m[s])}/${u(n)}`), D = f(i.value.begin);
|
|
53
53
|
return v.value === 1 && t.value === "end" && o < D;
|
|
54
54
|
},
|
|
55
55
|
outEndDate: (n, s) => {
|
|
56
56
|
if (!i.value.end) return !1;
|
|
57
57
|
const m = {
|
|
58
58
|
left: k.value,
|
|
59
|
-
right:
|
|
60
|
-
}, o =
|
|
59
|
+
right: g.value
|
|
60
|
+
}, o = f(`${u(m[s])}/${u(n)}`), D = f(i.value.end);
|
|
61
61
|
return v.value === 1 && t.value === "begin" && o > D;
|
|
62
62
|
},
|
|
63
63
|
clickData: (n, s) => {
|
|
64
64
|
v.value++;
|
|
65
65
|
const m = {
|
|
66
66
|
left: k.value,
|
|
67
|
-
right:
|
|
67
|
+
right: g.value
|
|
68
68
|
}, o = `${u(m[s])}/${u(n)}`;
|
|
69
69
|
t.value === "begin" ? i.value.begin = o : i.value.end = o, v.value === 1 ? t.value = t.value === "begin" ? "end" : "begin" : w();
|
|
70
70
|
},
|
|
71
71
|
mouseEnter: (n, s) => {
|
|
72
72
|
const m = {
|
|
73
73
|
left: k.value,
|
|
74
|
-
right:
|
|
74
|
+
right: g.value
|
|
75
75
|
}, o = `${u(m[s])}/${u(n)}`;
|
|
76
76
|
C.value = o, t.value === "begin" ? r.value[0] = o : r.value[1] = o;
|
|
77
77
|
},
|
|
@@ -80,7 +80,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
80
80
|
}
|
|
81
81
|
};
|
|
82
82
|
}, Se = (k) => {
|
|
83
|
-
const
|
|
83
|
+
const g = y(), r = y(!1), t = y(0), v = y({
|
|
84
84
|
x: 0,
|
|
85
85
|
y: 0
|
|
86
86
|
}), l = W(() => ({
|
|
@@ -106,14 +106,12 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
106
106
|
// 'word-break': 'break-all',
|
|
107
107
|
}), C = () => {
|
|
108
108
|
var R, B, z;
|
|
109
|
-
t.value = (R =
|
|
110
|
-
const { top:
|
|
111
|
-
|
|
112
|
-
const M = (z = f.value) == null ? void 0 : z.clientHeight;
|
|
113
|
-
v.value.x = b, v.value.y = p + M;
|
|
109
|
+
t.value = (R = g.value) == null ? void 0 : R.clientWidth;
|
|
110
|
+
const { top: h = 0, left: b = 0 } = ((B = g.value) == null ? void 0 : B.getBoundingClientRect()) ?? {}, M = (z = g.value) == null ? void 0 : z.clientHeight;
|
|
111
|
+
v.value.x = b, v.value.y = h + M;
|
|
114
112
|
};
|
|
115
113
|
return {
|
|
116
|
-
$dasSpecialRangeYearPicker:
|
|
114
|
+
$dasSpecialRangeYearPicker: g,
|
|
117
115
|
isHoverInInput: r,
|
|
118
116
|
errorModalBaseSyle: l,
|
|
119
117
|
errorModelStyle: w,
|
|
@@ -144,22 +142,22 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
144
142
|
errorModelZIndex: { default: 2e3 }
|
|
145
143
|
},
|
|
146
144
|
emits: ["update:modelValue", "update:error", "change", "show-popover"],
|
|
147
|
-
setup(k, { emit:
|
|
148
|
-
const r = k, t =
|
|
145
|
+
setup(k, { emit: g }) {
|
|
146
|
+
const r = k, t = g, v = y(!1), l = te(r, "modelValue"), w = y(["", ""]), i = te(r, "error"), C = y(0), f = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], u = y({}), h = y(1), b = y(2), M = y(void 0);
|
|
149
147
|
let R = !0;
|
|
150
|
-
const B = y(0), z = W(() => !r.disabled && !r.isView && l.value[0] && l.value[1]), T = (
|
|
148
|
+
const B = y(0), z = W(() => !r.disabled && !r.isView && l.value[0] && l.value[1]), T = (p, c) => {
|
|
151
149
|
if (!(r.disabled || r.isView)) {
|
|
152
|
-
if (R = !1, v.value = !0, M.value = c, B.value = 0, w.value = [l.value[0], l.value[1]],
|
|
153
|
-
const a = Number(
|
|
154
|
-
c === "begin" ? (
|
|
150
|
+
if (R = !1, v.value = !0, M.value = c, B.value = 0, w.value = [l.value[0], l.value[1]], p) {
|
|
151
|
+
const a = Number(p.split("/")[0]);
|
|
152
|
+
c === "begin" ? (h.value = a < 12 ? a : 11, b.value = h.value + 1) : (b.value = a > 1 ? a : 2, h.value = b.value - 1);
|
|
155
153
|
} else
|
|
156
|
-
|
|
154
|
+
h.value = C.value < 12 ? C.value : 11, b.value = h.value + 1;
|
|
157
155
|
t("show-popover");
|
|
158
156
|
}
|
|
159
157
|
}, Z = () => {
|
|
160
158
|
M.value = void 0;
|
|
161
|
-
const
|
|
162
|
-
t("update:modelValue", [
|
|
159
|
+
const p = s.value;
|
|
160
|
+
t("update:modelValue", [p.begin, p.end]), t("change", [p.begin, p.end]), t("update:error", !1), v.value = !1;
|
|
163
161
|
}, { formatDateStr: n } = oe(), {
|
|
164
162
|
popClickData: s,
|
|
165
163
|
isInRange: m,
|
|
@@ -170,7 +168,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
170
168
|
clickData: A,
|
|
171
169
|
mouseEnter: j,
|
|
172
170
|
mouseLeave: F
|
|
173
|
-
} = Ee(
|
|
171
|
+
} = Ee(h, b, w, M, B, l, Z), {
|
|
174
172
|
$dasSpecialRangeYearPicker: ne,
|
|
175
173
|
isHoverInInput: q,
|
|
176
174
|
errorModalBaseSyle: le,
|
|
@@ -179,9 +177,9 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
179
177
|
errorModalInputMouseEnter: J,
|
|
180
178
|
errorModallInputMouseLeave: K
|
|
181
179
|
} = Se(r), ie = () => {
|
|
182
|
-
|
|
180
|
+
h.value !== 1 && (h.value--, b.value--);
|
|
183
181
|
}, ue = () => {
|
|
184
|
-
b.value !== 12 && (b.value++,
|
|
182
|
+
b.value !== 12 && (b.value++, h.value++);
|
|
185
183
|
}, ce = () => {
|
|
186
184
|
setTimeout(() => {
|
|
187
185
|
if (!R) {
|
|
@@ -192,20 +190,20 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
192
190
|
}, 50);
|
|
193
191
|
}, de = () => {
|
|
194
192
|
t("update:modelValue", [null, null]), t("update:error", !1), t("change", [null, null]);
|
|
195
|
-
}, ve = (
|
|
193
|
+
}, ve = (p) => {
|
|
196
194
|
const c = (_) => Array.from({ length: _ }, (Q, pe) => pe + 1), a = /* @__PURE__ */ new Date();
|
|
197
|
-
C.value = a.getMonth() + 1,
|
|
198
|
-
|
|
195
|
+
C.value = a.getMonth() + 1, f.forEach((_, Q) => {
|
|
196
|
+
p[Q + 1] = c(_);
|
|
199
197
|
}), s.value = { begin: l.value[0], end: l.value[1] };
|
|
200
198
|
};
|
|
201
199
|
return me(() => {
|
|
202
200
|
ve(u.value);
|
|
203
|
-
}), (
|
|
201
|
+
}), (p, c) => (I(), E(
|
|
204
202
|
"div",
|
|
205
203
|
{
|
|
206
204
|
ref_key: "$dasSpecialRangeYearPicker",
|
|
207
205
|
ref: ne,
|
|
208
|
-
style: P({ width:
|
|
206
|
+
style: P({ width: p.width, position: "relative" }),
|
|
209
207
|
onMouseenter: c[4] || (c[4] = //@ts-ignore
|
|
210
208
|
(...a) => e(J) && e(J)(...a)),
|
|
211
209
|
onMouseleave: c[5] || (c[5] = //@ts-ignore
|
|
@@ -216,12 +214,12 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
216
214
|
"div",
|
|
217
215
|
{
|
|
218
216
|
class: S(["das-ui-special-range-picker-year-container", [
|
|
219
|
-
|
|
217
|
+
p.borderType,
|
|
220
218
|
r.disabled ? "disabled" : "",
|
|
221
219
|
r.isView ? "readonly" : "",
|
|
222
220
|
{ active: M.value !== void 0 },
|
|
223
221
|
e(i) ? "is-error" : "",
|
|
224
|
-
|
|
222
|
+
p.size
|
|
225
223
|
]])
|
|
226
224
|
},
|
|
227
225
|
[
|
|
@@ -298,7 +296,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
298
296
|
d(
|
|
299
297
|
"div",
|
|
300
298
|
{
|
|
301
|
-
class: S(["turn-btn turn-left", { disabled:
|
|
299
|
+
class: S(["turn-btn turn-left", { disabled: h.value === 1 }])
|
|
302
300
|
},
|
|
303
301
|
[
|
|
304
302
|
V(e(xe), {
|
|
@@ -312,7 +310,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
312
310
|
/* CLASS */
|
|
313
311
|
),
|
|
314
312
|
O(
|
|
315
|
-
" " + x(
|
|
313
|
+
" " + x(h.value) + x(e(N)("das-special-range-picker-month").value),
|
|
316
314
|
1
|
|
317
315
|
/* TEXT */
|
|
318
316
|
)
|
|
@@ -328,12 +326,12 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
328
326
|
(I(!0), E(
|
|
329
327
|
Y,
|
|
330
328
|
null,
|
|
331
|
-
re(u.value[
|
|
329
|
+
re(u.value[h.value], (a) => (I(), E("div", {
|
|
332
330
|
class: S(["item", {
|
|
333
331
|
"in-range": e(m)(a, "left") || e(o)(a, "left"),
|
|
334
332
|
"new-range": e(D)(a, "left"),
|
|
335
|
-
"range-start": e(s).begin === `${e(n)(
|
|
336
|
-
"range-end": e(s).end === `${e(n)(
|
|
333
|
+
"range-start": e(s).begin === `${e(n)(h.value)}/${e(n)(a)}`,
|
|
334
|
+
"range-end": e(s).end === `${e(n)(h.value)}/${e(n)(a)}`,
|
|
337
335
|
"out-range": e($)(a, "left") || e(L)(a, "left")
|
|
338
336
|
}]),
|
|
339
337
|
onMouseenter: (_) => e(j)(a, "left"),
|
|
@@ -428,13 +426,13 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
428
426
|
2
|
|
429
427
|
/* CLASS */
|
|
430
428
|
),
|
|
431
|
-
e(i) &&
|
|
429
|
+
e(i) && p.errorLabel ? (I(), E(
|
|
432
430
|
Y,
|
|
433
431
|
{ key: 0 },
|
|
434
432
|
[
|
|
435
|
-
|
|
433
|
+
p.errorMode === "default" ? ae((I(), E("div", Ye, [
|
|
436
434
|
O(
|
|
437
|
-
x(
|
|
435
|
+
x(p.errorLabel),
|
|
438
436
|
1
|
|
439
437
|
/* TEXT */
|
|
440
438
|
)
|
|
@@ -459,7 +457,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
459
457
|
{
|
|
460
458
|
style: P(e(G))
|
|
461
459
|
},
|
|
462
|
-
x(
|
|
460
|
+
x(p.errorLabel),
|
|
463
461
|
5
|
|
464
462
|
/* TEXT, STYLE */
|
|
465
463
|
)
|
|
@@ -480,7 +478,7 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
480
478
|
{
|
|
481
479
|
style: P(e(G))
|
|
482
480
|
},
|
|
483
|
-
x(
|
|
481
|
+
x(p.errorLabel),
|
|
484
482
|
5
|
|
485
483
|
/* TEXT, STYLE */
|
|
486
484
|
)
|
|
@@ -501,9 +499,9 @@ const oe = () => ({ getDateTime: (t) => {
|
|
|
501
499
|
/* STYLE, NEED_HYDRATION */
|
|
502
500
|
));
|
|
503
501
|
}
|
|
504
|
-
}), Oe = (k,
|
|
502
|
+
}), Oe = (k, g) => {
|
|
505
503
|
const r = k.__vccOpts || k;
|
|
506
|
-
for (const [t, v] of
|
|
504
|
+
for (const [t, v] of g)
|
|
507
505
|
r[t] = v;
|
|
508
506
|
return r;
|
|
509
507
|
}, We = /* @__PURE__ */ Oe(Te, [["__scopeId", "data-v-124b18e9"]]), Ze = {
|
|
Binary file
|
|
@@ -2,25 +2,25 @@ import '@das-fed/ui/packages/components/spin/style.css';
|
|
|
2
2
|
import { getVarValue as u, setThemeRule as _ } from "@das-fed/web/packages/theme/index";
|
|
3
3
|
import { setI18nRule as v, t as g } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { withInstall as $ } from "@das-fed/utils/with-install/index";
|
|
5
|
-
import { createElementBlock as
|
|
6
|
-
import { Spin as
|
|
5
|
+
import { createElementBlock as n, openBlock as d, createStaticVNode as m, createElementVNode as l, defineComponent as C, ref as h, useAttrs as S, watch as p, h as e, normalizeClass as z, createVNode as I, unref as f, mergeProps as y, withCtx as L, renderSlot as V } from "vue";
|
|
6
|
+
import { Spin as b } from "ant-design-vue";
|
|
7
7
|
import "ant-design-vue/es/spin/style/css";
|
|
8
|
-
import { DasIconLoad as
|
|
8
|
+
import { DasIconLoad as k } from "@das-fed/ui/packages/icons/load/index";
|
|
9
9
|
import "@das-fed/ui/packages/global/theme";
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
for (const [i,
|
|
13
|
-
|
|
14
|
-
return
|
|
15
|
-
},
|
|
16
|
-
function
|
|
17
|
-
return
|
|
10
|
+
const r = (t, s) => {
|
|
11
|
+
const o = t.__vccOpts || t;
|
|
12
|
+
for (const [i, a] of s)
|
|
13
|
+
o[i] = a;
|
|
14
|
+
return o;
|
|
15
|
+
}, x = {}, N = { class: "das-spin-container das-spin-page" };
|
|
16
|
+
function B(t, s) {
|
|
17
|
+
return d(), n("div", N, s[0] || (s[0] = [
|
|
18
18
|
m('<div class="das-spin-dot-spin" data-v-323f37a9><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i><i class="das-spin-dot-item" data-v-323f37a9></i></div>', 1)
|
|
19
19
|
]));
|
|
20
20
|
}
|
|
21
|
-
const
|
|
22
|
-
function
|
|
23
|
-
return
|
|
21
|
+
const w = /* @__PURE__ */ r(x, [["render", B], ["__scopeId", "data-v-323f37a9"]]), D = {}, E = { class: "das-spin-container das-spin-component" };
|
|
22
|
+
function P(t, s) {
|
|
23
|
+
return d(), n("div", E, s[0] || (s[0] = [
|
|
24
24
|
l(
|
|
25
25
|
"div",
|
|
26
26
|
{ class: "das-spin-dot-spin" },
|
|
@@ -32,13 +32,13 @@ function A(t, o) {
|
|
|
32
32
|
)
|
|
33
33
|
]));
|
|
34
34
|
}
|
|
35
|
-
const
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
const R = /* @__PURE__ */ r(D, [["render", P], ["__scopeId", "data-v-f47a1ae6"]]), A = {}, O = { class: "das-spin-container das-spin-containerload" };
|
|
36
|
+
function T(t, s) {
|
|
37
|
+
return d(), n("div", O, s[0] || (s[0] = [
|
|
38
38
|
m('<div class="das-spin-dot-spin" data-v-f7548f22><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i><i class="das-spin-dot-item" data-v-f7548f22></i></div>', 1)
|
|
39
39
|
]));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const j = /* @__PURE__ */ r(A, [["render", T], ["__scopeId", "data-v-f7548f22"]]), q = /* @__PURE__ */ C({
|
|
42
42
|
__name: "index",
|
|
43
43
|
props: {
|
|
44
44
|
type: { default: "page" },
|
|
@@ -48,34 +48,34 @@ const q = /* @__PURE__ */ c(T, [["render", j], ["__scopeId", "data-v-f7548f22"]]
|
|
|
48
48
|
full: { type: Boolean, default: !0 }
|
|
49
49
|
},
|
|
50
50
|
setup(t) {
|
|
51
|
-
let
|
|
51
|
+
let s = t, o = h("");
|
|
52
52
|
const i = S();
|
|
53
53
|
return p(
|
|
54
|
-
() =>
|
|
55
|
-
(
|
|
56
|
-
|
|
57
|
-
iconColor:
|
|
58
|
-
customSize:
|
|
54
|
+
() => s.type,
|
|
55
|
+
(a, c) => {
|
|
56
|
+
a == "page" && (o.value = e(w)), a == "container" && (o.value = e(j)), a == "component" && (o.value = e(R)), a == "load" && (o.value = e(k, {
|
|
57
|
+
iconColor: s.iconColor,
|
|
58
|
+
customSize: s.customSize
|
|
59
59
|
}));
|
|
60
60
|
},
|
|
61
61
|
{ immediate: !0 }
|
|
62
62
|
), p(
|
|
63
63
|
() => i,
|
|
64
|
-
(
|
|
65
|
-
|
|
64
|
+
(a, c) => {
|
|
65
|
+
i.indicator && (o.value = i.indicator);
|
|
66
66
|
},
|
|
67
67
|
{ immediate: !0 }
|
|
68
|
-
), (
|
|
68
|
+
), (a, c) => (d(), n(
|
|
69
69
|
"div",
|
|
70
70
|
{
|
|
71
|
-
class: z({ "das-spin-container": !0, full:
|
|
71
|
+
class: z({ "das-spin-container": !0, full: a.full })
|
|
72
72
|
},
|
|
73
73
|
[
|
|
74
|
-
I(f(
|
|
75
|
-
class: `das-slef-spin ${
|
|
76
|
-
},
|
|
74
|
+
I(f(b), y({
|
|
75
|
+
class: `das-slef-spin ${a.size} ${a.type} `
|
|
76
|
+
}, a.$attrs, { indicator: f(o) }), {
|
|
77
77
|
default: L(() => [
|
|
78
|
-
|
|
78
|
+
V(a.$slots, "default")
|
|
79
79
|
]),
|
|
80
80
|
_: 3
|
|
81
81
|
/* FORWARDED */
|
|
@@ -95,7 +95,7 @@ const q = /* @__PURE__ */ c(T, [["render", j], ["__scopeId", "data-v-f7548f22"]]
|
|
|
95
95
|
}, G = { 加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" } };
|
|
96
96
|
v(G);
|
|
97
97
|
_(F);
|
|
98
|
-
const Y = $(
|
|
98
|
+
const Y = $(q), Z = { name: `Spin ${g("加载中")}` };
|
|
99
99
|
export {
|
|
100
100
|
Y as DasSpin,
|
|
101
101
|
Z as default
|
|
Binary file
|