@das-fed/ui 7.1.0-dev.11 → 7.1.0-dev.12
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/layout-breadcrumb/index.js +72 -74
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +299 -298
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/type.d.ts +2 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/dialog/index.d.ts +3 -0
- package/packages/components/dialog/index.js +63 -62
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +2 -0
- package/packages/components/dialog/src/type.d.ts +2 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/video-dialog/style.css';
|
|
2
|
-
import { getCurrentScope as ue, onScopeDispose as de, getCurrentInstance as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { t 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
|
|
11
|
-
import { DasHlsPlayer as
|
|
12
|
-
import
|
|
2
|
+
import { getCurrentScope as ue, onScopeDispose as de, getCurrentInstance as pe, onMounted as te, nextTick as x, unref as l, ref as w, watch as N, defineComponent as D, useCssVars as ve, computed as P, createElementBlock as F, openBlock as v, normalizeClass as fe, renderSlot as oe, createCommentVNode as I, Fragment as B, renderList as me, createBlock as R, withCtx as y, withModifiers as h, createVNode as f, createElementVNode as m, toDisplayString as j, toRefs as ge, mergeProps as ye } from "vue";
|
|
3
|
+
import { withInstall as Ce } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { t as C, setI18nRule as ke } from "@das-fed/web/packages/i18n/index";
|
|
5
|
+
import { DasDialog as he } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
+
import { DasTooltip as _ } from "@das-fed/ui/packages/components/tooltip/index";
|
|
7
|
+
import { DasIconFullscreen2 as we } 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 be } from "@das-fed/ui/packages/components/live-player/index";
|
|
10
|
+
import { DasSpin as Ie } from "@das-fed/ui/packages/components/spin/index";
|
|
11
|
+
import { DasHlsPlayer as Ee } from "@das-fed/ui/packages/components/hls-player/index";
|
|
12
|
+
import Re from "dayjs";
|
|
13
13
|
import { createService as M } from "@das-fed/utils/api-services/src/create-service";
|
|
14
|
-
import { getProjectInfo as q, getToken as
|
|
14
|
+
import { getProjectInfo as q, getToken as Se } from "@das-fed/utils/common-info";
|
|
15
15
|
var G;
|
|
16
16
|
const A = typeof window < "u", Ne = (t) => typeof t == "string", Fe = () => {
|
|
17
17
|
};
|
|
@@ -19,37 +19,37 @@ A && ((G = window == null ? void 0 : window.navigator) != null && G.userAgent) &
|
|
|
19
19
|
function ne(t) {
|
|
20
20
|
return typeof t == "function" ? t() : l(t);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ze(t) {
|
|
23
23
|
return t;
|
|
24
24
|
}
|
|
25
25
|
function le(t) {
|
|
26
26
|
return ue() ? (de(t), !0) : !1;
|
|
27
27
|
}
|
|
28
28
|
function Le(t, n = !0) {
|
|
29
|
-
|
|
29
|
+
pe() ? te(t) : n ? t() : x(t);
|
|
30
30
|
}
|
|
31
31
|
function ie(t) {
|
|
32
32
|
var n;
|
|
33
33
|
const e = ne(t);
|
|
34
34
|
return (n = e == null ? void 0 : e.$el) != null ? n : e;
|
|
35
35
|
}
|
|
36
|
-
const Oe = A ? window : void 0,
|
|
37
|
-
function
|
|
38
|
-
let n, e, i,
|
|
39
|
-
if (Ne(t[0]) || Array.isArray(t[0]) ? ([e, i,
|
|
36
|
+
const Oe = A ? window : void 0, De = A ? window.document : void 0;
|
|
37
|
+
function Ue(...t) {
|
|
38
|
+
let n, e, i, r;
|
|
39
|
+
if (Ne(t[0]) || Array.isArray(t[0]) ? ([e, i, r] = t, n = Oe) : [n, e, i, r] = t, !n)
|
|
40
40
|
return Fe;
|
|
41
41
|
Array.isArray(e) || (e = [e]), Array.isArray(i) || (i = [i]);
|
|
42
42
|
const o = [], s = () => {
|
|
43
|
-
o.forEach((
|
|
44
|
-
},
|
|
45
|
-
s(),
|
|
46
|
-
}, { immediate: !0, flush: "post" }),
|
|
47
|
-
|
|
43
|
+
o.forEach((a) => a()), o.length = 0;
|
|
44
|
+
}, g = (a, p, k, b) => (a.addEventListener(p, k, b), () => a.removeEventListener(p, k, b)), u = N(() => [ie(n), ne(r)], ([a, p]) => {
|
|
45
|
+
s(), a && o.push(...e.flatMap((k) => i.map((b) => g(a, k, b, p))));
|
|
46
|
+
}, { immediate: !0, flush: "post" }), c = () => {
|
|
47
|
+
u(), s();
|
|
48
48
|
};
|
|
49
|
-
return le(
|
|
49
|
+
return le(c), c;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
const e =
|
|
51
|
+
function $e(t, n = !1) {
|
|
52
|
+
const e = w(), i = () => e.value = !!t();
|
|
53
53
|
return i(), Le(i, n), e;
|
|
54
54
|
}
|
|
55
55
|
const W = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Y = "__vueuse_ssr_handlers__";
|
|
@@ -97,50 +97,50 @@ const Z = [
|
|
|
97
97
|
]
|
|
98
98
|
];
|
|
99
99
|
function ae(t, n = {}) {
|
|
100
|
-
const { document: e =
|
|
100
|
+
const { document: e = De, autoExit: i = !1 } = n, r = t || (e == null ? void 0 : e.querySelector("html")), o = w(!1);
|
|
101
101
|
let s = Z[0];
|
|
102
|
-
const
|
|
102
|
+
const g = $e(() => {
|
|
103
103
|
if (e) {
|
|
104
|
-
for (const
|
|
105
|
-
if (
|
|
106
|
-
return s =
|
|
104
|
+
for (const S of Z)
|
|
105
|
+
if (S[1] in e)
|
|
106
|
+
return s = S, !0;
|
|
107
107
|
} else
|
|
108
108
|
return !1;
|
|
109
109
|
return !1;
|
|
110
|
-
}), [
|
|
111
|
-
async function
|
|
112
|
-
|
|
110
|
+
}), [u, c, a, , p] = s;
|
|
111
|
+
async function k() {
|
|
112
|
+
g.value && (e != null && e[a] && await e[c](), o.value = !1);
|
|
113
113
|
}
|
|
114
114
|
async function b() {
|
|
115
|
-
if (!
|
|
115
|
+
if (!g.value)
|
|
116
116
|
return;
|
|
117
|
-
await
|
|
118
|
-
const
|
|
119
|
-
|
|
117
|
+
await k();
|
|
118
|
+
const S = ie(r);
|
|
119
|
+
S && (await S[u](), o.value = !0);
|
|
120
120
|
}
|
|
121
|
-
async function
|
|
122
|
-
o.value ? await
|
|
121
|
+
async function z() {
|
|
122
|
+
o.value ? await k() : await b();
|
|
123
123
|
}
|
|
124
|
-
return e &&
|
|
125
|
-
o.value = !!(e != null && e[
|
|
126
|
-
}, !1), i && le(
|
|
127
|
-
isSupported:
|
|
124
|
+
return e && Ue(e, p, () => {
|
|
125
|
+
o.value = !!(e != null && e[a]);
|
|
126
|
+
}, !1), i && le(k), {
|
|
127
|
+
isSupported: g,
|
|
128
128
|
isFullscreen: o,
|
|
129
129
|
enter: b,
|
|
130
|
-
exit:
|
|
131
|
-
toggle:
|
|
130
|
+
exit: k,
|
|
131
|
+
toggle: z
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
var K;
|
|
135
135
|
(function(t) {
|
|
136
136
|
t.UP = "UP", t.RIGHT = "RIGHT", t.DOWN = "DOWN", t.LEFT = "LEFT", t.NONE = "NONE";
|
|
137
137
|
})(K || (K = {}));
|
|
138
|
-
var
|
|
138
|
+
var Pe = Object.defineProperty, X = Object.getOwnPropertySymbols, Te = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable, J = (t, n, e) => n in t ? Pe(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Be = (t, n) => {
|
|
139
139
|
for (var e in n || (n = {}))
|
|
140
|
-
|
|
140
|
+
Te.call(n, e) && J(t, e, n[e]);
|
|
141
141
|
if (X)
|
|
142
142
|
for (var e of X(n))
|
|
143
|
-
|
|
143
|
+
xe.call(n, e) && J(t, e, n[e]);
|
|
144
144
|
return t;
|
|
145
145
|
};
|
|
146
146
|
const He = {
|
|
@@ -169,10 +169,10 @@ const He = {
|
|
|
169
169
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
170
170
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
171
171
|
};
|
|
172
|
-
|
|
173
|
-
linear:
|
|
172
|
+
Be({
|
|
173
|
+
linear: ze
|
|
174
174
|
}, He);
|
|
175
|
-
const
|
|
175
|
+
const Ve = /* @__PURE__ */ D({
|
|
176
176
|
__name: "GridItem",
|
|
177
177
|
props: {
|
|
178
178
|
active: { type: Boolean },
|
|
@@ -180,38 +180,36 @@ const Be = /* @__PURE__ */ D({
|
|
|
180
180
|
},
|
|
181
181
|
emits: ["itemClick"],
|
|
182
182
|
setup(t, { emit: n }) {
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
ve((c) => ({
|
|
184
|
+
a769b0be: u.value
|
|
185
185
|
}));
|
|
186
|
-
const e = t, i = n,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
})) : o());
|
|
190
|
-
}, c = () => {
|
|
186
|
+
const e = t, i = n, r = w(), { toggle: o } = ae(r), s = () => {
|
|
187
|
+
o();
|
|
188
|
+
}, g = () => {
|
|
191
189
|
i("itemClick");
|
|
192
|
-
}, u =
|
|
193
|
-
return (
|
|
190
|
+
}, u = P(() => `calc(100% / ${Math.sqrt(e.gridNum)})`);
|
|
191
|
+
return (c, a) => (v(), F(
|
|
194
192
|
"div",
|
|
195
193
|
{
|
|
196
194
|
ref_key: "containerRef",
|
|
197
|
-
ref:
|
|
195
|
+
ref: r,
|
|
198
196
|
class: fe(["wrapper", { "is-active": e.active }]),
|
|
199
|
-
onDblclick:
|
|
200
|
-
onClick:
|
|
197
|
+
onDblclick: a[0] || (a[0] = (p) => s()),
|
|
198
|
+
onClick: a[1] || (a[1] = (p) => g())
|
|
201
199
|
},
|
|
202
200
|
[
|
|
203
|
-
oe(
|
|
201
|
+
oe(c.$slots, "default", {}, void 0, !0)
|
|
204
202
|
],
|
|
205
203
|
34
|
|
206
204
|
/* CLASS, NEED_HYDRATION */
|
|
207
205
|
));
|
|
208
206
|
}
|
|
209
|
-
}),
|
|
207
|
+
}), H = (t, n) => {
|
|
210
208
|
const e = t.__vccOpts || t;
|
|
211
|
-
for (const [i,
|
|
212
|
-
e[i] =
|
|
209
|
+
for (const [i, r] of n)
|
|
210
|
+
e[i] = r;
|
|
213
211
|
return e;
|
|
214
|
-
},
|
|
212
|
+
}, je = /* @__PURE__ */ H(Ve, [["__scopeId", "data-v-97d987a9"]]), Me = { class: "layout-wrapper" }, Ae = /* @__PURE__ */ D({
|
|
215
213
|
__name: "GridLayout",
|
|
216
214
|
props: {
|
|
217
215
|
gridNum: {},
|
|
@@ -220,23 +218,23 @@ const Be = /* @__PURE__ */ D({
|
|
|
220
218
|
},
|
|
221
219
|
emits: ["update:activeIndex"],
|
|
222
220
|
setup(t, { emit: n }) {
|
|
223
|
-
const e = t, i = n,
|
|
221
|
+
const e = t, i = n, r = (o) => {
|
|
224
222
|
i("update:activeIndex", o);
|
|
225
223
|
};
|
|
226
|
-
return (o, s) => (
|
|
224
|
+
return (o, s) => (v(), F("div", Me, [
|
|
227
225
|
I(' :active="index === activeIndex" '),
|
|
228
|
-
(
|
|
229
|
-
|
|
226
|
+
(v(!0), F(
|
|
227
|
+
B,
|
|
230
228
|
null,
|
|
231
|
-
me(e.gridNum, (
|
|
229
|
+
me(e.gridNum, (g, u) => (v(), R(je, {
|
|
232
230
|
active: !1,
|
|
233
231
|
"grid-num": e.gridNum,
|
|
234
|
-
onItemClick: (
|
|
232
|
+
onItemClick: (c) => r(u)
|
|
235
233
|
}, {
|
|
236
|
-
default:
|
|
237
|
-
o.showFn(
|
|
234
|
+
default: y(() => [
|
|
235
|
+
o.showFn(u) ? oe(o.$slots, "default", {
|
|
238
236
|
key: 0,
|
|
239
|
-
index:
|
|
237
|
+
index: u
|
|
240
238
|
}, void 0, !0) : I("v-if", !0)
|
|
241
239
|
]),
|
|
242
240
|
_: 2
|
|
@@ -247,123 +245,123 @@ const Be = /* @__PURE__ */ D({
|
|
|
247
245
|
))
|
|
248
246
|
]));
|
|
249
247
|
}
|
|
250
|
-
}),
|
|
248
|
+
}), Qe = /* @__PURE__ */ H(Ae, [["__scopeId", "data-v-661e2289"]]), qe = /* @__PURE__ */ D({
|
|
251
249
|
__name: "DirectionControl",
|
|
252
250
|
emits: ["change"],
|
|
253
251
|
setup(t, { emit: n }) {
|
|
254
|
-
const e = n, i = (
|
|
255
|
-
e("change",
|
|
252
|
+
const e = n, i = (r) => {
|
|
253
|
+
e("change", r);
|
|
256
254
|
};
|
|
257
|
-
return (
|
|
255
|
+
return (r, o) => (v(), F(
|
|
258
256
|
"div",
|
|
259
257
|
{
|
|
260
258
|
class: "direction-control",
|
|
261
|
-
onDblclick: o[9] || (o[9] =
|
|
259
|
+
onDblclick: o[9] || (o[9] = h((s) => s.stopPropagation(), ["stop"]))
|
|
262
260
|
},
|
|
263
261
|
[
|
|
264
|
-
f(l(
|
|
265
|
-
content: l(
|
|
262
|
+
f(l(_), {
|
|
263
|
+
content: l(C)("左上")
|
|
266
264
|
}, {
|
|
267
|
-
default:
|
|
265
|
+
default: y(() => [
|
|
268
266
|
m("div", {
|
|
269
267
|
class: "icon icon-top-left",
|
|
270
|
-
onClick: o[0] || (o[0] =
|
|
268
|
+
onClick: o[0] || (o[0] = h((s) => i("leftUp"), ["stop"]))
|
|
271
269
|
})
|
|
272
270
|
]),
|
|
273
271
|
_: 1
|
|
274
272
|
/* STABLE */
|
|
275
273
|
}, 8, ["content"]),
|
|
276
|
-
f(l(
|
|
277
|
-
content: l(
|
|
274
|
+
f(l(_), {
|
|
275
|
+
content: l(C)("上")
|
|
278
276
|
}, {
|
|
279
|
-
default:
|
|
277
|
+
default: y(() => [
|
|
280
278
|
m("div", {
|
|
281
279
|
class: "icon icon-top",
|
|
282
|
-
onClick: o[1] || (o[1] =
|
|
280
|
+
onClick: o[1] || (o[1] = h((s) => i("up"), ["stop"]))
|
|
283
281
|
})
|
|
284
282
|
]),
|
|
285
283
|
_: 1
|
|
286
284
|
/* STABLE */
|
|
287
285
|
}, 8, ["content"]),
|
|
288
|
-
f(l(
|
|
289
|
-
content: l(
|
|
286
|
+
f(l(_), {
|
|
287
|
+
content: l(C)("右上")
|
|
290
288
|
}, {
|
|
291
|
-
default:
|
|
289
|
+
default: y(() => [
|
|
292
290
|
m("div", {
|
|
293
291
|
class: "icon icon-top-right",
|
|
294
|
-
onClick: o[2] || (o[2] =
|
|
292
|
+
onClick: o[2] || (o[2] = h((s) => i("rightUp"), ["stop"]))
|
|
295
293
|
})
|
|
296
294
|
]),
|
|
297
295
|
_: 1
|
|
298
296
|
/* STABLE */
|
|
299
297
|
}, 8, ["content"]),
|
|
300
|
-
f(l(
|
|
301
|
-
content: l(
|
|
298
|
+
f(l(_), {
|
|
299
|
+
content: l(C)("左")
|
|
302
300
|
}, {
|
|
303
|
-
default:
|
|
301
|
+
default: y(() => [
|
|
304
302
|
m("div", {
|
|
305
303
|
class: "icon icon-left",
|
|
306
|
-
onClick: o[3] || (o[3] =
|
|
304
|
+
onClick: o[3] || (o[3] = h((s) => i("left"), ["stop"]))
|
|
307
305
|
})
|
|
308
306
|
]),
|
|
309
307
|
_: 1
|
|
310
308
|
/* STABLE */
|
|
311
309
|
}, 8, ["content"]),
|
|
312
|
-
f(l(
|
|
313
|
-
content: l(
|
|
310
|
+
f(l(_), {
|
|
311
|
+
content: l(C)("自动")
|
|
314
312
|
}, {
|
|
315
|
-
default:
|
|
313
|
+
default: y(() => [
|
|
316
314
|
m("div", {
|
|
317
315
|
class: "icon icon-auto",
|
|
318
|
-
onClick: o[4] || (o[4] =
|
|
316
|
+
onClick: o[4] || (o[4] = h((s) => i("auto"), ["stop"]))
|
|
319
317
|
})
|
|
320
318
|
]),
|
|
321
319
|
_: 1
|
|
322
320
|
/* STABLE */
|
|
323
321
|
}, 8, ["content"]),
|
|
324
|
-
f(l(
|
|
325
|
-
content: l(
|
|
322
|
+
f(l(_), {
|
|
323
|
+
content: l(C)("右")
|
|
326
324
|
}, {
|
|
327
|
-
default:
|
|
325
|
+
default: y(() => [
|
|
328
326
|
m("div", {
|
|
329
327
|
class: "icon icon-right",
|
|
330
|
-
onClick: o[5] || (o[5] =
|
|
328
|
+
onClick: o[5] || (o[5] = h((s) => i("right"), ["stop"]))
|
|
331
329
|
})
|
|
332
330
|
]),
|
|
333
331
|
_: 1
|
|
334
332
|
/* STABLE */
|
|
335
333
|
}, 8, ["content"]),
|
|
336
|
-
f(l(
|
|
337
|
-
content: l(
|
|
334
|
+
f(l(_), {
|
|
335
|
+
content: l(C)("左下")
|
|
338
336
|
}, {
|
|
339
|
-
default:
|
|
337
|
+
default: y(() => [
|
|
340
338
|
m("div", {
|
|
341
339
|
class: "icon icon-bottom-left",
|
|
342
|
-
onClick: o[6] || (o[6] =
|
|
340
|
+
onClick: o[6] || (o[6] = h((s) => i("leftDown"), ["stop"]))
|
|
343
341
|
})
|
|
344
342
|
]),
|
|
345
343
|
_: 1
|
|
346
344
|
/* STABLE */
|
|
347
345
|
}, 8, ["content"]),
|
|
348
|
-
f(l(
|
|
349
|
-
content: l(
|
|
346
|
+
f(l(_), {
|
|
347
|
+
content: l(C)("下")
|
|
350
348
|
}, {
|
|
351
|
-
default:
|
|
349
|
+
default: y(() => [
|
|
352
350
|
m("div", {
|
|
353
351
|
class: "icon icon-bottom",
|
|
354
|
-
onClick: o[7] || (o[7] =
|
|
352
|
+
onClick: o[7] || (o[7] = h((s) => i("down"), ["stop"]))
|
|
355
353
|
})
|
|
356
354
|
]),
|
|
357
355
|
_: 1
|
|
358
356
|
/* STABLE */
|
|
359
357
|
}, 8, ["content"]),
|
|
360
|
-
f(l(
|
|
361
|
-
content: l(
|
|
358
|
+
f(l(_), {
|
|
359
|
+
content: l(C)("右下")
|
|
362
360
|
}, {
|
|
363
|
-
default:
|
|
361
|
+
default: y(() => [
|
|
364
362
|
m("div", {
|
|
365
363
|
class: "icon icon-bottom-right",
|
|
366
|
-
onClick: o[8] || (o[8] =
|
|
364
|
+
onClick: o[8] || (o[8] = h((s) => i("rightDown"), ["stop"]))
|
|
367
365
|
})
|
|
368
366
|
]),
|
|
369
367
|
_: 1
|
|
@@ -374,10 +372,10 @@ const Be = /* @__PURE__ */ D({
|
|
|
374
372
|
/* NEED_HYDRATION */
|
|
375
373
|
));
|
|
376
374
|
}
|
|
377
|
-
}),
|
|
375
|
+
}), Ge = /* @__PURE__ */ H(qe, [["__scopeId", "data-v-db2e8ec2"]]), We = { 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 = {
|
|
378
376
|
key: 0,
|
|
379
377
|
class: "play-status"
|
|
380
|
-
},
|
|
378
|
+
}, tt = { class: "video-bottom" }, ot = { class: "video-bottom_r" }, nt = /* @__PURE__ */ D({
|
|
381
379
|
__name: "index",
|
|
382
380
|
props: {
|
|
383
381
|
videoUrl: {},
|
|
@@ -394,7 +392,7 @@ const Be = /* @__PURE__ */ D({
|
|
|
394
392
|
emits: ["close", "directionControl", "zoomControl", "handleClick"],
|
|
395
393
|
setup(t, { emit: n }) {
|
|
396
394
|
const e = t, i = n;
|
|
397
|
-
|
|
395
|
+
_e({
|
|
398
396
|
muted: import("@das-fed/ui/packages/icons/muted"),
|
|
399
397
|
volume: import("@das-fed/ui/packages/icons/volume"),
|
|
400
398
|
shrink: import("@das-fed/ui/packages/icons/shrink"),
|
|
@@ -402,137 +400,137 @@ const Be = /* @__PURE__ */ D({
|
|
|
402
400
|
"direction-control": import("@das-fed/ui/packages/icons/direction-control"),
|
|
403
401
|
screenshot: import("@das-fed/ui/packages/icons/screenshot")
|
|
404
402
|
});
|
|
405
|
-
const
|
|
406
|
-
var
|
|
407
|
-
return (
|
|
408
|
-
}),
|
|
409
|
-
o.value =
|
|
403
|
+
const r = w(!0), o = w(), s = w(!1), g = w(), u = P(() => {
|
|
404
|
+
var d;
|
|
405
|
+
return (d = g.value) == null ? void 0 : d.video;
|
|
406
|
+
}), c = w(!1), a = w(!0), p = (d) => {
|
|
407
|
+
o.value = d, !e.isHls && o.value.on(window.mpegts.Events.ERROR, (E) => {
|
|
410
408
|
});
|
|
411
|
-
},
|
|
412
|
-
|
|
409
|
+
}, k = () => {
|
|
410
|
+
r.value = !r.value, i("handleClick", r.value ? "MUTE" : "UNMUTE"), o.value && (o.value.muted = r.value);
|
|
413
411
|
}, b = () => {
|
|
414
412
|
s.value = !s.value;
|
|
415
|
-
},
|
|
416
|
-
const
|
|
417
|
-
if (i("handleClick", "SCREENSHOT"),
|
|
418
|
-
|
|
419
|
-
const E =
|
|
420
|
-
E == null || E.drawImage(
|
|
421
|
-
const
|
|
422
|
-
if (
|
|
423
|
-
const
|
|
424
|
-
|
|
413
|
+
}, z = w(""), S = () => {
|
|
414
|
+
const d = document.createElement("canvas");
|
|
415
|
+
if (i("handleClick", "SCREENSHOT"), u.value) {
|
|
416
|
+
d.width = u.value.clientWidth, d.height = u.value.clientHeight;
|
|
417
|
+
const E = d.getContext("2d");
|
|
418
|
+
E == null || E.drawImage(u.value, 0, 0, d.width, d.height);
|
|
419
|
+
const O = d.toDataURL("image/jpg"), ce = `【${e.title}】${Re().format("YYYYMMDDHHmmss").toString()}.jpg`;
|
|
420
|
+
if (z.value = O, "download" in document.createElement("a")) {
|
|
421
|
+
const L = document.createElement("a");
|
|
422
|
+
L.download = ce, L.style.display = "none", L.href = O, document.body.appendChild(L), document.body.appendChild(d), L.click(), URL.revokeObjectURL(L.href), document.body.removeChild(L), document.body.removeChild(d);
|
|
425
423
|
}
|
|
426
424
|
}
|
|
427
|
-
}, V = (
|
|
428
|
-
i("directionControl",
|
|
429
|
-
},
|
|
430
|
-
i("zoomControl",
|
|
431
|
-
}, U = (
|
|
432
|
-
return
|
|
433
|
-
() =>
|
|
425
|
+
}, V = (d) => {
|
|
426
|
+
i("directionControl", d);
|
|
427
|
+
}, T = (d) => {
|
|
428
|
+
i("zoomControl", d);
|
|
429
|
+
}, U = (d) => e.authType.includes(d);
|
|
430
|
+
return N(
|
|
431
|
+
() => u.value,
|
|
434
432
|
() => {
|
|
435
|
-
|
|
436
|
-
|
|
433
|
+
u.value && u.value.addEventListener("ended", () => {
|
|
434
|
+
c.value = !0, e.type === "playback" && (a.value = !1);
|
|
437
435
|
});
|
|
438
436
|
}
|
|
439
|
-
),
|
|
440
|
-
() =>
|
|
437
|
+
), N(
|
|
438
|
+
() => u.value,
|
|
441
439
|
() => {
|
|
442
|
-
|
|
443
|
-
|
|
440
|
+
u.value && x(() => {
|
|
441
|
+
u.value.playbackRate = e.playbackRate || 1;
|
|
444
442
|
});
|
|
445
443
|
}
|
|
446
|
-
),
|
|
444
|
+
), N(
|
|
447
445
|
() => o.value,
|
|
448
446
|
() => {
|
|
449
|
-
o.value &&
|
|
450
|
-
o.value.muted =
|
|
447
|
+
o.value && x(() => {
|
|
448
|
+
o.value.muted = r.value;
|
|
451
449
|
});
|
|
452
450
|
}
|
|
453
|
-
),
|
|
451
|
+
), N(
|
|
454
452
|
() => e.playbackRate,
|
|
455
453
|
() => {
|
|
456
|
-
|
|
454
|
+
u.value && (u.value.playbackRate = e.playbackRate || 1);
|
|
457
455
|
},
|
|
458
456
|
{
|
|
459
457
|
immediate: !0
|
|
460
458
|
}
|
|
461
|
-
),
|
|
459
|
+
), N(
|
|
462
460
|
() => e.paused,
|
|
463
461
|
() => {
|
|
464
462
|
o.value && (e.paused ? o.value.pause() : o.value.play());
|
|
465
463
|
}
|
|
466
|
-
),
|
|
464
|
+
), N(
|
|
467
465
|
() => e.videoUrl,
|
|
468
466
|
() => {
|
|
469
|
-
|
|
470
|
-
|
|
467
|
+
a.value = !1, x(() => {
|
|
468
|
+
a.value = !0;
|
|
471
469
|
});
|
|
472
470
|
}
|
|
473
|
-
), (
|
|
474
|
-
f(l(
|
|
471
|
+
), (d, E) => (v(), F("div", We, [
|
|
472
|
+
f(l(Ie), {
|
|
475
473
|
spinning: e.loading,
|
|
476
474
|
type: "component",
|
|
477
|
-
tip: l(
|
|
475
|
+
tip: l(C)("加载中...")
|
|
478
476
|
}, {
|
|
479
|
-
default:
|
|
480
|
-
m("div",
|
|
481
|
-
m("div",
|
|
482
|
-
m("div",
|
|
477
|
+
default: y(() => [
|
|
478
|
+
m("div", Ye, [
|
|
479
|
+
m("div", Ze, [
|
|
480
|
+
m("div", Ke, [
|
|
483
481
|
m(
|
|
484
482
|
"div",
|
|
485
|
-
|
|
483
|
+
Xe,
|
|
486
484
|
j(e.title.length > 20 ? e.title.slice(0, 19) + "..." : e.title),
|
|
487
485
|
1
|
|
488
486
|
/* TEXT */
|
|
489
487
|
)
|
|
490
488
|
])
|
|
491
489
|
]),
|
|
492
|
-
m("div",
|
|
493
|
-
["live"].includes(
|
|
490
|
+
m("div", Je, [
|
|
491
|
+
["live"].includes(d.type) ? (v(), F(
|
|
494
492
|
"span",
|
|
495
|
-
|
|
496
|
-
j(l(
|
|
493
|
+
et,
|
|
494
|
+
j(l(C)("正在实时预览")),
|
|
497
495
|
1
|
|
498
496
|
/* TEXT */
|
|
499
497
|
)) : I("v-if", !0),
|
|
500
498
|
I(' <das-icon v-if="isFullscreen" class="icon close-icon" icon="close" @click.stop="handleClose"></das-icon> ')
|
|
501
499
|
])
|
|
502
500
|
]),
|
|
503
|
-
|
|
504
|
-
|
|
501
|
+
d.isHls ? (v(), F(
|
|
502
|
+
B,
|
|
505
503
|
{ key: 1 },
|
|
506
504
|
[
|
|
507
|
-
e.videoUrl &&
|
|
505
|
+
e.videoUrl && a.value ? (v(), R(l(Ee), {
|
|
508
506
|
key: 0,
|
|
509
507
|
ref_key: "dasLivePlayerRef",
|
|
510
|
-
ref:
|
|
511
|
-
muted:
|
|
512
|
-
onLoaded:
|
|
508
|
+
ref: g,
|
|
509
|
+
muted: r.value,
|
|
510
|
+
onLoaded: p,
|
|
513
511
|
src: e.videoUrl
|
|
514
512
|
}, null, 8, ["muted", "src"])) : I("v-if", !0)
|
|
515
513
|
],
|
|
516
514
|
64
|
|
517
515
|
/* STABLE_FRAGMENT */
|
|
518
|
-
)) : (
|
|
519
|
-
|
|
516
|
+
)) : (v(), F(
|
|
517
|
+
B,
|
|
520
518
|
{ key: 0 },
|
|
521
519
|
[
|
|
522
|
-
e.videoUrl &&
|
|
520
|
+
e.videoUrl && a.value ? (v(), R(l(be), {
|
|
523
521
|
key: 0,
|
|
524
522
|
type: "flv",
|
|
525
523
|
ref_key: "dasLivePlayerRef",
|
|
526
|
-
ref:
|
|
527
|
-
muted:
|
|
528
|
-
onLoaded:
|
|
524
|
+
ref: g,
|
|
525
|
+
muted: r.value,
|
|
526
|
+
onLoaded: p,
|
|
529
527
|
src: e.videoUrl
|
|
530
528
|
}, null, 8, ["muted", "src"])) : I("v-if", !0)
|
|
531
529
|
],
|
|
532
530
|
64
|
|
533
531
|
/* STABLE_FRAGMENT */
|
|
534
532
|
)),
|
|
535
|
-
m("div",
|
|
533
|
+
m("div", tt, [
|
|
536
534
|
E[3] || (E[3] = m(
|
|
537
535
|
"div",
|
|
538
536
|
{ class: "video-bottom_l" },
|
|
@@ -540,80 +538,80 @@ const Be = /* @__PURE__ */ D({
|
|
|
540
538
|
-1
|
|
541
539
|
/* CACHED */
|
|
542
540
|
)),
|
|
543
|
-
m("div",
|
|
541
|
+
m("div", ot, [
|
|
544
542
|
m(
|
|
545
543
|
"div",
|
|
546
544
|
{
|
|
547
545
|
class: "controls",
|
|
548
|
-
onDblclick: E[2] || (E[2] =
|
|
546
|
+
onDblclick: E[2] || (E[2] = h((O) => O.stopPropagation(), ["stop"]))
|
|
549
547
|
},
|
|
550
548
|
[
|
|
551
|
-
f(l(
|
|
552
|
-
content: l(
|
|
549
|
+
f(l(_), {
|
|
550
|
+
content: l(C)("声音")
|
|
553
551
|
}, {
|
|
554
|
-
default:
|
|
552
|
+
default: y(() => [
|
|
555
553
|
f(l($), {
|
|
556
554
|
class: "icon icon-volume",
|
|
557
|
-
icon:
|
|
558
|
-
onClick:
|
|
555
|
+
icon: r.value ? "muted" : "volume",
|
|
556
|
+
onClick: h(k, ["stop"])
|
|
559
557
|
}, null, 8, ["icon"])
|
|
560
558
|
]),
|
|
561
559
|
_: 1
|
|
562
560
|
/* STABLE */
|
|
563
561
|
}, 8, ["content"]),
|
|
564
|
-
f(l(
|
|
565
|
-
content: l(
|
|
562
|
+
f(l(_), {
|
|
563
|
+
content: l(C)("截图")
|
|
566
564
|
}, {
|
|
567
|
-
default:
|
|
565
|
+
default: y(() => [
|
|
568
566
|
f(l($), {
|
|
569
567
|
class: "icon icon-screenshot",
|
|
570
568
|
icon: "screenshot",
|
|
571
|
-
onClick:
|
|
569
|
+
onClick: h(S, ["stop"])
|
|
572
570
|
})
|
|
573
571
|
]),
|
|
574
572
|
_: 1
|
|
575
573
|
/* STABLE */
|
|
576
574
|
}, 8, ["content"]),
|
|
577
|
-
U("control") ? (
|
|
575
|
+
U("control") ? (v(), R(l(_), {
|
|
578
576
|
key: 0,
|
|
579
|
-
content: l(
|
|
577
|
+
content: l(C)("聚焦-")
|
|
580
578
|
}, {
|
|
581
|
-
default:
|
|
582
|
-
["live", "polling"].includes(e.type) ? (
|
|
579
|
+
default: y(() => [
|
|
580
|
+
["live", "polling"].includes(e.type) ? (v(), R(l($), {
|
|
583
581
|
key: 0,
|
|
584
582
|
class: "icon icon-shrink",
|
|
585
583
|
icon: "shrink",
|
|
586
|
-
onClick: E[0] || (E[0] =
|
|
584
|
+
onClick: E[0] || (E[0] = h((O) => T("zoomOut"), ["stop"]))
|
|
587
585
|
})) : I("v-if", !0)
|
|
588
586
|
]),
|
|
589
587
|
_: 1
|
|
590
588
|
/* STABLE */
|
|
591
589
|
}, 8, ["content"])) : I("v-if", !0),
|
|
592
|
-
U("control") ? (
|
|
590
|
+
U("control") ? (v(), R(l(_), {
|
|
593
591
|
key: 1,
|
|
594
|
-
content: l(
|
|
592
|
+
content: l(C)("聚焦+")
|
|
595
593
|
}, {
|
|
596
|
-
default:
|
|
597
|
-
["live", "polling"].includes(e.type) ? (
|
|
594
|
+
default: y(() => [
|
|
595
|
+
["live", "polling"].includes(e.type) ? (v(), R(l($), {
|
|
598
596
|
key: 0,
|
|
599
597
|
class: "icon icon-enlarge",
|
|
600
598
|
icon: "enlarge",
|
|
601
|
-
onClick: E[1] || (E[1] =
|
|
599
|
+
onClick: E[1] || (E[1] = h((O) => T("zoomIn"), ["stop"]))
|
|
602
600
|
})) : I("v-if", !0)
|
|
603
601
|
]),
|
|
604
602
|
_: 1
|
|
605
603
|
/* STABLE */
|
|
606
604
|
}, 8, ["content"])) : I("v-if", !0),
|
|
607
|
-
U("control") ? (
|
|
605
|
+
U("control") ? (v(), R(l(_), {
|
|
608
606
|
key: 2,
|
|
609
|
-
content: l(
|
|
607
|
+
content: l(C)("方向控制")
|
|
610
608
|
}, {
|
|
611
|
-
default:
|
|
612
|
-
["live", "polling"].includes(e.type) ? (
|
|
609
|
+
default: y(() => [
|
|
610
|
+
["live", "polling"].includes(e.type) ? (v(), R(l($), {
|
|
613
611
|
key: 0,
|
|
614
612
|
class: "icon icon-direction-control",
|
|
615
613
|
icon: "direction-control",
|
|
616
|
-
onClick:
|
|
614
|
+
onClick: h(b, ["stop"])
|
|
617
615
|
})) : I("v-if", !0)
|
|
618
616
|
]),
|
|
619
617
|
_: 1
|
|
@@ -625,7 +623,7 @@ const Be = /* @__PURE__ */ D({
|
|
|
625
623
|
)
|
|
626
624
|
])
|
|
627
625
|
]),
|
|
628
|
-
s.value ? (
|
|
626
|
+
s.value ? (v(), R(Ge, {
|
|
629
627
|
key: 2,
|
|
630
628
|
onChange: V
|
|
631
629
|
})) : I("v-if", !0)
|
|
@@ -635,36 +633,36 @@ const Be = /* @__PURE__ */ D({
|
|
|
635
633
|
}, 8, ["spinning", "tip"])
|
|
636
634
|
]));
|
|
637
635
|
}
|
|
638
|
-
}),
|
|
639
|
-
let Q = M(`${
|
|
640
|
-
function
|
|
636
|
+
}), lt = /* @__PURE__ */ H(nt, [["__scopeId", "data-v-4db322a4"]]), it = "/api/device-relation/deviceproject/v1/project/device/video", at = "v1", rt = M(`/api/enterpriseright/permission/${at}`);
|
|
637
|
+
let Q = M(`${it}`, re);
|
|
638
|
+
function re(t) {
|
|
641
639
|
const n = q() ? q().id : 1;
|
|
642
640
|
return t.params || (t.params = {}), t.params.project = n, t.params.projectId = n, t;
|
|
643
641
|
}
|
|
644
|
-
function
|
|
642
|
+
function se(t) {
|
|
645
643
|
const n = new URLSearchParams("");
|
|
646
644
|
for (let [e, i] of Object.entries(t))
|
|
647
645
|
n.append(e, i);
|
|
648
646
|
return n.toString();
|
|
649
647
|
}
|
|
650
648
|
function ee(t) {
|
|
651
|
-
return Q.post(`/ptz?${
|
|
649
|
+
return Q.post(`/ptz?${se(t)}`)().run();
|
|
652
650
|
}
|
|
653
651
|
function st(t) {
|
|
654
|
-
return Q.post(`/url/preview?${
|
|
652
|
+
return Q.post(`/url/preview?${se(t)}`)().run();
|
|
655
653
|
}
|
|
656
|
-
|
|
657
|
-
function
|
|
654
|
+
rt.post("data/device-auth");
|
|
655
|
+
function ct(t) {
|
|
658
656
|
return new Promise((n) => {
|
|
659
|
-
Q = M(t,
|
|
657
|
+
Q = M(t, re), n("");
|
|
660
658
|
});
|
|
661
659
|
}
|
|
662
|
-
const
|
|
663
|
-
const n =
|
|
660
|
+
const ut = (t) => {
|
|
661
|
+
const n = Se();
|
|
664
662
|
return `${t}?token=${n}`;
|
|
665
663
|
};
|
|
666
|
-
|
|
667
|
-
const
|
|
664
|
+
w([]);
|
|
665
|
+
const dt = /* @__PURE__ */ D({
|
|
668
666
|
props: {
|
|
669
667
|
deviceInfo: {
|
|
670
668
|
type: Object,
|
|
@@ -687,100 +685,100 @@ const ut = /* @__PURE__ */ D({
|
|
|
687
685
|
const {
|
|
688
686
|
deviceInfo: e,
|
|
689
687
|
source: i,
|
|
690
|
-
isHls:
|
|
688
|
+
isHls: r,
|
|
691
689
|
baseURL: o
|
|
692
|
-
} =
|
|
690
|
+
} = ge(t), s = w(!1), g = w(""), u = async () => {
|
|
693
691
|
var b;
|
|
694
692
|
if (!((b = e.value) != null && b.deviceId)) return;
|
|
695
693
|
s.value = !0;
|
|
696
|
-
const [
|
|
694
|
+
const [p, k] = await st({
|
|
697
695
|
productId: e.value.productId,
|
|
698
696
|
deviceId: e.value.deviceId,
|
|
699
697
|
source: i.value
|
|
700
698
|
});
|
|
701
|
-
if (!
|
|
702
|
-
let
|
|
703
|
-
|
|
699
|
+
if (!p) {
|
|
700
|
+
let z = r.value ? "httpHlsStreamURL" : "wsFlvStreamURL";
|
|
701
|
+
g.value = ut(k == null ? void 0 : k[z]);
|
|
704
702
|
}
|
|
705
703
|
s.value = !1;
|
|
706
|
-
},
|
|
704
|
+
}, c = (p) => {
|
|
707
705
|
ee({
|
|
708
706
|
productId: e.value.productId,
|
|
709
707
|
deviceId: e.value.deviceId,
|
|
710
|
-
direction:
|
|
708
|
+
direction: p,
|
|
711
709
|
zoom: "",
|
|
712
710
|
source: i.value || "web"
|
|
713
711
|
});
|
|
714
|
-
},
|
|
712
|
+
}, a = (p) => {
|
|
715
713
|
ee({
|
|
716
714
|
productId: e.value.productId,
|
|
717
715
|
deviceId: e.value.deviceId,
|
|
718
716
|
direction: "",
|
|
719
|
-
zoom:
|
|
717
|
+
zoom: p,
|
|
720
718
|
source: i.value || "web"
|
|
721
719
|
});
|
|
722
720
|
};
|
|
723
721
|
return te(async () => {
|
|
724
|
-
o.value && await
|
|
725
|
-
}),
|
|
726
|
-
|
|
722
|
+
o.value && await ct(o.value), u();
|
|
723
|
+
}), N(() => e.value, () => {
|
|
724
|
+
u();
|
|
727
725
|
}, {
|
|
728
726
|
deep: !0
|
|
729
|
-
}), () => f(
|
|
730
|
-
videoUrl:
|
|
727
|
+
}), () => f(B, null, [n.default({
|
|
728
|
+
videoUrl: g.value,
|
|
731
729
|
loading: s.value,
|
|
732
|
-
onDirectionControl:
|
|
733
|
-
onZoomControl:
|
|
734
|
-
isHls:
|
|
730
|
+
onDirectionControl: c,
|
|
731
|
+
onZoomControl: a,
|
|
732
|
+
isHls: r.value
|
|
735
733
|
})]);
|
|
736
734
|
}
|
|
737
735
|
});
|
|
738
|
-
function
|
|
739
|
-
const n =
|
|
736
|
+
function pt(t) {
|
|
737
|
+
const n = w(0), e = w(), {
|
|
740
738
|
toggle: i,
|
|
741
|
-
isFullscreen:
|
|
739
|
+
isFullscreen: r,
|
|
742
740
|
exit: o
|
|
743
|
-
} = ae(e), s = (
|
|
744
|
-
|
|
745
|
-
},
|
|
746
|
-
var
|
|
747
|
-
(
|
|
741
|
+
} = ae(e), s = (c, a) => {
|
|
742
|
+
r.value && o();
|
|
743
|
+
}, g = (c) => {
|
|
744
|
+
var a;
|
|
745
|
+
(a = t == null ? void 0 : t.handleClick) == null || a.call(t, c);
|
|
748
746
|
};
|
|
749
747
|
return {
|
|
750
|
-
render: () => f(
|
|
748
|
+
render: () => f(Qe, {
|
|
751
749
|
ref: e,
|
|
752
750
|
gridNum: t.gridNum,
|
|
753
751
|
activeIndex: n.value,
|
|
754
|
-
"onUpdate:activeIndex": (
|
|
755
|
-
showFn: (
|
|
752
|
+
"onUpdate:activeIndex": (c) => n.value = c,
|
|
753
|
+
showFn: (c) => !!t.deviceList[c]
|
|
756
754
|
}, {
|
|
757
755
|
default: ({
|
|
758
|
-
index:
|
|
756
|
+
index: c
|
|
759
757
|
}) => {
|
|
760
|
-
const
|
|
761
|
-
return f(
|
|
762
|
-
deviceInfo:
|
|
758
|
+
const a = t.deviceList[c], p = t.source, k = t.isHls, b = t.baseURL;
|
|
759
|
+
return f(dt, {
|
|
760
|
+
deviceInfo: a,
|
|
763
761
|
baseURL: b,
|
|
764
|
-
source:
|
|
765
|
-
isHls:
|
|
762
|
+
source: p,
|
|
763
|
+
isHls: k
|
|
766
764
|
}, {
|
|
767
765
|
default: ({
|
|
768
|
-
videoUrl:
|
|
769
|
-
onDirectionControl:
|
|
766
|
+
videoUrl: z,
|
|
767
|
+
onDirectionControl: S,
|
|
770
768
|
onZoomControl: V,
|
|
771
|
-
loading:
|
|
769
|
+
loading: T,
|
|
772
770
|
isHls: U
|
|
773
|
-
}) => f(
|
|
771
|
+
}) => f(lt, {
|
|
774
772
|
type: "live",
|
|
775
|
-
loading:
|
|
776
|
-
isFullscreen:
|
|
777
|
-
videoUrl:
|
|
778
|
-
title:
|
|
773
|
+
loading: T,
|
|
774
|
+
isFullscreen: r.value,
|
|
775
|
+
videoUrl: z,
|
|
776
|
+
title: a.deviceName,
|
|
779
777
|
onClose: () => s(),
|
|
780
|
-
onDirectionControl:
|
|
778
|
+
onDirectionControl: S,
|
|
781
779
|
onZoomControl: V,
|
|
782
|
-
onHandleClick:
|
|
783
|
-
authType:
|
|
780
|
+
onHandleClick: g,
|
|
781
|
+
authType: a.authType === 2 ? ["control"] : [],
|
|
784
782
|
isHls: U
|
|
785
783
|
}, null)
|
|
786
784
|
});
|
|
@@ -797,43 +795,46 @@ const vt = /* @__PURE__ */ D({
|
|
|
797
795
|
gridNum: { default: 4 },
|
|
798
796
|
source: {},
|
|
799
797
|
isHls: { type: Boolean, default: !1 },
|
|
798
|
+
resizable: { type: Boolean },
|
|
800
799
|
dialogTitle: { default: "" },
|
|
801
800
|
baseURL: { default: "/api/device-relation/deviceproject/v1/project/device/video" },
|
|
802
801
|
handleClick: {}
|
|
803
802
|
},
|
|
804
803
|
emits: ["update:visible"],
|
|
805
804
|
setup(t, { emit: n }) {
|
|
806
|
-
const e = t, i =
|
|
805
|
+
const e = t, i = P(() => e.dialogTitle || C("视频监控")), r = n, o = P({
|
|
807
806
|
get: () => e.visible,
|
|
808
|
-
set: (
|
|
809
|
-
}), { render: s, toggleFullscreen:
|
|
810
|
-
let
|
|
807
|
+
set: (c) => r("update:visible", c)
|
|
808
|
+
}), { render: s, toggleFullscreen: g } = pt(e), u = P(() => {
|
|
809
|
+
let c = {};
|
|
811
810
|
switch (e.gridNum) {
|
|
812
811
|
case 1:
|
|
813
|
-
|
|
812
|
+
c = { width: "933px", height: "595px" };
|
|
814
813
|
break;
|
|
815
814
|
case 4:
|
|
816
|
-
|
|
815
|
+
c = { width: "933px", height: "595px" };
|
|
817
816
|
break;
|
|
818
817
|
case 9:
|
|
819
|
-
|
|
818
|
+
c = { width: "1370px", height: "840px" };
|
|
820
819
|
break;
|
|
821
820
|
}
|
|
822
|
-
return
|
|
821
|
+
return c;
|
|
823
822
|
});
|
|
824
|
-
return (
|
|
823
|
+
return (c, a) => (v(), R(l(he), ye({
|
|
825
824
|
size: "mini",
|
|
826
825
|
title: i.value,
|
|
827
|
-
"custom-class":
|
|
826
|
+
"custom-class": "das-linakge-video-dialog",
|
|
828
827
|
modelValue: o.value,
|
|
829
|
-
"onUpdate:modelValue":
|
|
828
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => o.value = p),
|
|
830
829
|
bodyStyle: { padding: 0 },
|
|
831
830
|
"close-on-click-modal": !1,
|
|
832
831
|
"close-on-press-escape": !1,
|
|
833
832
|
modal: !1,
|
|
834
|
-
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" }
|
|
835
|
-
|
|
836
|
-
|
|
833
|
+
"header-style": { display: "flex", justifyContent: "space-between", alignItems: "center" },
|
|
834
|
+
resizable: c.resizable,
|
|
835
|
+
dialogStyle: u.value
|
|
836
|
+
}, c.$attrs), {
|
|
837
|
+
header: y(() => [
|
|
837
838
|
m("div", null, [
|
|
838
839
|
m(
|
|
839
840
|
"span",
|
|
@@ -843,28 +844,28 @@ const vt = /* @__PURE__ */ D({
|
|
|
843
844
|
/* TEXT */
|
|
844
845
|
)
|
|
845
846
|
]),
|
|
846
|
-
f(l(
|
|
847
|
-
content: l(
|
|
847
|
+
f(l(_), {
|
|
848
|
+
content: l(C)("页面全屏")
|
|
848
849
|
}, {
|
|
849
|
-
default:
|
|
850
|
-
f(l(
|
|
850
|
+
default: y(() => [
|
|
851
|
+
f(l(we), {
|
|
851
852
|
class: "icon",
|
|
852
853
|
color: "#999",
|
|
853
|
-
onClick: l(
|
|
854
|
+
onClick: l(g)
|
|
854
855
|
}, null, 8, ["onClick"])
|
|
855
856
|
]),
|
|
856
857
|
_: 1
|
|
857
858
|
/* STABLE */
|
|
858
859
|
}, 8, ["content"])
|
|
859
860
|
]),
|
|
860
|
-
default:
|
|
861
|
-
o.value ? (
|
|
861
|
+
default: y(() => [
|
|
862
|
+
o.value ? (v(), R(l(s), { key: 0 })) : I("v-if", !0)
|
|
862
863
|
]),
|
|
863
864
|
_: 1
|
|
864
865
|
/* STABLE */
|
|
865
|
-
},
|
|
866
|
+
}, 16, ["title", "modelValue", "resizable", "dialogStyle"]));
|
|
866
867
|
}
|
|
867
|
-
}),
|
|
868
|
+
}), ft = {
|
|
868
869
|
加载中: { "zh-CN": "加载中", en: "Loading", _appCode: "framework" },
|
|
869
870
|
正在实时预览: { "zh-CN": "正在实时预览", en: "Real-time Video", _appCode: "framework" },
|
|
870
871
|
声音: { "zh-CN": "声音", en: "Sound", _appCode: "framework" },
|
|
@@ -886,10 +887,10 @@ const vt = /* @__PURE__ */ D({
|
|
|
886
887
|
"聚焦-": { "zh-CN": "聚焦-", en: "Focus-", _appCode: "framework" },
|
|
887
888
|
"聚焦+": { "zh-CN": "聚焦+", en: "Focus+", _appCode: "framework" }
|
|
888
889
|
};
|
|
889
|
-
ke(
|
|
890
|
-
const Nt =
|
|
890
|
+
ke(ft);
|
|
891
|
+
const Nt = Ce(vt), Ft = () => w(null);
|
|
891
892
|
export {
|
|
892
893
|
Nt as DasVideoDialog,
|
|
893
894
|
Ft as DasVideoDialogRef,
|
|
894
|
-
|
|
895
|
+
pt as useVideo
|
|
895
896
|
};
|