@das-fed/upf-ui 6.4.0-dev.249 → 6.4.0-dev.250
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/front-end/i18n/front-end-page/dasui_en-US.js +2 -2
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +2 -2
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +2 -2
- package/package.json +3 -3
- package/packages/components/checkbox/index.d.ts +9 -9
- package/packages/components/checkbox/src/Index.vue.d.ts +1 -1
- package/packages/components/date-picker/index.js +637 -636
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/date-picker/style.css +1 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/loading/index.js +176 -174
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/progress/index.js +207 -213
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/progress/style.css +1 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/radio/index.d.ts +9 -9
- package/packages/components/radio/src/Index.vue.d.ts +1 -1
- package/packages/components/search-form/index.js +124 -124
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/src/InputSelect.vue.d.ts +2 -2
- package/packages/components/search-form/src/SearchDateRange.vue.d.ts +2 -2
- package/packages/components/search-form/src/hooks/searchFormItem.d.ts +1 -1
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/select/index.js +139 -138
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select/src/type.d.ts +2 -0
- package/packages/components/select/style.css +1 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/spin/index.js +46 -52
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/tree-select/src/App.vue.d.ts +2 -0
- package/packages/components/tree-select/src/hooks/use-tree-select.d.ts +2 -0
- package/packages/components/virtual-tree/index.js +99 -105
- package/packages/components/virtual-tree/index.js.gz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { setI18nRule as
|
|
1
|
+
import { inject as R, ref as I, computed as b, unref as j, openBlock as V, createElementBlock as A, createStaticVNode as K, createElementVNode as E, reactive as W, defineComponent as X, h as _, Transition as ee, withCtx as te, withDirectives as ne, createVNode as se, vShow as ae, createApp as oe, toRefs as re, nextTick as F, isRef as ce } from "vue";
|
|
2
|
+
import { setI18nRule as de, t as le } from "@das-fed/upf-web/packages/i18n/index"
|
|
3
3
|
import '@das-fed/upf-ui/packages/components/loading/style.css';
|
|
4
4
|
;
|
|
5
5
|
/**
|
|
@@ -9,187 +9,189 @@ import '@das-fed/upf-ui/packages/components/loading/style.css';
|
|
|
9
9
|
**/
|
|
10
10
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
11
11
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
12
|
-
const
|
|
12
|
+
const G = (t) => typeof t == "string", q = (t) => t !== null && typeof t == "object", M = (t) => {
|
|
13
13
|
const e = /* @__PURE__ */ Object.create(null);
|
|
14
14
|
return (n) => e[n] || (e[n] = t(n));
|
|
15
|
-
},
|
|
16
|
-
(t) => t.replace(
|
|
17
|
-
),
|
|
18
|
-
(t) => t.replace(
|
|
19
|
-
),
|
|
20
|
-
var
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
!t || !e.trim() || t.classList.add(...
|
|
15
|
+
}, ie = /-\w/g, ue = M(
|
|
16
|
+
(t) => t.replace(ie, (e) => e.slice(1).toUpperCase())
|
|
17
|
+
), fe = /\B([A-Z])/g, me = M(
|
|
18
|
+
(t) => t.replace(fe, "-$1").toLowerCase()
|
|
19
|
+
), ve = (t) => typeof t == "number";
|
|
20
|
+
var O;
|
|
21
|
+
const k = typeof window < "u";
|
|
22
|
+
k && ((O = window == null ? void 0 : window.navigator) != null && O.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
23
|
+
const U = (t = "") => t.split(" ").filter((e) => !!e.trim()), S = (t, e) => {
|
|
24
|
+
!t || !e.trim() || t.classList.add(...U(e));
|
|
25
25
|
}, $ = (t, e) => {
|
|
26
|
-
!t || !e.trim() || t.classList.remove(...
|
|
27
|
-
},
|
|
28
|
-
var
|
|
29
|
-
if (!
|
|
30
|
-
let n =
|
|
26
|
+
!t || !e.trim() || t.classList.remove(...U(e));
|
|
27
|
+
}, y = (t, e) => {
|
|
28
|
+
var o;
|
|
29
|
+
if (!k || !t || !e) return "";
|
|
30
|
+
let n = ue(e);
|
|
31
31
|
n === "float" && (n = "cssFloat");
|
|
32
32
|
try {
|
|
33
33
|
const c = t.style[n];
|
|
34
34
|
if (c) return c;
|
|
35
|
-
const
|
|
36
|
-
return
|
|
35
|
+
const s = (o = document.defaultView) == null ? void 0 : o.getComputedStyle(t, "");
|
|
36
|
+
return s ? s[n] : "";
|
|
37
37
|
} catch {
|
|
38
38
|
return t.style[n];
|
|
39
39
|
}
|
|
40
|
-
},
|
|
41
|
-
let
|
|
42
|
-
return n && (
|
|
43
|
-
},
|
|
44
|
-
const e = t ||
|
|
45
|
-
return
|
|
46
|
-
},
|
|
47
|
-
const n =
|
|
40
|
+
}, w = "das", ge = "is-", f = (t, e, n, o, c) => {
|
|
41
|
+
let s = `${t}-${e}`;
|
|
42
|
+
return n && (s += `-${n}`), o && (s += `__${o}`), c && (s += `--${c}`), s;
|
|
43
|
+
}, pe = Symbol("namespaceContextKey"), ye = (t) => {
|
|
44
|
+
const e = t || R(pe, I(w));
|
|
45
|
+
return b(() => j(e) || w);
|
|
46
|
+
}, be = (t, e) => {
|
|
47
|
+
const n = ye(e);
|
|
48
48
|
return {
|
|
49
49
|
namespace: n,
|
|
50
|
-
b: (a = "") =>
|
|
51
|
-
e: (a) => a ?
|
|
52
|
-
m: (a) => a ?
|
|
53
|
-
be: (a, r) => a && r ?
|
|
54
|
-
em: (a, r) => a && r ?
|
|
55
|
-
bm: (a, r) => a && r ?
|
|
56
|
-
bem: (a, r,
|
|
50
|
+
b: (a = "") => f(n.value, t, a, "", ""),
|
|
51
|
+
e: (a) => a ? f(n.value, t, "", a, "") : "",
|
|
52
|
+
m: (a) => a ? f(n.value, t, "", "", a) : "",
|
|
53
|
+
be: (a, r) => a && r ? f(n.value, t, a, r, "") : "",
|
|
54
|
+
em: (a, r) => a && r ? f(n.value, t, "", a, r) : "",
|
|
55
|
+
bm: (a, r) => a && r ? f(n.value, t, a, "", r) : "",
|
|
56
|
+
bem: (a, r, l) => a && r && l ? f(n.value, t, a, r, l) : "",
|
|
57
57
|
is: (a, ...r) => {
|
|
58
|
-
const
|
|
59
|
-
return a &&
|
|
58
|
+
const l = r.length >= 1 ? r[0] : !0;
|
|
59
|
+
return a && l ? `${ge}${a}` : "";
|
|
60
60
|
},
|
|
61
61
|
// css
|
|
62
62
|
cssVar: (a) => {
|
|
63
63
|
const r = {};
|
|
64
|
-
for (const
|
|
65
|
-
a[
|
|
64
|
+
for (const l in a)
|
|
65
|
+
a[l] && (r[`--${n.value}-${l}`] = a[l]);
|
|
66
66
|
return r;
|
|
67
67
|
},
|
|
68
68
|
cssVarName: (a) => `--${n.value}-${a}`,
|
|
69
69
|
cssVarBlock: (a) => {
|
|
70
70
|
const r = {};
|
|
71
|
-
for (const
|
|
72
|
-
a[
|
|
71
|
+
for (const l in a)
|
|
72
|
+
a[l] && (r[`--${n.value}-${t}-${l}`] = a[l]);
|
|
73
73
|
return r;
|
|
74
74
|
},
|
|
75
75
|
cssVarBlockName: (a) => `--${n.value}-${t}-${a}`
|
|
76
76
|
};
|
|
77
|
-
},
|
|
78
|
-
const e = t ||
|
|
79
|
-
const
|
|
80
|
-
return
|
|
81
|
-
}),
|
|
77
|
+
}, P = I(0), Y = 2e3, xe = Symbol("zIndexContextKey"), _e = (t) => {
|
|
78
|
+
const e = t || R(xe, void 0), n = b(() => {
|
|
79
|
+
const s = j(e);
|
|
80
|
+
return ve(s) ? s : Y;
|
|
81
|
+
}), o = b(() => n.value + P.value);
|
|
82
82
|
return {
|
|
83
83
|
initialZIndex: n,
|
|
84
|
-
currentZIndex:
|
|
85
|
-
nextZIndex: () => (
|
|
84
|
+
currentZIndex: o,
|
|
85
|
+
nextZIndex: () => (P.value++, o.value)
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
function
|
|
89
|
-
const e =
|
|
88
|
+
function Ce(t) {
|
|
89
|
+
const e = be(
|
|
90
90
|
t,
|
|
91
|
-
|
|
92
|
-
), n =
|
|
93
|
-
|
|
91
|
+
b(() => w)
|
|
92
|
+
), n = _e(
|
|
93
|
+
b(() => Y)
|
|
94
94
|
);
|
|
95
95
|
return {
|
|
96
96
|
ns: e,
|
|
97
97
|
zIndex: n
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const z = (t, e) => {
|
|
101
101
|
const n = t.__vccOpts || t;
|
|
102
|
-
for (const [
|
|
103
|
-
n[
|
|
102
|
+
for (const [o, c] of e)
|
|
103
|
+
n[o] = c;
|
|
104
104
|
return n;
|
|
105
|
-
},
|
|
106
|
-
function
|
|
107
|
-
return
|
|
108
|
-
|
|
105
|
+
}, $e = {}, Ie = { class: "das-loading-container das-loading-page" };
|
|
106
|
+
function he(t, e) {
|
|
107
|
+
return V(), A("div", Ie, [...e[0] || (e[0] = [
|
|
108
|
+
K('<div class="das-loading-dot-loading" data-v-556fdb62><i class="das-loading-dot-item" data-v-556fdb62></i><i class="das-loading-dot-item" data-v-556fdb62></i><i class="das-loading-dot-item" data-v-556fdb62></i><i class="das-loading-dot-item" data-v-556fdb62></i></div>', 1)
|
|
109
109
|
])]);
|
|
110
110
|
}
|
|
111
|
-
const
|
|
112
|
-
function
|
|
113
|
-
return
|
|
114
|
-
|
|
111
|
+
const T = /* @__PURE__ */ z($e, [["render", he], ["__scopeId", "data-v-556fdb62"]]), Le = {}, we = { class: "das-loading-container das-loading-component" };
|
|
112
|
+
function Ne(t, e) {
|
|
113
|
+
return V(), A("div", we, [...e[0] || (e[0] = [
|
|
114
|
+
E(
|
|
115
115
|
"div",
|
|
116
116
|
{ class: "das-loading-dot-loading" },
|
|
117
117
|
[
|
|
118
|
-
|
|
118
|
+
E("i", { class: "das-loading-dot-item" })
|
|
119
119
|
],
|
|
120
120
|
-1
|
|
121
121
|
/* CACHED */
|
|
122
122
|
)
|
|
123
123
|
])]);
|
|
124
124
|
}
|
|
125
|
-
const
|
|
126
|
-
function
|
|
127
|
-
return
|
|
128
|
-
|
|
125
|
+
const Ve = /* @__PURE__ */ z(Le, [["render", Ne], ["__scopeId", "data-v-00355f8b"]]), Ae = {}, ke = { class: "das-loading-container das-loading-containerload" };
|
|
126
|
+
function ze(t, e) {
|
|
127
|
+
return V(), A("div", ke, [...e[0] || (e[0] = [
|
|
128
|
+
K('<div class="das-loading-dot-loading" data-v-80a6a49a><i class="das-loading-dot-item" data-v-80a6a49a></i><i class="das-loading-dot-item" data-v-80a6a49a></i><i class="das-loading-dot-item" data-v-80a6a49a></i><i class="das-loading-dot-item" data-v-80a6a49a></i></div>', 1)
|
|
129
129
|
])]);
|
|
130
130
|
}
|
|
131
|
-
const
|
|
132
|
-
function
|
|
133
|
-
let e;
|
|
134
|
-
const
|
|
131
|
+
const Be = /* @__PURE__ */ z(Ae, [["render", ze], ["__scopeId", "data-v-80a6a49a"]]);
|
|
132
|
+
function Ee(t) {
|
|
133
|
+
let e, n = !1, o = !1;
|
|
134
|
+
const c = I(!1), s = W({
|
|
135
135
|
...t,
|
|
136
136
|
originalPosition: "",
|
|
137
137
|
originalOverflow: "",
|
|
138
138
|
visible: !1
|
|
139
139
|
});
|
|
140
|
-
function
|
|
140
|
+
function u(d) {
|
|
141
141
|
s.text = d;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function g() {
|
|
144
|
+
if (o) return;
|
|
145
|
+
o = !0;
|
|
146
|
+
const d = s.parent, a = v.ns;
|
|
145
147
|
if (!d.vLoadingAddClassList) {
|
|
146
|
-
let
|
|
147
|
-
|
|
148
|
+
let r = d.getAttribute("loading-number");
|
|
149
|
+
r = Number.parseInt(r) - 1, r ? d.setAttribute("loading-number", r.toString()) : ($(d, a.bm("parent", "relative")), d.removeAttribute("loading-number")), $(d, a.bm("parent", "hidden"));
|
|
148
150
|
}
|
|
149
|
-
|
|
151
|
+
i(), h.unmount();
|
|
150
152
|
}
|
|
151
|
-
function
|
|
152
|
-
var d,
|
|
153
|
-
(
|
|
153
|
+
function i() {
|
|
154
|
+
var d, a;
|
|
155
|
+
(a = (d = v.$el) == null ? void 0 : d.parentNode) == null || a.removeChild(v.$el);
|
|
154
156
|
}
|
|
155
|
-
function
|
|
157
|
+
function m() {
|
|
156
158
|
var d;
|
|
157
|
-
t.beforeClose && !t.beforeClose() || (n.value = !0, clearTimeout(e), e = window.setTimeout(
|
|
159
|
+
n || o || t.beforeClose && !t.beforeClose() || (n = !0, c.value = !0, clearTimeout(e), e = window.setTimeout(x, 400), s.visible = !1, (d = t.closed) == null || d.call(t));
|
|
158
160
|
}
|
|
159
|
-
function
|
|
160
|
-
if (!
|
|
161
|
+
function x() {
|
|
162
|
+
if (!c.value) return;
|
|
161
163
|
const d = s.parent;
|
|
162
|
-
|
|
164
|
+
c.value = !1, d.vLoadingAddClassList = void 0, g();
|
|
163
165
|
}
|
|
164
|
-
const
|
|
166
|
+
const B = X({
|
|
165
167
|
name: "DasLoading",
|
|
166
|
-
setup(d, { expose:
|
|
167
|
-
const { ns:
|
|
168
|
-
return
|
|
169
|
-
ns:
|
|
170
|
-
zIndex:
|
|
168
|
+
setup(d, { expose: a }) {
|
|
169
|
+
const { ns: r, zIndex: l } = Ce("loading");
|
|
170
|
+
return a({
|
|
171
|
+
ns: r,
|
|
172
|
+
zIndex: l
|
|
171
173
|
}), () => {
|
|
172
|
-
let
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
const
|
|
174
|
+
let p = s.spinner || s.svg || T;
|
|
175
|
+
const L = s.type;
|
|
176
|
+
L == "page" && (p = T), L == "container" && (p = Be), L == "component" && (p = Ve);
|
|
177
|
+
const J = typeof p == "boolean" ? void 0 : _(p), Q = s.text ? _("p", { class: r.b("text") }, [s.text]) : void 0;
|
|
176
178
|
return _(
|
|
177
|
-
|
|
179
|
+
ee,
|
|
178
180
|
{
|
|
179
|
-
name:
|
|
180
|
-
onAfterLeave:
|
|
181
|
+
name: r.b("fade"),
|
|
182
|
+
onAfterLeave: x
|
|
181
183
|
},
|
|
182
184
|
{
|
|
183
|
-
default:
|
|
184
|
-
|
|
185
|
-
|
|
185
|
+
default: te(() => [
|
|
186
|
+
ne(
|
|
187
|
+
se(
|
|
186
188
|
"div",
|
|
187
189
|
{
|
|
188
190
|
style: {
|
|
189
191
|
backgroundColor: s.background || ""
|
|
190
192
|
},
|
|
191
193
|
class: [
|
|
192
|
-
|
|
194
|
+
r.b("mask"),
|
|
193
195
|
s.customClass,
|
|
194
196
|
s.fullscreen ? "is-fullscreen" : ""
|
|
195
197
|
]
|
|
@@ -198,51 +200,51 @@ function ze(t) {
|
|
|
198
200
|
_(
|
|
199
201
|
"div",
|
|
200
202
|
{
|
|
201
|
-
class:
|
|
203
|
+
class: r.b("spinner")
|
|
202
204
|
},
|
|
203
|
-
[
|
|
205
|
+
[J, Q]
|
|
204
206
|
)
|
|
205
207
|
]
|
|
206
208
|
),
|
|
207
|
-
[[
|
|
209
|
+
[[ae, s.visible]]
|
|
208
210
|
)
|
|
209
211
|
])
|
|
210
212
|
}
|
|
211
213
|
);
|
|
212
214
|
};
|
|
213
215
|
}
|
|
214
|
-
}), h =
|
|
216
|
+
}), h = oe(B), v = h.mount(document.createElement("div"));
|
|
215
217
|
return {
|
|
216
|
-
...
|
|
217
|
-
setText:
|
|
218
|
-
removeElLoadingChild:
|
|
219
|
-
close:
|
|
220
|
-
handleAfterLeave:
|
|
221
|
-
vm:
|
|
218
|
+
...re(s),
|
|
219
|
+
setText: u,
|
|
220
|
+
removeElLoadingChild: i,
|
|
221
|
+
close: m,
|
|
222
|
+
handleAfterLeave: x,
|
|
223
|
+
vm: v,
|
|
222
224
|
get $el() {
|
|
223
|
-
return
|
|
225
|
+
return v.$el;
|
|
224
226
|
}
|
|
225
227
|
};
|
|
226
228
|
}
|
|
227
229
|
let C;
|
|
228
|
-
const
|
|
229
|
-
if (!
|
|
230
|
-
const e =
|
|
230
|
+
const H = function(t = {}) {
|
|
231
|
+
if (!k) return;
|
|
232
|
+
const e = Oe(t);
|
|
231
233
|
if (e.fullscreen && C)
|
|
232
234
|
return C;
|
|
233
|
-
const n =
|
|
235
|
+
const n = Ee({
|
|
234
236
|
...e,
|
|
235
237
|
closed: () => {
|
|
236
238
|
var c;
|
|
237
239
|
(c = e.closed) == null || c.call(e), e.fullscreen && (C = void 0);
|
|
238
240
|
}
|
|
239
241
|
});
|
|
240
|
-
|
|
241
|
-
let
|
|
242
|
-
return
|
|
243
|
-
},
|
|
242
|
+
Se(e, e.parent, n), D(e, e.parent, n), e.parent.vLoadingAddClassList = () => D(e, e.parent, n);
|
|
243
|
+
let o = e.parent.getAttribute("loading-number");
|
|
244
|
+
return o ? o = `${Number.parseInt(o) + 1}` : o = "1", e.parent.setAttribute("loading-number", o), e.parent.appendChild(n.$el), F(() => n.visible.value = e.visible), e.fullscreen && (C = n), n;
|
|
245
|
+
}, Oe = (t) => {
|
|
244
246
|
let e;
|
|
245
|
-
return
|
|
247
|
+
return G(t.target) ? e = document.querySelector(t.target) ?? document.body : e = t.target || document.body, {
|
|
246
248
|
parent: e === document.body || t.body ? document.body : e,
|
|
247
249
|
background: t.background || "",
|
|
248
250
|
svg: t.svg || "",
|
|
@@ -256,70 +258,70 @@ const U = function(t = {}) {
|
|
|
256
258
|
visible: t.visible ?? !0,
|
|
257
259
|
target: e
|
|
258
260
|
};
|
|
259
|
-
},
|
|
260
|
-
const { nextZIndex:
|
|
261
|
+
}, Se = async (t, e, n) => {
|
|
262
|
+
const { nextZIndex: o } = n.vm.zIndex || n.vm._.exposed.zIndex, c = {};
|
|
261
263
|
if (t.fullscreen)
|
|
262
|
-
n.originalPosition.value =
|
|
264
|
+
n.originalPosition.value = y(document.body, "position"), n.originalOverflow.value = y(document.body, "overflow"), c.zIndex = o();
|
|
263
265
|
else if (t.parent === document.body) {
|
|
264
|
-
n.originalPosition.value =
|
|
265
|
-
for (const
|
|
266
|
-
const u =
|
|
267
|
-
c[
|
|
266
|
+
n.originalPosition.value = y(document.body, "position"), await F();
|
|
267
|
+
for (const s of ["top", "left"]) {
|
|
268
|
+
const u = s === "top" ? "scrollTop" : "scrollLeft";
|
|
269
|
+
c[s] = `${t.target.getBoundingClientRect()[s] + document.body[u] + document.documentElement[u] - Number.parseInt(y(document.body, `margin-${s}`), 10)}px`;
|
|
268
270
|
}
|
|
269
|
-
for (const
|
|
270
|
-
c[
|
|
271
|
+
for (const s of ["height", "width"])
|
|
272
|
+
c[s] = `${t.target.getBoundingClientRect()[s]}px`;
|
|
271
273
|
} else
|
|
272
|
-
n.originalPosition.value =
|
|
273
|
-
for (const [
|
|
274
|
-
n.$el.style[
|
|
275
|
-
},
|
|
276
|
-
const
|
|
277
|
-
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? $(e,
|
|
278
|
-
},
|
|
279
|
-
const n = e.instance,
|
|
280
|
-
const
|
|
281
|
-
return
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
), u =
|
|
285
|
-
type:
|
|
286
|
-
text:
|
|
287
|
-
svg:
|
|
288
|
-
svgViewBox:
|
|
289
|
-
spinner:
|
|
290
|
-
background:
|
|
291
|
-
customClass:
|
|
274
|
+
n.originalPosition.value = y(e, "position");
|
|
275
|
+
for (const [s, u] of Object.entries(c))
|
|
276
|
+
n.$el.style[s] = u;
|
|
277
|
+
}, D = (t, e, n) => {
|
|
278
|
+
const o = n.vm.ns || n.vm._.exposed.ns;
|
|
279
|
+
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? $(e, o.bm("parent", "relative")) : S(e, o.bm("parent", "relative")), t.fullscreen && t.lock ? S(e, o.bm("parent", "hidden")) : $(e, o.bm("parent", "hidden"));
|
|
280
|
+
}, N = Symbol("DasLoading"), Z = (t, e) => {
|
|
281
|
+
const n = e.instance, o = (i) => q(e.value) ? e.value[i] : void 0, c = (i) => {
|
|
282
|
+
const m = G(i) && (n == null ? void 0 : n[i]) || i;
|
|
283
|
+
return m && I(m);
|
|
284
|
+
}, s = (i) => c(
|
|
285
|
+
o(i) || t.getAttribute(`das-loading-${me(i)}`)
|
|
286
|
+
), u = o("fullscreen") ?? e.modifiers.fullscreen, g = {
|
|
287
|
+
type: s("type"),
|
|
288
|
+
text: s("text"),
|
|
289
|
+
svg: s("svg"),
|
|
290
|
+
svgViewBox: s("svgViewBox"),
|
|
291
|
+
spinner: s("spinner"),
|
|
292
|
+
background: s("background"),
|
|
293
|
+
customClass: s("customClass"),
|
|
292
294
|
fullscreen: u,
|
|
293
|
-
target:
|
|
294
|
-
body:
|
|
295
|
-
lock:
|
|
295
|
+
target: o("target") ?? (u ? void 0 : t),
|
|
296
|
+
body: o("body") ?? e.modifiers.body,
|
|
297
|
+
lock: o("lock") ?? e.modifiers.lock
|
|
296
298
|
};
|
|
297
|
-
t[
|
|
298
|
-
options:
|
|
299
|
-
instance:
|
|
299
|
+
t[N] = {
|
|
300
|
+
options: g,
|
|
301
|
+
instance: H(g)
|
|
300
302
|
};
|
|
301
|
-
},
|
|
303
|
+
}, Pe = (t, e) => {
|
|
302
304
|
for (const n of Object.keys(e))
|
|
303
|
-
|
|
304
|
-
},
|
|
305
|
+
ce(e[n]) && (e[n].value = t[n]);
|
|
306
|
+
}, Re = {
|
|
305
307
|
mounted(t, e) {
|
|
306
|
-
e.value &&
|
|
308
|
+
e.value && Z(t, e);
|
|
307
309
|
},
|
|
308
310
|
updated(t, e) {
|
|
309
|
-
const n = t[
|
|
310
|
-
e.oldValue !== e.value && (e.value && !e.oldValue ?
|
|
311
|
+
const n = t[N];
|
|
312
|
+
e.oldValue !== e.value && (e.value && !e.oldValue ? Z(t, e) : e.value && e.oldValue ? q(e.value) && Pe(e.value, n.options) : n == null || n.instance.close());
|
|
311
313
|
},
|
|
312
314
|
unmounted(t) {
|
|
313
315
|
var e;
|
|
314
|
-
(e = t[
|
|
316
|
+
(e = t[N]) == null || e.instance.close();
|
|
315
317
|
}
|
|
316
|
-
},
|
|
317
|
-
|
|
318
|
-
const
|
|
319
|
-
service:
|
|
320
|
-
},
|
|
318
|
+
}, Te = { 加载: { "zh-CN": "加载", en: "Loading", "zh-MO": "加載", _appCode: "framework" } };
|
|
319
|
+
de(Te);
|
|
320
|
+
const je = {
|
|
321
|
+
service: H
|
|
322
|
+
}, Ke = { name: `loading ${le("加载")}` };
|
|
321
323
|
export {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
324
|
+
je as DasLoading,
|
|
325
|
+
Ke as default,
|
|
326
|
+
Re as vDasLoading
|
|
325
327
|
};
|
|
Binary file
|