hy-dispatch-ui-v3 0.2.32 → 0.2.34
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 +186 -454
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -5
- package/es/components/hyAudioPlayer/js/index.mjs +1 -1
- package/es/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
- package/es/components/hyButton/button.vue.mjs +50 -35
- package/es/components/hyButton/style/button.scss +16 -3
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +2 -2
- package/es/components/hyConfirmDialog/confirmMethod.mjs +1 -1
- package/es/components/hyConfirmDialog/index.mjs +1 -1
- package/es/components/hyCutter/cutter.vue.mjs +1 -1
- package/es/components/hyDatePicker/datePicker.vue.mjs +1 -1
- package/es/components/hyDialog/dialog.vue.mjs +178 -137
- package/es/components/hyDialog/style/dialog.scss +13 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +3 -4
- package/es/components/hyForm/form.vue.mjs +2 -1
- package/es/components/hyForm/js/useAppForm.mjs +1 -1
- package/es/components/hyForm/style/form.scss +56 -54
- package/es/components/hyIcon/style/icon.scss +1 -1
- package/es/components/hyIconBox/style/iconBox.scss +19 -18
- package/es/components/hyInput/input.vue.mjs +4 -1
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -1
- package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -9
- package/es/components/hySearch/js/index.mjs +4 -4
- package/es/components/hySearch/style/search.scss +51 -50
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +39 -42
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +5 -8
- package/es/components/hyTable/cpns/headerItem.vue.mjs +1 -1
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +18 -11
- package/es/components/hyTable/js/index.mjs +12 -0
- package/es/components/hyTable/js/useAppTable.mjs +1 -1
- package/es/components/hyTable/style/table.scss +13 -0
- package/es/components/hyTable/table.vue.mjs +43 -23
- package/es/components/hyTableForm/batchTableForm.vue.mjs +478 -0
- package/es/components/hyTableForm/index.mjs +4 -1
- package/es/components/hyTableForm/js/index.mjs +123 -0
- package/es/components/hyTableForm/js/useAppTableForm.mjs +47 -0
- package/es/components/hyTableForm/style/batchTableForm.scss +127 -0
- package/es/components/hyTableForm/style/tableForm.scss +42 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +452 -7
- package/es/components/hyTooltip/tooltip.vue.mjs +6 -6
- package/es/components/hyTree/style/index.css +1 -0
- package/es/components/hyTree/tree.vue.mjs +2 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/cpns/mediaLoading.vue.mjs +1 -1
- package/es/components/hyVideoPlayer/js/index.mjs +1 -1
- package/es/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
- package/es/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +6 -6
- package/es/components/index.mjs +2 -1
- package/es/index.mjs +2 -1
- package/es/locale/en.mjs +1 -1
- package/es/locale/zh_CN.mjs +1 -1
- package/es/style/element/hy-element.scss +3 -2
- package/es/style/tailwind.scss +133 -1
- package/es/version.mjs +1 -1
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +4 -4
- package/lib/components/hyAudioPlayer/js/index.js +1 -1
- package/lib/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
- package/lib/components/hyButton/button.vue.js +50 -35
- package/lib/components/hyButton/style/button.scss +16 -3
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +2 -2
- package/lib/components/hyConfirmDialog/confirmMethod.js +1 -1
- package/lib/components/hyConfirmDialog/index.js +1 -1
- package/lib/components/hyCutter/cutter.vue.js +1 -1
- package/lib/components/hyDatePicker/datePicker.vue.js +1 -1
- package/lib/components/hyDialog/dialog.vue.js +177 -136
- package/lib/components/hyDialog/style/dialog.scss +13 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -4
- package/lib/components/hyForm/form.vue.js +2 -1
- package/lib/components/hyForm/js/useAppForm.js +1 -1
- package/lib/components/hyForm/style/form.scss +56 -54
- package/lib/components/hyIcon/style/icon.scss +1 -1
- package/lib/components/hyIconBox/style/iconBox.scss +19 -18
- package/lib/components/hyInput/input.vue.js +4 -1
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
- package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +3 -9
- package/lib/components/hySearch/js/index.js +4 -4
- package/lib/components/hySearch/style/search.scss +51 -50
- package/lib/components/hyTable/cpns/columnSelect.vue.js +43 -46
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +4 -7
- package/lib/components/hyTable/cpns/headerItem.vue.js +1 -1
- package/lib/components/hyTable/cpns/virtualTable.vue.js +18 -11
- package/lib/components/hyTable/js/index.js +12 -0
- package/lib/components/hyTable/js/useAppTable.js +1 -1
- package/lib/components/hyTable/style/table.scss +13 -0
- package/lib/components/hyTable/table.vue.js +42 -22
- package/lib/components/hyTableForm/batchTableForm.vue.js +482 -0
- package/lib/components/hyTableForm/index.js +5 -0
- package/lib/components/hyTableForm/js/index.js +127 -0
- package/lib/components/hyTableForm/js/useAppTableForm.js +49 -0
- package/lib/components/hyTableForm/style/batchTableForm.scss +127 -0
- package/lib/components/hyTableForm/style/tableForm.scss +42 -0
- package/lib/components/hyTableForm/tableForm.vue.js +451 -6
- package/lib/components/hyTooltip/tooltip.vue.js +6 -6
- package/lib/components/hyTree/style/index.css +1 -0
- package/lib/components/hyTree/tree.vue.js +2 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
- package/lib/components/hyVideoPlayer/cpns/mediaLoading.vue.js +1 -1
- package/lib/components/hyVideoPlayer/js/index.js +1 -1
- package/lib/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
- package/lib/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +6 -6
- package/lib/components/index.js +33 -30
- package/lib/index.js +33 -30
- package/lib/locale/en.js +1 -1
- package/lib/locale/zh_CN.js +1 -1
- package/lib/style/element/hy-element.scss +3 -2
- package/lib/style/tailwind.scss +133 -1
- package/lib/version.js +1 -1
- package/package.json +5 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, computed, unref, openBlock, createElementBlock, normalizeStyle, createBlock, normalizeClass, createCommentVNode } from 'vue';
|
|
2
|
-
import { useUserAvatarMap } from '../../hooks/useUserAvatarMap.mjs';
|
|
3
|
-
import { pxTorem } from '../../utils/adaptive.mjs';
|
|
4
2
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
3
|
+
import { useUserAvatarMap } from '../../hooks/useUserAvatarMap.mjs';
|
|
5
4
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
5
|
+
import { pxTorem } from '../../utils/adaptive.mjs';
|
|
6
6
|
|
|
7
7
|
import "./style/userAvatar.scss";
|
|
8
8
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref, computed, nextTick } from 'vue';
|
|
2
2
|
import { ElMessage } from 'element-plus';
|
|
3
|
+
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
3
4
|
import { useVideoPlayerConfig } from '../../../hooks/useVideoPlayerConfig.mjs';
|
|
4
5
|
import { formatDuration } from '../../../utils/date.mjs';
|
|
5
6
|
import { HyConfirmDialog } from '../../hyConfirmDialog/index.mjs';
|
|
6
7
|
import { copyText } from '../../../utils/handler.mjs';
|
|
7
8
|
import { isSupportH265 } from '../../../utils/is.mjs';
|
|
8
|
-
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
9
9
|
|
|
10
10
|
const useVideoPlayer = (hy) => {
|
|
11
11
|
const { props, emits, videoRef, videoWrapperRef } = hy;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* 动效组件保持不变 */
|
|
2
|
-
.tech-loader {
|
|
2
|
+
.hy-tech-loader {
|
|
3
3
|
position: relative;
|
|
4
4
|
z-index: 2;
|
|
5
5
|
&::before {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
border-top-color: #00ffff;
|
|
25
25
|
border-right-color: #00ffff;
|
|
26
26
|
box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
|
|
27
|
-
animation: spin 1s linear infinite;
|
|
27
|
+
animation: hy-tech-loader-spin 1s linear infinite;
|
|
28
28
|
}
|
|
29
29
|
.tech-center-dot {
|
|
30
30
|
position: absolute;
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
background-color: #00ffff;
|
|
37
37
|
border-radius: 50%;
|
|
38
38
|
box-shadow: 0 0 10px #00ffff;
|
|
39
|
-
animation: pulse 1.5s ease-in-out infinite;
|
|
39
|
+
animation: hy-tech-loader-pulse 1.5s ease-in-out infinite;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
@keyframes spin {
|
|
43
|
+
@keyframes hy-tech-loader-spin {
|
|
44
44
|
0% {
|
|
45
45
|
transform: rotate(0deg);
|
|
46
46
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
@keyframes pulse {
|
|
52
|
+
@keyframes hy-tech-loader-pulse {
|
|
53
53
|
0%,
|
|
54
54
|
100% {
|
|
55
55
|
opacity: 0.5;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.video-player-content {
|
|
1
|
+
.hy-video-player-content {
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 400px;
|
|
4
4
|
border: 1px solid rgba(var(--hy-border));
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
video {
|
|
13
13
|
width: 100%;
|
|
14
14
|
}
|
|
15
|
-
&.video-player-content-pick-up {
|
|
15
|
+
&.hy-video-player-content-pick-up {
|
|
16
16
|
height: 60px !important;
|
|
17
17
|
}
|
|
18
18
|
// 全屏播放器样式
|
|
19
|
-
&.full-video-player-content {
|
|
19
|
+
&.hy-full-video-player-content {
|
|
20
20
|
height: 100% !important;
|
|
21
21
|
position: fixed;
|
|
22
22
|
left: 0;
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
&:not(.video-player-content-pick-up) {
|
|
75
|
+
&:not(.hy-video-player-content-pick-up) {
|
|
76
76
|
video {
|
|
77
77
|
height: 0;
|
|
78
78
|
flex-grow: 1;
|
|
@@ -238,15 +238,16 @@
|
|
|
238
238
|
rgba(28, 51, 74, 0) 100%
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
|
+
|
|
241
242
|
}
|
|
242
243
|
|
|
243
|
-
.popover-volume-slider {
|
|
244
|
+
.hy-video-player-popover-volume-slider {
|
|
244
245
|
min-width: auto !important;
|
|
245
246
|
width: 40px !important;
|
|
246
247
|
padding: 16px 0;
|
|
247
248
|
}
|
|
248
249
|
|
|
249
|
-
.popover-speed {
|
|
250
|
+
.hy-video-player-popover-speed {
|
|
250
251
|
min-width: auto !important;
|
|
251
252
|
width: 62px !important;
|
|
252
253
|
padding: 0px !important;
|
|
@@ -200,9 +200,9 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
200
200
|
{
|
|
201
201
|
ref_key: "videoWrapperRef",
|
|
202
202
|
ref: videoWrapperRef,
|
|
203
|
-
class: normalizeClass(["video-player-content", {
|
|
204
|
-
"video-player-content-pick-up": !unref(isExpand) && !unref(isFullScreen),
|
|
205
|
-
"full-video-player-content": unref(isFullScreen)
|
|
203
|
+
class: normalizeClass(["hy-video-player-content", {
|
|
204
|
+
"hy-video-player-content-pick-up": !unref(isExpand) && !unref(isFullScreen),
|
|
205
|
+
"hy-full-video-player-content": unref(isFullScreen)
|
|
206
206
|
}])
|
|
207
207
|
},
|
|
208
208
|
[
|
|
@@ -471,7 +471,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
471
471
|
placement: "top",
|
|
472
472
|
trigger: "click",
|
|
473
473
|
appendToBody: false,
|
|
474
|
-
"popper-class": "popover-speed"
|
|
474
|
+
"popper-class": "hy-video-player-popover-speed"
|
|
475
475
|
}, {
|
|
476
476
|
reference: withCtx(() => [
|
|
477
477
|
createElementVNode(
|
|
@@ -509,7 +509,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
509
509
|
placement: "top",
|
|
510
510
|
appendToBody: false,
|
|
511
511
|
trigger: "click",
|
|
512
|
-
"popper-class": "popover-volume-slider"
|
|
512
|
+
"popper-class": "hy-video-player-popover-volume-slider"
|
|
513
513
|
}, {
|
|
514
514
|
reference: withCtx(() => [
|
|
515
515
|
createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
@@ -530,7 +530,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
530
530
|
])
|
|
531
531
|
]),
|
|
532
532
|
default: withCtx(() => [
|
|
533
|
-
createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
533
|
+
createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
|
|
534
534
|
createVNode(unref(ElSlider), {
|
|
535
535
|
modelValue: unref(volumeValue),
|
|
536
536
|
"onUpdate:modelValue": ($event) => isRef(volumeValue) ? volumeValue.value = $event : null,
|
package/es/components/index.mjs
CHANGED
|
@@ -20,7 +20,8 @@ export { HyVideoPlayer } from './hyVideoPlayer/index.mjs';
|
|
|
20
20
|
export { HyAudioPlayer } from './hyAudioPlayer/index.mjs';
|
|
21
21
|
export { ElInput, HyInput } from './hyInput/index.mjs';
|
|
22
22
|
export { ElTimePicker, HyTimePicker } from './hyTimePicker/index.mjs';
|
|
23
|
-
export { HyTableForm } from './hyTableForm/index.mjs';
|
|
23
|
+
export { HyBatchTableForm, HyTableForm } from './hyTableForm/index.mjs';
|
|
24
24
|
export { resetAppFormValue, useAppForm } from './hyForm/js/useAppForm.mjs';
|
|
25
25
|
export { resetAppSearchValue, useAppSearch } from './hySearch/js/useAppSearch.mjs';
|
|
26
26
|
export { useAppTable } from './hyTable/js/useAppTable.mjs';
|
|
27
|
+
export { useAppTableForm } from './hyTableForm/js/useAppTableForm.mjs';
|
package/es/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ export { ElInput, HyInput } from './components/hyInput/index.mjs';
|
|
|
4
4
|
export { ElTimePicker, HyTimePicker } from './components/hyTimePicker/index.mjs';
|
|
5
5
|
export { ElTooltip, HyTooltip } from './components/hyTooltip/index.mjs';
|
|
6
6
|
export { HyAudioPlayer } from './components/hyAudioPlayer/index.mjs';
|
|
7
|
+
export { HyBatchTableForm, HyTableForm } from './components/hyTableForm/index.mjs';
|
|
7
8
|
export { HyButton } from './components/hyButton/index.mjs';
|
|
8
9
|
export { HyConfigProvider } from './components/hyConfigProvider/index.mjs';
|
|
9
10
|
export { HyConfirmDialog } from './components/hyConfirmDialog/index.mjs';
|
|
@@ -18,7 +19,6 @@ export { HyNoPermissionsMap } from './components/hyNoPermissionsMap/index.mjs';
|
|
|
18
19
|
export { HyOrgCascader } from './components/hyOrgCascader/index.mjs';
|
|
19
20
|
export { HySearch } from './components/hySearch/index.mjs';
|
|
20
21
|
export { HyTable } from './components/hyTable/index.mjs';
|
|
21
|
-
export { HyTableForm } from './components/hyTableForm/index.mjs';
|
|
22
22
|
export { HyTree } from './components/hyTree/index.mjs';
|
|
23
23
|
export { HyUserAvatar } from './components/hyUserAvatar/index.mjs';
|
|
24
24
|
export { HyVideoPlayer } from './components/hyVideoPlayer/index.mjs';
|
|
@@ -43,6 +43,7 @@ export { parseRem, pxTorem, remToPx, vwToPx } from './utils/adaptive.mjs';
|
|
|
43
43
|
export { resetAppFormValue, useAppForm } from './components/hyForm/js/useAppForm.mjs';
|
|
44
44
|
export { resetAppSearchValue, useAppSearch } from './components/hySearch/js/useAppSearch.mjs';
|
|
45
45
|
export { useAppTable } from './components/hyTable/js/useAppTable.mjs';
|
|
46
|
+
export { useAppTableForm } from './components/hyTableForm/js/useAppTableForm.mjs';
|
|
46
47
|
export { useMixins } from './hooks/useMixins.mjs';
|
|
47
48
|
export { useResizeHandler } from './hooks/useResizeHandler.mjs';
|
|
48
49
|
|
package/es/locale/en.mjs
CHANGED
|
@@ -33,7 +33,7 @@ var en = {
|
|
|
33
33
|
hideFilter: "Hide filter",
|
|
34
34
|
displayFilter: "Display filter",
|
|
35
35
|
tooManyFieldsWillAffectReadability: "Too Many Fields Will Affect Readability",
|
|
36
|
-
|
|
36
|
+
selectedNumberItems: "Selected {0} Items",
|
|
37
37
|
clear: "Clear",
|
|
38
38
|
show: "Show",
|
|
39
39
|
notShown: "Not Shown",
|
package/es/locale/zh_CN.mjs
CHANGED
|
@@ -33,7 +33,7 @@ var zh_CN = {
|
|
|
33
33
|
hideFilter: "\u9690\u85CF\u7B5B\u9009\u5668",
|
|
34
34
|
displayFilter: "\u663E\u793A\u7B5B\u9009\u5668",
|
|
35
35
|
tooManyFieldsWillAffectReadability: "\u5B57\u6BB5\u8FC7\u591A\u5C06\u5F71\u54CD\u53EF\u8BFB\u6027",
|
|
36
|
-
|
|
36
|
+
selectedNumberItems: "\u5DF2\u9009\u62E9{0}\u4E2A",
|
|
37
37
|
clear: "\u6E05\u9664",
|
|
38
38
|
show: "\u663E\u793A",
|
|
39
39
|
notShown: "\u672A\u663E\u793A",
|
|
@@ -698,7 +698,8 @@
|
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
.hy-el-tabs__nav-wrap::after {
|
|
701
|
-
background-color:
|
|
701
|
+
background-color: transparent;
|
|
702
|
+
// background-color: rgba(var(--hy-background), 1);
|
|
702
703
|
}
|
|
703
704
|
|
|
704
705
|
.hy-el-tabs__active-bar {
|
|
@@ -707,7 +708,7 @@
|
|
|
707
708
|
|
|
708
709
|
.hy-el-tabs .hy-el-tabs__item {
|
|
709
710
|
border-radius: 6px 6px 0 0;
|
|
710
|
-
border: 1px solid rgba(var(--hy-background-2), 1);
|
|
711
|
+
// border: 1px solid rgba(var(--hy-background-2), 1);
|
|
711
712
|
padding: 0 20px !important;
|
|
712
713
|
|
|
713
714
|
&:hover {
|
package/es/style/tailwind.scss
CHANGED
|
@@ -1,3 +1,135 @@
|
|
|
1
|
-
|
|
1
|
+
*, ::before, ::after {
|
|
2
|
+
--tw-border-spacing-x: 0;
|
|
3
|
+
--tw-border-spacing-y: 0;
|
|
4
|
+
--tw-translate-x: 0;
|
|
5
|
+
--tw-translate-y: 0;
|
|
6
|
+
--tw-rotate: 0;
|
|
7
|
+
--tw-skew-x: 0;
|
|
8
|
+
--tw-skew-y: 0;
|
|
9
|
+
--tw-scale-x: 1;
|
|
10
|
+
--tw-scale-y: 1;
|
|
11
|
+
--tw-pan-x: ;
|
|
12
|
+
--tw-pan-y: ;
|
|
13
|
+
--tw-pinch-zoom: ;
|
|
14
|
+
--tw-scroll-snap-strictness: proximity;
|
|
15
|
+
--tw-gradient-from-position: ;
|
|
16
|
+
--tw-gradient-via-position: ;
|
|
17
|
+
--tw-gradient-to-position: ;
|
|
18
|
+
--tw-ordinal: ;
|
|
19
|
+
--tw-slashed-zero: ;
|
|
20
|
+
--tw-numeric-figure: ;
|
|
21
|
+
--tw-numeric-spacing: ;
|
|
22
|
+
--tw-numeric-fraction: ;
|
|
23
|
+
--tw-ring-inset: ;
|
|
24
|
+
--tw-ring-offset-width: 0px;
|
|
25
|
+
--tw-ring-offset-color: #fff;
|
|
26
|
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
27
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
28
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
29
|
+
--tw-shadow: 0 0 #0000;
|
|
30
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
31
|
+
--tw-blur: ;
|
|
32
|
+
--tw-brightness: ;
|
|
33
|
+
--tw-contrast: ;
|
|
34
|
+
--tw-grayscale: ;
|
|
35
|
+
--tw-hue-rotate: ;
|
|
36
|
+
--tw-invert: ;
|
|
37
|
+
--tw-saturate: ;
|
|
38
|
+
--tw-sepia: ;
|
|
39
|
+
--tw-drop-shadow: ;
|
|
40
|
+
--tw-backdrop-blur: ;
|
|
41
|
+
--tw-backdrop-brightness: ;
|
|
42
|
+
--tw-backdrop-contrast: ;
|
|
43
|
+
--tw-backdrop-grayscale: ;
|
|
44
|
+
--tw-backdrop-hue-rotate: ;
|
|
45
|
+
--tw-backdrop-invert: ;
|
|
46
|
+
--tw-backdrop-opacity: ;
|
|
47
|
+
--tw-backdrop-saturate: ;
|
|
48
|
+
--tw-backdrop-sepia: ;
|
|
49
|
+
--tw-contain-size: ;
|
|
50
|
+
--tw-contain-layout: ;
|
|
51
|
+
--tw-contain-paint: ;
|
|
52
|
+
--tw-contain-style: ;
|
|
53
|
+
}
|
|
54
|
+
*,
|
|
55
|
+
::before,
|
|
56
|
+
::after {
|
|
57
|
+
box-sizing: border-box;
|
|
58
|
+
/* 1 */
|
|
59
|
+
border-width: 0;
|
|
60
|
+
/* 2 */
|
|
61
|
+
border-style: solid;
|
|
62
|
+
/* 2 */
|
|
63
|
+
border-color: #e5e7eb;
|
|
64
|
+
/* 2 */
|
|
65
|
+
}
|
|
66
|
+
::backdrop {
|
|
67
|
+
--tw-border-spacing-x: 0;
|
|
68
|
+
--tw-border-spacing-y: 0;
|
|
69
|
+
--tw-translate-x: 0;
|
|
70
|
+
--tw-translate-y: 0;
|
|
71
|
+
--tw-rotate: 0;
|
|
72
|
+
--tw-skew-x: 0;
|
|
73
|
+
--tw-skew-y: 0;
|
|
74
|
+
--tw-scale-x: 1;
|
|
75
|
+
--tw-scale-y: 1;
|
|
76
|
+
--tw-pan-x: ;
|
|
77
|
+
--tw-pan-y: ;
|
|
78
|
+
--tw-pinch-zoom: ;
|
|
79
|
+
--tw-scroll-snap-strictness: proximity;
|
|
80
|
+
--tw-gradient-from-position: ;
|
|
81
|
+
--tw-gradient-via-position: ;
|
|
82
|
+
--tw-gradient-to-position: ;
|
|
83
|
+
--tw-ordinal: ;
|
|
84
|
+
--tw-slashed-zero: ;
|
|
85
|
+
--tw-numeric-figure: ;
|
|
86
|
+
--tw-numeric-spacing: ;
|
|
87
|
+
--tw-numeric-fraction: ;
|
|
88
|
+
--tw-ring-inset: ;
|
|
89
|
+
--tw-ring-offset-width: 0px;
|
|
90
|
+
--tw-ring-offset-color: #fff;
|
|
91
|
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
92
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
93
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
94
|
+
--tw-shadow: 0 0 #0000;
|
|
95
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
96
|
+
--tw-blur: ;
|
|
97
|
+
--tw-brightness: ;
|
|
98
|
+
--tw-contrast: ;
|
|
99
|
+
--tw-grayscale: ;
|
|
100
|
+
--tw-hue-rotate: ;
|
|
101
|
+
--tw-invert: ;
|
|
102
|
+
--tw-saturate: ;
|
|
103
|
+
--tw-sepia: ;
|
|
104
|
+
--tw-drop-shadow: ;
|
|
105
|
+
--tw-backdrop-blur: ;
|
|
106
|
+
--tw-backdrop-brightness: ;
|
|
107
|
+
--tw-backdrop-contrast: ;
|
|
108
|
+
--tw-backdrop-grayscale: ;
|
|
109
|
+
--tw-backdrop-hue-rotate: ;
|
|
110
|
+
--tw-backdrop-invert: ;
|
|
111
|
+
--tw-backdrop-opacity: ;
|
|
112
|
+
--tw-backdrop-saturate: ;
|
|
113
|
+
--tw-backdrop-sepia: ;
|
|
114
|
+
--tw-contain-size: ;
|
|
115
|
+
--tw-contain-layout: ;
|
|
116
|
+
--tw-contain-paint: ;
|
|
117
|
+
--tw-contain-style: ;
|
|
118
|
+
}
|
|
2
119
|
@tailwind components;
|
|
3
120
|
@tailwind utilities;
|
|
121
|
+
|
|
122
|
+
html,body, #app{
|
|
123
|
+
width: 100%;
|
|
124
|
+
height: 100%;
|
|
125
|
+
position: relative;
|
|
126
|
+
background: rgb(var(--hy-background), var(--tw-bg-opacity, 1));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
ol,
|
|
130
|
+
ul,
|
|
131
|
+
menu {
|
|
132
|
+
list-style: none;
|
|
133
|
+
margin: 0;
|
|
134
|
+
padding: 0;
|
|
135
|
+
}
|
package/es/version.mjs
CHANGED
|
@@ -167,7 +167,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
167
167
|
return vue.openBlock(), vue.createElementBlock(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
170
|
-
class: vue.normalizeClass(["audio-player", { "audio-player-pack-up": !__props.showPicture }])
|
|
170
|
+
class: vue.normalizeClass(["hy-audio-player", { "audio-player-pack-up": !__props.showPicture }])
|
|
171
171
|
},
|
|
172
172
|
[
|
|
173
173
|
__props.showPicture ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -337,7 +337,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
337
337
|
placement: "top",
|
|
338
338
|
trigger: "click",
|
|
339
339
|
appendToBody: false,
|
|
340
|
-
"popper-class": "popover-speed"
|
|
340
|
+
"popper-class": "hy-audio-player-popover-speed"
|
|
341
341
|
}, {
|
|
342
342
|
reference: vue.withCtx(() => [
|
|
343
343
|
vue.createElementVNode(
|
|
@@ -423,7 +423,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
423
423
|
placement: "top",
|
|
424
424
|
appendToBody: false,
|
|
425
425
|
trigger: "click",
|
|
426
|
-
"popper-class": "popover-volume-slider"
|
|
426
|
+
"popper-class": "hy-audio-player-popover-volume-slider"
|
|
427
427
|
}, {
|
|
428
428
|
reference: vue.withCtx(() => [
|
|
429
429
|
vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
@@ -441,7 +441,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
441
441
|
])
|
|
442
442
|
]),
|
|
443
443
|
default: vue.withCtx(() => [
|
|
444
|
-
vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
444
|
+
vue.createElementVNode("div", { class: "flex items-center justify-center pt-3" }, [
|
|
445
445
|
vue.createVNode(vue.unref(elementPlus.ElSlider), {
|
|
446
446
|
modelValue: vue.unref(volumeValue),
|
|
447
447
|
"onUpdate:modelValue": ($event) => vue.isRef(volumeValue) ? volumeValue.value = $event : null,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var elementPlus = require('element-plus');
|
|
5
|
-
var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
|
|
6
5
|
var useLocale = require('../../../hooks/useLocale.js');
|
|
6
|
+
var useAudioPlayerConfig = require('../../../hooks/useAudioPlayerConfig.js');
|
|
7
7
|
var date = require('../../../utils/date.js');
|
|
8
8
|
|
|
9
9
|
const useAudioPlayer = (hy) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.audio-player {
|
|
1
|
+
.hy-audio-player {
|
|
2
2
|
width: 100%;
|
|
3
3
|
height: 256px;
|
|
4
4
|
display: flex;
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
border-radius: 50%;
|
|
70
70
|
border: 4px solid rgba(var(--hy-theme));
|
|
71
71
|
opacity: 0;
|
|
72
|
-
-webkit-animation: ripple 4.5s ease-out 225ms infinite;
|
|
73
|
-
animation: ripple 4.5s ease-out 225ms infinite;
|
|
72
|
+
-webkit-animation: hy-audio-player-ripple 4.5s ease-out 225ms infinite;
|
|
73
|
+
animation: hy-audio-player-ripple 4.5s ease-out 225ms infinite;
|
|
74
74
|
}
|
|
75
75
|
.point_40 {
|
|
76
76
|
width: 100%;
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
border-radius: 50%;
|
|
88
88
|
border: 4px solid rgba(var(--hy-theme));
|
|
89
89
|
opacity: 0;
|
|
90
|
-
-webkit-animation: ripple 4.5s ease-out 0.9s infinite;
|
|
91
|
-
animation: ripple 4.5s ease-out 0.9s infinite;
|
|
90
|
+
-webkit-animation: hy-audio-player-ripple 4.5s ease-out 0.9s infinite;
|
|
91
|
+
animation: hy-audio-player-ripple 4.5s ease-out 0.9s infinite;
|
|
92
92
|
}
|
|
93
93
|
.point_80 {
|
|
94
94
|
width: 100%;
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
border-radius: 50%;
|
|
106
106
|
border: 4px solid rgba(var(--hy-theme));
|
|
107
107
|
opacity: 0;
|
|
108
|
-
-webkit-animation: ripple 4.5s ease-out 1.8s infinite;
|
|
109
|
-
animation: ripple 4.5s ease-out 1.8s infinite;
|
|
108
|
+
-webkit-animation: hy-audio-player-ripple 4.5s ease-out 1.8s infinite;
|
|
109
|
+
animation: hy-audio-player-ripple 4.5s ease-out 1.8s infinite;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -257,14 +257,13 @@
|
|
|
257
257
|
height: 56px;
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
|
|
261
|
-
.popover-volume-slider {
|
|
260
|
+
.hy-audio-player-popover-volume-slider {
|
|
262
261
|
min-width: auto !important;
|
|
263
262
|
width: 40px !important;
|
|
264
263
|
padding: 16px 0;
|
|
265
264
|
}
|
|
266
265
|
|
|
267
|
-
.popover-speed {
|
|
266
|
+
.hy-audio-player-popover-speed {
|
|
268
267
|
min-width: auto !important;
|
|
269
268
|
width: 62px !important;
|
|
270
269
|
padding: 0px !important;
|
|
@@ -289,7 +288,7 @@
|
|
|
289
288
|
}
|
|
290
289
|
}
|
|
291
290
|
|
|
292
|
-
@-webkit-keyframes ripple {
|
|
291
|
+
@-webkit-keyframes hy-audio-player-ripple {
|
|
293
292
|
0% {
|
|
294
293
|
opacity: 0;
|
|
295
294
|
-webkit-transform: scale(0.1);
|
|
@@ -302,7 +301,7 @@
|
|
|
302
301
|
-webkit-transform: scale(1);
|
|
303
302
|
}
|
|
304
303
|
}
|
|
305
|
-
@keyframes ripple {
|
|
304
|
+
@keyframes hy-audio-player-ripple {
|
|
306
305
|
0% {
|
|
307
306
|
opacity: 0;
|
|
308
307
|
-webkit-transform: scale(0.1);
|
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var elementPlus = require('element-plus');
|
|
7
7
|
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
-
var index = require('../
|
|
8
|
+
var index = require('../hyTooltip/index.js');
|
|
9
|
+
var index$1 = require('../hyIcon/index.js');
|
|
9
10
|
|
|
10
11
|
import "./style/button.scss";
|
|
11
12
|
|
|
@@ -27,6 +28,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
27
28
|
type: Boolean,
|
|
28
29
|
default: false
|
|
29
30
|
},
|
|
31
|
+
loadingTip: {
|
|
32
|
+
// 加载中气泡文本
|
|
33
|
+
type: String
|
|
34
|
+
},
|
|
30
35
|
size: {
|
|
31
36
|
type: String,
|
|
32
37
|
size: "default"
|
|
@@ -76,7 +81,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
76
81
|
"is-disabled": __props.disabled
|
|
77
82
|
}
|
|
78
83
|
]]
|
|
79
|
-
}, _ctx.$attrs), [
|
|
84
|
+
}, _ctx.$attrs, { onClick: handleClick }), [
|
|
80
85
|
vue.renderSlot(_ctx.$slots, "default")
|
|
81
86
|
], 16, ["type", "disabled", "loading"])) : (vue.openBlock(), vue.createElementBlock("button", {
|
|
82
87
|
key: 1,
|
|
@@ -116,39 +121,49 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
116
121
|
},
|
|
117
122
|
[
|
|
118
123
|
vue.createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
|
|
119
|
-
vue.
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
vue.
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
124
|
+
vue.createVNode(vue.unref(index.HyTooltip), {
|
|
125
|
+
"is-always": "",
|
|
126
|
+
disabled: !__props.loading || !__props.loadingTip,
|
|
127
|
+
content: __props.loadingTip
|
|
128
|
+
}, {
|
|
129
|
+
default: vue.withCtx(() => [
|
|
130
|
+
vue.renderSlot(_ctx.$slots, "content", {}, () => [
|
|
131
|
+
vue.createElementVNode(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
class: vue.normalizeClass(["flex items-center text-main", {
|
|
135
|
+
"px-3": !__props.expand,
|
|
136
|
+
"pl-3 pr-1.5": __props.expand
|
|
137
|
+
}])
|
|
138
|
+
},
|
|
139
|
+
[
|
|
140
|
+
!__props.loading ? vue.renderSlot(_ctx.$slots, "svg", {}, () => [
|
|
141
|
+
__props.svgName ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
|
|
142
|
+
key: 0,
|
|
143
|
+
"svg-name": __props.svgName,
|
|
144
|
+
"class-name": "!w-3 !h-3 text-main mr-2"
|
|
145
|
+
}, null, 8, ["svg-name"])) : vue.createCommentVNode("v-if", true)
|
|
146
|
+
], void 0, 0) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
147
|
+
key: 1,
|
|
148
|
+
color: "rgb(var(--hy-main))",
|
|
149
|
+
class: "is-loading mr-2"
|
|
150
|
+
}, {
|
|
151
|
+
default: vue.withCtx(() => [
|
|
152
|
+
vue.createVNode(vue.unref(iconsVue.Loading))
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
/* STABLE */
|
|
156
|
+
})),
|
|
157
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
158
|
+
],
|
|
159
|
+
2
|
|
160
|
+
/* CLASS */
|
|
161
|
+
)
|
|
162
|
+
])
|
|
163
|
+
]),
|
|
164
|
+
_: 3
|
|
165
|
+
/* FORWARDED */
|
|
166
|
+
}, 8, ["disabled", "content"]),
|
|
152
167
|
__props.expand ? (vue.openBlock(), vue.createElementBlock(
|
|
153
168
|
vue.Fragment,
|
|
154
169
|
{ key: 0 },
|
|
@@ -300,19 +300,28 @@
|
|
|
300
300
|
text-decoration-color: var(--hy-button-text-color);
|
|
301
301
|
text-decoration-thickness: 1px;
|
|
302
302
|
text-underline-offset: 4px;
|
|
303
|
+
background: none;
|
|
304
|
+
border: none;
|
|
305
|
+
cursor: pointer;
|
|
306
|
+
|
|
307
|
+
&:not(.is-disabled) {
|
|
308
|
+
&:active {
|
|
309
|
+
opacity: 0.8;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
303
312
|
|
|
304
313
|
&.hy-button--large {
|
|
305
314
|
--hy-button-font-size: 14px;
|
|
306
|
-
padding: 10px 19px 9px;
|
|
315
|
+
// padding: 10px 19px 9px;
|
|
307
316
|
}
|
|
308
317
|
|
|
309
318
|
&.hy-button--default {
|
|
310
|
-
padding: 6px 15px 5px;
|
|
319
|
+
// padding: 6px 15px 5px;
|
|
311
320
|
}
|
|
312
321
|
|
|
313
322
|
&.hy-button--small {
|
|
314
323
|
--hy-button-font-size: 12px;
|
|
315
|
-
padding: 4px 11px;
|
|
324
|
+
// padding: 4px 11px;
|
|
316
325
|
}
|
|
317
326
|
|
|
318
327
|
&.hy-button_default {
|
|
@@ -330,4 +339,8 @@
|
|
|
330
339
|
&.hy-button_delete {
|
|
331
340
|
--hy-button-text-color: rgba(var(--hy-danger-2));
|
|
332
341
|
}
|
|
342
|
+
|
|
343
|
+
&.is-disabled {
|
|
344
|
+
cursor: not-allowed;
|
|
345
|
+
}
|
|
333
346
|
}
|