hy-dispatch-ui-v3 0.2.87 → 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.
Files changed (39) hide show
  1. package/dist/tailwind.css +180 -0
  2. package/es/api/file.mjs +14 -1
  3. package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -469
  4. package/es/components/hyAudioPlayer/audioPlayer2.vue.mjs +1321 -0
  5. package/es/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.mjs +472 -0
  6. package/es/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.mjs +5 -5
  7. package/es/components/hyAudioPlayer/index.mjs +2 -2
  8. package/es/components/hyAudioPlayer/locale/en_US.mjs +18 -0
  9. package/es/components/hyAudioPlayer/locale/index.mjs +2 -0
  10. package/es/components/hyAudioPlayer/locale/zh_CN.mjs +18 -0
  11. package/es/components/hyCheckboxGroup/checkboxGroup.vue.mjs +9 -7
  12. package/es/components/hyForm/cpns/formItem.vue.mjs +2 -0
  13. package/es/components/hyRadioGroup/radioGroup.vue.mjs +95 -49
  14. package/es/components/hyTable/table.vue.mjs +3 -3
  15. package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +2 -2
  16. package/es/components/hyVideoPlayer/videoPlayer2.vue.mjs +734 -434
  17. package/es/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
  18. package/es/utils/timeUtils.mjs +8 -29
  19. package/es/version.mjs +1 -1
  20. package/lib/api/file.js +14 -0
  21. package/lib/components/hyAudioPlayer/audioPlayer.vue.js +5 -469
  22. package/lib/components/hyAudioPlayer/audioPlayer2.vue.js +1325 -0
  23. package/lib/components/hyAudioPlayer/hyAudioPlayer/audioPlayer.vue.js +476 -0
  24. package/lib/components/hyAudioPlayer/{js → hyAudioPlayer/js}/index.js +5 -5
  25. package/lib/components/hyAudioPlayer/locale/en_US.js +22 -0
  26. package/lib/components/hyAudioPlayer/locale/index.js +9 -0
  27. package/lib/components/hyAudioPlayer/locale/zh_CN.js +22 -0
  28. package/lib/components/hyCheckboxGroup/checkboxGroup.vue.js +11 -9
  29. package/lib/components/hyForm/cpns/formItem.vue.js +2 -0
  30. package/lib/components/hyRadioGroup/radioGroup.vue.js +94 -48
  31. package/lib/components/hyTable/table.vue.js +2 -2
  32. package/lib/components/hyVideoPlayer/videoPlayer.vue.js +2 -2
  33. package/lib/components/hyVideoPlayer/videoPlayer2.vue.js +732 -432
  34. package/lib/static/hy-svg-icons/hy-icon-ops-audio-reduce.js +10 -0
  35. package/lib/utils/timeUtils.js +8 -29
  36. package/lib/version.js +1 -1
  37. package/package.json +1 -1
  38. /package/es/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
  39. /package/lib/components/hyAudioPlayer/{style → hyAudioPlayer/style}/audioPlayer.scss +0 -0
