@das-fed/upf-ui 6.4.0-dev.284 → 6.4.0-dev.285
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 +4 -4
- package/front-end/i18n/front-end-page/dasui_zh-CN.js +4 -4
- package/front-end/i18n/front-end-page/dasui_zh-MO.js +4 -4
- package/package.json +3 -3
- package/packages/components/loading/index.js +174 -176
- package/packages/components/loading/index.js.gz +0 -0
|
@@ -751,10 +751,6 @@ export default {
|
|
|
751
751
|
"用时": "",
|
|
752
752
|
"秒": "",
|
|
753
753
|
"确定要删除吗": "",
|
|
754
|
-
"删除后": "",
|
|
755
|
-
"该会话将不可恢复": "",
|
|
756
|
-
"清空后": "",
|
|
757
|
-
"所有历史将无法找回": "",
|
|
758
754
|
"嗨": "",
|
|
759
755
|
"我是": "",
|
|
760
756
|
"我可以帮你分析": "",
|
|
@@ -762,6 +758,10 @@ export default {
|
|
|
762
758
|
"调节设备": "",
|
|
763
759
|
"预订会议室": "",
|
|
764
760
|
"请把你的任务交给我吧": "",
|
|
761
|
+
"删除后": "",
|
|
762
|
+
"该会话将不可恢复": "",
|
|
763
|
+
"清空后": "",
|
|
764
|
+
"所有历史将无法找回": "",
|
|
765
765
|
"回答中": "",
|
|
766
766
|
"近": "",
|
|
767
767
|
"最多支持选择": "",
|
|
@@ -738,10 +738,6 @@ export default {
|
|
|
738
738
|
"用时": "用时",
|
|
739
739
|
"秒": "秒",
|
|
740
740
|
"确定要删除吗": "确定要删除吗",
|
|
741
|
-
"删除后": "删除后",
|
|
742
|
-
"该会话将不可恢复": "该会话将不可恢复",
|
|
743
|
-
"清空后": "清空后",
|
|
744
|
-
"所有历史将无法找回": "所有历史将无法找回",
|
|
745
741
|
"嗨": "嗨",
|
|
746
742
|
"我是": "我是",
|
|
747
743
|
"我可以帮你分析": "我可以帮你分析",
|
|
@@ -749,6 +745,10 @@ export default {
|
|
|
749
745
|
"调节设备": "调节设备",
|
|
750
746
|
"预订会议室": "预订会议室",
|
|
751
747
|
"请把你的任务交给我吧": "请把你的任务交给我吧",
|
|
748
|
+
"删除后": "删除后",
|
|
749
|
+
"该会话将不可恢复": "该会话将不可恢复",
|
|
750
|
+
"清空后": "清空后",
|
|
751
|
+
"所有历史将无法找回": "所有历史将无法找回",
|
|
752
752
|
"回答中": "回答中",
|
|
753
753
|
"近": "近",
|
|
754
754
|
"最多支持选择": "最多支持选择",
|
|
@@ -737,10 +737,6 @@ export default {
|
|
|
737
737
|
"用时": "",
|
|
738
738
|
"秒": "",
|
|
739
739
|
"确定要删除吗": "",
|
|
740
|
-
"删除后": "",
|
|
741
|
-
"该会话将不可恢复": "",
|
|
742
|
-
"清空后": "",
|
|
743
|
-
"所有历史将无法找回": "",
|
|
744
740
|
"嗨": "",
|
|
745
741
|
"我是": "",
|
|
746
742
|
"我可以帮你分析": "",
|
|
@@ -748,6 +744,10 @@ export default {
|
|
|
748
744
|
"调节设备": "",
|
|
749
745
|
"预订会议室": "",
|
|
750
746
|
"请把你的任务交给我吧": "",
|
|
747
|
+
"删除后": "",
|
|
748
|
+
"该会话将不可恢复": "",
|
|
749
|
+
"清空后": "",
|
|
750
|
+
"所有历史将无法找回": "",
|
|
751
751
|
"回答中": "",
|
|
752
752
|
"近": "",
|
|
753
753
|
"最多支持选择": "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/upf-ui",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.285",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"vue-tsc": "^2.0.29"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@das-fed/upf-cli": "6.4.0-dev.
|
|
59
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
58
|
+
"@das-fed/upf-cli": "6.4.0-dev.285",
|
|
59
|
+
"@das-fed/upf-utils": "6.4.0-dev.285",
|
|
60
60
|
"@types/markdown-it": "^14.1.2",
|
|
61
61
|
"@wangeditor-next/editor": "5.6.31",
|
|
62
62
|
"@wangeditor-next/editor-for-vue": "5.1.14",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import { setI18nRule as
|
|
1
|
+
import { inject as D, ref as I, computed as x, unref as Z, openBlock as N, createElementBlock as V, createStaticVNode as R, createElementVNode as z, reactive as J, defineComponent as Q, h as _, Transition as W, withCtx as X, withDirectives as ee, createVNode as te, vShow as ne, createApp as se, toRefs as ae, nextTick as j, isRef as oe } from "vue";
|
|
2
|
+
import { setI18nRule as re, t as ce } 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,189 +9,187 @@ 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 K = (t) => typeof t == "string", F = (t) => t !== null && typeof t == "object", G = (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
|
+
}, de = /-\w/g, ie = G(
|
|
16
|
+
(t) => t.replace(de, (e) => e.slice(1).toUpperCase())
|
|
17
|
+
), le = /\B([A-Z])/g, ue = G(
|
|
18
|
+
(t) => t.replace(le, "-$1").toLowerCase()
|
|
19
|
+
), fe = (t) => typeof t == "number";
|
|
20
|
+
var B;
|
|
21
|
+
const A = typeof window < "u";
|
|
22
|
+
A && ((B = window == null ? void 0 : window.navigator) != null && B.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
23
|
+
const q = (t = "") => t.split(" ").filter((e) => !!e.trim()), E = (t, e) => {
|
|
24
|
+
!t || !e.trim() || t.classList.add(...q(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(...q(e));
|
|
27
|
+
}, b = (t, e) => {
|
|
28
|
+
var s;
|
|
29
|
+
if (!A || !t || !e) return "";
|
|
30
|
+
let n = ie(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 o = (s = document.defaultView) == null ? void 0 : s.getComputedStyle(t, "");
|
|
36
|
+
return o ? o[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
|
+
}, L = "das", me = "is-", v = (t, e, n, s, c) => {
|
|
41
|
+
let o = `${t}-${e}`;
|
|
42
|
+
return n && (o += `-${n}`), s && (o += `__${s}`), c && (o += `--${c}`), o;
|
|
43
|
+
}, ve = Symbol("namespaceContextKey"), ge = (t) => {
|
|
44
|
+
const e = t || D(ve, I(L));
|
|
45
|
+
return x(() => Z(e) || L);
|
|
46
|
+
}, pe = (t, e) => {
|
|
47
|
+
const n = ge(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 = "") => v(n.value, t, a, "", ""),
|
|
51
|
+
e: (a) => a ? v(n.value, t, "", a, "") : "",
|
|
52
|
+
m: (a) => a ? v(n.value, t, "", "", a) : "",
|
|
53
|
+
be: (a, r) => a && r ? v(n.value, t, a, r, "") : "",
|
|
54
|
+
em: (a, r) => a && r ? v(n.value, t, "", a, r) : "",
|
|
55
|
+
bm: (a, r) => a && r ? v(n.value, t, a, "", r) : "",
|
|
56
|
+
bem: (a, r, i) => a && r && i ? v(n.value, t, a, r, i) : "",
|
|
57
57
|
is: (a, ...r) => {
|
|
58
|
-
const
|
|
59
|
-
return a &&
|
|
58
|
+
const i = r.length >= 1 ? r[0] : !0;
|
|
59
|
+
return a && i ? `${me}${a}` : "";
|
|
60
60
|
},
|
|
61
61
|
// css
|
|
62
62
|
cssVar: (a) => {
|
|
63
63
|
const r = {};
|
|
64
|
-
for (const
|
|
65
|
-
a[
|
|
64
|
+
for (const i in a)
|
|
65
|
+
a[i] && (r[`--${n.value}-${i}`] = a[i]);
|
|
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 i in a)
|
|
72
|
+
a[i] && (r[`--${n.value}-${t}-${i}`] = a[i]);
|
|
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
|
+
}, O = I(0), M = 2e3, ye = Symbol("zIndexContextKey"), be = (t) => {
|
|
78
|
+
const e = t || D(ye, void 0), n = x(() => {
|
|
79
|
+
const o = Z(e);
|
|
80
|
+
return fe(o) ? o : M;
|
|
81
|
+
}), s = x(() => n.value + O.value);
|
|
82
82
|
return {
|
|
83
83
|
initialZIndex: n,
|
|
84
|
-
currentZIndex:
|
|
85
|
-
nextZIndex: () => (
|
|
84
|
+
currentZIndex: s,
|
|
85
|
+
nextZIndex: () => (O.value++, s.value)
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
function
|
|
89
|
-
const e =
|
|
88
|
+
function xe(t) {
|
|
89
|
+
const e = pe(
|
|
90
90
|
t,
|
|
91
|
-
|
|
92
|
-
), n =
|
|
93
|
-
|
|
91
|
+
x(() => L)
|
|
92
|
+
), n = be(
|
|
93
|
+
x(() => M)
|
|
94
94
|
);
|
|
95
95
|
return {
|
|
96
96
|
ns: e,
|
|
97
97
|
zIndex: n
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
const
|
|
100
|
+
const k = (t, e) => {
|
|
101
101
|
const n = t.__vccOpts || t;
|
|
102
|
-
for (const [
|
|
103
|
-
n[
|
|
102
|
+
for (const [s, c] of e)
|
|
103
|
+
n[s] = c;
|
|
104
104
|
return n;
|
|
105
|
-
},
|
|
106
|
-
function
|
|
107
|
-
return
|
|
108
|
-
|
|
105
|
+
}, _e = {}, Ce = { class: "das-loading-container das-loading-page" };
|
|
106
|
+
function $e(t, e) {
|
|
107
|
+
return N(), V("div", Ce, [...e[0] || (e[0] = [
|
|
108
|
+
R('<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 S = /* @__PURE__ */ k(_e, [["render", $e], ["__scopeId", "data-v-556fdb62"]]), Ie = {}, he = { class: "das-loading-container das-loading-component" };
|
|
112
|
+
function Le(t, e) {
|
|
113
|
+
return N(), V("div", he, [...e[0] || (e[0] = [
|
|
114
|
+
z(
|
|
115
115
|
"div",
|
|
116
116
|
{ class: "das-loading-dot-loading" },
|
|
117
117
|
[
|
|
118
|
-
|
|
118
|
+
z("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 we = /* @__PURE__ */ k(Ie, [["render", Le], ["__scopeId", "data-v-00355f8b"]]), Ne = {}, Ve = { class: "das-loading-container das-loading-containerload" };
|
|
126
|
+
function Ae(t, e) {
|
|
127
|
+
return N(), V("div", Ve, [...e[0] || (e[0] = [
|
|
128
|
+
R('<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 ke = /* @__PURE__ */ k(Ne, [["render", Ae], ["__scopeId", "data-v-80a6a49a"]]);
|
|
132
|
+
function ze(t) {
|
|
133
|
+
let e;
|
|
134
|
+
const n = I(!1), s = J({
|
|
135
135
|
...t,
|
|
136
136
|
originalPosition: "",
|
|
137
137
|
originalOverflow: "",
|
|
138
138
|
visible: !1
|
|
139
139
|
});
|
|
140
|
-
function
|
|
140
|
+
function c(d) {
|
|
141
141
|
s.text = d;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
145
|
-
o = !0;
|
|
146
|
-
const d = s.parent, a = v.ns;
|
|
143
|
+
function o() {
|
|
144
|
+
const d = s.parent, m = p.ns;
|
|
147
145
|
if (!d.vLoadingAddClassList) {
|
|
148
|
-
let
|
|
149
|
-
|
|
146
|
+
let f = d.getAttribute("loading-number");
|
|
147
|
+
f = Number.parseInt(f) - 1, f ? d.setAttribute("loading-number", f.toString()) : ($(d, m.bm("parent", "relative")), d.removeAttribute("loading-number")), $(d, m.bm("parent", "hidden"));
|
|
150
148
|
}
|
|
151
|
-
|
|
149
|
+
u(), h.unmount();
|
|
152
150
|
}
|
|
153
|
-
function
|
|
154
|
-
var d,
|
|
155
|
-
(
|
|
151
|
+
function u() {
|
|
152
|
+
var d, m;
|
|
153
|
+
(m = (d = p.$el) == null ? void 0 : d.parentNode) == null || m.removeChild(p.$el);
|
|
156
154
|
}
|
|
157
|
-
function
|
|
155
|
+
function y() {
|
|
158
156
|
var d;
|
|
159
|
-
|
|
157
|
+
t.beforeClose && !t.beforeClose() || (n.value = !0, clearTimeout(e), e = window.setTimeout(l, 400), s.visible = !1, (d = t.closed) == null || d.call(t));
|
|
160
158
|
}
|
|
161
|
-
function
|
|
162
|
-
if (!
|
|
159
|
+
function l() {
|
|
160
|
+
if (!n.value) return;
|
|
163
161
|
const d = s.parent;
|
|
164
|
-
|
|
162
|
+
n.value = !1, d.vLoadingAddClassList = void 0, o();
|
|
165
163
|
}
|
|
166
|
-
const
|
|
164
|
+
const g = Q({
|
|
167
165
|
name: "DasLoading",
|
|
168
|
-
setup(d, { expose:
|
|
169
|
-
const { ns:
|
|
170
|
-
return
|
|
171
|
-
ns:
|
|
172
|
-
zIndex:
|
|
166
|
+
setup(d, { expose: m }) {
|
|
167
|
+
const { ns: f, zIndex: a } = xe("loading");
|
|
168
|
+
return m({
|
|
169
|
+
ns: f,
|
|
170
|
+
zIndex: a
|
|
173
171
|
}), () => {
|
|
174
|
-
let
|
|
175
|
-
const
|
|
176
|
-
|
|
177
|
-
const
|
|
172
|
+
let r = s.spinner || s.svg || S;
|
|
173
|
+
const i = s.type;
|
|
174
|
+
i == "page" && (r = S), i == "container" && (r = ke), i == "component" && (r = we);
|
|
175
|
+
const Y = typeof r == "boolean" ? void 0 : _(r), H = s.text ? _("p", { class: f.b("text") }, [s.text]) : void 0;
|
|
178
176
|
return _(
|
|
179
|
-
|
|
177
|
+
W,
|
|
180
178
|
{
|
|
181
|
-
name:
|
|
182
|
-
onAfterLeave:
|
|
179
|
+
name: f.b("fade"),
|
|
180
|
+
onAfterLeave: l
|
|
183
181
|
},
|
|
184
182
|
{
|
|
185
|
-
default:
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
default: X(() => [
|
|
184
|
+
ee(
|
|
185
|
+
te(
|
|
188
186
|
"div",
|
|
189
187
|
{
|
|
190
188
|
style: {
|
|
191
189
|
backgroundColor: s.background || ""
|
|
192
190
|
},
|
|
193
191
|
class: [
|
|
194
|
-
|
|
192
|
+
f.b("mask"),
|
|
195
193
|
s.customClass,
|
|
196
194
|
s.fullscreen ? "is-fullscreen" : ""
|
|
197
195
|
]
|
|
@@ -200,51 +198,51 @@ function Ee(t) {
|
|
|
200
198
|
_(
|
|
201
199
|
"div",
|
|
202
200
|
{
|
|
203
|
-
class:
|
|
201
|
+
class: f.b("spinner")
|
|
204
202
|
},
|
|
205
|
-
[
|
|
203
|
+
[Y, H]
|
|
206
204
|
)
|
|
207
205
|
]
|
|
208
206
|
),
|
|
209
|
-
[[
|
|
207
|
+
[[ne, s.visible]]
|
|
210
208
|
)
|
|
211
209
|
])
|
|
212
210
|
}
|
|
213
211
|
);
|
|
214
212
|
};
|
|
215
213
|
}
|
|
216
|
-
}), h =
|
|
214
|
+
}), h = se(g), p = h.mount(document.createElement("div"));
|
|
217
215
|
return {
|
|
218
|
-
...
|
|
219
|
-
setText:
|
|
220
|
-
removeElLoadingChild:
|
|
221
|
-
close:
|
|
222
|
-
handleAfterLeave:
|
|
223
|
-
vm:
|
|
216
|
+
...ae(s),
|
|
217
|
+
setText: c,
|
|
218
|
+
removeElLoadingChild: u,
|
|
219
|
+
close: y,
|
|
220
|
+
handleAfterLeave: l,
|
|
221
|
+
vm: p,
|
|
224
222
|
get $el() {
|
|
225
|
-
return
|
|
223
|
+
return p.$el;
|
|
226
224
|
}
|
|
227
225
|
};
|
|
228
226
|
}
|
|
229
227
|
let C;
|
|
230
|
-
const
|
|
231
|
-
if (!
|
|
232
|
-
const e =
|
|
228
|
+
const U = function(t = {}) {
|
|
229
|
+
if (!A) return;
|
|
230
|
+
const e = Be(t);
|
|
233
231
|
if (e.fullscreen && C)
|
|
234
232
|
return C;
|
|
235
|
-
const n =
|
|
233
|
+
const n = ze({
|
|
236
234
|
...e,
|
|
237
235
|
closed: () => {
|
|
238
236
|
var c;
|
|
239
237
|
(c = e.closed) == null || c.call(e), e.fullscreen && (C = void 0);
|
|
240
238
|
}
|
|
241
239
|
});
|
|
242
|
-
|
|
243
|
-
let
|
|
244
|
-
return
|
|
245
|
-
},
|
|
240
|
+
Ee(e, e.parent, n), P(e, e.parent, n), e.parent.vLoadingAddClassList = () => P(e, e.parent, n);
|
|
241
|
+
let s = e.parent.getAttribute("loading-number");
|
|
242
|
+
return s ? s = `${Number.parseInt(s) + 1}` : s = "1", e.parent.setAttribute("loading-number", s), e.parent.appendChild(n.$el), j(() => n.visible.value = e.visible), e.fullscreen && (C = n), n;
|
|
243
|
+
}, Be = (t) => {
|
|
246
244
|
let e;
|
|
247
|
-
return
|
|
245
|
+
return K(t.target) ? e = document.querySelector(t.target) ?? document.body : e = t.target || document.body, {
|
|
248
246
|
parent: e === document.body || t.body ? document.body : e,
|
|
249
247
|
background: t.background || "",
|
|
250
248
|
svg: t.svg || "",
|
|
@@ -258,70 +256,70 @@ const H = function(t = {}) {
|
|
|
258
256
|
visible: t.visible ?? !0,
|
|
259
257
|
target: e
|
|
260
258
|
};
|
|
261
|
-
},
|
|
262
|
-
const { nextZIndex:
|
|
259
|
+
}, Ee = async (t, e, n) => {
|
|
260
|
+
const { nextZIndex: s } = n.vm.zIndex || n.vm._.exposed.zIndex, c = {};
|
|
263
261
|
if (t.fullscreen)
|
|
264
|
-
n.originalPosition.value =
|
|
262
|
+
n.originalPosition.value = b(document.body, "position"), n.originalOverflow.value = b(document.body, "overflow"), c.zIndex = s();
|
|
265
263
|
else if (t.parent === document.body) {
|
|
266
|
-
n.originalPosition.value =
|
|
267
|
-
for (const
|
|
268
|
-
const u =
|
|
269
|
-
c[
|
|
264
|
+
n.originalPosition.value = b(document.body, "position"), await j();
|
|
265
|
+
for (const o of ["top", "left"]) {
|
|
266
|
+
const u = o === "top" ? "scrollTop" : "scrollLeft";
|
|
267
|
+
c[o] = `${t.target.getBoundingClientRect()[o] + document.body[u] + document.documentElement[u] - Number.parseInt(b(document.body, `margin-${o}`), 10)}px`;
|
|
270
268
|
}
|
|
271
|
-
for (const
|
|
272
|
-
c[
|
|
269
|
+
for (const o of ["height", "width"])
|
|
270
|
+
c[o] = `${t.target.getBoundingClientRect()[o]}px`;
|
|
273
271
|
} else
|
|
274
|
-
n.originalPosition.value =
|
|
275
|
-
for (const [
|
|
276
|
-
n.$el.style[
|
|
277
|
-
},
|
|
278
|
-
const
|
|
279
|
-
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? $(e,
|
|
280
|
-
},
|
|
281
|
-
const n = e.instance,
|
|
282
|
-
const
|
|
283
|
-
return
|
|
284
|
-
},
|
|
285
|
-
|
|
286
|
-
), u =
|
|
287
|
-
type:
|
|
288
|
-
text:
|
|
289
|
-
svg:
|
|
290
|
-
svgViewBox:
|
|
291
|
-
spinner:
|
|
292
|
-
background:
|
|
293
|
-
customClass:
|
|
272
|
+
n.originalPosition.value = b(e, "position");
|
|
273
|
+
for (const [o, u] of Object.entries(c))
|
|
274
|
+
n.$el.style[o] = u;
|
|
275
|
+
}, P = (t, e, n) => {
|
|
276
|
+
const s = n.vm.ns || n.vm._.exposed.ns;
|
|
277
|
+
["absolute", "fixed", "sticky"].includes(n.originalPosition.value) ? $(e, s.bm("parent", "relative")) : E(e, s.bm("parent", "relative")), t.fullscreen && t.lock ? E(e, s.bm("parent", "hidden")) : $(e, s.bm("parent", "hidden"));
|
|
278
|
+
}, w = Symbol("DasLoading"), T = (t, e) => {
|
|
279
|
+
const n = e.instance, s = (l) => F(e.value) ? e.value[l] : void 0, c = (l) => {
|
|
280
|
+
const g = K(l) && (n == null ? void 0 : n[l]) || l;
|
|
281
|
+
return g && I(g);
|
|
282
|
+
}, o = (l) => c(
|
|
283
|
+
s(l) || t.getAttribute(`das-loading-${ue(l)}`)
|
|
284
|
+
), u = s("fullscreen") ?? e.modifiers.fullscreen, y = {
|
|
285
|
+
type: o("type"),
|
|
286
|
+
text: o("text"),
|
|
287
|
+
svg: o("svg"),
|
|
288
|
+
svgViewBox: o("svgViewBox"),
|
|
289
|
+
spinner: o("spinner"),
|
|
290
|
+
background: o("background"),
|
|
291
|
+
customClass: o("customClass"),
|
|
294
292
|
fullscreen: u,
|
|
295
|
-
target:
|
|
296
|
-
body:
|
|
297
|
-
lock:
|
|
293
|
+
target: s("target") ?? (u ? void 0 : t),
|
|
294
|
+
body: s("body") ?? e.modifiers.body,
|
|
295
|
+
lock: s("lock") ?? e.modifiers.lock
|
|
298
296
|
};
|
|
299
|
-
t[
|
|
300
|
-
options:
|
|
301
|
-
instance:
|
|
297
|
+
t[w] = {
|
|
298
|
+
options: y,
|
|
299
|
+
instance: U(y)
|
|
302
300
|
};
|
|
303
|
-
},
|
|
301
|
+
}, Oe = (t, e) => {
|
|
304
302
|
for (const n of Object.keys(e))
|
|
305
|
-
|
|
306
|
-
},
|
|
303
|
+
oe(e[n]) && (e[n].value = t[n]);
|
|
304
|
+
}, De = {
|
|
307
305
|
mounted(t, e) {
|
|
308
|
-
e.value &&
|
|
306
|
+
e.value && T(t, e);
|
|
309
307
|
},
|
|
310
308
|
updated(t, e) {
|
|
311
|
-
const n = t[
|
|
312
|
-
e.oldValue !== e.value && (e.value && !e.oldValue ?
|
|
309
|
+
const n = t[w];
|
|
310
|
+
e.oldValue !== e.value && (e.value && !e.oldValue ? T(t, e) : e.value && e.oldValue ? F(e.value) && Oe(e.value, n.options) : n == null || n.instance.close());
|
|
313
311
|
},
|
|
314
312
|
unmounted(t) {
|
|
315
313
|
var e;
|
|
316
|
-
(e = t[
|
|
314
|
+
(e = t[w]) == null || e.instance.close();
|
|
317
315
|
}
|
|
318
|
-
},
|
|
319
|
-
|
|
320
|
-
const
|
|
321
|
-
service:
|
|
322
|
-
},
|
|
316
|
+
}, Se = { 加载: { "zh-CN": "加载", en: "Loading", "zh-MO": "加載", _appCode: "framework" } };
|
|
317
|
+
re(Se);
|
|
318
|
+
const Ze = {
|
|
319
|
+
service: U
|
|
320
|
+
}, Re = { name: `loading ${ce("加载")}` };
|
|
323
321
|
export {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
322
|
+
Ze as DasLoading,
|
|
323
|
+
Re as default,
|
|
324
|
+
De as vDasLoading
|
|
327
325
|
};
|
|
Binary file
|