@das-fed/ui 6.4.0-dev.55.4 → 6.4.0-dev.55.6
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/change-enterprises/i18n/index.d.ts +3 -0
- package/packages/business-components/change-enterprises/index.js +44 -44
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/i18n/index.d.ts +18 -0
- package/packages/business-components/change-pwd/index.js +119 -114
- package/packages/business-components/change-pwd/index.js.gz +0 -0
- package/packages/business-components/currency-page/i18n/index.d.ts +4 -0
- package/packages/business-components/currency-page/index.js +12 -4
- package/packages/business-components/currency-page/index.js.gz +0 -0
- package/packages/business-components/device-panel/i18n/index.d.ts +235 -0
- package/packages/business-components/device-panel/index.js +13161 -13050
- package/packages/business-components/device-panel/index.js.gz +0 -0
- 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/export-button/i18n/index.d.ts +11 -0
- package/packages/business-components/export-button/index.js +76 -71
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +26 -0
- package/packages/business-components/import-button/index.js +297 -288
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/model-table-dialog/i18n/index.d.ts +6 -0
- package/packages/business-components/model-table-dialog/index.js +433 -433
- package/packages/business-components/model-table-dialog/index.js.gz +0 -0
- package/packages/business-components/process-configuration/i18n/index.d.ts +31 -0
- package/packages/business-components/process-configuration/index.js +201 -198
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/i18n/index.d.ts +80 -0
- package/packages/business-components/process-form/index.js +858 -838
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/i18n/index.d.ts +10 -0
- package/packages/business-components/process-log/index.js +245 -245
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/i18n/index.d.ts +9 -0
- package/packages/business-components/process-search-form/index.js +135 -135
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/i18n/index.d.ts +8 -0
- package/packages/business-components/process-table/index.js +128 -128
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/upload-file/i18n/index.d.ts +1 -0
- package/packages/business-components/upload-file/index.js +25 -24
- package/packages/business-components/upload-file/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/i18n/index.d.ts +90 -0
- package/packages/business-components/urgent-panel/index.js +1249 -1235
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/i18n/index.d.ts +15 -0
- package/packages/business-components/user-org-dialog/index.js +223 -219
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/i18n/index.d.ts +20 -0
- package/packages/business-components/video-dialog/index.js +233 -233
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/calendar/i18n/index.d.ts +46 -0
- package/packages/components/calendar/index.js +283 -283
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/i18n/index.d.ts +1 -0
- package/packages/components/cascader/index.js +21 -21
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/color-picker/i18n/index.d.ts +1 -0
- package/packages/components/color-picker/index.js +35 -35
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/i18n/index.d.ts +1 -0
- package/packages/components/custom-search-item/index.js +17 -17
- package/packages/components/custom-search-item/index.js.gz +0 -0
- package/packages/components/date-picker/i18n/index.d.ts +3 -0
- package/packages/components/date-picker/index.js +94 -94
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/i18n/index.d.ts +6 -0
- package/packages/components/dialog/index.js +58 -58
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/i18n/index.d.ts +10 -0
- package/packages/components/dimple-layout/index.js +287 -283
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/i18n/index.d.ts +1 -0
- package/packages/components/dropdown/index.js +14 -14
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/empty/i18n/index.d.ts +1 -0
- package/packages/components/empty/index.js +11 -11
- package/packages/components/empty/index.js.gz +0 -0
- package/packages/components/image-upload/i18n/index.d.ts +6 -0
- package/packages/components/image-upload/index.js +67 -58
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/input/i18n/index.d.ts +3 -0
- package/packages/components/input/index.js +36 -36
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/live-player/i18n/index.d.ts +2 -0
- package/packages/components/live-player/index.js +3 -2
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/i18n/index.d.ts +1 -0
- package/packages/components/loading/index.js +53 -53
- package/packages/components/loading/index.js.gz +0 -0
- package/packages/components/map/i18n/index.d.ts +4 -0
- package/packages/components/map/index.js +73 -68
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/i18n/index.d.ts +1 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/i18n/index.d.ts +1 -0
- package/packages/components/message/index.js +1 -1
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/i18n/index.d.ts +1 -0
- package/packages/components/notification/index.js +1 -1
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/i18n/index.d.ts +4 -0
- package/packages/components/pagination/index.js +44 -44
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/i18n/index.d.ts +2 -0
- package/packages/components/popover/index.js +7 -7
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/preview/i18n/index.d.ts +1 -0
- package/packages/components/preview/index.js +6 -6
- package/packages/components/preview/index.js.gz +0 -0
- package/packages/components/rich-editor/i18n/index.d.ts +4 -0
- package/packages/components/rich-editor/index.js +11 -4
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/search-form/i18n/index.d.ts +6 -0
- package/packages/components/search-form/index.js +113 -113
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/i18n/index.d.ts +5 -0
- package/packages/components/select/index.js +183 -183
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/i18n/index.d.ts +4 -0
- package/packages/components/select-list/index.js +73 -73
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/i18n/index.d.ts +4 -0
- package/packages/components/special-range-picker-month/index.js +72 -72
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/i18n/index.d.ts +3 -0
- package/packages/components/special-range-picker-year/index.js +99 -99
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/i18n/index.d.ts +1 -0
- package/packages/components/spin/index.js +27 -27
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/table/i18n/index.d.ts +41 -4
- package/packages/components/table/index.js +2291 -2288
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/style.css +1 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/i18n/index.d.ts +3 -0
- package/packages/components/tabs/index.js +46 -46
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +1 -1
- package/packages/components/text-tooltip/index.js.gz +0 -0
- package/packages/components/tooltip/i18n/index.d.ts +1 -0
- package/packages/components/tooltip/index.js +14 -14
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/i18n/index.d.ts +7 -0
- package/packages/components/tree/index.js +8 -7
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/upload/i18n/index.d.ts +5 -0
- package/packages/components/upload/index.js +54 -54
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/i18n/index.d.ts +1 -0
- package/packages/components/virtual-tree/index.js +11 -11
- package/packages/components/virtual-tree/index.js.gz +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/video-dialog/style.css';
|
|
2
|
-
import { getCurrentScope as ce, onScopeDispose as ue, unref as l, getCurrentInstance as de, onMounted as K, nextTick as L, ref as
|
|
2
|
+
import { getCurrentScope as ce, onScopeDispose as ue, unref as l, getCurrentInstance as de, onMounted as K, nextTick as L, ref as _, watch as F, defineComponent as D, useCssVars as pe, computed as P, openBlock as k, createElementBlock as R, normalizeClass as ve, renderSlot as X, createCommentVNode as I, Fragment as J, renderList as fe, createBlock as E, withCtx as m, withModifiers as y, createVNode as p, createElementVNode as v, toDisplayString as V, toRefs as me } from "vue";
|
|
3
3
|
import { withInstall as ge } from "@das-fed/utils/with-install/index";
|
|
4
|
-
import { t as g, setI18nRule as
|
|
5
|
-
import { DasDialog as
|
|
6
|
-
import { DasTooltip as
|
|
7
|
-
import { DasIconFullscreen2 as
|
|
8
|
-
import { DasAutoRegisterIcon as
|
|
9
|
-
import { DasLivePlayer as
|
|
10
|
-
import { DasSpin as
|
|
4
|
+
import { t as g, setI18nRule as Ce } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasDialog as ke } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
+
import { DasTooltip as h } from "@das-fed/ui/packages/components/tooltip/index";
|
|
7
|
+
import { DasIconFullscreen2 as ye } from "@das-fed/ui/packages/icons/fullscreen-2/index";
|
|
8
|
+
import { DasAutoRegisterIcon as _e, DasIcon as $ } from "@das-fed/ui/packages/components/icon/index";
|
|
9
|
+
import { DasLivePlayer as we } from "@das-fed/ui/packages/components/live-player/index";
|
|
10
|
+
import { DasSpin as he } from "@das-fed/ui/packages/components/spin/index";
|
|
11
11
|
import be from "dayjs";
|
|
12
12
|
import { createService as ee } from "@das-fed/utils/api-services/src/create-service";
|
|
13
13
|
import { getProjectInfo as M, getToken as Ie } from "@das-fed/utils/common-info";
|
|
@@ -21,35 +21,35 @@ function te(t) {
|
|
|
21
21
|
function Fe(t) {
|
|
22
22
|
return t;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function oe(t) {
|
|
25
25
|
return ce() ? (ue(t), !0) : !1;
|
|
26
26
|
}
|
|
27
|
-
function Se(t,
|
|
28
|
-
de() ? K(t) :
|
|
27
|
+
function Se(t, n = !0) {
|
|
28
|
+
de() ? K(t) : n ? t() : L(t);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
var
|
|
30
|
+
function ne(t) {
|
|
31
|
+
var n;
|
|
32
32
|
const e = te(t);
|
|
33
|
-
return (
|
|
33
|
+
return (n = e == null ? void 0 : e.$el) != null ? n : e;
|
|
34
34
|
}
|
|
35
35
|
const ze = j ? window : void 0, Oe = j ? window.document : void 0;
|
|
36
36
|
function Re(...t) {
|
|
37
|
-
let
|
|
38
|
-
if (Ee(t[0]) || Array.isArray(t[0]) ? ([e, i, a] = t,
|
|
37
|
+
let n, e, i, a;
|
|
38
|
+
if (Ee(t[0]) || Array.isArray(t[0]) ? ([e, i, a] = t, n = ze) : [n, e, i, a] = t, !n)
|
|
39
39
|
return Ne;
|
|
40
40
|
Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
}, f = (c,
|
|
44
|
-
|
|
41
|
+
const o = [], r = () => {
|
|
42
|
+
o.forEach((c) => c()), o.length = 0;
|
|
43
|
+
}, f = (c, C, w, N) => (c.addEventListener(C, w, N), () => c.removeEventListener(C, w, N)), s = F(() => [ne(n), te(a)], ([c, C]) => {
|
|
44
|
+
r(), c && o.push(...e.flatMap((w) => i.map((N) => f(c, w, N, C))));
|
|
45
45
|
}, { immediate: !0, flush: "post" }), d = () => {
|
|
46
|
-
|
|
46
|
+
s(), r();
|
|
47
47
|
};
|
|
48
|
-
return
|
|
48
|
+
return oe(d), d;
|
|
49
49
|
}
|
|
50
|
-
function De(t,
|
|
51
|
-
const e =
|
|
52
|
-
return i(), Se(i,
|
|
50
|
+
function De(t, n = !1) {
|
|
51
|
+
const e = _(), i = () => e.value = !!t();
|
|
52
|
+
return i(), Se(i, n), e;
|
|
53
53
|
}
|
|
54
54
|
const Q = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, q = "__vueuse_ssr_handlers__";
|
|
55
55
|
Q[q] = Q[q] || {};
|
|
@@ -95,38 +95,38 @@ const G = [
|
|
|
95
95
|
"MSFullscreenError"
|
|
96
96
|
]
|
|
97
97
|
];
|
|
98
|
-
function le(t,
|
|
99
|
-
const { document: e = Oe, autoExit: i = !1 } =
|
|
100
|
-
let
|
|
98
|
+
function le(t, n = {}) {
|
|
99
|
+
const { document: e = Oe, autoExit: i = !1 } = n, a = t || (e == null ? void 0 : e.querySelector("html")), o = _(!1);
|
|
100
|
+
let r = G[0];
|
|
101
101
|
const f = De(() => {
|
|
102
102
|
if (e) {
|
|
103
103
|
for (const S of G)
|
|
104
104
|
if (S[1] in e)
|
|
105
|
-
return
|
|
105
|
+
return r = S, !0;
|
|
106
106
|
} else
|
|
107
107
|
return !1;
|
|
108
108
|
return !1;
|
|
109
|
-
}), [
|
|
110
|
-
async function
|
|
111
|
-
f.value && (e != null && e[c] && await e[d](),
|
|
109
|
+
}), [s, d, c, , C] = r;
|
|
110
|
+
async function w() {
|
|
111
|
+
f.value && (e != null && e[c] && await e[d](), o.value = !1);
|
|
112
112
|
}
|
|
113
113
|
async function N() {
|
|
114
114
|
if (!f.value)
|
|
115
115
|
return;
|
|
116
|
-
await
|
|
117
|
-
const S =
|
|
118
|
-
S && (await S[
|
|
116
|
+
await w();
|
|
117
|
+
const S = ne(a);
|
|
118
|
+
S && (await S[s](), o.value = !0);
|
|
119
119
|
}
|
|
120
120
|
async function T() {
|
|
121
|
-
|
|
121
|
+
o.value ? await w() : await N();
|
|
122
122
|
}
|
|
123
|
-
return e && Re(e,
|
|
124
|
-
|
|
125
|
-
}, !1), i &&
|
|
123
|
+
return e && Re(e, C, () => {
|
|
124
|
+
o.value = !!(e != null && e[c]);
|
|
125
|
+
}, !1), i && oe(w), {
|
|
126
126
|
isSupported: f,
|
|
127
|
-
isFullscreen:
|
|
127
|
+
isFullscreen: o,
|
|
128
128
|
enter: N,
|
|
129
|
-
exit:
|
|
129
|
+
exit: w,
|
|
130
130
|
toggle: T
|
|
131
131
|
};
|
|
132
132
|
}
|
|
@@ -134,12 +134,12 @@ var W;
|
|
|
134
134
|
(function(t) {
|
|
135
135
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
136
136
|
})(W || (W = {}));
|
|
137
|
-
var $e = Object.defineProperty, H = Object.getOwnPropertySymbols, Le = Object.prototype.hasOwnProperty, Pe = Object.prototype.propertyIsEnumerable, Y = (t,
|
|
138
|
-
for (var e in
|
|
139
|
-
Le.call(
|
|
137
|
+
var $e = Object.defineProperty, H = Object.getOwnPropertySymbols, Le = Object.prototype.hasOwnProperty, Pe = Object.prototype.propertyIsEnumerable, Y = (t, n, e) => n in t ? $e(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, xe = (t, n) => {
|
|
138
|
+
for (var e in n || (n = {}))
|
|
139
|
+
Le.call(n, e) && Y(t, e, n[e]);
|
|
140
140
|
if (H)
|
|
141
|
-
for (var e of H(
|
|
142
|
-
Pe.call(
|
|
141
|
+
for (var e of H(n))
|
|
142
|
+
Pe.call(n, e) && Y(t, e, n[e]);
|
|
143
143
|
return t;
|
|
144
144
|
};
|
|
145
145
|
const Te = {
|
|
@@ -178,25 +178,25 @@ const Ue = /* @__PURE__ */ D({
|
|
|
178
178
|
gridNum: {}
|
|
179
179
|
},
|
|
180
180
|
emits: ["itemClick"],
|
|
181
|
-
setup(t, { emit:
|
|
182
|
-
|
|
181
|
+
setup(t, { emit: n }) {
|
|
182
|
+
pe((c) => ({
|
|
183
183
|
"9b3a2c32": d.value
|
|
184
184
|
}));
|
|
185
|
-
const e = t, i =
|
|
186
|
-
a.value != document.fullscreenElement && (
|
|
187
|
-
|
|
188
|
-
})) :
|
|
189
|
-
},
|
|
185
|
+
const e = t, i = n, a = _(), { toggle: o, isFullscreen: r } = le(a), f = () => {
|
|
186
|
+
a.value != document.fullscreenElement && (r.value ? (r.value = !1, L(() => {
|
|
187
|
+
o();
|
|
188
|
+
})) : o());
|
|
189
|
+
}, s = () => {
|
|
190
190
|
i("itemClick");
|
|
191
191
|
}, d = P(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
|
|
192
|
-
return (c,
|
|
192
|
+
return (c, C) => (k(), R(
|
|
193
193
|
"div",
|
|
194
194
|
{
|
|
195
195
|
ref_key: "containerRef",
|
|
196
196
|
ref: a,
|
|
197
|
-
class:
|
|
198
|
-
onDblclick:
|
|
199
|
-
onClick:
|
|
197
|
+
class: ve(["wrapper", { "is-active": e.active }]),
|
|
198
|
+
onDblclick: C[0] || (C[0] = (w) => f()),
|
|
199
|
+
onClick: C[1] || (C[1] = (w) => s())
|
|
200
200
|
},
|
|
201
201
|
[
|
|
202
202
|
X(c.$slots, "default", {}, void 0, !0)
|
|
@@ -205,9 +205,9 @@ const Ue = /* @__PURE__ */ D({
|
|
|
205
205
|
/* CLASS, NEED_HYDRATION */
|
|
206
206
|
));
|
|
207
207
|
}
|
|
208
|
-
}), x = (t,
|
|
208
|
+
}), x = (t, n) => {
|
|
209
209
|
const e = t.__vccOpts || t;
|
|
210
|
-
for (const [i, a] of
|
|
210
|
+
for (const [i, a] of n)
|
|
211
211
|
e[i] = a;
|
|
212
212
|
return e;
|
|
213
213
|
}, Ve = /* @__PURE__ */ x(Ue, [["__scopeId", "data-v-100b67ca"]]), je = { class: "layout-wrapper" }, Be = /* @__PURE__ */ D({
|
|
@@ -218,24 +218,24 @@ const Ue = /* @__PURE__ */ D({
|
|
|
218
218
|
showFn: {}
|
|
219
219
|
},
|
|
220
220
|
emits: ["update:activeIndex"],
|
|
221
|
-
setup(t, { emit:
|
|
222
|
-
const e = t, i =
|
|
223
|
-
i("update:activeIndex",
|
|
221
|
+
setup(t, { emit: n }) {
|
|
222
|
+
const e = t, i = n, a = (o) => {
|
|
223
|
+
i("update:activeIndex", o);
|
|
224
224
|
};
|
|
225
|
-
return (
|
|
225
|
+
return (o, r) => (k(), R("div", je, [
|
|
226
226
|
I(' :active="index === activeIndex" '),
|
|
227
|
-
(
|
|
227
|
+
(k(!0), R(
|
|
228
228
|
J,
|
|
229
229
|
null,
|
|
230
|
-
fe(e.gridNum, (f,
|
|
230
|
+
fe(e.gridNum, (f, s) => (k(), E(Ve, {
|
|
231
231
|
active: !1,
|
|
232
232
|
"grid-num": e.gridNum,
|
|
233
|
-
onItemClick: (d) => a(
|
|
233
|
+
onItemClick: (d) => a(s)
|
|
234
234
|
}, {
|
|
235
235
|
default: m(() => [
|
|
236
|
-
|
|
236
|
+
o.showFn(s) ? X(o.$slots, "default", {
|
|
237
237
|
key: 0,
|
|
238
|
-
index:
|
|
238
|
+
index: s
|
|
239
239
|
}, void 0, !0) : I("v-if", !0)
|
|
240
240
|
]),
|
|
241
241
|
_: 2
|
|
@@ -249,120 +249,120 @@ const Ue = /* @__PURE__ */ D({
|
|
|
249
249
|
}), Me = /* @__PURE__ */ x(Be, [["__scopeId", "data-v-661e2289"]]), Ae = /* @__PURE__ */ D({
|
|
250
250
|
__name: "DirectionControl",
|
|
251
251
|
emits: ["change"],
|
|
252
|
-
setup(t, { emit:
|
|
253
|
-
const e =
|
|
252
|
+
setup(t, { emit: n }) {
|
|
253
|
+
const e = n, i = (a) => {
|
|
254
254
|
e("change", a);
|
|
255
255
|
};
|
|
256
|
-
return (a,
|
|
256
|
+
return (a, o) => (k(), R(
|
|
257
257
|
"div",
|
|
258
258
|
{
|
|
259
259
|
class: "direction-control",
|
|
260
|
-
onDblclick:
|
|
260
|
+
onDblclick: o[9] || (o[9] = y((r) => r.stopPropagation(), ["stop"]))
|
|
261
261
|
},
|
|
262
262
|
[
|
|
263
|
-
|
|
263
|
+
p(l(h), {
|
|
264
264
|
content: l(g)("左上")
|
|
265
265
|
}, {
|
|
266
266
|
default: m(() => [
|
|
267
|
-
|
|
267
|
+
v("div", {
|
|
268
268
|
class: "icon icon-top-left",
|
|
269
|
-
onClick:
|
|
269
|
+
onClick: o[0] || (o[0] = y((r) => i("leftUp"), ["stop"]))
|
|
270
270
|
})
|
|
271
271
|
]),
|
|
272
272
|
_: 1
|
|
273
273
|
/* STABLE */
|
|
274
274
|
}, 8, ["content"]),
|
|
275
|
-
|
|
275
|
+
p(l(h), {
|
|
276
276
|
content: l(g)("上")
|
|
277
277
|
}, {
|
|
278
278
|
default: m(() => [
|
|
279
|
-
|
|
279
|
+
v("div", {
|
|
280
280
|
class: "icon icon-top",
|
|
281
|
-
onClick:
|
|
281
|
+
onClick: o[1] || (o[1] = y((r) => i("up"), ["stop"]))
|
|
282
282
|
})
|
|
283
283
|
]),
|
|
284
284
|
_: 1
|
|
285
285
|
/* STABLE */
|
|
286
286
|
}, 8, ["content"]),
|
|
287
|
-
|
|
287
|
+
p(l(h), {
|
|
288
288
|
content: l(g)("右上")
|
|
289
289
|
}, {
|
|
290
290
|
default: m(() => [
|
|
291
|
-
|
|
291
|
+
v("div", {
|
|
292
292
|
class: "icon icon-top-right",
|
|
293
|
-
onClick:
|
|
293
|
+
onClick: o[2] || (o[2] = y((r) => i("rightUp"), ["stop"]))
|
|
294
294
|
})
|
|
295
295
|
]),
|
|
296
296
|
_: 1
|
|
297
297
|
/* STABLE */
|
|
298
298
|
}, 8, ["content"]),
|
|
299
|
-
|
|
299
|
+
p(l(h), {
|
|
300
300
|
content: l(g)("左")
|
|
301
301
|
}, {
|
|
302
302
|
default: m(() => [
|
|
303
|
-
|
|
303
|
+
v("div", {
|
|
304
304
|
class: "icon icon-left",
|
|
305
|
-
onClick:
|
|
305
|
+
onClick: o[3] || (o[3] = y((r) => i("left"), ["stop"]))
|
|
306
306
|
})
|
|
307
307
|
]),
|
|
308
308
|
_: 1
|
|
309
309
|
/* STABLE */
|
|
310
310
|
}, 8, ["content"]),
|
|
311
|
-
|
|
311
|
+
p(l(h), {
|
|
312
312
|
content: l(g)("自动")
|
|
313
313
|
}, {
|
|
314
314
|
default: m(() => [
|
|
315
|
-
|
|
315
|
+
v("div", {
|
|
316
316
|
class: "icon icon-auto",
|
|
317
|
-
onClick:
|
|
317
|
+
onClick: o[4] || (o[4] = y((r) => i("auto"), ["stop"]))
|
|
318
318
|
})
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
321
|
/* STABLE */
|
|
322
322
|
}, 8, ["content"]),
|
|
323
|
-
|
|
323
|
+
p(l(h), {
|
|
324
324
|
content: l(g)("右")
|
|
325
325
|
}, {
|
|
326
326
|
default: m(() => [
|
|
327
|
-
|
|
327
|
+
v("div", {
|
|
328
328
|
class: "icon icon-right",
|
|
329
|
-
onClick:
|
|
329
|
+
onClick: o[5] || (o[5] = y((r) => i("right"), ["stop"]))
|
|
330
330
|
})
|
|
331
331
|
]),
|
|
332
332
|
_: 1
|
|
333
333
|
/* STABLE */
|
|
334
334
|
}, 8, ["content"]),
|
|
335
|
-
|
|
335
|
+
p(l(h), {
|
|
336
336
|
content: l(g)("左下")
|
|
337
337
|
}, {
|
|
338
338
|
default: m(() => [
|
|
339
|
-
|
|
339
|
+
v("div", {
|
|
340
340
|
class: "icon icon-bottom-left",
|
|
341
|
-
onClick:
|
|
341
|
+
onClick: o[6] || (o[6] = y((r) => i("leftDown"), ["stop"]))
|
|
342
342
|
})
|
|
343
343
|
]),
|
|
344
344
|
_: 1
|
|
345
345
|
/* STABLE */
|
|
346
346
|
}, 8, ["content"]),
|
|
347
|
-
|
|
347
|
+
p(l(h), {
|
|
348
348
|
content: l(g)("下")
|
|
349
349
|
}, {
|
|
350
350
|
default: m(() => [
|
|
351
|
-
|
|
351
|
+
v("div", {
|
|
352
352
|
class: "icon icon-bottom",
|
|
353
|
-
onClick:
|
|
353
|
+
onClick: o[7] || (o[7] = y((r) => i("down"), ["stop"]))
|
|
354
354
|
})
|
|
355
355
|
]),
|
|
356
356
|
_: 1
|
|
357
357
|
/* STABLE */
|
|
358
358
|
}, 8, ["content"]),
|
|
359
|
-
|
|
359
|
+
p(l(h), {
|
|
360
360
|
content: l(g)("右下")
|
|
361
361
|
}, {
|
|
362
362
|
default: m(() => [
|
|
363
|
-
|
|
363
|
+
v("div", {
|
|
364
364
|
class: "icon icon-bottom-right",
|
|
365
|
-
onClick:
|
|
365
|
+
onClick: o[8] || (o[8] = y((r) => i("rightDown"), ["stop"]))
|
|
366
366
|
})
|
|
367
367
|
]),
|
|
368
368
|
_: 1
|
|
@@ -389,67 +389,67 @@ const Ue = /* @__PURE__ */ D({
|
|
|
389
389
|
onReplay: {}
|
|
390
390
|
},
|
|
391
391
|
emits: ["close", "directionControl", "zoomControl"],
|
|
392
|
-
setup(t, { emit:
|
|
393
|
-
const e = t, i =
|
|
394
|
-
|
|
392
|
+
setup(t, { emit: n }) {
|
|
393
|
+
const e = t, i = n;
|
|
394
|
+
_e({
|
|
395
395
|
muted: import("@das-fed/ui/packages/icons/muted"),
|
|
396
396
|
volume: import("@das-fed/ui/packages/icons/volume"),
|
|
397
397
|
shrink: import("@das-fed/ui/packages/icons/shrink"),
|
|
398
398
|
enlarge: import("@das-fed/ui/packages/icons/enlarge"),
|
|
399
399
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control")
|
|
400
400
|
});
|
|
401
|
-
const a =
|
|
401
|
+
const a = _(!0), o = _(), r = _(!1), f = _(), s = P(() => {
|
|
402
402
|
var u;
|
|
403
403
|
return (u = f.value) == null ? void 0 : u.video;
|
|
404
|
-
}), d =
|
|
405
|
-
|
|
404
|
+
}), d = _(!1), c = _(!0), C = (u) => {
|
|
405
|
+
o.value = u, o.value.on(window.mpegts.Events.ERROR, (b) => {
|
|
406
406
|
});
|
|
407
|
-
},
|
|
408
|
-
a.value = !a.value,
|
|
407
|
+
}, w = () => {
|
|
408
|
+
a.value = !a.value, o.value && (o.value.muted = a.value);
|
|
409
409
|
}, N = () => {
|
|
410
|
-
|
|
411
|
-
}, T =
|
|
410
|
+
r.value = !r.value;
|
|
411
|
+
}, T = _(""), S = () => {
|
|
412
412
|
const u = document.createElement("canvas");
|
|
413
|
-
if (
|
|
414
|
-
u.width =
|
|
413
|
+
if (s.value) {
|
|
414
|
+
u.width = s.value.clientWidth, u.height = s.value.clientHeight;
|
|
415
415
|
const b = u.getContext("2d");
|
|
416
|
-
b == null || b.drawImage(
|
|
416
|
+
b == null || b.drawImage(s.value, 0, 0, u.width, u.height);
|
|
417
417
|
const O = u.toDataURL("image/jpg"), ae = `【${e.title}】${be().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
418
418
|
if (T.value = O, "download" in document.createElement("a")) {
|
|
419
419
|
const z = document.createElement("a");
|
|
420
420
|
z.download = ae, z.style.display = "none", z.href = O, document.body.appendChild(z), document.body.appendChild(u), z.click(), URL.revokeObjectURL(z.href), document.body.removeChild(z), document.body.removeChild(u);
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
},
|
|
423
|
+
}, se = (u) => {
|
|
424
424
|
i("directionControl", u);
|
|
425
425
|
}, B = (u) => {
|
|
426
426
|
i("zoomControl", u);
|
|
427
427
|
}, U = (u) => e.authType.includes(u);
|
|
428
428
|
return F(
|
|
429
|
-
() =>
|
|
429
|
+
() => s.value,
|
|
430
430
|
() => {
|
|
431
|
-
|
|
431
|
+
s.value && s.value.addEventListener("ended", () => {
|
|
432
432
|
d.value = !0, e.type === "playback" && (c.value = !1);
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
435
|
), F(
|
|
436
|
-
() =>
|
|
436
|
+
() => s.value,
|
|
437
437
|
() => {
|
|
438
|
-
|
|
439
|
-
|
|
438
|
+
s.value && L(() => {
|
|
439
|
+
s.value.playbackRate = e.playbackRate || 1;
|
|
440
440
|
});
|
|
441
441
|
}
|
|
442
442
|
), F(
|
|
443
|
-
() =>
|
|
443
|
+
() => o.value,
|
|
444
444
|
() => {
|
|
445
|
-
|
|
446
|
-
|
|
445
|
+
o.value && L(() => {
|
|
446
|
+
o.value.muted = a.value;
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
), F(
|
|
450
450
|
() => e.playbackRate,
|
|
451
451
|
() => {
|
|
452
|
-
|
|
452
|
+
s.value && (s.value.playbackRate = e.playbackRate || 1);
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
immediate: !0
|
|
@@ -457,7 +457,7 @@ const Ue = /* @__PURE__ */ D({
|
|
|
457
457
|
), F(
|
|
458
458
|
() => e.paused,
|
|
459
459
|
() => {
|
|
460
|
-
|
|
460
|
+
o.value && (e.paused ? o.value.pause() : o.value.play());
|
|
461
461
|
}
|
|
462
462
|
), F(
|
|
463
463
|
() => e.videoUrl,
|
|
@@ -466,17 +466,17 @@ const Ue = /* @__PURE__ */ D({
|
|
|
466
466
|
c.value = !0;
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
|
-
), (u, b) => (
|
|
470
|
-
|
|
469
|
+
), (u, b) => (k(), R("div", qe, [
|
|
470
|
+
p(l(he), {
|
|
471
471
|
spinning: e.loading,
|
|
472
472
|
type: "component",
|
|
473
473
|
tip: l(g)("加载中...")
|
|
474
474
|
}, {
|
|
475
475
|
default: m(() => [
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
476
|
+
v("div", Ge, [
|
|
477
|
+
v("div", We, [
|
|
478
|
+
v("div", He, [
|
|
479
|
+
v(
|
|
480
480
|
"div",
|
|
481
481
|
Ye,
|
|
482
482
|
V(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
|
|
@@ -485,8 +485,8 @@ const Ue = /* @__PURE__ */ D({
|
|
|
485
485
|
)
|
|
486
486
|
])
|
|
487
487
|
]),
|
|
488
|
-
|
|
489
|
-
["live"].includes(u.type) ? (
|
|
488
|
+
v("div", Ze, [
|
|
489
|
+
["live"].includes(u.type) ? (k(), R(
|
|
490
490
|
"span",
|
|
491
491
|
Ke,
|
|
492
492
|
V(l(g)("正在实时预览")),
|
|
@@ -496,97 +496,97 @@ const Ue = /* @__PURE__ */ D({
|
|
|
496
496
|
I(' <das-icon class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
497
497
|
])
|
|
498
498
|
]),
|
|
499
|
-
e.videoUrl && c.value ? (
|
|
499
|
+
e.videoUrl && c.value ? (k(), E(l(we), {
|
|
500
500
|
key: 0,
|
|
501
501
|
type: "flv",
|
|
502
502
|
ref_key: "dasLivePlayerRef",
|
|
503
503
|
ref: f,
|
|
504
504
|
muted: a.value,
|
|
505
|
-
onLoaded:
|
|
505
|
+
onLoaded: C,
|
|
506
506
|
src: e.videoUrl
|
|
507
507
|
}, null, 8, ["muted", "src"])) : I("v-if", !0),
|
|
508
|
-
|
|
509
|
-
b[3] || (b[3] =
|
|
508
|
+
v("div", Xe, [
|
|
509
|
+
b[3] || (b[3] = v(
|
|
510
510
|
"div",
|
|
511
511
|
{ class: "video-bottom_l" },
|
|
512
512
|
null,
|
|
513
513
|
-1
|
|
514
514
|
/* HOISTED */
|
|
515
515
|
)),
|
|
516
|
-
|
|
517
|
-
|
|
516
|
+
v("div", Je, [
|
|
517
|
+
v(
|
|
518
518
|
"div",
|
|
519
519
|
{
|
|
520
520
|
class: "controls",
|
|
521
|
-
onDblclick: b[2] || (b[2] =
|
|
521
|
+
onDblclick: b[2] || (b[2] = y((O) => O.stopPropagation(), ["stop"]))
|
|
522
522
|
},
|
|
523
523
|
[
|
|
524
|
-
|
|
524
|
+
p(l(h), {
|
|
525
525
|
content: l(g)("声音")
|
|
526
526
|
}, {
|
|
527
527
|
default: m(() => [
|
|
528
|
-
|
|
528
|
+
p(l($), {
|
|
529
529
|
class: "icon icon-volume",
|
|
530
530
|
icon: a.value ? "muted" : "volume",
|
|
531
|
-
onClick:
|
|
531
|
+
onClick: y(w, ["stop"])
|
|
532
532
|
}, null, 8, ["icon"])
|
|
533
533
|
]),
|
|
534
534
|
_: 1
|
|
535
535
|
/* STABLE */
|
|
536
536
|
}, 8, ["content"]),
|
|
537
|
-
|
|
537
|
+
p(l(h), {
|
|
538
538
|
content: l(g)("截图")
|
|
539
539
|
}, {
|
|
540
540
|
default: m(() => [
|
|
541
|
-
|
|
541
|
+
p(l($), {
|
|
542
542
|
class: "icon icon-screenshot",
|
|
543
543
|
icon: "screenshot",
|
|
544
|
-
onClick:
|
|
544
|
+
onClick: y(S, ["stop"])
|
|
545
545
|
})
|
|
546
546
|
]),
|
|
547
547
|
_: 1
|
|
548
548
|
/* STABLE */
|
|
549
549
|
}, 8, ["content"]),
|
|
550
|
-
U("control") ? (
|
|
550
|
+
U("control") ? (k(), E(l(h), {
|
|
551
551
|
key: 0,
|
|
552
552
|
content: l(g)("聚焦-")
|
|
553
553
|
}, {
|
|
554
554
|
default: m(() => [
|
|
555
|
-
["live", "polling"].includes(e.type) ? (
|
|
555
|
+
["live", "polling"].includes(e.type) ? (k(), E(l($), {
|
|
556
556
|
key: 0,
|
|
557
557
|
class: "icon icon-shrink",
|
|
558
558
|
icon: "shrink",
|
|
559
|
-
onClick: b[0] || (b[0] =
|
|
559
|
+
onClick: b[0] || (b[0] = y((O) => B("zoomOut"), ["stop"]))
|
|
560
560
|
})) : I("v-if", !0)
|
|
561
561
|
]),
|
|
562
562
|
_: 1
|
|
563
563
|
/* STABLE */
|
|
564
564
|
}, 8, ["content"])) : I("v-if", !0),
|
|
565
|
-
U("control") ? (
|
|
565
|
+
U("control") ? (k(), E(l(h), {
|
|
566
566
|
key: 1,
|
|
567
567
|
content: l(g)("聚焦+")
|
|
568
568
|
}, {
|
|
569
569
|
default: m(() => [
|
|
570
|
-
["live", "polling"].includes(e.type) ? (
|
|
570
|
+
["live", "polling"].includes(e.type) ? (k(), E(l($), {
|
|
571
571
|
key: 0,
|
|
572
572
|
class: "icon icon-enlarge",
|
|
573
573
|
icon: "enlarge",
|
|
574
|
-
onClick: b[1] || (b[1] =
|
|
574
|
+
onClick: b[1] || (b[1] = y((O) => B("zoomIn"), ["stop"]))
|
|
575
575
|
})) : I("v-if", !0)
|
|
576
576
|
]),
|
|
577
577
|
_: 1
|
|
578
578
|
/* STABLE */
|
|
579
579
|
}, 8, ["content"])) : I("v-if", !0),
|
|
580
|
-
U("control") ? (
|
|
580
|
+
U("control") ? (k(), E(l(h), {
|
|
581
581
|
key: 2,
|
|
582
582
|
content: l(g)("方向控制")
|
|
583
583
|
}, {
|
|
584
584
|
default: m(() => [
|
|
585
|
-
["live", "polling"].includes(e.type) ? (
|
|
585
|
+
["live", "polling"].includes(e.type) ? (k(), E(l($), {
|
|
586
586
|
key: 0,
|
|
587
587
|
class: "icon icon-direction-control",
|
|
588
588
|
icon: "direction-control",
|
|
589
|
-
onClick:
|
|
589
|
+
onClick: y(N, ["stop"])
|
|
590
590
|
})) : I("v-if", !0)
|
|
591
591
|
]),
|
|
592
592
|
_: 1
|
|
@@ -598,9 +598,9 @@ const Ue = /* @__PURE__ */ D({
|
|
|
598
598
|
)
|
|
599
599
|
])
|
|
600
600
|
]),
|
|
601
|
-
|
|
601
|
+
r.value ? (k(), E(Qe, {
|
|
602
602
|
key: 1,
|
|
603
|
-
onChange:
|
|
603
|
+
onChange: se
|
|
604
604
|
})) : I("v-if", !0)
|
|
605
605
|
]),
|
|
606
606
|
_: 1
|
|
@@ -608,29 +608,29 @@ const Ue = /* @__PURE__ */ D({
|
|
|
608
608
|
}, 8, ["spinning", "tip"])
|
|
609
609
|
]));
|
|
610
610
|
}
|
|
611
|
-
}), tt = /* @__PURE__ */ x(et, [["__scopeId", "data-v-2bc90e59"]]),
|
|
611
|
+
}), tt = /* @__PURE__ */ x(et, [["__scopeId", "data-v-2bc90e59"]]), ot = "/api/device-relation/deviceproject/v1/project/device/video", nt = "v1", lt = ee(`/api/enterpriseright/permission/${nt}`), ie = ee(`${ot}`, it);
|
|
612
612
|
function it(t) {
|
|
613
|
-
const
|
|
614
|
-
return t.params || (t.params = {}), t.params.project =
|
|
613
|
+
const n = M() ? M().id : 1;
|
|
614
|
+
return t.params || (t.params = {}), t.params.project = n, t.params.projectId = n, t;
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
const
|
|
616
|
+
function re(t) {
|
|
617
|
+
const n = new URLSearchParams("");
|
|
618
618
|
for (let [e, i] of Object.entries(t))
|
|
619
|
-
|
|
620
|
-
return
|
|
619
|
+
n.append(e, i);
|
|
620
|
+
return n.toString();
|
|
621
621
|
}
|
|
622
622
|
function Z(t) {
|
|
623
|
-
return ie.post(`/ptz?${
|
|
623
|
+
return ie.post(`/ptz?${re(t)}`)().run();
|
|
624
624
|
}
|
|
625
|
-
function
|
|
626
|
-
return ie.post(`/url/preview?${
|
|
625
|
+
function rt(t) {
|
|
626
|
+
return ie.post(`/url/preview?${re(t)}`)().run();
|
|
627
627
|
}
|
|
628
628
|
lt.post("data/device-auth");
|
|
629
|
-
const
|
|
630
|
-
const
|
|
631
|
-
return `${t}?token=${
|
|
629
|
+
const st = (t) => {
|
|
630
|
+
const n = Ie();
|
|
631
|
+
return `${t}?token=${n}`;
|
|
632
632
|
};
|
|
633
|
-
|
|
633
|
+
_([]);
|
|
634
634
|
const at = /* @__PURE__ */ D({
|
|
635
635
|
props: {
|
|
636
636
|
deviceInfo: {
|
|
@@ -642,21 +642,21 @@ const at = /* @__PURE__ */ D({
|
|
|
642
642
|
}
|
|
643
643
|
},
|
|
644
644
|
setup(t, {
|
|
645
|
-
slots:
|
|
645
|
+
slots: n
|
|
646
646
|
}) {
|
|
647
647
|
const {
|
|
648
648
|
deviceInfo: e,
|
|
649
649
|
source: i
|
|
650
|
-
} = me(t), a =
|
|
651
|
-
var
|
|
652
|
-
if (!((
|
|
650
|
+
} = me(t), a = _(!1), o = _(""), r = async () => {
|
|
651
|
+
var C;
|
|
652
|
+
if (!((C = e.value) != null && C.deviceId)) return;
|
|
653
653
|
a.value = !0;
|
|
654
|
-
const [d, c] = await
|
|
654
|
+
const [d, c] = await rt({
|
|
655
655
|
productId: e.value.productId,
|
|
656
656
|
deviceId: e.value.deviceId,
|
|
657
657
|
source: i.value
|
|
658
658
|
});
|
|
659
|
-
d || (
|
|
659
|
+
d || (o.value = st(c == null ? void 0 : c.wsFlvStreamURL)), a.value = !1;
|
|
660
660
|
}, f = (d) => {
|
|
661
661
|
Z({
|
|
662
662
|
productId: e.value.productId,
|
|
@@ -665,7 +665,7 @@ const at = /* @__PURE__ */ D({
|
|
|
665
665
|
zoom: "",
|
|
666
666
|
source: i.value || "web"
|
|
667
667
|
});
|
|
668
|
-
},
|
|
668
|
+
}, s = (d) => {
|
|
669
669
|
Z({
|
|
670
670
|
productId: e.value.productId,
|
|
671
671
|
deviceId: e.value.deviceId,
|
|
@@ -675,52 +675,52 @@ const at = /* @__PURE__ */ D({
|
|
|
675
675
|
});
|
|
676
676
|
};
|
|
677
677
|
return K(() => {
|
|
678
|
-
|
|
678
|
+
r();
|
|
679
679
|
}), F(() => e.value, () => {
|
|
680
|
-
|
|
680
|
+
r();
|
|
681
681
|
}, {
|
|
682
682
|
deep: !0
|
|
683
|
-
}), () =>
|
|
684
|
-
videoUrl:
|
|
683
|
+
}), () => p(J, null, [n.default({
|
|
684
|
+
videoUrl: o.value,
|
|
685
685
|
loading: a.value,
|
|
686
686
|
onDirectionControl: f,
|
|
687
|
-
onZoomControl:
|
|
687
|
+
onZoomControl: s
|
|
688
688
|
})]);
|
|
689
689
|
}
|
|
690
690
|
});
|
|
691
691
|
function ct(t) {
|
|
692
|
-
const
|
|
692
|
+
const n = _(0), e = _(), {
|
|
693
693
|
toggle: i,
|
|
694
694
|
isFullscreen: a
|
|
695
695
|
} = le(e);
|
|
696
696
|
return {
|
|
697
|
-
render: () =>
|
|
697
|
+
render: () => p(Me, {
|
|
698
698
|
ref: e,
|
|
699
699
|
gridNum: t.gridNum,
|
|
700
|
-
activeIndex:
|
|
701
|
-
"onUpdate:activeIndex": (
|
|
702
|
-
showFn: (
|
|
700
|
+
activeIndex: n.value,
|
|
701
|
+
"onUpdate:activeIndex": (r) => n.value = r,
|
|
702
|
+
showFn: (r) => !!t.deviceList[r]
|
|
703
703
|
}, {
|
|
704
704
|
default: ({
|
|
705
|
-
index:
|
|
705
|
+
index: r
|
|
706
706
|
}) => {
|
|
707
|
-
const f = t.deviceList[
|
|
708
|
-
return
|
|
707
|
+
const f = t.deviceList[r], s = t.source;
|
|
708
|
+
return p(at, {
|
|
709
709
|
deviceInfo: f,
|
|
710
|
-
source:
|
|
710
|
+
source: s
|
|
711
711
|
}, {
|
|
712
712
|
default: ({
|
|
713
713
|
videoUrl: d,
|
|
714
714
|
onDirectionControl: c,
|
|
715
|
-
onZoomControl:
|
|
716
|
-
loading:
|
|
717
|
-
}) =>
|
|
715
|
+
onZoomControl: C,
|
|
716
|
+
loading: w
|
|
717
|
+
}) => p(tt, {
|
|
718
718
|
type: "live",
|
|
719
|
-
loading:
|
|
719
|
+
loading: w,
|
|
720
720
|
videoUrl: d,
|
|
721
721
|
title: f.deviceName,
|
|
722
722
|
onDirectionControl: c,
|
|
723
|
-
onZoomControl:
|
|
723
|
+
onZoomControl: C,
|
|
724
724
|
authType: f.authType === 2 ? ["control"] : []
|
|
725
725
|
}, null)
|
|
726
726
|
});
|
|
@@ -738,26 +738,26 @@ const ut = /* @__PURE__ */ D({
|
|
|
738
738
|
source: {}
|
|
739
739
|
},
|
|
740
740
|
emits: ["update:visible"],
|
|
741
|
-
setup(t, { emit:
|
|
742
|
-
const e = t, i =
|
|
741
|
+
setup(t, { emit: n }) {
|
|
742
|
+
const e = t, i = n, a = P({
|
|
743
743
|
get: () => e.visible,
|
|
744
|
-
set: (
|
|
745
|
-
}), { render:
|
|
746
|
-
let
|
|
744
|
+
set: (s) => i("update:visible", s)
|
|
745
|
+
}), { render: o, toggleFullscreen: r } = ct(e), f = P(() => {
|
|
746
|
+
let s = {};
|
|
747
747
|
switch (e.gridNum) {
|
|
748
748
|
case 1:
|
|
749
|
-
|
|
749
|
+
s = "one-video";
|
|
750
750
|
break;
|
|
751
751
|
case 4:
|
|
752
|
-
|
|
752
|
+
s = "four-video";
|
|
753
753
|
break;
|
|
754
754
|
case 9:
|
|
755
|
-
|
|
755
|
+
s = "nine-video";
|
|
756
756
|
break;
|
|
757
757
|
}
|
|
758
|
-
return
|
|
758
|
+
return s;
|
|
759
759
|
});
|
|
760
|
-
return (
|
|
760
|
+
return (s, d) => (k(), E(l(ke), {
|
|
761
761
|
size: "mini",
|
|
762
762
|
title: l(g)("视频监控"),
|
|
763
763
|
"custom-class": `das-linakge-video-dialog ${f.value}`,
|
|
@@ -770,8 +770,8 @@ const ut = /* @__PURE__ */ D({
|
|
|
770
770
|
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" }
|
|
771
771
|
}, {
|
|
772
772
|
header: m(() => [
|
|
773
|
-
|
|
774
|
-
|
|
773
|
+
v("div", null, [
|
|
774
|
+
v(
|
|
775
775
|
"span",
|
|
776
776
|
null,
|
|
777
777
|
V(l(g)("视频监控")),
|
|
@@ -779,14 +779,14 @@ const ut = /* @__PURE__ */ D({
|
|
|
779
779
|
/* TEXT */
|
|
780
780
|
)
|
|
781
781
|
]),
|
|
782
|
-
|
|
782
|
+
p(l(h), {
|
|
783
783
|
content: l(g)("页面全屏")
|
|
784
784
|
}, {
|
|
785
785
|
default: m(() => [
|
|
786
|
-
|
|
786
|
+
p(l(ye), {
|
|
787
787
|
class: "icon",
|
|
788
788
|
color: "#999",
|
|
789
|
-
onClick: l(
|
|
789
|
+
onClick: l(r)
|
|
790
790
|
}, null, 8, ["onClick"])
|
|
791
791
|
]),
|
|
792
792
|
_: 1
|
|
@@ -794,36 +794,36 @@ const ut = /* @__PURE__ */ D({
|
|
|
794
794
|
}, 8, ["content"])
|
|
795
795
|
]),
|
|
796
796
|
default: m(() => [
|
|
797
|
-
a.value ? (
|
|
797
|
+
a.value ? (k(), E(l(o), { key: 0 })) : I("v-if", !0)
|
|
798
798
|
]),
|
|
799
799
|
_: 1
|
|
800
800
|
/* STABLE */
|
|
801
801
|
}, 8, ["title", "custom-class", "modelValue"]));
|
|
802
802
|
}
|
|
803
803
|
}), dt = {
|
|
804
|
-
加载中: { "zh-CN": "加载中", en: "Loading" },
|
|
805
|
-
正在实时预览: { "zh-CN": "正在实时预览", en: "Live Previewing" },
|
|
806
|
-
声音: { "zh-CN": "声音", en: "Sound" },
|
|
807
|
-
截图: { "zh-CN": "截图", en: "Screenshot" },
|
|
808
|
-
聚焦: { "zh-CN": "聚焦", en: "Focus" },
|
|
809
|
-
方向控制: { "zh-CN": "方向控制", en: "Direction Control" },
|
|
810
|
-
左上: { "zh-CN": "左上", en: "Top Left" },
|
|
811
|
-
上: { "zh-CN": "上", en: "Up" },
|
|
812
|
-
右上: { "zh-CN": "右上", en: "Top Right" },
|
|
813
|
-
左: { "zh-CN": "左", en: "Left" },
|
|
814
|
-
自动: { "zh-CN": "自动", en: "Auto" },
|
|
815
|
-
右: { "zh-CN": "右", en: "Right" },
|
|
816
|
-
左下: { "zh-CN": "左下", en: "Bottom Left" },
|
|
817
|
-
下: { "zh-CN": "下", en: "Down" },
|
|
818
|
-
右下: { "zh-CN": "右下", en: "Bottom Right" },
|
|
819
|
-
视频监控: { "zh-CN": "视频监控", en: "Video Surveillance" },
|
|
820
|
-
页面全屏: { "zh-CN": "页面全屏", en: "Full Screen" },
|
|
821
|
-
"加载中...": { "zh-CN": "加载中...", en: "Loading..." },
|
|
822
|
-
"聚焦-": { "zh-CN": "聚焦-", en: "Focus-" },
|
|
823
|
-
"聚焦+": { "zh-CN": "聚焦+", en: "Focus+" }
|
|
804
|
+
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
805
|
+
正在实时预览: { "zh-CN": "正在实时预览", en: "Live Previewing", _appCode: "framework" },
|
|
806
|
+
声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
|
|
807
|
+
截图: { "zh-CN": "截图", en: "Screenshot", _appCode: "framework" },
|
|
808
|
+
聚焦: { "zh-CN": "聚焦", en: "Focus", _appCode: "framework" },
|
|
809
|
+
方向控制: { "zh-CN": "方向控制", en: "Direction Control", _appCode: "framework" },
|
|
810
|
+
左上: { "zh-CN": "左上", en: "Top Left", _appCode: "framework" },
|
|
811
|
+
上: { "zh-CN": "上", en: "Up", _appCode: "framework" },
|
|
812
|
+
右上: { "zh-CN": "右上", en: "Top Right", _appCode: "framework" },
|
|
813
|
+
左: { "zh-CN": "左", en: "Left", _appCode: "framework" },
|
|
814
|
+
自动: { "zh-CN": "自动", en: "Auto", _appCode: "framework" },
|
|
815
|
+
右: { "zh-CN": "右", en: "Right", _appCode: "framework" },
|
|
816
|
+
左下: { "zh-CN": "左下", en: "Bottom Left", _appCode: "framework" },
|
|
817
|
+
下: { "zh-CN": "下", en: "Down", _appCode: "framework" },
|
|
818
|
+
右下: { "zh-CN": "右下", en: "Bottom Right", _appCode: "framework" },
|
|
819
|
+
视频监控: { "zh-CN": "视频监控", en: "Video Surveillance", _appCode: "framework" },
|
|
820
|
+
页面全屏: { "zh-CN": "页面全屏", en: "Full Screen", _appCode: "framework" },
|
|
821
|
+
"加载中...": { "zh-CN": "加载中...", en: "Loading...", _appCode: "framework" },
|
|
822
|
+
"聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
|
|
823
|
+
"聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
|
|
824
824
|
};
|
|
825
|
-
|
|
826
|
-
const It = ge(ut), Et = () =>
|
|
825
|
+
Ce(dt);
|
|
826
|
+
const It = ge(ut), Et = () => _(null);
|
|
827
827
|
export {
|
|
828
828
|
It as DasVideoDialog,
|
|
829
829
|
Et as DasVideoDialogRef,
|