hy-dispatch-ui-v3 0.2.88 → 0.2.89
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/dist/tailwind.css +89 -78
- package/es/api/file.mjs +14 -1
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -469
- package/es/components/hyAudioPlayer/audioPlayer2.vue.mjs +1321 -0
- package/es/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.mjs +472 -0
- package/es/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.mjs +5 -5
- package/es/components/hyAudioPlayer/index.mjs +2 -2
- package/es/components/hyAudioPlayer/locale/en_US.mjs +18 -0
- package/es/components/hyAudioPlayer/locale/index.mjs +2 -0
- package/es/components/hyAudioPlayer/locale/zh_CN.mjs +18 -0
- package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +9 -7
- package/es/components/hyForm/cpns/formItem.vue.mjs +2 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +95 -49
- package/es/components/hyTable/table.vue.mjs +3 -3
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +615 -336
- package/es/utils/timeUtils.mjs +8 -29
- package/es/version.mjs +1 -1
- package/lib/api/file.js +14 -0
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -469
- package/lib/components/hyAudioPlayer/audioPlayer2.vue.js +1325 -0
- package/lib/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.js +476 -0
- package/lib/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.js +5 -5
- package/lib/components/hyAudioPlayer/locale/en_US.js +22 -0
- package/lib/components/hyAudioPlayer/locale/index.js +9 -0
- package/lib/components/hyAudioPlayer/locale/zh_CN.js +22 -0
- package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +11 -9
- package/lib/components/hyForm/cpns/formItem.vue.js +2 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +94 -48
- package/lib/components/hyTable/table.vue.js +2 -2
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +2 -2
- package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +614 -335
- package/lib/utils/timeUtils.js +8 -29
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/es/components/hyVideoPlayer/videoPlayer1.vue.mjs +0 -8
- package/es/components/hyVideoPlayer/videoPlayer12.vue.mjs +0 -947
- package/lib/components/hyVideoPlayer/videoPlayer1.vue.js +0 -12
- package/lib/components/hyVideoPlayer/videoPlayer12.vue.js +0 -951
- /package/es/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
- /package/lib/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, onUnmounted, onMounted, ref, computed, nextTick, openBlock, createElementBlock,
|
|
1
|
+
import { defineComponent, onUnmounted, onMounted, watch, ref, computed, nextTick, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, createCommentVNode, normalizeStyle, createVNode, Fragment, createBlock, withCtx, createTextVNode, withDirectives, isRef, vModelText, renderList, withModifiers, vShow, renderSlot } from 'vue';
|
|
2
2
|
import '../index.mjs';
|
|
3
3
|
import '../../hooks/index.mjs';
|
|
4
4
|
import '../../utils/index.mjs';
|
|
@@ -15,11 +15,13 @@ import { HyIcon } from '../hyIcon/index.mjs';
|
|
|
15
15
|
import { HyButton } from '../hyButton/index.mjs';
|
|
16
16
|
import { formatSeconds } from '../../utils/timeUtils.mjs';
|
|
17
17
|
|
|
18
|
+
const __default__ = defineComponent({
|
|
19
|
+
name: "HyVideoPlayer"
|
|
20
|
+
});
|
|
18
21
|
const centerIconClass = "group-[.is-full]:!w-[34px] group-[.is-full]:!h-[34px]";
|
|
19
22
|
const rightIconClass = "group-[.is-full]:!w-[28px] group-[.is-full]:!h-[28px] group-[.is-full]:mr-5";
|
|
20
|
-
const floatIconClass = "!w-[26px] !h-[26px]";
|
|
21
23
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
|
-
|
|
24
|
+
...__default__,
|
|
23
25
|
props: {
|
|
24
26
|
/* 下载 */
|
|
25
27
|
downloadFilesType: {
|
|
@@ -42,6 +44,13 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
44
|
return [];
|
|
43
45
|
}
|
|
44
46
|
},
|
|
47
|
+
// 打点列表
|
|
48
|
+
pointList: {
|
|
49
|
+
type: Array,
|
|
50
|
+
default: () => {
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
},
|
|
45
54
|
// 是否使用不可拖拽弹框模式
|
|
46
55
|
contentMode: {
|
|
47
56
|
type: Boolean,
|
|
@@ -52,6 +61,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
61
|
},
|
|
53
62
|
emits: ["can-play", "play-start", "play-end", "on-time-update"],
|
|
54
63
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
64
|
+
;
|
|
55
65
|
const emit = __emit;
|
|
56
66
|
registerComponentLocale("HyVideoPlayer", index);
|
|
57
67
|
onUnmounted(() => {
|
|
@@ -62,14 +72,49 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
72
|
function useVideoPlayer(hy) {
|
|
63
73
|
const { baseMainStore } = useBaseMainStore();
|
|
64
74
|
onUnmounted(() => {
|
|
65
|
-
hy.
|
|
75
|
+
hy.destroyVideo();
|
|
76
|
+
hy.destroyVideoBoxObserver();
|
|
77
|
+
hy.destroyFullScreenEvent();
|
|
66
78
|
});
|
|
67
79
|
onMounted(() => {
|
|
68
80
|
hy.playRulesFn(3);
|
|
69
81
|
hy.speedFn(1);
|
|
70
82
|
hy.initVideo();
|
|
71
83
|
hy.initFullScreenEvent();
|
|
84
|
+
hy.initVideoBoxObserver();
|
|
85
|
+
watch(
|
|
86
|
+
() => hy.videoState.value,
|
|
87
|
+
(state) => {
|
|
88
|
+
if (state === "CAN_NOT_PLAY") {
|
|
89
|
+
hy.isHideVideo.value = false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
);
|
|
72
93
|
});
|
|
94
|
+
const progressThumbWidth2 = 10;
|
|
95
|
+
const pointReady2 = ref(false);
|
|
96
|
+
const pointMarkers2 = computed(() => {
|
|
97
|
+
const total = hy.totalTime.value;
|
|
98
|
+
const playId = hy.videoItem.value?.id;
|
|
99
|
+
if (!hy.pointReady.value || !total || !playId) return [];
|
|
100
|
+
return (hy.props.pointList || []).filter((item) => String(item.mediaFileId) === String(playId)).map((item) => ({ ...item, seconds: Number(item.time) })).filter((item) => !isNaN(item.seconds) && item.seconds >= 0 && item.seconds <= total).map((item) => ({ ...item, percent: item.seconds / total }));
|
|
101
|
+
});
|
|
102
|
+
function getPointLeft2(percent) {
|
|
103
|
+
const half = progressThumbWidth2 / 2;
|
|
104
|
+
return `calc(${half}px + (100% - ${progressThumbWidth2}px) * ${percent})`;
|
|
105
|
+
}
|
|
106
|
+
function clickPoint2(item) {
|
|
107
|
+
if (!hy.videoEl.value || hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
108
|
+
hy.jumpDuration(item.seconds);
|
|
109
|
+
hy.curTime.value = Math.floor(item.seconds);
|
|
110
|
+
hy.value.value = item.seconds / hy.totalTime.value * 100;
|
|
111
|
+
}
|
|
112
|
+
const videoRef2 = ref(null);
|
|
113
|
+
const videoBoxRef2 = ref(null);
|
|
114
|
+
const videoBoxObserver2 = ref(null);
|
|
115
|
+
const fullVideoWidth2 = ref(0);
|
|
116
|
+
const fullVideoHeight2 = ref(0);
|
|
117
|
+
const isSelfFullScreen2 = ref(false);
|
|
73
118
|
const isCanNotPlayType2 = ref(true);
|
|
74
119
|
const speedList2 = ref([
|
|
75
120
|
{ value: 0.5, label: "0.5 X" },
|
|
@@ -83,17 +128,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
128
|
{
|
|
84
129
|
value: 1,
|
|
85
130
|
label: $t$1("stopAfterPlayback"),
|
|
86
|
-
svgName: "ops-audio-
|
|
131
|
+
svgName: "ops-audio-stopplayback"
|
|
87
132
|
},
|
|
88
133
|
{
|
|
89
134
|
value: 2,
|
|
90
135
|
label: $t$1("continuousPlayback"),
|
|
91
|
-
svgName: "ops-audio-
|
|
136
|
+
svgName: "ops-audio-cycle"
|
|
92
137
|
},
|
|
93
138
|
{
|
|
94
139
|
value: 3,
|
|
95
140
|
label: $t$1("loopPlayback"),
|
|
96
|
-
svgName: "ops-audio-
|
|
141
|
+
svgName: "ops-audio-sequentialplay"
|
|
97
142
|
}
|
|
98
143
|
]);
|
|
99
144
|
const playRules2 = ref(1);
|
|
@@ -108,9 +153,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
108
153
|
const isHideVideo2 = ref(false);
|
|
109
154
|
const isFullScreen2 = ref(false);
|
|
110
155
|
const volumeValue2 = ref(100);
|
|
111
|
-
const isChangeVolume2 = ref(false);
|
|
112
156
|
const hasVLC2 = ref(true);
|
|
113
|
-
const decodeSuccess2 = ref(false);
|
|
114
157
|
const loading2 = ref(false);
|
|
115
158
|
const buffering2 = ref(false);
|
|
116
159
|
const speedLabel2 = computed(() => {
|
|
@@ -124,7 +167,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
124
167
|
return hy.props.playList.find((item) => item.id === hy.videoItem.value.id);
|
|
125
168
|
});
|
|
126
169
|
const canPlay2 = computed(() => {
|
|
127
|
-
return hy.
|
|
170
|
+
return !!hy.videoUrl.value && hy.videoState.value !== "CAN_NOT_PLAY";
|
|
128
171
|
});
|
|
129
172
|
function setIsHideVideo2(newIsHideVideo) {
|
|
130
173
|
hy.isHideVideo.value = newIsHideVideo;
|
|
@@ -138,8 +181,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
181
|
}
|
|
139
182
|
function speedFn2(newSpeed) {
|
|
140
183
|
hy.speed.value = newSpeed;
|
|
141
|
-
if (
|
|
142
|
-
|
|
184
|
+
if (hy.videoEl.value) {
|
|
185
|
+
hy.videoEl.value.playbackRate = newSpeed;
|
|
143
186
|
}
|
|
144
187
|
}
|
|
145
188
|
function findIndexFn2() {
|
|
@@ -148,7 +191,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
148
191
|
function playNext2() {
|
|
149
192
|
const findIndex = hy.findIndexFn();
|
|
150
193
|
if (findIndex !== hy.props.playList.length - 1) {
|
|
151
|
-
hy.decodeSuccess.value = false;
|
|
152
194
|
const item = hy.props.playList[findIndex + 1];
|
|
153
195
|
hy.playVideo(item.filePath, item);
|
|
154
196
|
} else {
|
|
@@ -158,16 +200,39 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
158
200
|
function playPrevious2() {
|
|
159
201
|
const findIndex = hy.findIndexFn();
|
|
160
202
|
if (findIndex > 0 && findIndex !== hy.props.playList.length) {
|
|
161
|
-
hy.decodeSuccess.value = false;
|
|
162
203
|
const item = hy.props.playList[findIndex - 1];
|
|
163
204
|
hy.playVideo(item.filePath, item);
|
|
164
205
|
} else {
|
|
165
206
|
ElMessage.warning($t$1("currentIsTheFirstItem"));
|
|
166
207
|
}
|
|
167
208
|
}
|
|
209
|
+
function safePlay2() {
|
|
210
|
+
const el = hy.videoEl.value;
|
|
211
|
+
if (!el) return;
|
|
212
|
+
const playPromise = el.play();
|
|
213
|
+
if (playPromise && playPromise.catch) {
|
|
214
|
+
playPromise.catch((err) => {
|
|
215
|
+
if (err && err.name === "AbortError") return;
|
|
216
|
+
console.warn("video play failed", err);
|
|
217
|
+
hy.buffering.value = false;
|
|
218
|
+
if (hy.videoState.value !== "CAN_NOT_PLAY") {
|
|
219
|
+
hy.videoState.value = "PAUSE";
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
}
|
|
168
224
|
async function playVideo2(filePath, item) {
|
|
169
225
|
const { isSupport } = isSupportH265();
|
|
170
226
|
if (item && item.fileCoding === "H.265" && !isSupport) {
|
|
227
|
+
hy.videoEl.value && hy.videoEl.value.pause();
|
|
228
|
+
hy.pointReady.value = false;
|
|
229
|
+
hy.loading.value = false;
|
|
230
|
+
hy.buffering.value = false;
|
|
231
|
+
hy.videoItem.value = item;
|
|
232
|
+
hy.videoUrl.value = filePath;
|
|
233
|
+
hy.curTime.value = 0;
|
|
234
|
+
hy.totalTime.value = 0;
|
|
235
|
+
hy.value.value = 0;
|
|
171
236
|
hy.videoState.value = "CAN_NOT_PLAY";
|
|
172
237
|
hy.isCanNotPlayType.value = true;
|
|
173
238
|
return;
|
|
@@ -177,9 +242,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
177
242
|
await nextTick();
|
|
178
243
|
hy.initVideo();
|
|
179
244
|
}
|
|
245
|
+
if (!hy.videoEl.value) return;
|
|
180
246
|
if (item) {
|
|
181
247
|
if (item.id !== hy.videoItem.value.id || !hy.videoEl.value.src) {
|
|
182
248
|
hy.loading.value = true;
|
|
249
|
+
hy.pointReady.value = false;
|
|
183
250
|
hy.videoItem.value = item;
|
|
184
251
|
hy.videoUrl.value = filePath;
|
|
185
252
|
hy.videoEl.value.src = filePath;
|
|
@@ -189,13 +256,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
189
256
|
return false;
|
|
190
257
|
}
|
|
191
258
|
}
|
|
192
|
-
console.log("hy.videoItem.value.playSeconds", hy.videoItem.value.playSeconds);
|
|
193
259
|
if (hy.videoItem.value.playSeconds) {
|
|
194
260
|
hy.jumpDuration(hy.videoItem.value.playSeconds);
|
|
195
261
|
}
|
|
196
262
|
nextTick(() => {
|
|
197
|
-
hy.
|
|
198
|
-
hy.videoState.value = "PLAYING";
|
|
263
|
+
hy.safePlay();
|
|
199
264
|
});
|
|
200
265
|
}
|
|
201
266
|
function createDownloadTask2(mediaFiles) {
|
|
@@ -219,6 +284,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
219
284
|
hy.videoEl.value.volume = hy.volumeValue.value / 100;
|
|
220
285
|
}
|
|
221
286
|
function getNowWh2() {
|
|
287
|
+
if (!hy.videoEl.value) {
|
|
288
|
+
hy.isDrop.value = false;
|
|
289
|
+
return;
|
|
290
|
+
}
|
|
222
291
|
hy.curTime.value = hy.totalTime.value * (hy.value.value / 100);
|
|
223
292
|
hy.videoEl.value.currentTime = hy.curTime.value;
|
|
224
293
|
hy.isDrop.value = false;
|
|
@@ -233,7 +302,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
233
302
|
}
|
|
234
303
|
function resumePlay2() {
|
|
235
304
|
if (hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
236
|
-
hy.
|
|
305
|
+
hy.safePlay();
|
|
237
306
|
}
|
|
238
307
|
function pauseVideo2() {
|
|
239
308
|
if (hy.videoState.value === "CAN_NOT_PLAY") return;
|
|
@@ -241,18 +310,24 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
241
310
|
hy.videoState.value = "PAUSE";
|
|
242
311
|
}
|
|
243
312
|
function initVideo2() {
|
|
244
|
-
hy.videoEl.value =
|
|
313
|
+
hy.videoEl.value = hy.videoRef.value;
|
|
314
|
+
if (!hy.videoEl.value) return;
|
|
245
315
|
hy.videoEl.value.addEventListener("canplay", (e) => {
|
|
246
|
-
hy.buffering.value = true;
|
|
247
316
|
hy.loading.value = false;
|
|
248
|
-
|
|
317
|
+
hy.buffering.value = false;
|
|
318
|
+
const { videoWidth, videoHeight, webkitVideoDecodedByteCount } = e.target || {};
|
|
319
|
+
const decodeFailed = webkitVideoDecodedByteCount !== void 0 && !webkitVideoDecodedByteCount;
|
|
320
|
+
if (!videoWidth || !videoHeight || decodeFailed) {
|
|
249
321
|
hy.videoEl.value.pause();
|
|
250
322
|
hy.videoState.value = "CAN_NOT_PLAY";
|
|
251
323
|
hy.isCanNotPlayType.value = true;
|
|
252
324
|
return;
|
|
253
325
|
}
|
|
254
|
-
hy.videoState.value
|
|
326
|
+
if (hy.videoState.value !== "PLAYING") {
|
|
327
|
+
hy.videoState.value = "IS_LOAD";
|
|
328
|
+
}
|
|
255
329
|
hy.totalTime.value = Math.floor(hy.videoEl.value.duration);
|
|
330
|
+
hy.pointReady.value = true;
|
|
256
331
|
emit("can-play", hy.totalTime.value);
|
|
257
332
|
});
|
|
258
333
|
hy.videoEl.value.addEventListener("play", () => {
|
|
@@ -273,15 +348,19 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
273
348
|
return;
|
|
274
349
|
}
|
|
275
350
|
hy.buffering.value = false;
|
|
276
|
-
hy.videoState.value
|
|
351
|
+
if (hy.videoState.value !== "PLAY_END") {
|
|
352
|
+
hy.videoState.value = "PAUSE";
|
|
353
|
+
}
|
|
277
354
|
});
|
|
278
355
|
hy.videoEl.value.addEventListener("ended", () => {
|
|
279
356
|
hy.videoState.value = "PLAY_END";
|
|
280
357
|
if (hy.playRules.value === 2) {
|
|
281
|
-
hy.
|
|
358
|
+
if (hy.findIndexFn() < hy.props.playList.length - 1) {
|
|
359
|
+
hy.playNext();
|
|
360
|
+
}
|
|
282
361
|
} else if (hy.playRules.value === 3) {
|
|
283
|
-
hy.videoEl.value.
|
|
284
|
-
hy.
|
|
362
|
+
hy.videoEl.value.currentTime = 0;
|
|
363
|
+
hy.safePlay();
|
|
285
364
|
}
|
|
286
365
|
emit("play-end");
|
|
287
366
|
});
|
|
@@ -291,18 +370,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
291
370
|
if (hy.isCanNotPlay(e)) {
|
|
292
371
|
return;
|
|
293
372
|
}
|
|
294
|
-
hy.
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
298
|
-
} else {
|
|
299
|
-
setTimeout(() => {
|
|
300
|
-
if (hy.videoEl.value) {
|
|
301
|
-
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
302
|
-
}
|
|
303
|
-
}, 1e3);
|
|
304
|
-
}
|
|
305
|
-
hy.value.value = hy.curTime.value / hy.totalTime.value * 100;
|
|
373
|
+
if (!hy.isDrop.value && hy.videoEl.value) {
|
|
374
|
+
hy.curTime.value = Math.floor(hy.videoEl.value.currentTime);
|
|
375
|
+
hy.value.value = hy.totalTime.value ? hy.curTime.value / hy.totalTime.value * 100 : 0;
|
|
306
376
|
emit("on-time-update", hy.curTime.value);
|
|
307
377
|
}
|
|
308
378
|
},
|
|
@@ -311,12 +381,22 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
311
381
|
hy.videoEl.value.addEventListener("error", (e) => {
|
|
312
382
|
hy.buffering.value = false;
|
|
313
383
|
hy.loading.value = false;
|
|
384
|
+
hy.pointReady.value = false;
|
|
314
385
|
hy.videoState.value = "CAN_NOT_PLAY";
|
|
315
386
|
hy.isCanNotPlayType.value = hy.isCantPlayType(e);
|
|
316
387
|
console.error("error", e);
|
|
317
388
|
hy.videoEl.value = null;
|
|
318
389
|
});
|
|
319
390
|
}
|
|
391
|
+
function destroyVideo2() {
|
|
392
|
+
const el = hy.videoEl.value;
|
|
393
|
+
if (el) {
|
|
394
|
+
el.pause();
|
|
395
|
+
el.removeAttribute("src");
|
|
396
|
+
el.load();
|
|
397
|
+
}
|
|
398
|
+
hy.videoEl.value = null;
|
|
399
|
+
}
|
|
320
400
|
function isCantPlayType2(e) {
|
|
321
401
|
if (e.target.error) {
|
|
322
402
|
const { code, message } = e.target.error;
|
|
@@ -335,15 +415,70 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
335
415
|
return false;
|
|
336
416
|
}
|
|
337
417
|
function initFullScreenEvent2() {
|
|
338
|
-
document.addEventListener("fullscreenchange",
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
418
|
+
document.addEventListener("fullscreenchange", hy.fullscreenchangeHandler);
|
|
419
|
+
}
|
|
420
|
+
function destroyFullScreenEvent2() {
|
|
421
|
+
document.removeEventListener("fullscreenchange", hy.fullscreenchangeHandler);
|
|
422
|
+
if (hy.isSelfFullScreen.value && document.fullscreenElement) {
|
|
423
|
+
hy.exitFullscreen();
|
|
424
|
+
}
|
|
425
|
+
hy.isSelfFullScreen.value = false;
|
|
426
|
+
}
|
|
427
|
+
function fullscreenchangeHandler2() {
|
|
428
|
+
if (document.fullscreenElement && hy.isSelfFullScreen.value) {
|
|
429
|
+
hy.isFullScreen.value = true;
|
|
430
|
+
hy.isHideVideo.value = false;
|
|
431
|
+
} else if (!document.fullscreenElement) {
|
|
432
|
+
hy.isFullScreen.value = false;
|
|
433
|
+
hy.isSelfFullScreen.value = false;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
function calculate16To9SizeInContainer2(containerWidth, containerHeight) {
|
|
437
|
+
const caseAWidth = containerWidth;
|
|
438
|
+
const caseAHeight = containerWidth * 9 / 16;
|
|
439
|
+
const caseBHeight = containerHeight;
|
|
440
|
+
const caseBWidth = containerHeight * 16 / 9;
|
|
441
|
+
let finalWidth, finalHeight;
|
|
442
|
+
if (caseAHeight <= containerHeight) {
|
|
443
|
+
finalWidth = caseAWidth;
|
|
444
|
+
finalHeight = caseAHeight;
|
|
445
|
+
} else {
|
|
446
|
+
finalWidth = caseBWidth;
|
|
447
|
+
finalHeight = caseBHeight;
|
|
448
|
+
}
|
|
449
|
+
return {
|
|
450
|
+
width: Math.floor(finalWidth),
|
|
451
|
+
height: Math.floor(finalHeight)
|
|
452
|
+
};
|
|
453
|
+
}
|
|
454
|
+
function updateFullVideoSize2() {
|
|
455
|
+
const boxEl = hy.videoBoxRef.value;
|
|
456
|
+
if (!hy.isFullScreen.value || !boxEl) {
|
|
457
|
+
hy.fullVideoWidth.value = 0;
|
|
458
|
+
hy.fullVideoHeight.value = 0;
|
|
459
|
+
return;
|
|
460
|
+
}
|
|
461
|
+
const { clientWidth, clientHeight } = boxEl;
|
|
462
|
+
if (!clientWidth || !clientHeight) return;
|
|
463
|
+
const { width, height } = hy.calculate16To9SizeInContainer(clientWidth, clientHeight);
|
|
464
|
+
hy.fullVideoWidth.value = width;
|
|
465
|
+
hy.fullVideoHeight.value = height;
|
|
466
|
+
}
|
|
467
|
+
function initVideoBoxObserver2() {
|
|
468
|
+
if (!hy.videoBoxRef.value || typeof ResizeObserver === "undefined") return;
|
|
469
|
+
hy.videoBoxObserver.value = new ResizeObserver(() => {
|
|
470
|
+
hy.updateFullVideoSize();
|
|
344
471
|
});
|
|
472
|
+
hy.videoBoxObserver.value.observe(hy.videoBoxRef.value);
|
|
473
|
+
}
|
|
474
|
+
function destroyVideoBoxObserver2() {
|
|
475
|
+
if (hy.videoBoxObserver.value) {
|
|
476
|
+
hy.videoBoxObserver.value.disconnect();
|
|
477
|
+
hy.videoBoxObserver.value = null;
|
|
478
|
+
}
|
|
345
479
|
}
|
|
346
480
|
function jumpDuration2(s) {
|
|
481
|
+
if (!hy.videoEl.value) return;
|
|
347
482
|
hy.videoEl.value.currentTime = s;
|
|
348
483
|
}
|
|
349
484
|
function clickFullScreen2() {
|
|
@@ -356,12 +491,15 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
356
491
|
function fullScreen2() {
|
|
357
492
|
const el = document.documentElement;
|
|
358
493
|
if (el.requestFullscreen) {
|
|
359
|
-
|
|
494
|
+
hy.isSelfFullScreen.value = true;
|
|
495
|
+
el.requestFullscreen().catch(() => {
|
|
496
|
+
hy.isSelfFullScreen.value = false;
|
|
497
|
+
});
|
|
360
498
|
}
|
|
361
499
|
}
|
|
362
500
|
function exitFullscreen2() {
|
|
363
501
|
const el = document;
|
|
364
|
-
if (el.exitFullscreen) {
|
|
502
|
+
if (el.exitFullscreen && el.fullscreenElement) {
|
|
365
503
|
el.exitFullscreen();
|
|
366
504
|
}
|
|
367
505
|
}
|
|
@@ -373,7 +511,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
373
511
|
});
|
|
374
512
|
}
|
|
375
513
|
function downloadVLC2() {
|
|
376
|
-
const url = JSON.parse(
|
|
514
|
+
const url = JSON.parse(window.sessionStorage.getItem("entryList"))?.toolSupport;
|
|
377
515
|
if (!url) {
|
|
378
516
|
ElMessage.error($t$1("dataError"));
|
|
379
517
|
return;
|
|
@@ -400,6 +538,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
400
538
|
}
|
|
401
539
|
}
|
|
402
540
|
return {
|
|
541
|
+
progressThumbWidth: progressThumbWidth2,
|
|
542
|
+
pointReady: pointReady2,
|
|
543
|
+
pointMarkers: pointMarkers2,
|
|
544
|
+
getPointLeft: getPointLeft2,
|
|
545
|
+
clickPoint: clickPoint2,
|
|
546
|
+
videoRef: videoRef2,
|
|
547
|
+
videoBoxRef: videoBoxRef2,
|
|
548
|
+
videoBoxObserver: videoBoxObserver2,
|
|
549
|
+
fullVideoWidth: fullVideoWidth2,
|
|
550
|
+
fullVideoHeight: fullVideoHeight2,
|
|
551
|
+
isSelfFullScreen: isSelfFullScreen2,
|
|
403
552
|
isCanNotPlayType: isCanNotPlayType2,
|
|
404
553
|
speedList: speedList2,
|
|
405
554
|
speed: speed2,
|
|
@@ -416,9 +565,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
416
565
|
isHideVideo: isHideVideo2,
|
|
417
566
|
isFullScreen: isFullScreen2,
|
|
418
567
|
volumeValue: volumeValue2,
|
|
419
|
-
isChangeVolume: isChangeVolume2,
|
|
420
568
|
hasVLC: hasVLC2,
|
|
421
|
-
decodeSuccess: decodeSuccess2,
|
|
422
569
|
loading: loading2,
|
|
423
570
|
buffering: buffering2,
|
|
424
571
|
speedLabel: speedLabel2,
|
|
@@ -430,6 +577,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
430
577
|
findIndexFn: findIndexFn2,
|
|
431
578
|
playNext: playNext2,
|
|
432
579
|
playPrevious: playPrevious2,
|
|
580
|
+
safePlay: safePlay2,
|
|
433
581
|
playVideo: playVideo2,
|
|
434
582
|
createDownloadTask: createDownloadTask2,
|
|
435
583
|
downloadFn: downloadFn2,
|
|
@@ -439,9 +587,16 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
439
587
|
resumePlay: resumePlay2,
|
|
440
588
|
pauseVideo: pauseVideo2,
|
|
441
589
|
initVideo: initVideo2,
|
|
590
|
+
destroyVideo: destroyVideo2,
|
|
442
591
|
isCantPlayType: isCantPlayType2,
|
|
443
592
|
isCanNotPlay: isCanNotPlay2,
|
|
444
593
|
initFullScreenEvent: initFullScreenEvent2,
|
|
594
|
+
destroyFullScreenEvent: destroyFullScreenEvent2,
|
|
595
|
+
fullscreenchangeHandler: fullscreenchangeHandler2,
|
|
596
|
+
calculate16To9SizeInContainer: calculate16To9SizeInContainer2,
|
|
597
|
+
updateFullVideoSize: updateFullVideoSize2,
|
|
598
|
+
initVideoBoxObserver: initVideoBoxObserver2,
|
|
599
|
+
destroyVideoBoxObserver: destroyVideoBoxObserver2,
|
|
445
600
|
jumpDuration: jumpDuration2,
|
|
446
601
|
clickFullScreen: clickFullScreen2,
|
|
447
602
|
fullScreen: fullScreen2,
|
|
@@ -452,29 +607,38 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
452
607
|
}
|
|
453
608
|
const {
|
|
454
609
|
buffering,
|
|
610
|
+
calculate16To9SizeInContainer,
|
|
455
611
|
canPlay,
|
|
456
612
|
changeVolume,
|
|
457
613
|
clickFullScreen,
|
|
614
|
+
clickPoint,
|
|
458
615
|
createDownloadTask,
|
|
459
616
|
curTime,
|
|
460
|
-
|
|
617
|
+
destroyFullScreenEvent,
|
|
618
|
+
destroyVideo,
|
|
619
|
+
destroyVideoBoxObserver,
|
|
461
620
|
downloadFn,
|
|
462
621
|
downloadVLC,
|
|
463
622
|
exitFullscreen,
|
|
464
623
|
findIndexFn,
|
|
465
624
|
fullScreen,
|
|
625
|
+
fullVideoHeight,
|
|
626
|
+
fullVideoWidth,
|
|
627
|
+
fullscreenchangeHandler,
|
|
466
628
|
getNowWh,
|
|
467
629
|
getPercent,
|
|
630
|
+
getPointLeft,
|
|
468
631
|
hasVLC,
|
|
469
632
|
initFullScreenEvent,
|
|
470
633
|
initVideo,
|
|
634
|
+
initVideoBoxObserver,
|
|
471
635
|
isCanNotPlay,
|
|
472
636
|
isCanNotPlayType,
|
|
473
637
|
isCantPlayType,
|
|
474
|
-
isChangeVolume,
|
|
475
638
|
isDrop,
|
|
476
639
|
isFullScreen,
|
|
477
640
|
isHideVideo,
|
|
641
|
+
isSelfFullScreen,
|
|
478
642
|
jumpDuration,
|
|
479
643
|
loading,
|
|
480
644
|
openVLC,
|
|
@@ -486,26 +650,44 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
486
650
|
playRulesFn,
|
|
487
651
|
playRuleslist,
|
|
488
652
|
playVideo,
|
|
653
|
+
pointMarkers,
|
|
654
|
+
pointReady,
|
|
655
|
+
progressThumbWidth,
|
|
489
656
|
resumePlay,
|
|
657
|
+
safePlay,
|
|
490
658
|
setIsHideVideo,
|
|
491
659
|
speed,
|
|
492
660
|
speedFn,
|
|
493
661
|
speedLabel,
|
|
494
662
|
speedList,
|
|
495
663
|
totalTime,
|
|
664
|
+
updateFullVideoSize,
|
|
496
665
|
value,
|
|
666
|
+
videoBoxObserver,
|
|
667
|
+
videoBoxRef,
|
|
497
668
|
videoEl,
|
|
498
669
|
videoItem,
|
|
670
|
+
videoRef,
|
|
499
671
|
videoState,
|
|
500
672
|
videoUrl,
|
|
501
673
|
volumeValue
|
|
502
674
|
} = useMixins({ props }, [useVideoPlayer]);
|
|
503
675
|
__expose({
|
|
504
|
-
playVideo
|
|
676
|
+
playVideo,
|
|
677
|
+
pauseVideo,
|
|
678
|
+
resumePlay,
|
|
679
|
+
jumpDuration
|
|
505
680
|
});
|
|
506
681
|
return (_ctx, _cache) => {
|
|
507
|
-
return openBlock(), createElementBlock(
|
|
508
|
-
|
|
682
|
+
return openBlock(), createElementBlock(
|
|
683
|
+
"div",
|
|
684
|
+
{
|
|
685
|
+
class: normalizeClass([
|
|
686
|
+
"w-full bg-background mb-2 flex flex-col text-xs text-main box-border border border-border rounded overflow-hidden",
|
|
687
|
+
unref(isFullScreen) ? "full-video-player-content is-full fixed left-0 top-0 z-[99999] h-full" : "relative"
|
|
688
|
+
])
|
|
689
|
+
},
|
|
690
|
+
[
|
|
509
691
|
createElementVNode(
|
|
510
692
|
"div",
|
|
511
693
|
{
|
|
@@ -518,140 +700,163 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
518
700
|
3
|
|
519
701
|
/* TEXT, CLASS */
|
|
520
702
|
),
|
|
703
|
+
createCommentVNode(" \u753B\u9762\u5BBD\u9AD8 "),
|
|
521
704
|
createElementVNode(
|
|
522
705
|
"div",
|
|
523
706
|
{
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
}, "overflow-hidden relative"]),
|
|
528
|
-
style: { "aspect-ratio": "16 / 9" }
|
|
707
|
+
ref_key: "videoBoxRef",
|
|
708
|
+
ref: videoBoxRef,
|
|
709
|
+
class: normalizeClass(unref(isFullScreen) ? "flex items-center justify-center flex-grow h-0" : "")
|
|
529
710
|
},
|
|
530
711
|
[
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
"
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
unref(videoItem) && unref(videoItem).csFile === 1 && unref(videoItem).onlineState !== 1 ? (openBlock(), createElementBlock(
|
|
550
|
-
Fragment,
|
|
551
|
-
{ key: 0 },
|
|
552
|
-
[
|
|
553
|
-
createElementVNode("div", { class: "w-[54px] h-[54px] rounded-full border-[2px] border-danger-2 flex justify-center items-center shadow-[0px_0px_10px_2px_var(--danger-2)]" }, [
|
|
554
|
-
createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-danger-2 flex justify-center items-center" }, [
|
|
555
|
-
createVNode(unref(HyIcon), {
|
|
556
|
-
"svg-name": "ops-button-icon-brok-link",
|
|
557
|
-
class: "!w-[24px] !h-[24px] text-danger-2"
|
|
558
|
-
})
|
|
559
|
-
])
|
|
560
|
-
]),
|
|
561
|
-
createElementVNode(
|
|
562
|
-
"span",
|
|
563
|
-
{ class: "text-xs text-auxiliary mt-4" },
|
|
564
|
-
toDisplayString($t$1("fileLoadingFailed")),
|
|
565
|
-
1
|
|
566
|
-
/* TEXT */
|
|
567
|
-
),
|
|
712
|
+
createElementVNode(
|
|
713
|
+
"div",
|
|
714
|
+
{
|
|
715
|
+
class: normalizeClass([{
|
|
716
|
+
"w-[0]": unref(isHideVideo),
|
|
717
|
+
"w-full": !unref(isHideVideo) && !(unref(isFullScreen) && unref(fullVideoWidth))
|
|
718
|
+
}, "overflow-hidden relative duration-500 flex-shrink-0"]),
|
|
719
|
+
style: normalizeStyle({
|
|
720
|
+
aspectRatio: "16 / 9",
|
|
721
|
+
width: unref(isFullScreen) && unref(fullVideoWidth) && !unref(isHideVideo) ? `${unref(fullVideoWidth)}px` : ""
|
|
722
|
+
})
|
|
723
|
+
},
|
|
724
|
+
[
|
|
725
|
+
(unref(loading) || unref(buffering)) && unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
726
|
+
key: 0,
|
|
727
|
+
class: "w-full h-full flex flex-col justify-center items-center absolute top-0 left-0"
|
|
728
|
+
}, [
|
|
729
|
+
createVNode(_sfc_main$1),
|
|
568
730
|
createElementVNode(
|
|
569
731
|
"span",
|
|
570
|
-
{ class: "text-xs text-
|
|
571
|
-
toDisplayString($t$1("
|
|
732
|
+
{ class: "text-xs text-theme mt-4" },
|
|
733
|
+
"..." + toDisplayString($t$1("videoResourcesAreLoading")) + "...",
|
|
572
734
|
1
|
|
573
735
|
/* TEXT */
|
|
574
736
|
)
|
|
575
|
-
],
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
class: "
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
"svg-name": "ops-audio-media-center-left-ripple",
|
|
593
|
-
class: "!w-[12px] !h-[12px]"
|
|
594
|
-
})
|
|
595
|
-
]),
|
|
596
|
-
createElementVNode(
|
|
597
|
-
"span",
|
|
598
|
-
{ class: "text-theme mt-3 mb-[14px]" },
|
|
599
|
-
toDisplayString(unref(isCanNotPlayType) ? $t$1("vlcPlayerTip") : $t$1("videoCannotBePlayed")),
|
|
600
|
-
1
|
|
601
|
-
/* TEXT */
|
|
602
|
-
),
|
|
603
|
-
unref(isCanNotPlayType) ? (openBlock(), createElementBlock("div", {
|
|
604
|
-
key: 0,
|
|
605
|
-
class: "flex justify-center"
|
|
606
|
-
}, [
|
|
607
|
-
unref(hasVLC) ? (openBlock(), createBlock(unref(HyButton), {
|
|
608
|
-
key: 0,
|
|
609
|
-
class: "",
|
|
610
|
-
onClick: unref(openVLC)
|
|
611
|
-
}, {
|
|
612
|
-
default: withCtx(() => [
|
|
613
|
-
createTextVNode(
|
|
614
|
-
toDisplayString($t$1("clickPlay")),
|
|
615
|
-
1
|
|
616
|
-
/* TEXT */
|
|
617
|
-
)
|
|
737
|
+
])) : createCommentVNode("v-if", true),
|
|
738
|
+
unref(videoState) === "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
739
|
+
key: 1,
|
|
740
|
+
class: "w-full h-full flex flex-col justify-center items-center"
|
|
741
|
+
}, [
|
|
742
|
+
createCommentVNode(" \u91C7\u96C6\u7AD9\u6587\u4EF6 "),
|
|
743
|
+
unref(videoItem) && unref(videoItem).csFile === 1 && unref(videoItem).onlineState !== 1 ? (openBlock(), createElementBlock(
|
|
744
|
+
Fragment,
|
|
745
|
+
{ key: 0 },
|
|
746
|
+
[
|
|
747
|
+
createElementVNode("div", { class: "w-[54px] h-[54px] rounded-full border-[2px] border-danger-2 flex justify-center items-center shadow-[0px_0px_10px_2px_var(--danger-2)]" }, [
|
|
748
|
+
createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-danger-2 flex justify-center items-center" }, [
|
|
749
|
+
createVNode(unref(HyIcon), {
|
|
750
|
+
"svg-name": "ops-button-icon-brok-link",
|
|
751
|
+
class: "!w-[24px] !h-[24px] text-danger-2"
|
|
752
|
+
})
|
|
753
|
+
])
|
|
618
754
|
]),
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
755
|
+
createElementVNode(
|
|
756
|
+
"span",
|
|
757
|
+
{ class: "text-xs text-auxiliary mt-4" },
|
|
758
|
+
toDisplayString($t$1("fileLoadingFailed")),
|
|
759
|
+
1
|
|
760
|
+
/* TEXT */
|
|
761
|
+
),
|
|
762
|
+
createElementVNode(
|
|
763
|
+
"span",
|
|
764
|
+
{ class: "text-xs text-auxiliary" },
|
|
765
|
+
toDisplayString($t$1("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
|
|
766
|
+
1
|
|
767
|
+
/* TEXT */
|
|
768
|
+
)
|
|
769
|
+
],
|
|
770
|
+
64
|
|
771
|
+
/* STABLE_FRAGMENT */
|
|
772
|
+
)) : (openBlock(), createElementBlock(
|
|
773
|
+
Fragment,
|
|
774
|
+
{ key: 1 },
|
|
775
|
+
[
|
|
776
|
+
createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
|
|
777
|
+
createVNode(unref(HyIcon), {
|
|
778
|
+
"svg-name": "ops-audio-media-center-right-ripple",
|
|
779
|
+
class: "!w-[12px] !h-[12px]"
|
|
780
|
+
}),
|
|
781
|
+
createVNode(unref(HyIcon), {
|
|
782
|
+
"svg-name": "ops-audio-media-center-video",
|
|
783
|
+
class: "!w-[40px] !h-[40px] mx-1"
|
|
784
|
+
}),
|
|
785
|
+
createVNode(unref(HyIcon), {
|
|
786
|
+
"svg-name": "ops-audio-media-center-left-ripple",
|
|
787
|
+
class: "!w-[12px] !h-[12px]"
|
|
788
|
+
})
|
|
632
789
|
]),
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
790
|
+
createElementVNode(
|
|
791
|
+
"span",
|
|
792
|
+
{ class: "text-theme mt-3 mb-[14px]" },
|
|
793
|
+
toDisplayString(unref(isCanNotPlayType) ? $t$1("vlcPlayerTip") : $t$1("videoCannotBePlayed")),
|
|
794
|
+
1
|
|
795
|
+
/* TEXT */
|
|
796
|
+
),
|
|
797
|
+
unref(isCanNotPlayType) ? (openBlock(), createElementBlock("div", {
|
|
798
|
+
key: 0,
|
|
799
|
+
class: "flex justify-center"
|
|
800
|
+
}, [
|
|
801
|
+
unref(hasVLC) ? (openBlock(), createBlock(unref(HyButton), {
|
|
802
|
+
key: 0,
|
|
803
|
+
class: "",
|
|
804
|
+
onClick: unref(openVLC)
|
|
805
|
+
}, {
|
|
806
|
+
default: withCtx(() => [
|
|
807
|
+
createTextVNode(
|
|
808
|
+
toDisplayString($t$1("clickPlay")),
|
|
809
|
+
1
|
|
810
|
+
/* TEXT */
|
|
811
|
+
)
|
|
812
|
+
]),
|
|
813
|
+
_: 1
|
|
814
|
+
/* STABLE */
|
|
815
|
+
}, 8, ["onClick"])) : (openBlock(), createBlock(unref(HyButton), {
|
|
816
|
+
key: 1,
|
|
817
|
+
class: "",
|
|
818
|
+
onClick: unref(downloadVLC)
|
|
819
|
+
}, {
|
|
820
|
+
default: withCtx(() => [
|
|
821
|
+
createTextVNode(
|
|
822
|
+
toDisplayString($t$1("toDownloadVlc")),
|
|
823
|
+
1
|
|
824
|
+
/* TEXT */
|
|
825
|
+
)
|
|
826
|
+
]),
|
|
827
|
+
_: 1
|
|
828
|
+
/* STABLE */
|
|
829
|
+
}, 8, ["onClick"]))
|
|
830
|
+
])) : createCommentVNode("v-if", true)
|
|
831
|
+
],
|
|
832
|
+
64
|
|
833
|
+
/* STABLE_FRAGMENT */
|
|
834
|
+
))
|
|
835
|
+
])) : (openBlock(), createElementBlock(
|
|
836
|
+
"video",
|
|
837
|
+
{
|
|
838
|
+
key: 2,
|
|
839
|
+
ref_key: "videoRef",
|
|
840
|
+
ref: videoRef,
|
|
841
|
+
class: "w-full h-full"
|
|
842
|
+
},
|
|
843
|
+
[
|
|
844
|
+
createElementVNode("source", { type: "video/mp4" }),
|
|
845
|
+
createElementVNode("source", { type: "video/webm" }),
|
|
846
|
+
createElementVNode("source", { type: "video/ogg" }),
|
|
847
|
+
createTextVNode(
|
|
848
|
+
" " + toDisplayString($t$1("yourBrowserDoesNotSupportHTMLVideoPlayback")),
|
|
849
|
+
1
|
|
850
|
+
/* TEXT */
|
|
851
|
+
)
|
|
852
|
+
],
|
|
853
|
+
512
|
|
854
|
+
/* NEED_PATCH */
|
|
855
|
+
))
|
|
856
|
+
],
|
|
857
|
+
6
|
|
858
|
+
/* CLASS, STYLE */
|
|
859
|
+
)
|
|
655
860
|
],
|
|
656
861
|
2
|
|
657
862
|
/* CLASS */
|
|
@@ -659,32 +864,86 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
659
864
|
createCommentVNode(" \u63A7\u5236\u8FDB\u5EA6 "),
|
|
660
865
|
createElementVNode("div", { class: "px-2 box-border border-b border-border" }, [
|
|
661
866
|
createCommentVNode(" \u8FDB\u5EA6\u6761 "),
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
unref(
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
"onUpdate:modelValue"
|
|
677
|
-
|
|
678
|
-
|
|
867
|
+
createElementVNode("div", { class: "relative flex items-center mt-2" }, [
|
|
868
|
+
withDirectives(createElementVNode("input", {
|
|
869
|
+
max: "100",
|
|
870
|
+
class: "hy-video-progress relative w-[100%] h-[6px] rounded-[20px] outline-none appearance-none bg-[#eaf5f9]",
|
|
871
|
+
style: normalizeStyle({
|
|
872
|
+
background: `linear-gradient(to right, rgb(var(--hy-theme), 1) ${unref(getPercent)(
|
|
873
|
+
unref(value),
|
|
874
|
+
100
|
|
875
|
+
)}%, rgb(var(--hy-theme), 0.5) ${unref(getPercent)(unref(value), 100)}% `
|
|
876
|
+
}),
|
|
877
|
+
type: "range",
|
|
878
|
+
onMouseup: ($event) => unref(getNowWh)($event),
|
|
879
|
+
onMousedown: ($event) => isDrop.value = true,
|
|
880
|
+
"onUpdate:modelValue": ($event) => isRef(value) ? value.value = $event : null
|
|
881
|
+
}, null, 44, ["onMouseup", "onMousedown", "onUpdate:modelValue"]), [
|
|
882
|
+
[vModelText, unref(value)]
|
|
883
|
+
]),
|
|
884
|
+
createCommentVNode(" \u6253\u70B9\uFF08\u5BB9\u5668\u4E0D\u54CD\u5E94\u9F20\u6807\uFF0C\u4E0D\u5F71\u54CD\u8FDB\u5EA6\u6761\u62D6\u52A8\uFF0C\u53EA\u6709\u5706\u70B9\u53EF\u70B9\u51FB\uFF09 "),
|
|
885
|
+
createElementVNode("div", { class: "absolute left-0 right-0 top-1/2 h-0 pointer-events-none" }, [
|
|
886
|
+
(openBlock(true), createElementBlock(
|
|
887
|
+
Fragment,
|
|
888
|
+
null,
|
|
889
|
+
renderList(unref(pointMarkers), (item, index) => {
|
|
890
|
+
return openBlock(), createBlock(unref(ElPopover), {
|
|
891
|
+
key: item.id || index,
|
|
892
|
+
placement: "top",
|
|
893
|
+
teleported: !unref(isFullScreen),
|
|
894
|
+
"popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[200px]",
|
|
895
|
+
trigger: "hover"
|
|
896
|
+
}, {
|
|
897
|
+
reference: withCtx(() => [
|
|
898
|
+
createElementVNode("div", {
|
|
899
|
+
class: "absolute top-0 w-[6px] h-[6px] bg-main rounded-full -translate-x-1/2 -translate-y-1/2 pointer-events-auto cursor-pointer z-[1] hover:z-10",
|
|
900
|
+
style: normalizeStyle({ left: unref(getPointLeft)(item.percent) }),
|
|
901
|
+
onMousedown: withModifiers(() => {
|
|
902
|
+
}, ["stop"]),
|
|
903
|
+
onClick: withModifiers(($event) => unref(clickPoint)(item), ["stop"])
|
|
904
|
+
}, null, 44, ["onMousedown", "onClick"])
|
|
905
|
+
]),
|
|
906
|
+
default: withCtx(() => [
|
|
907
|
+
createElementVNode("div", { class: "text-xs text-main w-full px-3 py-2 box-border" }, [
|
|
908
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
909
|
+
createElementVNode("div", { class: "w-[2px] h-[12px] bg-theme rounded" }),
|
|
910
|
+
createElementVNode(
|
|
911
|
+
"span",
|
|
912
|
+
{ class: "ml-2" },
|
|
913
|
+
toDisplayString(unref(formatSeconds)(item.time)),
|
|
914
|
+
1
|
|
915
|
+
/* TEXT */
|
|
916
|
+
)
|
|
917
|
+
]),
|
|
918
|
+
createElementVNode(
|
|
919
|
+
"div",
|
|
920
|
+
{ class: "over_one_line mt-1" },
|
|
921
|
+
toDisplayString(item.content),
|
|
922
|
+
1
|
|
923
|
+
/* TEXT */
|
|
924
|
+
)
|
|
925
|
+
])
|
|
926
|
+
]),
|
|
927
|
+
_: 2
|
|
928
|
+
/* DYNAMIC */
|
|
929
|
+
}, 1032, ["teleported"]);
|
|
930
|
+
}),
|
|
931
|
+
128
|
|
932
|
+
/* KEYED_FRAGMENT */
|
|
933
|
+
))
|
|
934
|
+
])
|
|
679
935
|
]),
|
|
680
936
|
createElementVNode("div", { class: "flex items-center justify-center relative h-[46px]" }, [
|
|
681
|
-
|
|
937
|
+
unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
938
|
+
key: 0,
|
|
939
|
+
class: "absolute left-[0px] flex w-[120px] leading-[20px] text-auxiliary"
|
|
940
|
+
}, [
|
|
682
941
|
createElementVNode(
|
|
683
942
|
"span",
|
|
684
943
|
{
|
|
685
944
|
class: normalizeClass(["is-play-seconds", { "text-main": unref(curTime) !== 0 }])
|
|
686
945
|
},
|
|
687
|
-
toDisplayString(unref(formatSeconds)(unref(curTime)
|
|
946
|
+
toDisplayString(unref(formatSeconds)(unref(curTime))) + '" ',
|
|
688
947
|
3
|
|
689
948
|
/* TEXT, CLASS */
|
|
690
949
|
),
|
|
@@ -696,60 +955,66 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
696
955
|
1
|
|
697
956
|
/* TEXT */
|
|
698
957
|
)
|
|
699
|
-
]),
|
|
700
|
-
|
|
701
|
-
key: 0,
|
|
702
|
-
class: "center-operator flex w-[88px] justify-between items-center group-[.is-full]:h-[34px]"
|
|
703
|
-
}, [
|
|
958
|
+
])) : createCommentVNode("v-if", true),
|
|
959
|
+
createElementVNode("div", { class: "center-operator flex w-[88px] justify-between items-center group-[.is-full]:h-[34px]" }, [
|
|
704
960
|
createElementVNode("span", { onClick: unref(playPrevious) }, [
|
|
705
961
|
createVNode(unref(HyIcon), {
|
|
706
|
-
"svg-name": "ops-audio-
|
|
962
|
+
"svg-name": "ops-audio-previous",
|
|
707
963
|
class: normalizeClass(centerIconClass)
|
|
708
964
|
})
|
|
709
965
|
], 8, ["onClick"]),
|
|
710
|
-
unref(
|
|
966
|
+
!unref(canPlay) ? (openBlock(), createElementBlock("span", {
|
|
711
967
|
key: 0,
|
|
712
|
-
|
|
713
|
-
}, [
|
|
714
|
-
createVNode(unref(HyIcon), {
|
|
715
|
-
"svg-name": "ops-audio-audio-play-btn",
|
|
716
|
-
class: normalizeClass(centerIconClass)
|
|
717
|
-
})
|
|
718
|
-
], 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
719
|
-
unref(videoState) === "PLAYING" ? (openBlock(), createElementBlock("span", {
|
|
720
|
-
key: 1,
|
|
721
|
-
onClick: unref(pauseVideo)
|
|
968
|
+
class: "text-info cursor-not-allowed"
|
|
722
969
|
}, [
|
|
723
970
|
createVNode(unref(HyIcon), {
|
|
724
|
-
"svg-name": "ops-audio-audio-
|
|
971
|
+
"svg-name": "ops-audio-media-center-audio-play",
|
|
725
972
|
class: normalizeClass(centerIconClass)
|
|
726
973
|
})
|
|
727
|
-
]
|
|
974
|
+
])) : (openBlock(), createElementBlock("span", { key: 1 }, [
|
|
975
|
+
unref(videoState) !== "PLAYING" ? (openBlock(), createElementBlock("span", {
|
|
976
|
+
key: 0,
|
|
977
|
+
onClick: ($event) => unref(playVideo)(unref(videoUrl))
|
|
978
|
+
}, [
|
|
979
|
+
createVNode(unref(HyIcon), {
|
|
980
|
+
"svg-name": "ops-audio-media-center-audio-play",
|
|
981
|
+
class: normalizeClass(centerIconClass)
|
|
982
|
+
})
|
|
983
|
+
], 8, ["onClick"])) : (openBlock(), createElementBlock("span", {
|
|
984
|
+
key: 1,
|
|
985
|
+
onClick: unref(pauseVideo)
|
|
986
|
+
}, [
|
|
987
|
+
createVNode(unref(HyIcon), {
|
|
988
|
+
"svg-name": "ops-audio-media-center-audio-pause",
|
|
989
|
+
class: normalizeClass(centerIconClass)
|
|
990
|
+
})
|
|
991
|
+
], 8, ["onClick"]))
|
|
992
|
+
])),
|
|
728
993
|
createElementVNode("span", { onClick: unref(playNext) }, [
|
|
729
994
|
createVNode(unref(HyIcon), {
|
|
730
|
-
"svg-name": "ops-audio-
|
|
995
|
+
"svg-name": "ops-audio-next",
|
|
731
996
|
class: normalizeClass(centerIconClass)
|
|
732
997
|
})
|
|
733
998
|
], 8, ["onClick"])
|
|
734
|
-
])
|
|
735
|
-
|
|
999
|
+
]),
|
|
1000
|
+
unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("div", {
|
|
1001
|
+
key: 1,
|
|
1002
|
+
class: "absolute right-[0px] flex items-center justify-end"
|
|
1003
|
+
}, [
|
|
736
1004
|
createCommentVNode(" \u901F\u5EA6 "),
|
|
737
1005
|
createVNode(unref(ElPopover), {
|
|
738
1006
|
placement: "top",
|
|
739
|
-
appendToBody: false,
|
|
740
1007
|
"popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[62px]",
|
|
741
1008
|
trigger: "click"
|
|
742
1009
|
}, {
|
|
743
1010
|
reference: withCtx(() => [
|
|
744
|
-
createElementVNode(
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
)
|
|
752
|
-
])
|
|
1011
|
+
createElementVNode(
|
|
1012
|
+
"div",
|
|
1013
|
+
{ class: "w-[44px] h-[22px] leading-[18px] mr-3 overflow-hidden rounded border border-main text-center clickBox px-1 box-border" },
|
|
1014
|
+
toDisplayString(unref(speedLabel)),
|
|
1015
|
+
1
|
|
1016
|
+
/* TEXT */
|
|
1017
|
+
)
|
|
753
1018
|
]),
|
|
754
1019
|
default: withCtx(() => [
|
|
755
1020
|
createElementVNode("div", { class: "flex items-center justify-center p-[10px_0]" }, [
|
|
@@ -759,7 +1024,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
759
1024
|
null,
|
|
760
1025
|
renderList(unref(speedList), (item, index) => {
|
|
761
1026
|
return openBlock(), createElementBlock("li", {
|
|
762
|
-
class: normalizeClass(["clickBox h-[26px] leading-[26px] text-center hover:text-theme hover:bg-background-3", { "text-theme bg-background-3": item.value === unref(speed) }]),
|
|
1027
|
+
class: normalizeClass(["clickBox h-[26px] leading-[26px] text-center hover:text-theme hover:bg-background-3 text-xs", { "text-theme bg-background-3": item.value === unref(speed) }]),
|
|
763
1028
|
onClick: ($event) => unref(speedFn)(item.value),
|
|
764
1029
|
key: index
|
|
765
1030
|
}, toDisplayString(item.label), 11, ["onClick"]);
|
|
@@ -776,7 +1041,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
776
1041
|
createCommentVNode(" \u58F0\u97F3 "),
|
|
777
1042
|
createVNode(unref(ElPopover), {
|
|
778
1043
|
placement: "top",
|
|
779
|
-
|
|
1044
|
+
teleported: !unref(isFullScreen),
|
|
780
1045
|
"popper-class": "popover_volumeSlider w-[40px]",
|
|
781
1046
|
trigger: "click"
|
|
782
1047
|
}, {
|
|
@@ -786,7 +1051,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
786
1051
|
class: "item",
|
|
787
1052
|
effect: "dark",
|
|
788
1053
|
content: $t$1("adjustPlaybackVolume"),
|
|
789
|
-
placement: "top"
|
|
1054
|
+
placement: "top",
|
|
1055
|
+
teleported: !unref(isFullScreen)
|
|
790
1056
|
}, {
|
|
791
1057
|
default: withCtx(() => [
|
|
792
1058
|
createVNode(unref(HyIcon), {
|
|
@@ -796,7 +1062,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
796
1062
|
]),
|
|
797
1063
|
_: 1
|
|
798
1064
|
/* STABLE */
|
|
799
|
-
}, 8, ["content"])
|
|
1065
|
+
}, 8, ["content", "teleported"])
|
|
800
1066
|
])
|
|
801
1067
|
]),
|
|
802
1068
|
default: withCtx(() => [
|
|
@@ -813,137 +1079,150 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
813
1079
|
]),
|
|
814
1080
|
_: 1
|
|
815
1081
|
/* STABLE */
|
|
816
|
-
}),
|
|
1082
|
+
}, 8, ["teleported"]),
|
|
817
1083
|
createCommentVNode(" \u653E\u5927 "),
|
|
818
1084
|
createVNode(unref(ElTooltip), {
|
|
819
1085
|
class: "item clickBox",
|
|
820
1086
|
effect: "dark",
|
|
821
1087
|
content: $t$1("fullScreenSwitch"),
|
|
822
1088
|
placement: "top",
|
|
823
|
-
|
|
1089
|
+
teleported: !unref(isFullScreen)
|
|
824
1090
|
}, {
|
|
825
1091
|
default: withCtx(() => [
|
|
826
1092
|
createVNode(unref(HyIcon), {
|
|
827
1093
|
onClick: unref(clickFullScreen),
|
|
828
|
-
"svg-name": unref(isFullScreen) ? "ops-audio-
|
|
1094
|
+
"svg-name": unref(isFullScreen) ? "ops-audio-reduce" : "ops-audio-fullscreen",
|
|
829
1095
|
class: normalizeClass([rightIconClass, "mr-3"])
|
|
830
1096
|
}, null, 8, ["onClick", "svg-name"])
|
|
831
1097
|
]),
|
|
832
1098
|
_: 1
|
|
833
1099
|
/* STABLE */
|
|
834
|
-
}, 8, ["content"]),
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
1100
|
+
}, 8, ["content", "teleported"]),
|
|
1101
|
+
createCommentVNode(" \u9690\u85CF/\u663E\u793A\u753B\u9762\uFF08\u5168\u5C4F\u65F6\u4E0D\u663E\u793A\uFF09 "),
|
|
1102
|
+
!unref(isFullScreen) ? (openBlock(), createElementBlock(
|
|
1103
|
+
Fragment,
|
|
1104
|
+
{ key: 0 },
|
|
1105
|
+
[
|
|
1106
|
+
unref(isHideVideo) ? (openBlock(), createElementBlock("div", {
|
|
1107
|
+
key: 0,
|
|
1108
|
+
onClick: ($event) => unref(setIsHideVideo)(false)
|
|
1109
|
+
}, [
|
|
1110
|
+
createVNode(unref(ElTooltip), {
|
|
1111
|
+
class: "item",
|
|
1112
|
+
effect: "dark",
|
|
1113
|
+
content: "\u663E\u793A\u753B\u9762",
|
|
1114
|
+
placement: "top"
|
|
1115
|
+
}, {
|
|
1116
|
+
default: withCtx(() => [
|
|
1117
|
+
createVNode(unref(HyIcon), {
|
|
1118
|
+
"svg-name": "dispatch-share1-v3-ai-interpretation-expand",
|
|
1119
|
+
class: normalizeClass(rightIconClass)
|
|
1120
|
+
})
|
|
1121
|
+
]),
|
|
1122
|
+
_: 1
|
|
1123
|
+
/* STABLE */
|
|
849
1124
|
})
|
|
850
|
-
]),
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
1125
|
+
], 8, ["onClick"])) : (openBlock(), createElementBlock("div", {
|
|
1126
|
+
key: 1,
|
|
1127
|
+
onClick: ($event) => unref(setIsHideVideo)(true)
|
|
1128
|
+
}, [
|
|
1129
|
+
createVNode(unref(ElTooltip), {
|
|
1130
|
+
class: "item",
|
|
1131
|
+
effect: "dark",
|
|
1132
|
+
content: "\u9690\u85CF\u753B\u9762",
|
|
1133
|
+
placement: "top"
|
|
1134
|
+
}, {
|
|
1135
|
+
default: withCtx(() => [
|
|
1136
|
+
createVNode(unref(HyIcon), {
|
|
1137
|
+
"svg-name": "dispatch-share1-v3-ai-interpretation-foldup",
|
|
1138
|
+
class: normalizeClass(rightIconClass)
|
|
1139
|
+
})
|
|
1140
|
+
]),
|
|
1141
|
+
_: 1
|
|
1142
|
+
/* STABLE */
|
|
868
1143
|
})
|
|
869
|
-
])
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
])
|
|
1144
|
+
], 8, ["onClick"]))
|
|
1145
|
+
],
|
|
1146
|
+
64
|
|
1147
|
+
/* STABLE_FRAGMENT */
|
|
1148
|
+
)) : createCommentVNode("v-if", true)
|
|
1149
|
+
])) : createCommentVNode("v-if", true)
|
|
875
1150
|
])
|
|
876
1151
|
]),
|
|
877
1152
|
createCommentVNode(" \u5176\u4ED6\u529F\u80FD "),
|
|
878
1153
|
createElementVNode("div", { class: "px-2 box-border h-[40px] flex items-center justify-between" }, [
|
|
879
|
-
createElementVNode("
|
|
880
|
-
|
|
1154
|
+
createElementVNode("div", null, [
|
|
1155
|
+
unref(videoState) !== "CAN_NOT_PLAY" ? (openBlock(), createElementBlock("ul", {
|
|
881
1156
|
key: 0,
|
|
882
|
-
class: "
|
|
1157
|
+
class: "flex"
|
|
883
1158
|
}, [
|
|
884
|
-
(openBlock(
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
"
|
|
895
|
-
},
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
1159
|
+
__props.playRulesType ? (openBlock(), createElementBlock("li", {
|
|
1160
|
+
key: 0,
|
|
1161
|
+
class: "mr-4 clickBox"
|
|
1162
|
+
}, [
|
|
1163
|
+
(openBlock(true), createElementBlock(
|
|
1164
|
+
Fragment,
|
|
1165
|
+
null,
|
|
1166
|
+
renderList(unref(playRuleslist), (item, index) => {
|
|
1167
|
+
return withDirectives((openBlock(), createElementBlock("div", {
|
|
1168
|
+
onClick: ($event) => unref(playRulesFn)(item.value),
|
|
1169
|
+
key: index + "playRuleslist"
|
|
1170
|
+
}, [
|
|
1171
|
+
createVNode(unref(HyIcon), {
|
|
1172
|
+
class: "!w-[12px] !h-[12px]",
|
|
1173
|
+
"svg-name": item.svgName
|
|
1174
|
+
}, null, 8, ["svg-name"]),
|
|
1175
|
+
createElementVNode(
|
|
1176
|
+
"span",
|
|
1177
|
+
{ class: "ml-2" },
|
|
1178
|
+
toDisplayString(item.label),
|
|
1179
|
+
1
|
|
1180
|
+
/* TEXT */
|
|
1181
|
+
)
|
|
1182
|
+
], 8, ["onClick"])), [
|
|
1183
|
+
[vShow, unref(playRules) === item.value]
|
|
1184
|
+
]);
|
|
1185
|
+
}),
|
|
1186
|
+
128
|
|
1187
|
+
/* KEYED_FRAGMENT */
|
|
1188
|
+
))
|
|
1189
|
+
])) : createCommentVNode("v-if", true),
|
|
1190
|
+
createCommentVNode(' <li class="mr-4 clickBox">'),
|
|
1191
|
+
createCommentVNode(' <HyIcon svg-name="ops-audio-audio-reduce" class="!w-[12px] !h-[12px]"></HyIcon>'),
|
|
1192
|
+
createCommentVNode(' <span class="ml-2">\u8BED\u4E49\u68C0\u7D22</span>'),
|
|
1193
|
+
createCommentVNode(" </li>"),
|
|
1194
|
+
createCommentVNode(' <li class="mr-4 clickBox">'),
|
|
1195
|
+
createCommentVNode(' <HyIcon svg-name="ops-audio-audio-reduce" class="!w-[12px] !h-[12px]"></HyIcon>'),
|
|
1196
|
+
createCommentVNode(' <span class="ml-2">\u89C6\u9891\u526A\u8F91</span>'),
|
|
1197
|
+
createCommentVNode(" </li>"),
|
|
1198
|
+
renderSlot(_ctx.$slots, "left-operation", {}, void 0, true),
|
|
1199
|
+
__props.downloadFilesType ? (openBlock(), createElementBlock("li", {
|
|
1200
|
+
key: 1,
|
|
1201
|
+
class: "mr-4 clickBox",
|
|
1202
|
+
onClick: unref(downloadFn)
|
|
1203
|
+
}, [
|
|
1204
|
+
createVNode(unref(HyIcon), {
|
|
1205
|
+
"svg-name": "ops-button-export",
|
|
1206
|
+
class: "!w-[12px] !h-[12px]"
|
|
906
1207
|
}),
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
onClick:
|
|
915
|
-
|
|
916
|
-
createVNode(unref(HyIcon), {
|
|
917
|
-
"svg-name": "ops-audio-audio-reduce",
|
|
918
|
-
class: "!w-[12px] !h-[12px]"
|
|
919
|
-
}),
|
|
920
|
-
createElementVNode(
|
|
921
|
-
"span",
|
|
922
|
-
{ class: "ml-2" },
|
|
923
|
-
toDisplayString($t$1("downloadFile")),
|
|
924
|
-
1
|
|
925
|
-
/* TEXT */
|
|
926
|
-
)
|
|
927
|
-
], 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
928
|
-
createElementVNode("li", { class: "mr-4 clickBox" }, [
|
|
929
|
-
createVNode(unref(HyIcon), {
|
|
930
|
-
"svg-name": "ops-audio-audio-reduce",
|
|
931
|
-
class: "!w-[12px] !h-[12px]"
|
|
932
|
-
}),
|
|
933
|
-
createElementVNode("span", { class: "ml-2" }, "\u8BED\u4E49\u68C0\u7D22")
|
|
934
|
-
]),
|
|
935
|
-
createElementVNode("li", { class: "mr-4 clickBox" }, [
|
|
936
|
-
createVNode(unref(HyIcon), {
|
|
937
|
-
"svg-name": "ops-audio-audio-reduce",
|
|
938
|
-
class: "!w-[12px] !h-[12px]"
|
|
939
|
-
}),
|
|
940
|
-
createElementVNode("span", { class: "ml-2" }, "\u89C6\u9891\u526A\u8F91")
|
|
941
|
-
])
|
|
1208
|
+
createElementVNode(
|
|
1209
|
+
"span",
|
|
1210
|
+
{ class: "ml-2" },
|
|
1211
|
+
toDisplayString($t$1("downloadFile")),
|
|
1212
|
+
1
|
|
1213
|
+
/* TEXT */
|
|
1214
|
+
)
|
|
1215
|
+
], 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
1216
|
+
])) : createCommentVNode("v-if", true)
|
|
942
1217
|
]),
|
|
943
|
-
createElementVNode("div", null,
|
|
1218
|
+
createElementVNode("div", null, [
|
|
1219
|
+
renderSlot(_ctx.$slots, "right-operation", {}, void 0, true)
|
|
1220
|
+
])
|
|
944
1221
|
])
|
|
945
|
-
]
|
|
946
|
-
|
|
1222
|
+
],
|
|
1223
|
+
2
|
|
1224
|
+
/* CLASS */
|
|
1225
|
+
);
|
|
947
1226
|
};
|
|
948
1227
|
}
|
|
949
1228
|
});
|