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,472 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import '../../hooks/index.mjs';
|
|
4
|
-
import '../../utils/index.mjs';
|
|
5
|
-
import '../index.mjs';
|
|
6
|
-
import _sfc_main$1 from '../hyVideoPlayer/cpns/mediaLoading.vue.mjs';
|
|
7
|
-
import { useAudioPlayer } from './js/index.mjs';
|
|
8
|
-
import { useMixins } from '../../hooks/useMixins.mjs';
|
|
9
|
-
import { $t } from '../../hooks/useLocale.mjs';
|
|
10
|
-
import { HyIcon } from '../hyIcon/index.mjs';
|
|
11
|
-
import { HyTooltip } from '../hyTooltip/index.mjs';
|
|
12
|
-
import { useAudioPlayerConfig } from '../../hooks/useAudioPlayerConfig.mjs';
|
|
13
|
-
import { isBoolean, isNumber } from '../../utils/is.mjs';
|
|
1
|
+
import _sfc_main from './audioPlayer2.vue.mjs';
|
|
2
|
+
import _export_sfc from '../../_virtual/_plugin-vue_export-helper.mjs';
|
|
14
3
|
|
|
15
|
-
import "
|
|
4
|
+
import "/data/jenkins-work/workspace/WEB-V3-PROJECT-Web-hy-dispatch-ui@2/tmp/packages/components/hyAudioPlayer/audioPlayer.vue?vue&type=style&index=0&scoped=f5a20b4f&lang.scss";
|
|
16
5
|
|
|
17
|
-
|
|
18
|
-
name: "HyAudioPlayer"
|
|
19
|
-
});
|
|
20
|
-
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
21
|
-
props: {
|
|
22
|
-
type: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: () => {
|
|
25
|
-
const { audioPlayerConfig } = useAudioPlayerConfig();
|
|
26
|
-
const { type } = audioPlayerConfig.value;
|
|
27
|
-
if (["default", "analyse"].includes(type)) return type;
|
|
28
|
-
return "default";
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
// 播放列表
|
|
32
|
-
playList: {
|
|
33
|
-
type: Array,
|
|
34
|
-
default: () => []
|
|
35
|
-
},
|
|
36
|
-
// 播放速度
|
|
37
|
-
speed: {
|
|
38
|
-
type: Number,
|
|
39
|
-
default: () => {
|
|
40
|
-
const { audioPlayerConfig } = useAudioPlayerConfig();
|
|
41
|
-
if (isNumber(audioPlayerConfig.value.speed)) {
|
|
42
|
-
return audioPlayerConfig.value.speed;
|
|
43
|
-
}
|
|
44
|
-
return 1;
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
// 播放规则
|
|
48
|
-
playRules: {
|
|
49
|
-
type: Number,
|
|
50
|
-
default: () => {
|
|
51
|
-
const { audioPlayerConfig } = useAudioPlayerConfig();
|
|
52
|
-
if ([1, 2, 3].includes(audioPlayerConfig.value.playRules)) {
|
|
53
|
-
return audioPlayerConfig.value.playRules;
|
|
54
|
-
}
|
|
55
|
-
return 3;
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
// 是否显示播放规则
|
|
59
|
-
showPlayRules: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: () => {
|
|
62
|
-
const { audioPlayerConfig } = useAudioPlayerConfig();
|
|
63
|
-
const { showPlayRules } = audioPlayerConfig.value;
|
|
64
|
-
return isBoolean(showPlayRules) ? showPlayRules : true;
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
// 是否显示画面
|
|
68
|
-
showPicture: {
|
|
69
|
-
type: Boolean,
|
|
70
|
-
default: () => {
|
|
71
|
-
const { audioPlayerConfig } = useAudioPlayerConfig();
|
|
72
|
-
const { showPicture } = audioPlayerConfig.value;
|
|
73
|
-
return isBoolean(showPicture) ? showPicture : true;
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
// 是否显示下载文件
|
|
77
|
-
showDownloadFiles: {
|
|
78
|
-
type: Boolean,
|
|
79
|
-
default: () => {
|
|
80
|
-
const { audioPlayerConfig } = useAudioPlayerConfig();
|
|
81
|
-
const { showDownloadFiles } = audioPlayerConfig.value;
|
|
82
|
-
return isBoolean(showDownloadFiles) ? showDownloadFiles : true;
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
// 下载处理
|
|
86
|
-
downloadFn: {
|
|
87
|
-
type: Function
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
emits: [
|
|
91
|
-
"canplay",
|
|
92
|
-
"timeupdate",
|
|
93
|
-
"play-start",
|
|
94
|
-
"play-ended",
|
|
95
|
-
"play-previous",
|
|
96
|
-
"play-next"
|
|
97
|
-
],
|
|
98
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
99
|
-
;
|
|
100
|
-
const props = __props;
|
|
101
|
-
const emits = __emit;
|
|
102
|
-
const audioWrapperRef = useTemplateRef("audioWrapperRef");
|
|
103
|
-
const audioRef = useTemplateRef("audioRef");
|
|
104
|
-
const {
|
|
105
|
-
// useAudioPlayer
|
|
106
|
-
speed,
|
|
107
|
-
playRules,
|
|
108
|
-
loading,
|
|
109
|
-
audioItem,
|
|
110
|
-
audioUrl,
|
|
111
|
-
currentDuration,
|
|
112
|
-
totalDuration,
|
|
113
|
-
progress,
|
|
114
|
-
isDrop,
|
|
115
|
-
isFullScreen,
|
|
116
|
-
volumeValue,
|
|
117
|
-
audioState,
|
|
118
|
-
speedLabel,
|
|
119
|
-
isCanPlay,
|
|
120
|
-
isPlaying,
|
|
121
|
-
isAnalyseType,
|
|
122
|
-
// 配置
|
|
123
|
-
speedList,
|
|
124
|
-
playRulesList,
|
|
125
|
-
// 函数
|
|
126
|
-
playAudio,
|
|
127
|
-
pauseAudio,
|
|
128
|
-
playPrevious,
|
|
129
|
-
playNext,
|
|
130
|
-
playRulesHandler,
|
|
131
|
-
speedHandler,
|
|
132
|
-
changeVolume,
|
|
133
|
-
getNowWh,
|
|
134
|
-
setAudioCurrentTime,
|
|
135
|
-
getPercent,
|
|
136
|
-
isCantPlayType,
|
|
137
|
-
jumpDuration,
|
|
138
|
-
initFullScreenEvent,
|
|
139
|
-
destroyFullScreenEvent,
|
|
140
|
-
onFullScreenHandler,
|
|
141
|
-
onDownloadHandler
|
|
142
|
-
} = useMixins(
|
|
143
|
-
{
|
|
144
|
-
props,
|
|
145
|
-
emits,
|
|
146
|
-
audioWrapperRef,
|
|
147
|
-
audioRef
|
|
148
|
-
},
|
|
149
|
-
[useAudioPlayer]
|
|
150
|
-
);
|
|
151
|
-
const showActionBtn = computed(() => {
|
|
152
|
-
return !!audioUrl.value;
|
|
153
|
-
});
|
|
154
|
-
onMounted(() => {
|
|
155
|
-
initFullScreenEvent();
|
|
156
|
-
});
|
|
157
|
-
onUnmounted(() => {
|
|
158
|
-
destroyFullScreenEvent();
|
|
159
|
-
});
|
|
160
|
-
__expose({
|
|
161
|
-
playAudio,
|
|
162
|
-
pauseAudio,
|
|
163
|
-
setAudioCurrentTime
|
|
164
|
-
});
|
|
165
|
-
return (_ctx, _cache) => {
|
|
166
|
-
return openBlock(), createElementBlock(
|
|
167
|
-
"div",
|
|
168
|
-
{
|
|
169
|
-
class: normalizeClass(["hy-audio-player", { "audio-player-pack-up": !__props.showPicture }])
|
|
170
|
-
},
|
|
171
|
-
[
|
|
172
|
-
__props.showPicture ? (openBlock(), createElementBlock("div", {
|
|
173
|
-
key: 0,
|
|
174
|
-
class: "audio-play-box"
|
|
175
|
-
}, [
|
|
176
|
-
unref(loading) ? (openBlock(), createElementBlock("div", {
|
|
177
|
-
key: 0,
|
|
178
|
-
class: "w-full h-full flex flex-col justify-center items-center"
|
|
179
|
-
}, [
|
|
180
|
-
createVNode(_sfc_main$1),
|
|
181
|
-
createElementVNode(
|
|
182
|
-
"span",
|
|
183
|
-
{ class: "text-xs text-theme mt-4" },
|
|
184
|
-
"..." + toDisplayString(unref($t)("audioPlayer.audioResourcesAreLoading")) + "...",
|
|
185
|
-
1
|
|
186
|
-
/* TEXT */
|
|
187
|
-
)
|
|
188
|
-
])) : (openBlock(), createElementBlock("div", {
|
|
189
|
-
key: 1,
|
|
190
|
-
class: "point_area"
|
|
191
|
-
}, [
|
|
192
|
-
createElementVNode("div", { class: "point point_dot" }, [
|
|
193
|
-
createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
194
|
-
createVNode(unref(HyIcon), { "svg-name": "layout-sidenav-menu-micphone-v2" })
|
|
195
|
-
])
|
|
196
|
-
]),
|
|
197
|
-
withDirectives(createElementVNode(
|
|
198
|
-
"div",
|
|
199
|
-
{ style: { "transition": "1s" } },
|
|
200
|
-
[
|
|
201
|
-
createElementVNode("div", { class: "point point_10" }),
|
|
202
|
-
createElementVNode("div", { class: "point point_40" }),
|
|
203
|
-
createElementVNode("div", { class: "point point_shadow point_80" })
|
|
204
|
-
],
|
|
205
|
-
512
|
|
206
|
-
/* NEED_PATCH */
|
|
207
|
-
), [
|
|
208
|
-
[vShow, unref(isPlaying)]
|
|
209
|
-
])
|
|
210
|
-
]))
|
|
211
|
-
])) : createCommentVNode("v-if", true),
|
|
212
|
-
createElementVNode(
|
|
213
|
-
"div",
|
|
214
|
-
{
|
|
215
|
-
ref_key: "audioWrapperRef",
|
|
216
|
-
ref: audioWrapperRef,
|
|
217
|
-
class: normalizeClass(["operator-box", { "operator-analyse": unref(isAnalyseType) }])
|
|
218
|
-
},
|
|
219
|
-
[
|
|
220
|
-
unref(isAnalyseType) ? (openBlock(), createElementBlock("div", {
|
|
221
|
-
key: 0,
|
|
222
|
-
class: "duration-operator"
|
|
223
|
-
}, [
|
|
224
|
-
createElementVNode(
|
|
225
|
-
"span",
|
|
226
|
-
{ class: "text-main" },
|
|
227
|
-
toDisplayString(unref(currentDuration)),
|
|
228
|
-
1
|
|
229
|
-
/* TEXT */
|
|
230
|
-
),
|
|
231
|
-
createTextVNode(" / "),
|
|
232
|
-
createElementVNode(
|
|
233
|
-
"span",
|
|
234
|
-
null,
|
|
235
|
-
toDisplayString(unref(totalDuration)),
|
|
236
|
-
1
|
|
237
|
-
/* TEXT */
|
|
238
|
-
)
|
|
239
|
-
])) : createCommentVNode("v-if", true),
|
|
240
|
-
createElementVNode(
|
|
241
|
-
"div",
|
|
242
|
-
{
|
|
243
|
-
class: normalizeClass(["play-operator", { "play-analyse": unref(isAnalyseType) }])
|
|
244
|
-
},
|
|
245
|
-
[
|
|
246
|
-
createElementVNode("div", { onClick: unref(playPrevious) }, [
|
|
247
|
-
createVNode(unref(HyIcon), {
|
|
248
|
-
"svg-name": unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-last" : "ops-audio-audio-previous-btn",
|
|
249
|
-
"class-name": "last-icon"
|
|
250
|
-
}, null, 8, ["svg-name"])
|
|
251
|
-
], 8, ["onClick"]),
|
|
252
|
-
unref(audioState) !== "PLAYING" && unref(isCanPlay) ? (openBlock(), createElementBlock("div", {
|
|
253
|
-
key: 0,
|
|
254
|
-
onClick: ($event) => unref(playAudio)(unref(audioUrl))
|
|
255
|
-
}, [
|
|
256
|
-
createVNode(unref(HyIcon), { "svg-name": "ops-audio-audio-play-btn" })
|
|
257
|
-
], 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
258
|
-
unref(audioState) === "PLAYING" ? (openBlock(), createElementBlock("div", {
|
|
259
|
-
key: 1,
|
|
260
|
-
onClick: unref(pauseAudio)
|
|
261
|
-
}, [
|
|
262
|
-
createVNode(unref(HyIcon), { "svg-name": "ops-audio-audio-pause-btn" })
|
|
263
|
-
], 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
264
|
-
createElementVNode("div", { onClick: unref(playNext) }, [
|
|
265
|
-
createVNode(unref(HyIcon), {
|
|
266
|
-
"svg-name": unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-next" : "ops-audio-audio-next-btn",
|
|
267
|
-
"class-name": "next-icon"
|
|
268
|
-
}, null, 8, ["svg-name"])
|
|
269
|
-
], 8, ["onClick"]),
|
|
270
|
-
createElementVNode(
|
|
271
|
-
"audio",
|
|
272
|
-
{
|
|
273
|
-
ref_key: "audioRef",
|
|
274
|
-
ref: audioRef
|
|
275
|
-
},
|
|
276
|
-
null,
|
|
277
|
-
512
|
|
278
|
-
/* NEED_PATCH */
|
|
279
|
-
)
|
|
280
|
-
],
|
|
281
|
-
2
|
|
282
|
-
/* CLASS */
|
|
283
|
-
),
|
|
284
|
-
createElementVNode(
|
|
285
|
-
"div",
|
|
286
|
-
{
|
|
287
|
-
class: normalizeClass(["progress-operator", { "progress-analyse": unref(isAnalyseType) }])
|
|
288
|
-
},
|
|
289
|
-
[
|
|
290
|
-
withDirectives(createElementVNode("input", {
|
|
291
|
-
"onUpdate:modelValue": ($event) => isRef(progress) ? progress.value = $event : null,
|
|
292
|
-
type: "range",
|
|
293
|
-
max: "100",
|
|
294
|
-
style: normalizeStyle({
|
|
295
|
-
background: `linear-gradient(to right, rgba(var(--hy-theme)) ${unref(getPercent)(
|
|
296
|
-
unref(progress),
|
|
297
|
-
100
|
|
298
|
-
)}%, rgba(var(--hy-theme),0.5) ${unref(getPercent)(unref(progress), 100)}% `
|
|
299
|
-
}),
|
|
300
|
-
onMousedown: ($event) => isDrop.value = true,
|
|
301
|
-
onMouseup: ($event) => unref(getNowWh)($event)
|
|
302
|
-
}, null, 44, ["onUpdate:modelValue", "onMousedown", "onMouseup"]), [
|
|
303
|
-
[vModelText, unref(progress)]
|
|
304
|
-
]),
|
|
305
|
-
__props.type === "default" ? (openBlock(), createElementBlock("div", {
|
|
306
|
-
key: 0,
|
|
307
|
-
class: "duration-operator justify-between"
|
|
308
|
-
}, [
|
|
309
|
-
createElementVNode(
|
|
310
|
-
"span",
|
|
311
|
-
{ class: "text-main" },
|
|
312
|
-
toDisplayString(unref(currentDuration)),
|
|
313
|
-
1
|
|
314
|
-
/* TEXT */
|
|
315
|
-
),
|
|
316
|
-
createElementVNode(
|
|
317
|
-
"span",
|
|
318
|
-
null,
|
|
319
|
-
toDisplayString(unref(totalDuration)),
|
|
320
|
-
1
|
|
321
|
-
/* TEXT */
|
|
322
|
-
)
|
|
323
|
-
])) : createCommentVNode("v-if", true)
|
|
324
|
-
],
|
|
325
|
-
2
|
|
326
|
-
/* CLASS */
|
|
327
|
-
),
|
|
328
|
-
createElementVNode(
|
|
329
|
-
"div",
|
|
330
|
-
{
|
|
331
|
-
class: normalizeClass(["tools-operator", { "tools-analyse": unref(isAnalyseType) }])
|
|
332
|
-
},
|
|
333
|
-
[
|
|
334
|
-
createCommentVNode(" \u901F\u5EA6 "),
|
|
335
|
-
createVNode(unref(ElPopover), {
|
|
336
|
-
placement: "top",
|
|
337
|
-
trigger: "click",
|
|
338
|
-
appendToBody: false,
|
|
339
|
-
"popper-class": "hy-audio-player-popover-speed"
|
|
340
|
-
}, {
|
|
341
|
-
reference: withCtx(() => [
|
|
342
|
-
createElementVNode(
|
|
343
|
-
"div",
|
|
344
|
-
{ class: "speed-box" },
|
|
345
|
-
toDisplayString(unref(speedLabel)),
|
|
346
|
-
1
|
|
347
|
-
/* TEXT */
|
|
348
|
-
)
|
|
349
|
-
]),
|
|
350
|
-
default: withCtx(() => [
|
|
351
|
-
createElementVNode("div", { class: "flex items-center justify-center py-[10px]" }, [
|
|
352
|
-
createElementVNode("ul", { class: "speed-list" }, [
|
|
353
|
-
(openBlock(true), createElementBlock(
|
|
354
|
-
Fragment,
|
|
355
|
-
null,
|
|
356
|
-
renderList(unref(speedList), (item, index) => {
|
|
357
|
-
return openBlock(), createElementBlock("li", {
|
|
358
|
-
key: index,
|
|
359
|
-
class: normalizeClass(["clickBox", { selectBox: item.value === unref(speed) }]),
|
|
360
|
-
onClick: ($event) => unref(speedHandler)(item.value)
|
|
361
|
-
}, toDisplayString(item.label), 11, ["onClick"]);
|
|
362
|
-
}),
|
|
363
|
-
128
|
|
364
|
-
/* KEYED_FRAGMENT */
|
|
365
|
-
))
|
|
366
|
-
])
|
|
367
|
-
])
|
|
368
|
-
]),
|
|
369
|
-
_: 1
|
|
370
|
-
/* STABLE */
|
|
371
|
-
}),
|
|
372
|
-
createCommentVNode(" \u4E0B\u8F7D "),
|
|
373
|
-
__props.showDownloadFiles && showActionBtn.value ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
374
|
-
key: 0,
|
|
375
|
-
isAlways: "",
|
|
376
|
-
overLine: 1,
|
|
377
|
-
content: unref($t)("audioPlayer.downloadFile")
|
|
378
|
-
}, {
|
|
379
|
-
default: withCtx(() => [
|
|
380
|
-
createVNode(unref(HyIcon), {
|
|
381
|
-
"svg-name": "ops-audio-audio-down-btn",
|
|
382
|
-
onClick: unref(onDownloadHandler)
|
|
383
|
-
}, null, 8, ["onClick"])
|
|
384
|
-
]),
|
|
385
|
-
_: 1
|
|
386
|
-
/* STABLE */
|
|
387
|
-
}, 8, ["content"])) : createCommentVNode("v-if", true),
|
|
388
|
-
createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
|
|
389
|
-
__props.showPlayRules ? (openBlock(true), createElementBlock(
|
|
390
|
-
Fragment,
|
|
391
|
-
{ key: 1 },
|
|
392
|
-
renderList(unref(playRulesList), (item, index) => {
|
|
393
|
-
return openBlock(), createElementBlock(
|
|
394
|
-
Fragment,
|
|
395
|
-
{ key: index },
|
|
396
|
-
[
|
|
397
|
-
unref(playRules) === item.value ? (openBlock(), createBlock(unref(HyTooltip), {
|
|
398
|
-
key: 0,
|
|
399
|
-
isAlways: "",
|
|
400
|
-
overLine: 1,
|
|
401
|
-
content: item.label
|
|
402
|
-
}, {
|
|
403
|
-
default: withCtx(() => [
|
|
404
|
-
createVNode(unref(HyIcon), {
|
|
405
|
-
"svg-name": item.svgName,
|
|
406
|
-
onClick: ($event) => unref(playRulesHandler)(item.value)
|
|
407
|
-
}, null, 8, ["svg-name", "onClick"])
|
|
408
|
-
]),
|
|
409
|
-
_: 2
|
|
410
|
-
/* DYNAMIC */
|
|
411
|
-
}, 1032, ["content"])) : createCommentVNode("v-if", true)
|
|
412
|
-
],
|
|
413
|
-
64
|
|
414
|
-
/* STABLE_FRAGMENT */
|
|
415
|
-
);
|
|
416
|
-
}),
|
|
417
|
-
128
|
|
418
|
-
/* KEYED_FRAGMENT */
|
|
419
|
-
)) : createCommentVNode("v-if", true),
|
|
420
|
-
createCommentVNode(" \u58F0\u97F3 "),
|
|
421
|
-
createVNode(unref(ElPopover), {
|
|
422
|
-
placement: "top",
|
|
423
|
-
appendToBody: false,
|
|
424
|
-
trigger: "click",
|
|
425
|
-
"popper-class": "hy-audio-player-popover-volume-slider"
|
|
426
|
-
}, {
|
|
427
|
-
reference: withCtx(() => [
|
|
428
|
-
createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
429
|
-
createVNode(unref(HyTooltip), {
|
|
430
|
-
isAlways: "",
|
|
431
|
-
overLine: 1,
|
|
432
|
-
content: unref($t)("audioPlayer.adjustPlaybackVolume")
|
|
433
|
-
}, {
|
|
434
|
-
default: withCtx(() => [
|
|
435
|
-
createVNode(unref(HyIcon), { "svg-name": "dispatch-share-audio-volumn" })
|
|
436
|
-
]),
|
|
437
|
-
_: 1
|
|
438
|
-
/* STABLE */
|
|
439
|
-
}, 8, ["content"])
|
|
440
|
-
])
|
|
441
|
-
]),
|
|
442
|
-
default: withCtx(() => [
|
|
443
|
-
createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
|
|
444
|
-
createVNode(unref(ElSlider), {
|
|
445
|
-
modelValue: unref(volumeValue),
|
|
446
|
-
"onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
|
|
447
|
-
vertical: "",
|
|
448
|
-
height: "105px",
|
|
449
|
-
onInput: ($event) => unref(changeVolume)($event)
|
|
450
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
451
|
-
])
|
|
452
|
-
]),
|
|
453
|
-
_: 1
|
|
454
|
-
/* STABLE */
|
|
455
|
-
})
|
|
456
|
-
],
|
|
457
|
-
2
|
|
458
|
-
/* CLASS */
|
|
459
|
-
)
|
|
460
|
-
],
|
|
461
|
-
2
|
|
462
|
-
/* CLASS */
|
|
463
|
-
)
|
|
464
|
-
],
|
|
465
|
-
2
|
|
466
|
-
/* CLASS */
|
|
467
|
-
);
|
|
468
|
-
};
|
|
469
|
-
}
|
|
470
|
-
});
|
|
6
|
+
var componnet = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-f5a20b4f"]]);
|
|
471
7
|
|
|
472
|
-
export {
|
|
8
|
+
export { componnet as default };
|