@das-fed/ui 7.1.0-dev.2 → 7.1.0-dev.20

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