@@ -0,0 +1,476 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var elementPlus = require('element-plus');
7
+ require('../../../hooks/index.js');
8
+ require('../../../utils/index.js');
9
+ require('../../index.js');
10
+ var mediaLoading = require('../../hyVideoPlayer/cpns/mediaLoading.vue.js');
11
+ var index = require('./js/index.js');
12
+ var useMixins = require('../../../hooks/useMixins.js');
13
+ var useLocale = require('../../../hooks/useLocale.js');
14
+ var index$1 = require('../../hyIcon/index.js');
15
+ var index$2 = require('../../hyTooltip/index.js');
16
+ var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
17
+ var is = require('../../../utils/is.js');
18
+
19
+ import "./style/audioPlayer.scss";
20
+
21
+ const __default__ = vue.defineComponent({
22
+ name: "HyAudioPlayer"
23
+ });
24
+ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
25
+ props: {
26
+ type: {
27
+ type: String,
28
+ default: () => {
29
+ const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
30
+ const { type } = audioPlayerConfig.value;
31
+ if (["default", "analyse"].includes(type)) return type;
32
+ return "default";
33
+ }
34
+ },
35
+ // 播放列表
36
+ playList: {
37
+ type: Array,
38
+ default: () => []
39
+ },
40
+ // 播放速度
41
+ speed: {
42
+ type: Number,
43
+ default: () => {
44
+ const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
45
+ if (is.isNumber(audioPlayerConfig.value.speed)) {
46
+ return audioPlayerConfig.value.speed;
47
+ }
48
+ return 1;
49
+ }
50
+ },
51
+ // 播放规则
52
+ playRules: {
53
+ type: Number,
54
+ default: () => {
55
+ const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
56
+ if ([1, 2, 3].includes(audioPlayerConfig.value.playRules)) {
57
+ return audioPlayerConfig.value.playRules;
58
+ }
59
+ return 3;
60
+ }
61
+ },
62
+ // 是否显示播放规则
63
+ showPlayRules: {
64
+ type: Boolean,
65
+ default: () => {
66
+ const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
67
+ const { showPlayRules } = audioPlayerConfig.value;
68
+ return is.isBoolean(showPlayRules) ? showPlayRules : true;
69
+ }
70
+ },
71
+ // 是否显示画面
72
+ showPicture: {
73
+ type: Boolean,
74
+ default: () => {
75
+ const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
76
+ const { showPicture } = audioPlayerConfig.value;
77
+ return is.isBoolean(showPicture) ? showPicture : true;
78
+ }
79
+ },
80
+ // 是否显示下载文件
81
+ showDownloadFiles: {
82
+ type: Boolean,
83
+ default: () => {
84
+ const { audioPlayerConfig } = useAudioPlayerConfig.useAudioPlayerConfig();
85
+ const { showDownloadFiles } = audioPlayerConfig.value;
86
+ return is.isBoolean(showDownloadFiles) ? showDownloadFiles : true;
87
+ }
88
+ },
89
+ // 下载处理
90
+ downloadFn: {
91
+ type: Function
92
+ }
93
+ },
94
+ emits: [
95
+ "canplay",
96
+ "timeupdate",
97
+ "play-start",
98
+ "play-ended",
99
+ "play-previous",
100
+ "play-next"
101
+ ],
102
+ setup(__props, { expose: __expose, emit: __emit }) {
103
+ ;
104
+ const props = __props;
105
+ const emits = __emit;
106
+ const audioWrapperRef = vue.useTemplateRef("audioWrapperRef");
107
+ const audioRef = vue.useTemplateRef("audioRef");
108
+ const {
109
+ // useAudioPlayer
110
+ speed,
111
+ playRules,
112
+ loading,
113
+ audioItem,
114
+ audioUrl,
115
+ currentDuration,
116
+ totalDuration,
117
+ progress,
118
+ isDrop,
119
+ isFullScreen,
120
+ volumeValue,
121
+ audioState,
122
+ speedLabel,
123
+ isCanPlay,
124
+ isPlaying,
125
+ isAnalyseType,
126
+ // 配置
127
+ speedList,
128
+ playRulesList,
129
+ // 函数
130
+ playAudio,
131
+ pauseAudio,
132
+ playPrevious,
133
+ playNext,
134
+ playRulesHandler,
135
+ speedHandler,
136
+ changeVolume,
137
+ getNowWh,
138
+ setAudioCurrentTime,
139
+ getPercent,
140
+ isCantPlayType,
141
+ jumpDuration,
142
+ initFullScreenEvent,
143
+ destroyFullScreenEvent,
144
+ onFullScreenHandler,
145
+ onDownloadHandler
146
+ } = useMixins.useMixins(
147
+ {
148
+ props,
149
+ emits,
150
+ audioWrapperRef,
151
+ audioRef
152
+ },
153
+ [index.useAudioPlayer]
154
+ );
155
+ const showActionBtn = vue.computed(() => {
156
+ return !!audioUrl.value;
157
+ });
158
+ vue.onMounted(() => {
159
+ initFullScreenEvent();
160
+ });
161
+ vue.onUnmounted(() => {
162
+ destroyFullScreenEvent();
163
+ });
164
+ __expose({
165
+ playAudio,
166
+ pauseAudio,
167
+ setAudioCurrentTime
168
+ });
169
+ return (_ctx, _cache) => {
170
+ return vue.openBlock(), vue.createElementBlock(
171
+ "div",
172
+ {
173
+ class: vue.normalizeClass(["hy-audio-player", { "audio-player-pack-up": !__props.showPicture }])
174
+ },
175
+ [
176
+ __props.showPicture ? (vue.openBlock(), vue.createElementBlock("div", {
177
+ key: 0,
178
+ class: "audio-play-box"
179
+ }, [
180
+ vue.unref(loading) ? (vue.openBlock(), vue.createElementBlock("div", {
181
+ key: 0,
182
+ class: "w-full h-full flex flex-col justify-center items-center"
183
+ }, [
184
+ vue.createVNode(mediaLoading.default),
185
+ vue.createElementVNode(
186
+ "span",
187
+ { class: "text-xs text-theme mt-4" },
188
+ "..." + vue.toDisplayString(vue.unref(useLocale.$t)("audioPlayer.audioResourcesAreLoading")) + "...",
189
+ 1
190
+ /* TEXT */
191
+ )
192
+ ])) : (vue.openBlock(), vue.createElementBlock("div", {
193
+ key: 1,
194
+ class: "point_area"
195
+ }, [
196
+ vue.createElementVNode("div", { class: "point point_dot" }, [
197
+ vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
198
+ vue.createVNode(vue.unref(index$1.HyIcon), { "svg-name": "layout-sidenav-menu-micphone-v2" })
199
+ ])
200
+ ]),
201
+ vue.withDirectives(vue.createElementVNode(
202
+ "div",
203
+ { style: { "transition": "1s" } },
204
+ [
205
+ vue.createElementVNode("div", { class: "point point_10" }),
206
+ vue.createElementVNode("div", { class: "point point_40" }),
207
+ vue.createElementVNode("div", { class: "point point_shadow point_80" })
208
+ ],
209
+ 512
210
+ /* NEED_PATCH */
211
+ ), [
212
+ [vue.vShow, vue.unref(isPlaying)]
213
+ ])
214
+ ]))
215
+ ])) : vue.createCommentVNode("v-if", true),
216
+ vue.createElementVNode(
217
+ "div",
218
+ {
219
+ ref_key: "audioWrapperRef",
220
+ ref: audioWrapperRef,
221
+ class: vue.normalizeClass(["operator-box", { "operator-analyse": vue.unref(isAnalyseType) }])
222
+ },
223
+ [
224
+ vue.unref(isAnalyseType) ? (vue.openBlock(), vue.createElementBlock("div", {
225
+ key: 0,
226
+ class: "duration-operator"
227
+ }, [
228
+ vue.createElementVNode(
229
+ "span",
230
+ { class: "text-main" },
231
+ vue.toDisplayString(vue.unref(currentDuration)),
232
+ 1
233
+ /* TEXT */
234
+ ),
235
+ vue.createTextVNode(" / "),
236
+ vue.createElementVNode(
237
+ "span",
238
+ null,
239
+ vue.toDisplayString(vue.unref(totalDuration)),
240
+ 1
241
+ /* TEXT */
242
+ )
243
+ ])) : vue.createCommentVNode("v-if", true),
244
+ vue.createElementVNode(
245
+ "div",
246
+ {
247
+ class: vue.normalizeClass(["play-operator", { "play-analyse": vue.unref(isAnalyseType) }])
248
+ },
249
+ [
250
+ vue.createElementVNode("div", { onClick: vue.unref(playPrevious) }, [
251
+ vue.createVNode(vue.unref(index$1.HyIcon), {
252
+ "svg-name": vue.unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-last" : "ops-audio-audio-previous-btn",
253
+ "class-name": "last-icon"
254
+ }, null, 8, ["svg-name"])
255
+ ], 8, ["onClick"]),
256
+ vue.unref(audioState) !== "PLAYING" && vue.unref(isCanPlay) ? (vue.openBlock(), vue.createElementBlock("div", {
257
+ key: 0,
258
+ onClick: ($event) => vue.unref(playAudio)(vue.unref(audioUrl))
259
+ }, [
260
+ vue.createVNode(vue.unref(index$1.HyIcon), { "svg-name": "ops-audio-audio-play-btn" })
261
+ ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
262
+ vue.unref(audioState) === "PLAYING" ? (vue.openBlock(), vue.createElementBlock("div", {
263
+ key: 1,
264
+ onClick: vue.unref(pauseAudio)
265
+ }, [
266
+ vue.createVNode(vue.unref(index$1.HyIcon), { "svg-name": "ops-audio-audio-pause-btn" })
267
+ ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
268
+ vue.createElementVNode("div", { onClick: vue.unref(playNext) }, [
269
+ vue.createVNode(vue.unref(index$1.HyIcon), {
270
+ "svg-name": vue.unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-next" : "ops-audio-audio-next-btn",
271
+ "class-name": "next-icon"
272
+ }, null, 8, ["svg-name"])
273
+ ], 8, ["onClick"]),
274
+ vue.createElementVNode(
275
+ "audio",
276
+ {
277
+ ref_key: "audioRef",
278
+ ref: audioRef
279
+ },
280
+ null,
281
+ 512
282
+ /* NEED_PATCH */
283
+ )
284
+ ],
285
+ 2
286
+ /* CLASS */
287
+ ),
288
+ vue.createElementVNode(
289
+ "div",
290
+ {
291
+ class: vue.normalizeClass(["progress-operator", { "progress-analyse": vue.unref(isAnalyseType) }])
292
+ },
293
+ [
294
+ vue.withDirectives(vue.createElementVNode("input", {
295
+ "onUpdate:modelValue": ($event) => vue.isRef(progress) ? progress.value = $event : null,
296
+ type: "range",
297
+ max: "100",
298
+ style: vue.normalizeStyle({
299
+ background: `linear-gradient(to right, rgba(var(--hy-theme)) ${vue.unref(getPercent)(
300
+ vue.unref(progress),
301
+ 100
302
+ )}%, rgba(var(--hy-theme),0.5) ${vue.unref(getPercent)(vue.unref(progress), 100)}% `
303
+ }),
304
+ onMousedown: ($event) => isDrop.value = true,
305
+ onMouseup: ($event) => vue.unref(getNowWh)($event)
306
+ }, null, 44, ["onUpdate:modelValue", "onMousedown", "onMouseup"]), [
307
+ [vue.vModelText, vue.unref(progress)]
308
+ ]),
309
+ __props.type === "default" ? (vue.openBlock(), vue.createElementBlock("div", {
310
+ key: 0,
311
+ class: "duration-operator justify-between"
312
+ }, [
313
+ vue.createElementVNode(
314
+ "span",
315
+ { class: "text-main" },
316
+ vue.toDisplayString(vue.unref(currentDuration)),
317
+ 1
318
+ /* TEXT */
319
+ ),
320
+ vue.createElementVNode(
321
+ "span",
322
+ null,
323
+ vue.toDisplayString(vue.unref(totalDuration)),
324
+ 1
325
+ /* TEXT */
326
+ )
327
+ ])) : vue.createCommentVNode("v-if", true)
328
+ ],
329
+ 2
330
+ /* CLASS */
331
+ ),
332
+ vue.createElementVNode(
333
+ "div",
334
+ {
335
+ class: vue.normalizeClass(["tools-operator", { "tools-analyse": vue.unref(isAnalyseType) }])
336
+ },
337
+ [
338
+ vue.createCommentVNode(" \u901F\u5EA6 "),
339
+ vue.createVNode(vue.unref(elementPlus.ElPopover), {
340
+ placement: "top",
341
+ trigger: "click",
342
+ appendToBody: false,
343
+ "popper-class": "hy-audio-player-popover-speed"
344
+ }, {
345
+ reference: vue.withCtx(() => [
346
+ vue.createElementVNode(
347
+ "div",
348
+ { class: "speed-box" },
349
+ vue.toDisplayString(vue.unref(speedLabel)),
350
+ 1
351
+ /* TEXT */
352
+ )
353
+ ]),
354
+ default: vue.withCtx(() => [
355
+ vue.createElementVNode("div", { class: "flex items-center justify-center py-[10px]" }, [
356
+ vue.createElementVNode("ul", { class: "speed-list" }, [
357
+ (vue.openBlock(true), vue.createElementBlock(
358
+ vue.Fragment,
359
+ null,
360
+ vue.renderList(vue.unref(speedList), (item, index) => {
361
+ return vue.openBlock(), vue.createElementBlock("li", {
362
+ key: index,
363
+ class: vue.normalizeClass(["clickBox", { selectBox: item.value === vue.unref(speed) }]),
364
+ onClick: ($event) => vue.unref(speedHandler)(item.value)
365
+ }, vue.toDisplayString(item.label), 11, ["onClick"]);
366
+ }),
367
+ 128
368
+ /* KEYED_FRAGMENT */
369
+ ))
370
+ ])
371
+ ])
372
+ ]),
373
+ _: 1
374
+ /* STABLE */
375
+ }),
376
+ vue.createCommentVNode(" \u4E0B\u8F7D "),
377
+ __props.showDownloadFiles && showActionBtn.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyTooltip), {
378
+ key: 0,
379
+ isAlways: "",
380
+ overLine: 1,
381
+ content: vue.unref(useLocale.$t)("audioPlayer.downloadFile")
382
+ }, {
383
+ default: vue.withCtx(() => [
384
+ vue.createVNode(vue.unref(index$1.HyIcon), {
385
+ "svg-name": "ops-audio-audio-down-btn",
386
+ onClick: vue.unref(onDownloadHandler)
387
+ }, null, 8, ["onClick"])
388
+ ]),
389
+ _: 1
390
+ /* STABLE */
391
+ }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
392
+ vue.createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
393
+ __props.showPlayRules ? (vue.openBlock(true), vue.createElementBlock(
394
+ vue.Fragment,
395
+ { key: 1 },
396
+ vue.renderList(vue.unref(playRulesList), (item, index) => {
397
+ return vue.openBlock(), vue.createElementBlock(
398
+ vue.Fragment,
399
+ { key: index },
400
+ [
401
+ vue.unref(playRules) === item.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$2.HyTooltip), {
402
+ key: 0,
403
+ isAlways: "",
404
+ overLine: 1,
405
+ content: item.label
406
+ }, {
407
+ default: vue.withCtx(() => [
408
+ vue.createVNode(vue.unref(index$1.HyIcon), {
409
+ "svg-name": item.svgName,
410
+ onClick: ($event) => vue.unref(playRulesHandler)(item.value)
411
+ }, null, 8, ["svg-name", "onClick"])
412
+ ]),
413
+ _: 2
414
+ /* DYNAMIC */
415
+ }, 1032, ["content"])) : vue.createCommentVNode("v-if", true)
416
+ ],
417
+ 64
418
+ /* STABLE_FRAGMENT */
419
+ );
420
+ }),
421
+ 128
422
+ /* KEYED_FRAGMENT */
423
+ )) : vue.createCommentVNode("v-if", true),
424
+ vue.createCommentVNode(" \u58F0\u97F3 "),
425
+ vue.createVNode(vue.unref(elementPlus.ElPopover), {
426
+ placement: "top",
427
+ appendToBody: false,
428
+ trigger: "click",
429
+ "popper-class": "hy-audio-player-popover-volume-slider"
430
+ }, {
431
+ reference: vue.withCtx(() => [
432
+ vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
433
+ vue.createVNode(vue.unref(index$2.HyTooltip), {
434
+ isAlways: "",
435
+ overLine: 1,
436
+ content: vue.unref(useLocale.$t)("audioPlayer.adjustPlaybackVolume")
437
+ }, {
438
+ default: vue.withCtx(() => [
439
+ vue.createVNode(vue.unref(index$1.HyIcon), { "svg-name": "dispatch-share-audio-volumn" })
440
+ ]),
441
+ _: 1
442
+ /* STABLE */
443
+ }, 8, ["content"])
444
+ ])
445
+ ]),
446
+ default: vue.withCtx(() => [
447
+ vue.createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
448
+ vue.createVNode(vue.unref(elementPlus.ElSlider), {
449
+ modelValue: vue.unref(volumeValue),
450
+ "onUpdate:modelValue": ($event) => vue.isRef(volumeValue) ? volumeValue.value = $event : null,
451
+ vertical: "",
452
+ height: "105px",
453
+ onInput: ($event) => vue.unref(changeVolume)($event)
454
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
455
+ ])
456
+ ]),
457
+ _: 1
458
+ /* STABLE */
459
+ })
460
+ ],
461
+ 2
462
+ /* CLASS */
463
+ )
464
+ ],
465
+ 2
466
+ /* CLASS */
467
+ )
468
+ ],
469
+ 2
470
+ /* CLASS */
471
+ );
472
+ };
473
+ }
474
+ });
475
+
476
+ exports.default = _sfc_main;
@@ -3,11 +3,11 @@
3
3
  var vue = require('vue');
