@das-fed/ui 6.4.0-dev.97 → 6.4.0-dev.99
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/device-panel/index.js +14 -14
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/import-button/i18n/index.d.ts +10 -0
- package/packages/business-components/import-button/index.js +79 -77
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +4 -3
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +110 -110
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/tree/index.js +310 -310
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree/src/App.vue.d.ts +14 -9
- package/packages/components/tree/src/hooks/use-tree.d.ts +1 -1
- package/packages/components/tree-v2/index.d.ts +0 -22
- package/packages/components/tree-v2/index.js +1725 -1728
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/components/tree-v2/src/hooks/use-style.d.ts +1 -1
- package/packages/components/tree-v2/src/hooks/use-tree.d.ts +1 -1
- package/packages/components/tree-v2/src/type.d.ts +1 -1
- package/packages/components/tree-v2/style.css +1 -1
- package/packages/components/tree-v2/style.css.gz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/video-dialog/style.css';
|
|
2
|
-
import { getCurrentScope as ce, onScopeDispose as ue, unref 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 S, defineComponent as D, useCssVars as pe, computed as P, openBlock as k, createElementBlock as O, normalizeClass as ve, renderSlot as X, Fragment as J, renderList as fe, createBlock as E, withCtx as m, createCommentVNode as I, withModifiers as y, createVNode as p, createElementVNode as v, toDisplayString as V, pushScopeId as me, popScopeId as ge, toRefs as Ce } from "vue";
|
|
3
3
|
import { withInstall as ke } from "@das-fed/utils/with-install/index";
|
|
4
4
|
import { t as g, setI18nRule as ye } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as _e } from "@das-fed/ui/packages/components/dialog/index";
|
|
@@ -16,15 +16,15 @@ const j = typeof window < "u", Se = (t) => typeof t == "string", Fe = () => {
|
|
|
16
16
|
};
|
|
17
17
|
j && ((A = window == null ? void 0 : window.navigator) != null && A.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
18
18
|
function te(t) {
|
|
19
|
-
return typeof t == "function" ? t() :
|
|
19
|
+
return typeof t == "function" ? t() : l(t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Re(t) {
|
|
22
22
|
return t;
|
|
23
23
|
}
|
|
24
24
|
function oe(t) {
|
|
25
25
|
return ce() ? (ue(t), !0) : !1;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function ze(t, n = !0) {
|
|
28
28
|
de() ? K(t) : n ? t() : L(t);
|
|
29
29
|
}
|
|
30
30
|
function ne(t) {
|
|
@@ -32,24 +32,24 @@ function ne(t) {
|
|
|
32
32
|
const e = te(t);
|
|
33
33
|
return (n = e == null ? void 0 : e.$el) != null ? n : e;
|
|
34
34
|
}
|
|
35
|
-
const
|
|
35
|
+
const Oe = j ? window : void 0, De = j ? window.document : void 0;
|
|
36
36
|
function $e(...t) {
|
|
37
|
-
let n, e,
|
|
38
|
-
if (Se(t[0]) || Array.isArray(t[0]) ? ([e,
|
|
37
|
+
let n, e, r, a;
|
|
38
|
+
if (Se(t[0]) || Array.isArray(t[0]) ? ([e, r, a] = t, n = Oe) : [n, e, r, a] = t, !n)
|
|
39
39
|
return Fe;
|
|
40
|
-
Array.isArray(e) || (e = [e]), Array.isArray(
|
|
40
|
+
Array.isArray(e) || (e = [e]), Array.isArray(r) || (r = [r]);
|
|
41
41
|
const o = [], i = () => {
|
|
42
42
|
o.forEach((c) => c()), o.length = 0;
|
|
43
43
|
}, f = (c, C, w, N) => (c.addEventListener(C, w, N), () => c.removeEventListener(C, w, N)), s = S(() => [ne(n), te(a)], ([c, C]) => {
|
|
44
|
-
i(), c && o.push(...e.flatMap((w) =>
|
|
44
|
+
i(), c && o.push(...e.flatMap((w) => r.map((N) => f(c, w, N, C))));
|
|
45
45
|
}, { immediate: !0, flush: "post" }), d = () => {
|
|
46
46
|
s(), i();
|
|
47
47
|
};
|
|
48
48
|
return oe(d), d;
|
|
49
49
|
}
|
|
50
50
|
function Le(t, n = !1) {
|
|
51
|
-
const e = _(),
|
|
52
|
-
return
|
|
51
|
+
const e = _(), r = () => e.value = !!t();
|
|
52
|
+
return r(), ze(r, 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,8 +95,8 @@ const G = [
|
|
|
95
95
|
"MSFullscreenError"
|
|
96
96
|
]
|
|
97
97
|
];
|
|
98
|
-
function
|
|
99
|
-
const { document: e = De, autoExit:
|
|
98
|
+
function le(t, n = {}) {
|
|
99
|
+
const { document: e = De, autoExit: r = !1 } = n, a = t || (e == null ? void 0 : e.querySelector("html")), o = _(!1);
|
|
100
100
|
let i = G[0];
|
|
101
101
|
const f = Le(() => {
|
|
102
102
|
if (e) {
|
|
@@ -122,7 +122,7 @@ function re(t, n = {}) {
|
|
|
122
122
|
}
|
|
123
123
|
return e && $e(e, C, () => {
|
|
124
124
|
o.value = !!(e != null && e[c]);
|
|
125
|
-
}, !1),
|
|
125
|
+
}, !1), r && oe(w), {
|
|
126
126
|
isSupported: f,
|
|
127
127
|
isFullscreen: o,
|
|
128
128
|
enter: N,
|
|
@@ -169,7 +169,7 @@ const Ve = {
|
|
|
169
169
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
170
170
|
};
|
|
171
171
|
xe({
|
|
172
|
-
linear:
|
|
172
|
+
linear: Re
|
|
173
173
|
}, Ve);
|
|
174
174
|
const je = /* @__PURE__ */ D({
|
|
175
175
|
__name: "GridItem",
|
|
@@ -182,14 +182,14 @@ const je = /* @__PURE__ */ D({
|
|
|
182
182
|
pe((c) => ({
|
|
183
183
|
"9b3a2c32": d.value
|
|
184
184
|
}));
|
|
185
|
-
const e = t,
|
|
185
|
+
const e = t, r = n, a = _(), { toggle: o, isFullscreen: i } = le(a), f = () => {
|
|
186
186
|
a.value != document.fullscreenElement && (i.value ? (i.value = !1, L(() => {
|
|
187
187
|
o();
|
|
188
188
|
})) : o());
|
|
189
189
|
}, s = () => {
|
|
190
|
-
|
|
190
|
+
r("itemClick");
|
|
191
191
|
}, d = P(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
|
|
192
|
-
return (c, C) => (k(),
|
|
192
|
+
return (c, C) => (k(), O("div", {
|
|
193
193
|
ref_key: "containerRef",
|
|
194
194
|
ref: a,
|
|
195
195
|
class: ve(["wrapper", { "is-active": e.active }]),
|
|
@@ -201,8 +201,8 @@ const je = /* @__PURE__ */ D({
|
|
|
201
201
|
}
|
|
202
202
|
}), T = (t, n) => {
|
|
203
203
|
const e = t.__vccOpts || t;
|
|
204
|
-
for (const [
|
|
205
|
-
e[
|
|
204
|
+
for (const [r, a] of n)
|
|
205
|
+
e[r] = a;
|
|
206
206
|
return e;
|
|
207
207
|
}, Be = /* @__PURE__ */ T(je, [["__scopeId", "data-v-100b67ca"]]), Me = { class: "layout-wrapper" }, Ae = /* @__PURE__ */ D({
|
|
208
208
|
__name: "GridLayout",
|
|
@@ -213,11 +213,11 @@ const je = /* @__PURE__ */ D({
|
|
|
213
213
|
},
|
|
214
214
|
emits: ["update:activeIndex"],
|
|
215
215
|
setup(t, { emit: n }) {
|
|
216
|
-
const e = t,
|
|
217
|
-
|
|
216
|
+
const e = t, r = n, a = (o) => {
|
|
217
|
+
r("update:activeIndex", o);
|
|
218
218
|
};
|
|
219
|
-
return (o, i) => (k(),
|
|
220
|
-
(k(!0),
|
|
219
|
+
return (o, i) => (k(), O("div", Me, [
|
|
220
|
+
(k(!0), O(J, null, fe(e.gridNum, (f, s) => (k(), E(Be, {
|
|
221
221
|
active: !1,
|
|
222
222
|
"grid-num": e.gridNum,
|
|
223
223
|
onItemClick: (d) => a(s)
|
|
@@ -236,108 +236,108 @@ const je = /* @__PURE__ */ D({
|
|
|
236
236
|
__name: "DirectionControl",
|
|
237
237
|
emits: ["change"],
|
|
238
238
|
setup(t, { emit: n }) {
|
|
239
|
-
const e = n,
|
|
239
|
+
const e = n, r = (a) => {
|
|
240
240
|
e("change", a);
|
|
241
241
|
};
|
|
242
|
-
return (a, o) => (k(),
|
|
242
|
+
return (a, o) => (k(), O("div", {
|
|
243
243
|
class: "direction-control",
|
|
244
244
|
onDblclick: o[9] || (o[9] = y((i) => i.stopPropagation(), ["stop"]))
|
|
245
245
|
}, [
|
|
246
|
-
p(
|
|
247
|
-
content:
|
|
246
|
+
p(l(h), {
|
|
247
|
+
content: l(g)("左上")
|
|
248
248
|
}, {
|
|
249
249
|
default: m(() => [
|
|
250
250
|
v("div", {
|
|
251
251
|
class: "icon icon-top-left",
|
|
252
|
-
onClick: o[0] || (o[0] = y((i) =>
|
|
252
|
+
onClick: o[0] || (o[0] = y((i) => r("leftUp"), ["stop"]))
|
|
253
253
|
})
|
|
254
254
|
]),
|
|
255
255
|
_: 1
|
|
256
256
|
}, 8, ["content"]),
|
|
257
|
-
p(
|
|
258
|
-
content:
|
|
257
|
+
p(l(h), {
|
|
258
|
+
content: l(g)("上")
|
|
259
259
|
}, {
|
|
260
260
|
default: m(() => [
|
|
261
261
|
v("div", {
|
|
262
262
|
class: "icon icon-top",
|
|
263
|
-
onClick: o[1] || (o[1] = y((i) =>
|
|
263
|
+
onClick: o[1] || (o[1] = y((i) => r("up"), ["stop"]))
|
|
264
264
|
})
|
|
265
265
|
]),
|
|
266
266
|
_: 1
|
|
267
267
|
}, 8, ["content"]),
|
|
268
|
-
p(
|
|
269
|
-
content:
|
|
268
|
+
p(l(h), {
|
|
269
|
+
content: l(g)("右上")
|
|
270
270
|
}, {
|
|
271
271
|
default: m(() => [
|
|
272
272
|
v("div", {
|
|
273
273
|
class: "icon icon-top-right",
|
|
274
|
-
onClick: o[2] || (o[2] = y((i) =>
|
|
274
|
+
onClick: o[2] || (o[2] = y((i) => r("rightUp"), ["stop"]))
|
|
275
275
|
})
|
|
276
276
|
]),
|
|
277
277
|
_: 1
|
|
278
278
|
}, 8, ["content"]),
|
|
279
|
-
p(
|
|
280
|
-
content:
|
|
279
|
+
p(l(h), {
|
|
280
|
+
content: l(g)("左")
|
|
281
281
|
}, {
|
|
282
282
|
default: m(() => [
|
|
283
283
|
v("div", {
|
|
284
284
|
class: "icon icon-left",
|
|
285
|
-
onClick: o[3] || (o[3] = y((i) =>
|
|
285
|
+
onClick: o[3] || (o[3] = y((i) => r("left"), ["stop"]))
|
|
286
286
|
})
|
|
287
287
|
]),
|
|
288
288
|
_: 1
|
|
289
289
|
}, 8, ["content"]),
|
|
290
|
-
p(
|
|
291
|
-
content:
|
|
290
|
+
p(l(h), {
|
|
291
|
+
content: l(g)("自动")
|
|
292
292
|
}, {
|
|
293
293
|
default: m(() => [
|
|
294
294
|
v("div", {
|
|
295
295
|
class: "icon icon-auto",
|
|
296
|
-
onClick: o[4] || (o[4] = y((i) =>
|
|
296
|
+
onClick: o[4] || (o[4] = y((i) => r("auto"), ["stop"]))
|
|
297
297
|
})
|
|
298
298
|
]),
|
|
299
299
|
_: 1
|
|
300
300
|
}, 8, ["content"]),
|
|
301
|
-
p(
|
|
302
|
-
content:
|
|
301
|
+
p(l(h), {
|
|
302
|
+
content: l(g)("右")
|
|
303
303
|
}, {
|
|
304
304
|
default: m(() => [
|
|
305
305
|
v("div", {
|
|
306
306
|
class: "icon icon-right",
|
|
307
|
-
onClick: o[5] || (o[5] = y((i) =>
|
|
307
|
+
onClick: o[5] || (o[5] = y((i) => r("right"), ["stop"]))
|
|
308
308
|
})
|
|
309
309
|
]),
|
|
310
310
|
_: 1
|
|
311
311
|
}, 8, ["content"]),
|
|
312
|
-
p(
|
|
313
|
-
content:
|
|
312
|
+
p(l(h), {
|
|
313
|
+
content: l(g)("左下")
|
|
314
314
|
}, {
|
|
315
315
|
default: m(() => [
|
|
316
316
|
v("div", {
|
|
317
317
|
class: "icon icon-bottom-left",
|
|
318
|
-
onClick: o[6] || (o[6] = y((i) =>
|
|
318
|
+
onClick: o[6] || (o[6] = y((i) => r("leftDown"), ["stop"]))
|
|
319
319
|
})
|
|
320
320
|
]),
|
|
321
321
|
_: 1
|
|
322
322
|
}, 8, ["content"]),
|
|
323
|
-
p(
|
|
324
|
-
content:
|
|
323
|
+
p(l(h), {
|
|
324
|
+
content: l(g)("下")
|
|
325
325
|
}, {
|
|
326
326
|
default: m(() => [
|
|
327
327
|
v("div", {
|
|
328
328
|
class: "icon icon-bottom",
|
|
329
|
-
onClick: o[7] || (o[7] = y((i) =>
|
|
329
|
+
onClick: o[7] || (o[7] = y((i) => r("down"), ["stop"]))
|
|
330
330
|
})
|
|
331
331
|
]),
|
|
332
332
|
_: 1
|
|
333
333
|
}, 8, ["content"]),
|
|
334
|
-
p(
|
|
335
|
-
content:
|
|
334
|
+
p(l(h), {
|
|
335
|
+
content: l(g)("右下")
|
|
336
336
|
}, {
|
|
337
337
|
default: m(() => [
|
|
338
338
|
v("div", {
|
|
339
339
|
class: "icon icon-bottom-right",
|
|
340
|
-
onClick: o[8] || (o[8] = y((i) =>
|
|
340
|
+
onClick: o[8] || (o[8] = y((i) => r("rightDown"), ["stop"]))
|
|
341
341
|
})
|
|
342
342
|
]),
|
|
343
343
|
_: 1
|
|
@@ -347,7 +347,7 @@ const je = /* @__PURE__ */ D({
|
|
|
347
347
|
}), Ge = /* @__PURE__ */ T(qe, [["__scopeId", "data-v-db2e8ec2"]]), We = (t) => (me("data-v-2bc90e59"), t = t(), ge(), t), He = { class: "video-wrapper" }, Ye = { class: "video-top" }, Ze = { class: "video-top_l" }, Ke = { class: "video-title-wrapper" }, Xe = { class: "video-title" }, Je = { class: "video-top_r" }, et = {
|
|
348
348
|
key: 0,
|
|
349
349
|
class: "play-status"
|
|
350
|
-
}, tt = { class: "video-bottom" }, ot = /* @__PURE__ */ We(() => /* @__PURE__ */ v("div", { class: "video-bottom_l" }, null, -1)), nt = { class: "video-bottom_r" },
|
|
350
|
+
}, tt = { class: "video-bottom" }, ot = /* @__PURE__ */ We(() => /* @__PURE__ */ v("div", { class: "video-bottom_l" }, null, -1)), nt = { class: "video-bottom_r" }, lt = /* @__PURE__ */ D({
|
|
351
351
|
__name: "index",
|
|
352
352
|
props: {
|
|
353
353
|
videoUrl: {},
|
|
@@ -361,7 +361,7 @@ const je = /* @__PURE__ */ D({
|
|
|
361
361
|
},
|
|
362
362
|
emits: ["close", "directionControl", "zoomControl"],
|
|
363
363
|
setup(t, { emit: n }) {
|
|
364
|
-
const e = t,
|
|
364
|
+
const e = t, r = n;
|
|
365
365
|
he({
|
|
366
366
|
muted: import("@das-fed/ui/packages/icons/muted"),
|
|
367
367
|
volume: import("@das-fed/ui/packages/icons/volume"),
|
|
@@ -385,16 +385,16 @@ const je = /* @__PURE__ */ D({
|
|
|
385
385
|
u.width = s.value.clientWidth, u.height = s.value.clientHeight;
|
|
386
386
|
const b = u.getContext("2d");
|
|
387
387
|
b == null || b.drawImage(s.value, 0, 0, u.width, u.height);
|
|
388
|
-
const
|
|
389
|
-
if (U.value =
|
|
390
|
-
const
|
|
391
|
-
|
|
388
|
+
const z = u.toDataURL("image/jpg"), ae = `【${e.title}】${Ee().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
389
|
+
if (U.value = z, "download" in document.createElement("a")) {
|
|
390
|
+
const R = document.createElement("a");
|
|
391
|
+
R.download = ae, R.style.display = "none", R.href = z, document.body.appendChild(R), document.body.appendChild(u), R.click(), URL.revokeObjectURL(R.href), document.body.removeChild(R), document.body.removeChild(u);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
}, se = (u) => {
|
|
395
|
-
|
|
395
|
+
r("directionControl", u);
|
|
396
396
|
}, B = (u) => {
|
|
397
|
-
|
|
397
|
+
r("zoomControl", u);
|
|
398
398
|
}, x = (u) => e.authType.includes(u);
|
|
399
399
|
return S(
|
|
400
400
|
() => s.value,
|
|
@@ -437,11 +437,11 @@ const je = /* @__PURE__ */ D({
|
|
|
437
437
|
c.value = !0;
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
|
-
), (u, b) => (k(),
|
|
441
|
-
p(
|
|
440
|
+
), (u, b) => (k(), O("div", He, [
|
|
441
|
+
p(l(Ie), {
|
|
442
442
|
spinning: e.loading,
|
|
443
443
|
type: "component",
|
|
444
|
-
tip:
|
|
444
|
+
tip: l(g)("加载中...")
|
|
445
445
|
}, {
|
|
446
446
|
default: m(() => [
|
|
447
447
|
v("div", Ye, [
|
|
@@ -451,10 +451,10 @@ const je = /* @__PURE__ */ D({
|
|
|
451
451
|
])
|
|
452
452
|
]),
|
|
453
453
|
v("div", Je, [
|
|
454
|
-
["live"].includes(u.type) ? (k(),
|
|
454
|
+
["live"].includes(u.type) ? (k(), O("span", et, V(l(g)("正在实时预览")), 1)) : I("", !0)
|
|
455
455
|
])
|
|
456
456
|
]),
|
|
457
|
-
e.videoUrl && c.value ? (k(), E(
|
|
457
|
+
e.videoUrl && c.value ? (k(), E(l(be), {
|
|
458
458
|
key: 0,
|
|
459
459
|
type: "flv",
|
|
460
460
|
ref_key: "dasLivePlayerRef",
|
|
@@ -468,13 +468,13 @@ const je = /* @__PURE__ */ D({
|
|
|
468
468
|
v("div", nt, [
|
|
469
469
|
v("div", {
|
|
470
470
|
class: "controls",
|
|
471
|
-
onDblclick: b[2] || (b[2] = y((
|
|
471
|
+
onDblclick: b[2] || (b[2] = y((z) => z.stopPropagation(), ["stop"]))
|
|
472
472
|
}, [
|
|
473
|
-
p(
|
|
474
|
-
content:
|
|
473
|
+
p(l(h), {
|
|
474
|
+
content: l(g)("声音")
|
|
475
475
|
}, {
|
|
476
476
|
default: m(() => [
|
|
477
|
-
p(
|
|
477
|
+
p(l($), {
|
|
478
478
|
class: "icon icon-volume",
|
|
479
479
|
icon: a.value ? "muted" : "volume",
|
|
480
480
|
onClick: y(w, ["stop"])
|
|
@@ -482,11 +482,11 @@ const je = /* @__PURE__ */ D({
|
|
|
482
482
|
]),
|
|
483
483
|
_: 1
|
|
484
484
|
}, 8, ["content"]),
|
|
485
|
-
p(
|
|
486
|
-
content:
|
|
485
|
+
p(l(h), {
|
|
486
|
+
content: l(g)("截图")
|
|
487
487
|
}, {
|
|
488
488
|
default: m(() => [
|
|
489
|
-
p(
|
|
489
|
+
p(l($), {
|
|
490
490
|
class: "icon icon-screenshot",
|
|
491
491
|
icon: "screenshot",
|
|
492
492
|
onClick: y(F, ["stop"])
|
|
@@ -494,40 +494,40 @@ const je = /* @__PURE__ */ D({
|
|
|
494
494
|
]),
|
|
495
495
|
_: 1
|
|
496
496
|
}, 8, ["content"]),
|
|
497
|
-
x("control") ? (k(), E(
|
|
497
|
+
x("control") ? (k(), E(l(h), {
|
|
498
498
|
key: 0,
|
|
499
|
-
content:
|
|
499
|
+
content: l(g)("聚焦-")
|
|
500
500
|
}, {
|
|
501
501
|
default: m(() => [
|
|
502
|
-
["live", "polling"].includes(e.type) ? (k(), E(
|
|
502
|
+
["live", "polling"].includes(e.type) ? (k(), E(l($), {
|
|
503
503
|
key: 0,
|
|
504
504
|
class: "icon icon-shrink",
|
|
505
505
|
icon: "shrink",
|
|
506
|
-
onClick: b[0] || (b[0] = y((
|
|
506
|
+
onClick: b[0] || (b[0] = y((z) => B("zoomOut"), ["stop"]))
|
|
507
507
|
})) : I("", !0)
|
|
508
508
|
]),
|
|
509
509
|
_: 1
|
|
510
510
|
}, 8, ["content"])) : I("", !0),
|
|
511
|
-
x("control") ? (k(), E(
|
|
511
|
+
x("control") ? (k(), E(l(h), {
|
|
512
512
|
key: 1,
|
|
513
|
-
content:
|
|
513
|
+
content: l(g)("聚焦+")
|
|
514
514
|
}, {
|
|
515
515
|
default: m(() => [
|
|
516
|
-
["live", "polling"].includes(e.type) ? (k(), E(
|
|
516
|
+
["live", "polling"].includes(e.type) ? (k(), E(l($), {
|
|
517
517
|
key: 0,
|
|
518
518
|
class: "icon icon-enlarge",
|
|
519
519
|
icon: "enlarge",
|
|
520
|
-
onClick: b[1] || (b[1] = y((
|
|
520
|
+
onClick: b[1] || (b[1] = y((z) => B("zoomIn"), ["stop"]))
|
|
521
521
|
})) : I("", !0)
|
|
522
522
|
]),
|
|
523
523
|
_: 1
|
|
524
524
|
}, 8, ["content"])) : I("", !0),
|
|
525
|
-
x("control") ? (k(), E(
|
|
525
|
+
x("control") ? (k(), E(l(h), {
|
|
526
526
|
key: 2,
|
|
527
|
-
content:
|
|
527
|
+
content: l(g)("方向控制")
|
|
528
528
|
}, {
|
|
529
529
|
default: m(() => [
|
|
530
|
-
["live", "polling"].includes(e.type) ? (k(), E(
|
|
530
|
+
["live", "polling"].includes(e.type) ? (k(), E(l($), {
|
|
531
531
|
key: 0,
|
|
532
532
|
class: "icon icon-direction-control",
|
|
533
533
|
icon: "direction-control",
|
|
@@ -548,22 +548,22 @@ const je = /* @__PURE__ */ D({
|
|
|
548
548
|
}, 8, ["spinning", "tip"])
|
|
549
549
|
]));
|
|
550
550
|
}
|
|
551
|
-
}),
|
|
551
|
+
}), rt = /* @__PURE__ */ T(lt, [["__scopeId", "data-v-2bc90e59"]]), it = "/api/device-relation/deviceproject/v1/project/device/video", st = "v1", at = ee(`/api/enterpriseright/permission/${st}`), re = ee(`${it}`, ct);
|
|
552
552
|
function ct(t) {
|
|
553
553
|
const n = M() ? M().id : 1;
|
|
554
554
|
return t.params || (t.params = {}), t.params.project = n, t.params.projectId = n, t;
|
|
555
555
|
}
|
|
556
556
|
function ie(t) {
|
|
557
557
|
const n = new URLSearchParams("");
|
|
558
|
-
for (let [e,
|
|
559
|
-
n.append(e,
|
|
558
|
+
for (let [e, r] of Object.entries(t))
|
|
559
|
+
n.append(e, r);
|
|
560
560
|
return n.toString();
|
|
561
561
|
}
|
|
562
562
|
function Z(t) {
|
|
563
|
-
return
|
|
563
|
+
return re.post(`/ptz?${ie(t)}`)().run();
|
|
564
564
|
}
|
|
565
565
|
function ut(t) {
|
|
566
|
-
return
|
|
566
|
+
return re.post(`/url/preview?${ie(t)}`)().run();
|
|
567
567
|
}
|
|
568
568
|
at.post("data/device-auth");
|
|
569
569
|
const dt = (t) => {
|
|
@@ -586,7 +586,7 @@ const pt = /* @__PURE__ */ D({
|
|
|
586
586
|
}) {
|
|
587
587
|
const {
|
|
588
588
|
deviceInfo: e,
|
|
589
|
-
source:
|
|
589
|
+
source: r
|
|
590
590
|
} = Ce(t), a = _(!1), o = _(""), i = async () => {
|
|
591
591
|
var C;
|
|
592
592
|
if (!((C = e.value) != null && C.deviceId)) return;
|
|
@@ -594,7 +594,7 @@ const pt = /* @__PURE__ */ D({
|
|
|
594
594
|
const [d, c] = await ut({
|
|
595
595
|
productId: e.value.productId,
|
|
596
596
|
deviceId: e.value.deviceId,
|
|
597
|
-
source:
|
|
597
|
+
source: r.value
|
|
598
598
|
});
|
|
599
599
|
d || (o.value = dt(c == null ? void 0 : c.wsFlvStreamURL)), a.value = !1;
|
|
600
600
|
}, f = (d) => {
|
|
@@ -603,7 +603,7 @@ const pt = /* @__PURE__ */ D({
|
|
|
603
603
|
deviceId: e.value.deviceId,
|
|
604
604
|
direction: d,
|
|
605
605
|
zoom: "",
|
|
606
|
-
source:
|
|
606
|
+
source: r.value || "web"
|
|
607
607
|
});
|
|
608
608
|
}, s = (d) => {
|
|
609
609
|
Z({
|
|
@@ -611,7 +611,7 @@ const pt = /* @__PURE__ */ D({
|
|
|
611
611
|
deviceId: e.value.deviceId,
|
|
612
612
|
direction: "",
|
|
613
613
|
zoom: d,
|
|
614
|
-
source:
|
|
614
|
+
source: r.value || "web"
|
|
615
615
|
});
|
|
616
616
|
};
|
|
617
617
|
return K(() => {
|
|
@@ -630,9 +630,9 @@ const pt = /* @__PURE__ */ D({
|
|
|
630
630
|
});
|
|
631
631
|
function vt(t) {
|
|
632
632
|
const n = _(0), e = _(), {
|
|
633
|
-
toggle:
|
|
633
|
+
toggle: r,
|
|
634
634
|
isFullscreen: a
|
|
635
|
-
} =
|
|
635
|
+
} = le(e);
|
|
636
636
|
return {
|
|
637
637
|
render: () => p(Qe, {
|
|
638
638
|
ref: e,
|
|
@@ -654,7 +654,7 @@ function vt(t) {
|
|
|
654
654
|
onDirectionControl: c,
|
|
655
655
|
onZoomControl: C,
|
|
656
656
|
loading: w
|
|
657
|
-
}) => p(
|
|
657
|
+
}) => p(rt, {
|
|
658
658
|
type: "live",
|
|
659
659
|
loading: w,
|
|
660
660
|
videoUrl: d,
|
|
@@ -666,7 +666,7 @@ function vt(t) {
|
|
|
666
666
|
});
|
|
667
667
|
}
|
|
668
668
|
}),
|
|
669
|
-
toggleFullscreen:
|
|
669
|
+
toggleFullscreen: r
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
672
|
const ft = /* @__PURE__ */ D({
|
|
@@ -679,9 +679,9 @@ const ft = /* @__PURE__ */ D({
|
|
|
679
679
|
},
|
|
680
680
|
emits: ["update:visible"],
|
|
681
681
|
setup(t, { emit: n }) {
|
|
682
|
-
const e = t,
|
|
682
|
+
const e = t, r = n, a = P({
|
|
683
683
|
get: () => e.visible,
|
|
684
|
-
set: (s) =>
|
|
684
|
+
set: (s) => r("update:visible", s)
|
|
685
685
|
}), { render: o, toggleFullscreen: i } = vt(e), f = P(() => {
|
|
686
686
|
let s = {};
|
|
687
687
|
switch (e.gridNum) {
|
|
@@ -697,9 +697,9 @@ const ft = /* @__PURE__ */ D({
|
|
|
697
697
|
}
|
|
698
698
|
return s;
|
|
699
699
|
});
|
|
700
|
-
return (s, d) => (k(), E(
|
|
700
|
+
return (s, d) => (k(), E(l(_e), {
|
|
701
701
|
size: "mini",
|
|
702
|
-
title:
|
|
702
|
+
title: l(g)("视频监控"),
|
|
703
703
|
"custom-class": `das-linakge-video-dialog ${f.value}`,
|
|
704
704
|
modelValue: a.value,
|
|
705
705
|
"onUpdate:modelValue": d[0] || (d[0] = (c) => a.value = c),
|
|
@@ -711,30 +711,30 @@ const ft = /* @__PURE__ */ D({
|
|
|
711
711
|
}, {
|
|
712
712
|
header: m(() => [
|
|
713
713
|
v("div", null, [
|
|
714
|
-
v("span", null, V(
|
|
714
|
+
v("span", null, V(l(g)("视频监控")), 1)
|
|
715
715
|
]),
|
|
716
|
-
p(
|
|
717
|
-
content:
|
|
716
|
+
p(l(h), {
|
|
717
|
+
content: l(g)("页面全屏")
|
|
718
718
|
}, {
|
|
719
719
|
default: m(() => [
|
|
720
|
-
p(
|
|
720
|
+
p(l(we), {
|
|
721
721
|
class: "icon",
|
|
722
722
|
color: "#999",
|
|
723
|
-
onClick:
|
|
723
|
+
onClick: l(i)
|
|
724
724
|
}, null, 8, ["onClick"])
|
|
725
725
|
]),
|
|
726
726
|
_: 1
|
|
727
727
|
}, 8, ["content"])
|
|
728
728
|
]),
|
|
729
729
|
default: m(() => [
|
|
730
|
-
a.value ? (k(), E(
|
|
730
|
+
a.value ? (k(), E(l(o), { key: 0 })) : I("", !0)
|
|
731
731
|
]),
|
|
732
732
|
_: 1
|
|
733
733
|
}, 8, ["title", "custom-class", "modelValue"]));
|
|
734
734
|
}
|
|
735
735
|
}), mt = {
|
|
736
736
|
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
737
|
-
正在实时预览: { "zh-CN": "正在实时预览", en: "
|
|
737
|
+
正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework" },
|
|
738
738
|
声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
|
|
739
739
|
截图: { "zh-CN": "截图", en: "Screenshot", _appCode: "framework" },
|
|
740
740
|
聚焦: { "zh-CN": "聚焦", en: "Focus", _appCode: "framework" },
|
|
@@ -755,9 +755,9 @@ const ft = /* @__PURE__ */ D({
|
|
|
755
755
|
"聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
|
|
756
756
|
};
|
|
757
757
|
ye(mt);
|
|
758
|
-
const Ft = ke(ft),
|
|
758
|
+
const Ft = ke(ft), Rt = () => _(null);
|
|
759
759
|
export {
|
|
760
760
|
Ft as DasVideoDialog,
|
|
761
|
-
|
|
761
|
+
Rt as DasVideoDialogRef,
|
|
762
762
|
vt as useVideo
|
|
763
763
|
};
|
|
Binary file
|