@das-fed/ui 7.0.7-hot.21 → 7.0.7-hot.23
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-8yffh0Id.js → index-DMJXZM7n.js} +1067 -1056
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-IzGl26KU.js → index-MqhMkLo9.js} +9 -9
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-OwRrV6K8.js → index-_q72oKSF.js} +63 -62
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.js +14908 -14808
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/echarts/index.js +2056 -2049
- package/packages/business-components/echarts/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 +215 -213
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1104 -1096
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +243 -240
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +65 -64
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/autocomplete/index.js +12 -6
- 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/date-picker/index.js +212 -212
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +77 -75
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +25 -24
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +398 -397
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +47 -45
- 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 +14 -7
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +147 -143
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +297 -293
- 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 +251 -248
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +421 -415
- 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 +4613 -4583
- 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 +9 -5
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +16 -14
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +53 -51
- 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 +129 -128
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +179 -178
- 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 +1117 -1093
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { withInstall as D } from "@das-fed/utils/with-install/index";
|
|
2
|
-
import { defineComponent as L, ref as
|
|
3
|
-
import { getVarValue as
|
|
4
|
-
const
|
|
2
|
+
import { defineComponent as L, ref as a, computed as H, onMounted as T, nextTick as V, createBlock as I, openBlock as O, Teleport as P, createElementVNode as W, normalizeStyle as E, toDisplayString as R } from "vue";
|
|
3
|
+
import { getVarValue as k } from "@das-fed/web/packages/theme/index";
|
|
4
|
+
const j = /* @__PURE__ */ L({
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
getEl: {},
|
|
@@ -9,69 +9,71 @@ const F = /* @__PURE__ */ L({
|
|
|
9
9
|
errorModelZIndex: { default: 2e3 },
|
|
10
10
|
errorWidth: { default: void 0 }
|
|
11
11
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const r =
|
|
12
|
+
setup(w) {
|
|
13
|
+
const r = w, C = a(null), n = a(), l = a({
|
|
14
14
|
x: 0,
|
|
15
15
|
y: 0
|
|
16
|
-
}),
|
|
16
|
+
}), v = H(() => ({
|
|
17
17
|
"box-sizing": "border-box",
|
|
18
18
|
"font-size": "12px",
|
|
19
|
-
"background-color":
|
|
19
|
+
"background-color": k("--das-ui-color-overlay-error").value,
|
|
20
20
|
"box-shadow": "0px 4px 10px 0px rgba(0, 0, 0, 0.2)",
|
|
21
21
|
"border-radius": "1px",
|
|
22
22
|
padding: "2px 8px",
|
|
23
23
|
"z-index": r.errorModelZIndex
|
|
24
|
-
})),
|
|
25
|
-
...
|
|
26
|
-
width:
|
|
24
|
+
})), _ = H(() => ({
|
|
25
|
+
...v.value,
|
|
26
|
+
width: n.value + "px",
|
|
27
27
|
position: "fixed",
|
|
28
28
|
visibility: "visible",
|
|
29
|
-
top:
|
|
30
|
-
left:
|
|
31
|
-
})),
|
|
29
|
+
top: l.value.y + "px",
|
|
30
|
+
left: l.value.x + "px"
|
|
31
|
+
})), u = a({
|
|
32
32
|
// display: 'block',
|
|
33
|
-
color:
|
|
33
|
+
color: k("--das-ui-input-error-color").value,
|
|
34
34
|
"white-space": "break-spaces"
|
|
35
|
-
}),
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
for (let [
|
|
39
|
-
...
|
|
40
|
-
...
|
|
41
|
-
width:
|
|
35
|
+
}), S = () => {
|
|
36
|
+
const h = (c = 0) => {
|
|
37
|
+
const o = document.createElement("div");
|
|
38
|
+
for (let [m, x] of Object.entries({
|
|
39
|
+
...v.value,
|
|
40
|
+
...u.value,
|
|
41
|
+
width: c + "px"
|
|
42
42
|
}))
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
for (let [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
return document.body.removeChild(
|
|
50
|
-
},
|
|
51
|
-
const
|
|
52
|
-
return
|
|
53
|
-
}, e = r.getEl(),
|
|
54
|
-
r.errorWidth ?
|
|
55
|
-
const { left:
|
|
56
|
-
|
|
43
|
+
o.style[m] = x;
|
|
44
|
+
const t = document.createElement("span");
|
|
45
|
+
for (let [m, x] of Object.entries(u.value))
|
|
46
|
+
t.style[m] = x;
|
|
47
|
+
t.textContent = r.errorLabel, o.appendChild(t), document.body.appendChild(o);
|
|
48
|
+
const d = o.offsetHeight, B = t.offsetWidth;
|
|
49
|
+
return document.body.removeChild(o), { height: d, textWidth: B };
|
|
50
|
+
}, f = () => {
|
|
51
|
+
const c = document.documentElement.clientHeight, t = document.documentElement.scrollHeight - c, d = c - t;
|
|
52
|
+
return console.log("可视区域高度(不包括滚动条):" + d), d;
|
|
53
|
+
}, e = r.getEl(), i = (e == null ? void 0 : e.clientWidth) ?? 0, b = h(i), p = b.textWidth;
|
|
54
|
+
console.log("inputTextWidth========" + p), console.log("inputElWidth========" + i), r.errorWidth ? n.value = r.errorWidth : p > i ? n.value = p + 2 + 8 + "px" : n.value = i + "px";
|
|
55
|
+
const { left: y = 0, bottom: s = 0, height: M = 0 } = (e == null ? void 0 : e.getBoundingClientRect()) ?? {};
|
|
56
|
+
console.log("left====", y), console.log("bottom====", s), console.log("height====", M);
|
|
57
|
+
const z = f(), g = b.height;
|
|
58
|
+
console.log("errorModelHeight====", g), l.value.y = Math.ceil(s + g) >= z ? s - M - g : s, l.value.x = y, console.log("errorModelPosition====", l.value);
|
|
57
59
|
};
|
|
58
|
-
return
|
|
59
|
-
await
|
|
60
|
-
}), (
|
|
61
|
-
|
|
60
|
+
return T(async () => {
|
|
61
|
+
await V(), S();
|
|
62
|
+
}), (h, f) => (O(), I(P, { to: "body" }, [
|
|
63
|
+
W(
|
|
62
64
|
"div",
|
|
63
65
|
{
|
|
64
66
|
ref_key: "$errorModel",
|
|
65
|
-
ref:
|
|
66
|
-
style:
|
|
67
|
+
ref: C,
|
|
68
|
+
style: E(_.value)
|
|
67
69
|
},
|
|
68
70
|
[
|
|
69
|
-
|
|
71
|
+
W(
|
|
70
72
|
"span",
|
|
71
73
|
{
|
|
72
|
-
style:
|
|
74
|
+
style: E(u.value)
|
|
73
75
|
},
|
|
74
|
-
|
|
76
|
+
R(h.errorLabel),
|
|
75
77
|
5
|
|
76
78
|
/* TEXT, STYLE */
|
|
77
79
|
)
|
|
@@ -81,7 +83,7 @@ const F = /* @__PURE__ */ L({
|
|
|
81
83
|
)
|
|
82
84
|
]));
|
|
83
85
|
}
|
|
84
|
-
}), N = D(
|
|
86
|
+
}), N = D(j);
|
|
85
87
|
export {
|
|
86
88
|
N as DasErrorOverlayModel
|
|
87
89
|
};
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/components/form-item/style.css';
|
|
2
2
|
import { withInstall as Bt } from "@das-fed/utils/with-install/index";
|
|
3
3
|
import { getVarValue as He, getVar as zt, setThemeRule as kt } from "@das-fed/web/packages/theme/index";
|
|
4
|
-
import { useAttrs as Tt, inject as Kt, ref as Z, watch as Ae, computed as K, reactive as Ht, onMounted as Wt, onUnmounted as Gt, defineComponent as Zt, useCssVars as Jt, unref as l, createElementBlock as
|
|
4
|
+
import { useAttrs as Tt, inject as Kt, ref as Z, watch as Ae, computed as K, reactive as Ht, onMounted as Wt, onUnmounted as Gt, defineComponent as Zt, useCssVars as Jt, unref as l, createElementBlock as P, openBlock as S, normalizeStyle as be, normalizeClass as Fe, createElementVNode as Se, withDirectives as We, createCommentVNode as E, createBlock as Ee, createTextVNode as Ge, toDisplayString as Ze, mergeProps as D, createSlots as Je, withCtx as te, createVNode as _, renderSlot as re, isRef as I, Fragment as L } from "vue";
|
|
5
5
|
import { DasTreeSelectRef as Yt, DasTreeSelect as Xt } from "@das-fed/ui/packages/components/tree-select/index";
|
|
6
6
|
import { DasSelectInput as Qt } from "@das-fed/ui/packages/components/select-input/index";
|
|
7
7
|
import { DasInputDialogSelect as er } from "@das-fed/ui/packages/components/input-dialog-select/index";
|
|
@@ -93,7 +93,7 @@ var jr = /%[sdj%]/g, Ot = function() {
|
|
|
93
93
|
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (Ot = function(t, r) {
|
|
94
94
|
typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && r.every(function(n) {
|
|
95
95
|
return typeof n == "string";
|
|
96
|
-
});
|
|
96
|
+
}) && console.warn(t, r);
|
|
97
97
|
});
|
|
98
98
|
function Ie(e) {
|
|
99
99
|
if (!e || !e.length) return null;
|
|
@@ -138,7 +138,7 @@ function B(e) {
|
|
|
138
138
|
function Vr(e) {
|
|
139
139
|
return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
|
|
140
140
|
}
|
|
141
|
-
function
|
|
141
|
+
function M(e, t) {
|
|
142
142
|
return !!(e == null || t === "array" && Array.isArray(e) && !e.length || Vr(t) && typeof e == "string" && !e);
|
|
143
143
|
}
|
|
144
144
|
function $r(e, t, r) {
|
|
@@ -234,7 +234,7 @@ function tt(e, t) {
|
|
|
234
234
|
return e;
|
|
235
235
|
}
|
|
236
236
|
var At = function(t, r, n, a, i, o) {
|
|
237
|
-
t.required && (!n.hasOwnProperty(t.field) ||
|
|
237
|
+
t.required && (!n.hasOwnProperty(t.field) || M(r, o || t.type)) && a.push(B(i.messages.required, t.fullField));
|
|
238
238
|
}, Sr = function(t, r, n, a, i) {
|
|
239
239
|
(/^\s+$/.test(r) || r === "") && a.push(B(i.messages.whitespace, t.fullField));
|
|
240
240
|
}, ve, Er = function() {
|
|
@@ -344,15 +344,15 @@ var At = function(t, r, n, a, i, o) {
|
|
|
344
344
|
}, xr = function(t, r, n, a, i) {
|
|
345
345
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
346
346
|
if (u) {
|
|
347
|
-
if (
|
|
347
|
+
if (M(r, "string") && !t.required)
|
|
348
348
|
return n();
|
|
349
|
-
v.required(t, r, a, o, i, "string"),
|
|
349
|
+
v.required(t, r, a, o, i, "string"), M(r, "string") || (v.type(t, r, a, o, i), v.range(t, r, a, o, i), v.pattern(t, r, a, o, i), t.whitespace === !0 && v.whitespace(t, r, a, o, i));
|
|
350
350
|
}
|
|
351
351
|
n(o);
|
|
352
352
|
}, Dr = function(t, r, n, a, i) {
|
|
353
353
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
354
354
|
if (u) {
|
|
355
|
-
if (
|
|
355
|
+
if (M(r) && !t.required)
|
|
356
356
|
return n();
|
|
357
357
|
v.required(t, r, a, o, i), r !== void 0 && v.type(t, r, a, o, i);
|
|
358
358
|
}
|
|
@@ -360,7 +360,7 @@ var At = function(t, r, n, a, i, o) {
|
|
|
360
360
|
}, Ir = function(t, r, n, a, i) {
|
|
361
361
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
362
362
|
if (u) {
|
|
363
|
-
if (r === "" && (r = void 0),
|
|
363
|
+
if (r === "" && (r = void 0), M(r) && !t.required)
|
|
364
364
|
return n();
|
|
365
365
|
v.required(t, r, a, o, i), r !== void 0 && (v.type(t, r, a, o, i), v.range(t, r, a, o, i));
|
|
366
366
|
}
|
|
@@ -368,7 +368,7 @@ var At = function(t, r, n, a, i, o) {
|
|
|
368
368
|
}, Rr = function(t, r, n, a, i) {
|
|
369
369
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
370
370
|
if (u) {
|
|
371
|
-
if (
|
|
371
|
+
if (M(r) && !t.required)
|
|
372
372
|
return n();
|
|
373
373
|
v.required(t, r, a, o, i), r !== void 0 && v.type(t, r, a, o, i);
|
|
374
374
|
}
|
|
@@ -376,15 +376,15 @@ var At = function(t, r, n, a, i, o) {
|
|
|
376
376
|
}, Nr = function(t, r, n, a, i) {
|
|
377
377
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
378
378
|
if (u) {
|
|
379
|
-
if (
|
|
379
|
+
if (M(r) && !t.required)
|
|
380
380
|
return n();
|
|
381
|
-
v.required(t, r, a, o, i),
|
|
381
|
+
v.required(t, r, a, o, i), M(r) || v.type(t, r, a, o, i);
|
|
382
382
|
}
|
|
383
383
|
n(o);
|
|
384
384
|
}, _r = function(t, r, n, a, i) {
|
|
385
385
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
386
386
|
if (u) {
|
|
387
|
-
if (
|
|
387
|
+
if (M(r) && !t.required)
|
|
388
388
|
return n();
|
|
389
389
|
v.required(t, r, a, o, i), r !== void 0 && (v.type(t, r, a, o, i), v.range(t, r, a, o, i));
|
|
390
390
|
}
|
|
@@ -392,7 +392,7 @@ var At = function(t, r, n, a, i, o) {
|
|
|
392
392
|
}, Lr = function(t, r, n, a, i) {
|
|
393
393
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
394
394
|
if (u) {
|
|
395
|
-
if (
|
|
395
|
+
if (M(r) && !t.required)
|
|
396
396
|
return n();
|
|
397
397
|
v.required(t, r, a, o, i), r !== void 0 && (v.type(t, r, a, o, i), v.range(t, r, a, o, i));
|
|
398
398
|
}
|
|
@@ -408,7 +408,7 @@ var At = function(t, r, n, a, i, o) {
|
|
|
408
408
|
}, Br = function(t, r, n, a, i) {
|
|
409
409
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
410
410
|
if (u) {
|
|
411
|
-
if (
|
|
411
|
+
if (M(r) && !t.required)
|
|
412
412
|
return n();
|
|
413
413
|
v.required(t, r, a, o, i), r !== void 0 && v.type(t, r, a, o, i);
|
|
414
414
|
}
|
|
@@ -416,7 +416,7 @@ var At = function(t, r, n, a, i, o) {
|
|
|
416
416
|
}, zr = "enum", kr = function(t, r, n, a, i) {
|
|
417
417
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
418
418
|
if (u) {
|
|
419
|
-
if (
|
|
419
|
+
if (M(r) && !t.required)
|
|
420
420
|
return n();
|
|
421
421
|
v.required(t, r, a, o, i), r !== void 0 && v[zr](t, r, a, o, i);
|
|
422
422
|
}
|
|
@@ -424,17 +424,17 @@ var At = function(t, r, n, a, i, o) {
|
|
|
424
424
|
}, Kr = function(t, r, n, a, i) {
|
|
425
425
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
426
426
|
if (u) {
|
|
427
|
-
if (
|
|
427
|
+
if (M(r, "string") && !t.required)
|
|
428
428
|
return n();
|
|
429
|
-
v.required(t, r, a, o, i),
|
|
429
|
+
v.required(t, r, a, o, i), M(r, "string") || v.pattern(t, r, a, o, i);
|
|
430
430
|
}
|
|
431
431
|
n(o);
|
|
432
432
|
}, Hr = function(t, r, n, a, i) {
|
|
433
433
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
434
434
|
if (u) {
|
|
435
|
-
if (
|
|
435
|
+
if (M(r, "date") && !t.required)
|
|
436
436
|
return n();
|
|
437
|
-
if (v.required(t, r, a, o, i), !
|
|
437
|
+
if (v.required(t, r, a, o, i), !M(r, "date")) {
|
|
438
438
|
var d;
|
|
439
439
|
r instanceof Date ? d = r : d = new Date(r), v.type(t, d, a, o, i), d && v.range(t, d.getTime(), a, o, i);
|
|
440
440
|
}
|
|
@@ -446,15 +446,15 @@ var At = function(t, r, n, a, i, o) {
|
|
|
446
446
|
}, Pe = function(t, r, n, a, i) {
|
|
447
447
|
var o = t.type, u = [], d = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
448
448
|
if (d) {
|
|
449
|
-
if (
|
|
449
|
+
if (M(r, o) && !t.required)
|
|
450
450
|
return n();
|
|
451
|
-
v.required(t, r, a, u, i, o),
|
|
451
|
+
v.required(t, r, a, u, i, o), M(r, o) || v.type(t, r, a, u, i);
|
|
452
452
|
}
|
|
453
453
|
n(u);
|
|
454
454
|
}, Gr = function(t, r, n, a, i) {
|
|
455
455
|
var o = [], u = t.required || !t.required && a.hasOwnProperty(t.field);
|
|
456
456
|
if (u) {
|
|
457
|
-
if (
|
|
457
|
+
if (M(r) && !t.required)
|
|
458
458
|
return n();
|
|
459
459
|
v.required(t, r, a, o, i);
|
|
460
460
|
}
|
|
@@ -559,8 +559,8 @@ var Ne = Re(), ye = /* @__PURE__ */ function() {
|
|
|
559
559
|
var j = [], p = {};
|
|
560
560
|
function U(O) {
|
|
561
561
|
if (Array.isArray(O)) {
|
|
562
|
-
var
|
|
563
|
-
j = (
|
|
562
|
+
var q;
|
|
563
|
+
j = (q = j).concat.apply(q, O);
|
|
564
564
|
} else
|
|
565
565
|
j.push(O);
|
|
566
566
|
}
|
|
@@ -592,15 +592,15 @@ var Ne = Re(), ye = /* @__PURE__ */ function() {
|
|
|
592
592
|
return Or(b, d, function(y, j) {
|
|
593
593
|
var p = y.rule, U = (p.type === "object" || p.type === "array") && (typeof p.fields == "object" || typeof p.defaultField == "object");
|
|
594
594
|
U = U && (p.required || !p.required && y.value), p.field = y.field;
|
|
595
|
-
function h(
|
|
595
|
+
function h(C, R) {
|
|
596
596
|
return J({}, R, {
|
|
597
|
-
fullField: p.fullField + "." +
|
|
598
|
-
fullFields: p.fullFields ? [].concat(p.fullFields, [
|
|
597
|
+
fullField: p.fullField + "." + C,
|
|
598
|
+
fullFields: p.fullFields ? [].concat(p.fullFields, [C]) : [C]
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function O(
|
|
602
|
-
|
|
603
|
-
var R = Array.isArray(
|
|
601
|
+
function O(C) {
|
|
602
|
+
C === void 0 && (C = []);
|
|
603
|
+
var R = Array.isArray(C) ? C : [C];
|
|
604
604
|
!d.suppressWarning && R.length && e.warning("async-validator:", R), R.length && p.message !== void 0 && (R = [].concat(p.message));
|
|
605
605
|
var T = R.map(et(p, u));
|
|
606
606
|
if (d.first && T.length)
|
|
@@ -626,23 +626,23 @@ var Ne = Re(), ye = /* @__PURE__ */ function() {
|
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
|
-
var
|
|
629
|
+
var q;
|
|
630
630
|
if (p.asyncValidator)
|
|
631
|
-
|
|
631
|
+
q = p.asyncValidator(p, y.value, O, y.source, d);
|
|
632
632
|
else if (p.validator) {
|
|
633
633
|
try {
|
|
634
|
-
|
|
635
|
-
} catch (
|
|
636
|
-
console.error == null, d.suppressValidatorError || setTimeout(function() {
|
|
637
|
-
throw
|
|
638
|
-
}, 0), O(
|
|
634
|
+
q = p.validator(p, y.value, O, y.source, d);
|
|
635
|
+
} catch (C) {
|
|
636
|
+
console.error == null || console.error(C), d.suppressValidatorError || setTimeout(function() {
|
|
637
|
+
throw C;
|
|
638
|
+
}, 0), O(C.message);
|
|
639
639
|
}
|
|
640
|
-
|
|
640
|
+
q === !0 ? O() : q === !1 ? O(typeof p.message == "function" ? p.message(p.fullField || p.field) : p.message || (p.fullField || p.field) + " fails") : q instanceof Array ? O(q) : q instanceof Error && O(q.message);
|
|
641
641
|
}
|
|
642
|
-
|
|
642
|
+
q && q.then && q.then(function() {
|
|
643
643
|
return O();
|
|
644
|
-
}, function(
|
|
645
|
-
return O(
|
|
644
|
+
}, function(C) {
|
|
645
|
+
return O(C);
|
|
646
646
|
});
|
|
647
647
|
}, function(y) {
|
|
648
648
|
w(y);
|
|
@@ -1207,7 +1207,7 @@ const $o = (e, t, r) => {
|
|
|
1207
1207
|
immediate: !0
|
|
1208
1208
|
}
|
|
1209
1209
|
);
|
|
1210
|
-
const $ = Ce(e, "modelValue"), f = Ce(e, "error"), y = Ce(e, "optionValue"), j = K(() => $o(e.rules, u, i.rules)), p = K(() => e.errorMode || i.errorMode), U = K(() => e.marginRight || i.marginRight || "30px"), h = K(() => e.marginBottom || i.marginBottom || "30px"), O = "8px",
|
|
1210
|
+
const $ = Ce(e, "modelValue"), f = Ce(e, "error"), y = Ce(e, "optionValue"), j = K(() => $o(e.rules, u, i.rules)), p = K(() => e.errorMode || i.errorMode), U = K(() => e.marginRight || i.marginRight || "30px"), h = K(() => e.marginBottom || i.marginBottom || "30px"), O = "8px", q = K(() => i.alignType === "horizontal" && !i.cols ? O : e.labelMarginRight || i.labelMarginRight), C = K(() => f.value !== "");
|
|
1211
1211
|
Ae(
|
|
1212
1212
|
$,
|
|
1213
1213
|
(s, c) => {
|
|
@@ -1259,11 +1259,11 @@ const $o = (e, t, r) => {
|
|
|
1259
1259
|
}), {
|
|
1260
1260
|
innerValue: $,
|
|
1261
1261
|
selectModelValue: y,
|
|
1262
|
-
errored:
|
|
1262
|
+
errored: C,
|
|
1263
1263
|
erroredMode: p,
|
|
1264
1264
|
innerError: f,
|
|
1265
1265
|
labelWidth: V,
|
|
1266
|
-
formLabelMarginRight:
|
|
1266
|
+
formLabelMarginRight: q,
|
|
1267
1267
|
contentWidth: w,
|
|
1268
1268
|
flexConfig: b,
|
|
1269
1269
|
marginRight: U,
|
|
@@ -1367,15 +1367,15 @@ const $o = (e, t, r) => {
|
|
|
1367
1367
|
flexConfig: U,
|
|
1368
1368
|
formProps: h,
|
|
1369
1369
|
marginRight: O,
|
|
1370
|
-
marginBottom:
|
|
1371
|
-
className:
|
|
1370
|
+
marginBottom: q,
|
|
1371
|
+
className: C,
|
|
1372
1372
|
inputHandler: R,
|
|
1373
1373
|
changeHandler: T,
|
|
1374
1374
|
selectChangeHandler: k
|
|
1375
1375
|
} = Oo(n, a, g), { $dasFormItem: G, isHoverInInput: ee, errorModalInputMouseEnter: N, errorModallInputMouseLeave: x } = Ao(n);
|
|
1376
|
-
return t({ $treeSelect: u, $cascader: d }), (s, c) => (S(),
|
|
1377
|
-
class: Fe(["das-ui-form-item", [l(
|
|
1378
|
-
style: be({ marginRight: l(O), marginBottom: l(
|
|
1376
|
+
return t({ $treeSelect: u, $cascader: d }), (s, c) => (S(), P("div", {
|
|
1377
|
+
class: Fe(["das-ui-form-item", [l(C), l(h).labelPosition, l(h).alignType, { "flex-layout": l(p) === "" }]]),
|
|
1378
|
+
style: be({ marginRight: l(O), marginBottom: l(q), alignItems: s.alignItems, flex: l(U), "min-width": 0 }),
|
|
1379
1379
|
"data-col": s.col
|
|
1380
1380
|
}, [
|
|
1381
1381
|
Se(
|
|
@@ -1391,7 +1391,7 @@ const $o = (e, t, r) => {
|
|
|
1391
1391
|
class: Fe(["label", { "required-mark": s.required, "has-help": s.helpMessage }])
|
|
1392
1392
|
},
|
|
1393
1393
|
[
|
|
1394
|
-
We((S(),
|
|
1394
|
+
We((S(), P("div", So, [
|
|
1395
1395
|
Ge(
|
|
1396
1396
|
Ze(s.label),
|
|
1397
1397
|
1
|
|
@@ -1400,7 +1400,7 @@ const $o = (e, t, r) => {
|
|
|
1400
1400
|
])), [
|
|
1401
1401
|
[l(Ye)]
|
|
1402
1402
|
]),
|
|
1403
|
-
s.showColon ? (S(),
|
|
1403
|
+
s.showColon ? (S(), P("span", Eo, ":")) : E("v-if", !0),
|
|
1404
1404
|
s.helpMessage || s.$slots.helpContent ? (S(), Ee(l(or), D({
|
|
1405
1405
|
key: 1,
|
|
1406
1406
|
effect: "light",
|
|
@@ -1491,7 +1491,7 @@ const $o = (e, t, r) => {
|
|
|
1491
1491
|
]),
|
|
1492
1492
|
key: "3"
|
|
1493
1493
|
} : void 0
|
|
1494
|
-
]), 1040, ["modelValue", "isView", "disabled", "type", "error", "width", "onInput", "onChange"])) : l(g)("radio") ? (S(),
|
|
1494
|
+
]), 1040, ["modelValue", "isView", "disabled", "type", "error", "width", "onInput", "onChange"])) : l(g)("radio") ? (S(), P(
|
|
1495
1495
|
L,
|
|
1496
1496
|
{ key: 1 },
|
|
1497
1497
|
[
|
|
@@ -1512,7 +1512,7 @@ const $o = (e, t, r) => {
|
|
|
1512
1512
|
],
|
|
1513
1513
|
2112
|
|
1514
1514
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1515
|
-
)) : l(g)("checkbox") ? (S(),
|
|
1515
|
+
)) : l(g)("checkbox") ? (S(), P(
|
|
1516
1516
|
L,
|
|
1517
1517
|
{ key: 2 },
|
|
1518
1518
|
[
|
|
@@ -1533,7 +1533,7 @@ const $o = (e, t, r) => {
|
|
|
1533
1533
|
],
|
|
1534
1534
|
2112
|
|
1535
1535
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1536
|
-
)) : l(g)("switch") ? (S(),
|
|
1536
|
+
)) : l(g)("switch") ? (S(), P(
|
|
1537
1537
|
L,
|
|
1538
1538
|
{ key: 3 },
|
|
1539
1539
|
[
|
|
@@ -1547,7 +1547,7 @@ const $o = (e, t, r) => {
|
|
|
1547
1547
|
],
|
|
1548
1548
|
2112
|
|
1549
1549
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1550
|
-
)) : l(g)("select") ? (S(),
|
|
1550
|
+
)) : l(g)("select") ? (S(), P(
|
|
1551
1551
|
L,
|
|
1552
1552
|
{ key: 4 },
|
|
1553
1553
|
[
|
|
@@ -1570,7 +1570,7 @@ const $o = (e, t, r) => {
|
|
|
1570
1570
|
],
|
|
1571
1571
|
2112
|
|
1572
1572
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1573
|
-
)) : l(g)("cascader") ? (S(),
|
|
1573
|
+
)) : l(g)("cascader") ? (S(), P(
|
|
1574
1574
|
L,
|
|
1575
1575
|
{ key: 5 },
|
|
1576
1576
|
[
|
|
@@ -1591,7 +1591,7 @@ const $o = (e, t, r) => {
|
|
|
1591
1591
|
],
|
|
1592
1592
|
2112
|
|
1593
1593
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1594
|
-
)) : l(g)("treeSelect") ? (S(),
|
|
1594
|
+
)) : l(g)("treeSelect") ? (S(), P(
|
|
1595
1595
|
L,
|
|
1596
1596
|
{ key: 6 },
|
|
1597
1597
|
[
|
|
@@ -1612,7 +1612,7 @@ const $o = (e, t, r) => {
|
|
|
1612
1612
|
],
|
|
1613
1613
|
2112
|
|
1614
1614
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1615
|
-
)) : l(g)("colorPicker") ? (S(),
|
|
1615
|
+
)) : l(g)("colorPicker") ? (S(), P(
|
|
1616
1616
|
L,
|
|
1617
1617
|
{ key: 7 },
|
|
1618
1618
|
[
|
|
@@ -1630,7 +1630,7 @@ const $o = (e, t, r) => {
|
|
|
1630
1630
|
],
|
|
1631
1631
|
2112
|
|
1632
1632
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1633
|
-
)) : l(g)("inputNumber") ? (S(),
|
|
1633
|
+
)) : l(g)("inputNumber") ? (S(), P(
|
|
1634
1634
|
L,
|
|
1635
1635
|
{ key: 8 },
|
|
1636
1636
|
[
|
|
@@ -1648,7 +1648,7 @@ const $o = (e, t, r) => {
|
|
|
1648
1648
|
],
|
|
1649
1649
|
2112
|
|
1650
1650
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1651
|
-
)) : l(g)("selectInput") ? (S(),
|
|
1651
|
+
)) : l(g)("selectInput") ? (S(), P(
|
|
1652
1652
|
L,
|
|
1653
1653
|
{ key: 9 },
|
|
1654
1654
|
[
|
|
@@ -1672,7 +1672,7 @@ const $o = (e, t, r) => {
|
|
|
1672
1672
|
],
|
|
1673
1673
|
2112
|
|
1674
1674
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1675
|
-
)) : l(g)("inputDialogSelect") ? (S(),
|
|
1675
|
+
)) : l(g)("inputDialogSelect") ? (S(), P(
|
|
1676
1676
|
L,
|
|
1677
1677
|
{ key: 10 },
|
|
1678
1678
|
[
|
|
@@ -1694,7 +1694,7 @@ const $o = (e, t, r) => {
|
|
|
1694
1694
|
],
|
|
1695
1695
|
2112
|
|
1696
1696
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1697
|
-
)) : l(g)("date", "dateTime", "week", "month", "quarter", "year") ? (S(),
|
|
1697
|
+
)) : l(g)("date", "dateTime", "week", "month", "quarter", "year") ? (S(), P(
|
|
1698
1698
|
L,
|
|
1699
1699
|
{ key: 11 },
|
|
1700
1700
|
[
|
|
@@ -1714,7 +1714,7 @@ const $o = (e, t, r) => {
|
|
|
1714
1714
|
],
|
|
1715
1715
|
2112
|
|
1716
1716
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1717
|
-
)) : l(g)("dateRange", "dateTimeRange", "weekRange", "monthRange", "yearRange") ? (S(),
|
|
1717
|
+
)) : l(g)("dateRange", "dateTimeRange", "weekRange", "monthRange", "yearRange") ? (S(), P(
|
|
1718
1718
|
L,
|
|
1719
1719
|
{ key: 12 },
|
|
1720
1720
|
[
|
|
@@ -1734,7 +1734,7 @@ const $o = (e, t, r) => {
|
|
|
1734
1734
|
],
|
|
1735
1735
|
2112
|
|
1736
1736
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1737
|
-
)) : l(g)("time") ? (S(),
|
|
1737
|
+
)) : l(g)("time") ? (S(), P(
|
|
1738
1738
|
L,
|
|
1739
1739
|
{ key: 13 },
|
|
1740
1740
|
[
|
|
@@ -1751,7 +1751,7 @@ const $o = (e, t, r) => {
|
|
|
1751
1751
|
],
|
|
1752
1752
|
2112
|
|
1753
1753
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
1754
|
-
)) : l(g)("timeRange") ? (S(),
|
|
1754
|
+
)) : l(g)("timeRange") ? (S(), P(
|
|
1755
1755
|
L,
|
|
1756
1756
|
{ key: 14 },
|
|
1757
1757
|
[
|
|
@@ -1772,11 +1772,11 @@ const $o = (e, t, r) => {
|
|
|
1772
1772
|
E(" 插槽 "),
|
|
1773
1773
|
re(s.$slots, "default", {}, void 0, !0),
|
|
1774
1774
|
E(" 错误提示 "),
|
|
1775
|
-
l(b) && l(w) ? (S(),
|
|
1775
|
+
l(b) && l(w) ? (S(), P(
|
|
1776
1776
|
L,
|
|
1777
1777
|
{ key: 15 },
|
|
1778
1778
|
[
|
|
1779
|
-
l($) === "default" ? We((S(),
|
|
1779
|
+
l($) === "default" ? We((S(), P(
|
|
1780
1780
|
"div",
|
|
1781
1781
|
{
|
|
1782
1782
|
key: 0,
|
|
Binary file
|
|
@@ -5745,8 +5745,12 @@ function Cl(a) {
|
|
|
5745
5745
|
mimeType: null,
|
|
5746
5746
|
pictureType: null
|
|
5747
5747
|
}, t = 3;
|
|
5748
|
-
if (a.size < 2
|
|
5748
|
+
if (a.size < 2)
|
|
5749
|
+
return;
|
|
5750
|
+
if (a.data[0] !== t) {
|
|
5751
|
+
console.log("Ignore frame with unrecognized character encoding");
|
|
5749
5752
|
return;
|
|
5753
|
+
}
|
|
5750
5754
|
const s = a.data.subarray(1).indexOf(0);
|
|
5751
5755
|
if (s === -1)
|
|
5752
5756
|
return;
|
|
@@ -21064,7 +21068,10 @@ const Su = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgQAAACQCAYAAAB3anPqAA
|
|
|
21064
21068
|
loading: o = !1,
|
|
21065
21069
|
errorText: c = _i("das-ui-hls-player-videoLoadFailedRetry")
|
|
21066
21070
|
} = va(s), l = Ee(s.errorTime || 10), h = (_) => {
|
|
21067
|
-
|
|
21071
|
+
if (l.value === 0) return;
|
|
21072
|
+
l.value = l.value - 1;
|
|
21073
|
+
const $ = _.target;
|
|
21074
|
+
console.log("Video error:", $.error), K();
|
|
21068
21075
|
}, u = Sa(() => s.src || "");
|
|
21069
21076
|
Pa(s, "videoError");
|
|
21070
21077
|
const d = Ee(!0), f = Ee(null), g = Ee(null);
|
|
@@ -21116,21 +21123,21 @@ const Su = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgQAAACQCAYAAAB3anPqAA
|
|
|
21116
21123
|
// 分片加载超时
|
|
21117
21124
|
};
|
|
21118
21125
|
g.value = new Te(_), g.value.loadSource(u.value), g.value.autoLevelCapping = -1, g.value.attachMedia(f.value), g.value.on(Te.Events.MANIFEST_PARSED, () => {
|
|
21119
|
-
p.value && clearTimeout(p.value), p.value = setTimeout(() => {
|
|
21126
|
+
console.log("HLS 流加载成功,尝试播放..."), p.value && clearTimeout(p.value), p.value = setTimeout(() => {
|
|
21120
21127
|
f.value.play().catch(() => {
|
|
21121
21128
|
}), i("loaded", f.value);
|
|
21122
21129
|
}, 300);
|
|
21123
21130
|
}), g.value.on(Te.Events.ERROR, ($, w) => {
|
|
21124
21131
|
O(w);
|
|
21125
21132
|
});
|
|
21126
|
-
} else f.value.canPlayType("application/vnd.apple.mpegurl")
|
|
21133
|
+
} else f.value.canPlayType("application/vnd.apple.mpegurl") ? console.log("ios用原生播放") : O({ type: "UNSUPPORTED" });
|
|
21127
21134
|
f.value.addEventListener("playing", x), f.value.addEventListener("waiting", D);
|
|
21128
21135
|
}, x = () => {
|
|
21129
|
-
d.value = !1, E.value = "", T.value = "";
|
|
21136
|
+
console.log("视频开始播放"), d.value = !1, E.value = "", T.value = "";
|
|
21130
21137
|
}, R = () => {
|
|
21131
21138
|
d.value = !0, y.value = !1;
|
|
21132
21139
|
}, D = () => {
|
|
21133
|
-
E.value = "视频缓冲中...";
|
|
21140
|
+
console.log("视频缓冲中..."), E.value = "视频缓冲中...";
|
|
21134
21141
|
}, A = () => {
|
|
21135
21142
|
var _, $, w;
|
|
21136
21143
|
(_ = f.value) == null || _.removeEventListener("playing", x), ($ = f.value) == null || $.removeEventListener("play", R), (w = f.value) == null || w.removeEventListener("waiting", D);
|
|
@@ -21138,7 +21145,7 @@ const Su = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgQAAACQCAYAAAB3anPqAA
|
|
|
21138
21145
|
g.value && (g.value.destroy(), g.value = null);
|
|
21139
21146
|
}, O = (_) => {
|
|
21140
21147
|
var $, w;
|
|
21141
|
-
if (E.value = "视频加载失败", T.value = JSON.stringify(_), _.fatal)
|
|
21148
|
+
if (E.value = "视频加载失败", T.value = JSON.stringify(_), console.log(_, "============dadta"), _.fatal)
|
|
21142
21149
|
switch (_.type) {
|
|
21143
21150
|
case Te.ErrorTypes.NETWORK_ERROR:
|
|
21144
21151
|
E.value = "网络错误或视频流404,正在加载中...", ($ = g.value) == null || $.startLoad(), K();
|
|
Binary file
|