4
4
  var elementPlus = require('element-plus');
5
5
  require('dayjs');
6
- require('../../../hooks/index.js');
7
- require('../../../utils/index.js');
8
- var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
9
- var useLocale = require('../../../hooks/useLocale.js');
10
- var date = require('../../../utils/date.js');
6
+ require('../../../../hooks/index.js');
7
+ require('../../../../utils/index.js');
8
+ var useAudioPlayerConfig = require('../../../../hooks/useAudioPlayerConfig.js');
9
+ var useLocale = require('../../../../hooks/useLocale.js');
10
+ var date = require('../../../../utils/date.js');
11
11
 
12
12
  const useAudioPlayer = (hy) => {
13
13
  const { props, emits, audioRef } = hy;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var en_US = {
6
+ stopAfterPlayback: "Stop After Playback",
7
+ continuousPlayback: "Continuous Playback",
8
+ loopPlayback: "Loop Playback",
9
+ multiples: "Multiples",
10
+ currentIsTheLastItem: "Current Is The Last Item",
11
+ currentIsTheFirstItem: "Current Is The First Item",
12
+ startDownloading: "Start Downloading",
13
+ audioResourcesAreLoading: "Audio Resources Are Loading",
14
+ fileFormatNotSupported: "The File Format Is Not Supported Or The File Is Damaged",
15
+ adjustPlaybackVolume: "Adjust Playback Volume",
16
+ fullScreenSwitch: "Full Screen Switch",
17
+ showPicture: "Show Picture",
18
+ hidePicture: "Hide Picture",
19
+ downloadFile: "Download File"
20
+ };
21
+
22
+ exports.default = en_US;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var en_US = require('./en_US.js');
4
+ var zh_CN = require('./zh_CN.js');
5
+
6
+
7
+
8
+ exports.en_US = en_US.default;
9
+ exports.zh_CN = zh_CN.default;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var zh_CN = {
6
+ stopAfterPlayback: "\u64AD\u5B8C\u5373\u505C",
7
+ continuousPlayback: "\u8FDE\u7EED\u64AD\u653E",
8
+ loopPlayback: "\u5FAA\u73AF\u64AD\u653E",
9
+ multiples: "\u500D \u6570",
10
+ currentIsTheLastItem: "\u5F53\u524D\u662F\u6700\u540E\u4E00\u6761",
11
+ currentIsTheFirstItem: "\u5F53\u524D\u662F\u7B2C\u4E00\u6761",
12
+ startDownloading: "\u5F00\u59CB\u4E0B\u8F7D",
13
+ audioResourcesAreLoading: "\u97F3\u9891\u8D44\u6E90\u52A0\u8F7D\u4E2D",
14
+ fileFormatNotSupported: "\u6587\u4EF6\u683C\u5F0F\u4E0D\u652F\u6301\u6216\u5DF2\u635F\u574F\uFF0C\u65E0\u6CD5\u64AD\u653E",
15
+ adjustPlaybackVolume: "\u8C03\u8282\u64AD\u653E\u97F3\u91CF",
16
+ fullScreenSwitch: "\u5168\u5C4F\u5207\u6362",
17
+ showPicture: "\u663E\u793A\u753B\u9762",
18
+ hidePicture: "\u9690\u85CF\u753B\u9762",
19
+ downloadFile: "\u4E0B\u8F7D\u6587\u4EF6"
20
+ };
21
+
22
+ exports.default = zh_CN;
@@ -4,7 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue = require('vue');
6
6
  require('../../utils/index.js');
7
+ require('../index.js');
7
8
  var is = require('../../utils/is.js');
9
+ var index = require('../hyTooltip/index.js');
8
10
 
9
11
  import "./style/checkboxGroup.scss";
10
12
 
@@ -86,10 +88,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
86
88
  (vue.openBlock(true), vue.createElementBlock(
87
89
  vue.Fragment,
88
90
  null,
89
- vue.renderList(__props.options, (item, index) => {
91
+ vue.renderList(__props.options, (item, index$1) => {
90
92
  return vue.openBlock(), vue.createElementBlock("div", {
91
- key: index,
92
- class: vue.normalizeClass(["hy-checkbox-item", [
93
+ key: index$1,
94
+ class: vue.normalizeClass(["hy-checkbox-item px-3", [
93
95
  __props.size === "large" ? "hy-checkbox-item-large" : __props.size === "small" ? "hy-checkbox-item-small" : "hy-checkbox-item-default",
94
96
  {
95
97
  "is-selected": selectedMap.value[item[checkboxProps.value.value]],
@@ -100,13 +102,13 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
100
102
  }, [
101
103
  vue.renderSlot(_ctx.$slots, "default", {
102
104
  item,
103
- index
105
+ index: index$1
104
106
  }, () => [
105
- vue.createTextVNode(
106
- vue.toDisplayString(item[checkboxProps.value.label]),
107
- 1
108
- /* TEXT */
109
- )
107
+ vue.createVNode(vue.unref(index.HyTooltip), {
108
+ "is-always": false,
109
+ "over-line": 1,
110
+ content: item[checkboxProps.value.label]
111
+ }, null, 8, ["content"])
110
112
  ])
111
113
  ], 10, ["onClick"]);
112
114
  }),
@@ -629,6 +629,8 @@ const _sfc_main = {
629
629
  disabled: vue.unref(index.isDisabled)(props, __props.column),
630
630
  options: getOptionsHandler(props, __props.column),
631
631
  size: vue.unref(formContext).size,
632
+ fullWidth: true,
633
+ class: "w-full",
632
634
  onChange: onChangeHandler
633
635
  }), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "options", "size"])
634
636
  ],