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