hy-dispatch-ui-v3 0.2.30 → 0.2.32
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 +8 -8
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +7 -7
- package/es/components/hyAudioPlayer/js/index.mjs +3 -3
- package/es/components/hyButton/button.vue.mjs +112 -65
- package/es/components/hyButton/style/button.scss +282 -237
- package/es/components/hyForm/index.mjs +1 -1
- package/es/components/hyForm/js/useAppForm.mjs +1 -2
- package/es/components/hyIcon/style/icon.scss +6 -0
- package/es/components/hyMenu/menu.vue.mjs +1 -1
- package/es/components/hyMenu/style/menu.scss +1 -1
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
- package/es/components/hySearch/index.mjs +1 -1
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +331 -319
- package/es/components/hyTable/js/index.mjs +7 -3
- package/es/components/hyTable/js/useAppTable.mjs +1 -1
- package/es/components/hyTable/table.vue.mjs +11 -7
- package/es/components/hyTree/tree.vue.mjs +6 -7
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/js/index.mjs +3 -3
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +11 -11
- package/es/components/index.mjs +2 -2
- package/es/index.mjs +2 -2
- package/es/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
- package/es/utils/handler.mjs +4 -4
- package/es/version.mjs +1 -1
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +7 -7
- package/lib/components/hyAudioPlayer/js/index.js +3 -3
- package/lib/components/hyButton/button.vue.js +111 -64
- package/lib/components/hyButton/style/button.scss +282 -237
- package/lib/components/hyForm/index.js +1 -0
- package/lib/components/hyForm/js/useAppForm.js +1 -2
- package/lib/components/hyIcon/style/icon.scss +6 -0
- package/lib/components/hyMenu/menu.vue.js +1 -1
- package/lib/components/hyMenu/style/menu.scss +1 -1
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
- package/lib/components/hySearch/index.js +1 -0
- package/lib/components/hyTable/cpns/virtualTable.vue.js +329 -317
- package/lib/components/hyTable/js/index.js +7 -3
- package/lib/components/hyTable/js/useAppTable.js +1 -1
- package/lib/components/hyTable/table.vue.js +11 -7
- package/lib/components/hyTree/tree.vue.js +5 -6
- package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
- package/lib/components/hyVideoPlayer/js/index.js +3 -3
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +11 -11
- package/lib/components/index.js +2 -0
- package/lib/index.js +2 -0
- package/lib/static/hy-svg-icons/hy-icon-dispatch-linear-map-treelist.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-dispatch-share-guidao.js +8 -0
- package/lib/utils/handler.js +4 -4
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/dist/tailwind.css
CHANGED
|
@@ -1211,10 +1211,6 @@ video {
|
|
|
1211
1211
|
border-radius: 2px;
|
|
1212
1212
|
}
|
|
1213
1213
|
|
|
1214
|
-
.rounded-\[4px\] {
|
|
1215
|
-
border-radius: 4px;
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
1214
|
.rounded-\[6px\] {
|
|
1219
1215
|
border-radius: 6px;
|
|
1220
1216
|
}
|
|
@@ -1227,6 +1223,10 @@ video {
|
|
|
1227
1223
|
border-radius: 0.375rem;
|
|
1228
1224
|
}
|
|
1229
1225
|
|
|
1226
|
+
.rounded-sm {
|
|
1227
|
+
border-radius: 0.125rem;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
1230
|
.border {
|
|
1231
1231
|
border-width: 1px;
|
|
1232
1232
|
}
|
|
@@ -1368,10 +1368,6 @@ video {
|
|
|
1368
1368
|
padding: 1px;
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
-
.p-\[2px\] {
|
|
1372
|
-
padding: 2px;
|
|
1373
|
-
}
|
|
1374
|
-
|
|
1375
1371
|
.px-1\.5 {
|
|
1376
1372
|
padding-left: 0.375rem;
|
|
1377
1373
|
padding-right: 0.375rem;
|
|
@@ -1609,6 +1605,10 @@ video {
|
|
|
1609
1605
|
color: rgb(var(--hy-warning), var(--tw-text-opacity, 1));
|
|
1610
1606
|
}
|
|
1611
1607
|
|
|
1608
|
+
.underline {
|
|
1609
|
+
text-decoration-line: underline;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
1612
|
.shadow-\[0_0_4px_0\] {
|
|
1613
1613
|
--tw-shadow: 0 0 4px 0;
|
|
1614
1614
|
--tw-shadow-colored: 0 0 4px 0 var(--tw-shadow-color);
|
|
@@ -188,7 +188,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
188
188
|
}, [
|
|
189
189
|
createElementVNode("div", { class: "point point_dot" }, [
|
|
190
190
|
createElementVNode("div", { class: "flex items-center justify-center" }, [
|
|
191
|
-
createVNode(unref(HyIcon), { "svg-name": "menu-
|
|
191
|
+
createVNode(unref(HyIcon), { "svg-name": "layout-sidenav-menu-micphone-v2" })
|
|
192
192
|
])
|
|
193
193
|
]),
|
|
194
194
|
withDirectives(createElementVNode(
|
|
@@ -242,7 +242,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
242
242
|
[
|
|
243
243
|
createElementVNode("div", { onClick: unref(playPrevious) }, [
|
|
244
244
|
createVNode(unref(HyIcon), {
|
|
245
|
-
"svg-name": unref(isAnalyseType) ? "
|
|
245
|
+
"svg-name": unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-last" : "ops-audio-audio-previous-btn",
|
|
246
246
|
"class-name": "last-icon"
|
|
247
247
|
}, null, 8, ["svg-name"])
|
|
248
248
|
], 8, ["onClick"]),
|
|
@@ -250,17 +250,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
250
250
|
key: 0,
|
|
251
251
|
onClick: ($event) => unref(playAudio)(unref(audioUrl))
|
|
252
252
|
}, [
|
|
253
|
-
createVNode(unref(HyIcon), { "svg-name": "
|
|
253
|
+
createVNode(unref(HyIcon), { "svg-name": "ops-audio-audio-play-btn" })
|
|
254
254
|
], 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
255
255
|
unref(audioState) === "PLAYING" ? (openBlock(), createElementBlock("div", {
|
|
256
256
|
key: 1,
|
|
257
257
|
onClick: unref(pauseAudio)
|
|
258
258
|
}, [
|
|
259
|
-
createVNode(unref(HyIcon), { "svg-name": "
|
|
259
|
+
createVNode(unref(HyIcon), { "svg-name": "ops-audio-audio-pause-btn" })
|
|
260
260
|
], 8, ["onClick"])) : createCommentVNode("v-if", true),
|
|
261
261
|
createElementVNode("div", { onClick: unref(playNext) }, [
|
|
262
262
|
createVNode(unref(HyIcon), {
|
|
263
|
-
"svg-name": unref(isAnalyseType) ? "
|
|
263
|
+
"svg-name": unref(isAnalyseType) ? "dispatch-share1-v3-ai-interpretation-next" : "ops-audio-audio-next-btn",
|
|
264
264
|
"class-name": "next-icon"
|
|
265
265
|
}, null, 8, ["svg-name"])
|
|
266
266
|
], 8, ["onClick"]),
|
|
@@ -375,7 +375,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
375
375
|
}, {
|
|
376
376
|
default: withCtx(() => [
|
|
377
377
|
createVNode(unref(HyIcon), {
|
|
378
|
-
"svg-name": "
|
|
378
|
+
"svg-name": "ops-audio-audio-down-btn",
|
|
379
379
|
onClick: unref(onDownloadHandler)
|
|
380
380
|
}, null, 8, ["onClick"])
|
|
381
381
|
]),
|
|
@@ -429,7 +429,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
429
429
|
content: unref(t)("audioPlayer.adjustPlaybackVolume")
|
|
430
430
|
}, {
|
|
431
431
|
default: withCtx(() => [
|
|
432
|
-
createVNode(unref(HyIcon), { "svg-name": "
|
|
432
|
+
createVNode(unref(HyIcon), { "svg-name": "dispatch-share-audio-volumn" })
|
|
433
433
|
]),
|
|
434
434
|
_: 1
|
|
435
435
|
/* STABLE */
|
|
@@ -31,17 +31,17 @@ const useAudioPlayer = (hy) => {
|
|
|
31
31
|
{
|
|
32
32
|
value: 1,
|
|
33
33
|
label: t("audioPlayer.stopAfterPlayback"),
|
|
34
|
-
svgName: "
|
|
34
|
+
svgName: "ops-audio-media-center-stop-playing"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
value: 2,
|
|
38
38
|
label: t("audioPlayer.continuousPlayback"),
|
|
39
|
-
svgName: "
|
|
39
|
+
svgName: "ops-audio-media-center-autoplay"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
value: 3,
|
|
43
43
|
label: t("audioPlayer.loopPlayback"),
|
|
44
|
-
svgName: "
|
|
44
|
+
svgName: "ops-audio-media-center-loop-playback"
|
|
45
45
|
}
|
|
46
46
|
];
|
|
47
47
|
const isAnalyseType = computed(() => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, normalizeClass, createCommentVNode, createElementVNode,
|
|
1
|
+
import { openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createBlock, unref, withCtx, createVNode, Fragment, defineComponent } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { Loading, ArrowDown } from '@element-plus/icons-vue';
|
|
4
4
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
@@ -32,6 +32,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
32
32
|
type: String
|
|
33
33
|
},
|
|
34
34
|
expand: {
|
|
35
|
+
// 展开,仅普通按钮支持
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: false
|
|
38
|
+
},
|
|
39
|
+
link: {
|
|
40
|
+
// 链接按钮
|
|
35
41
|
type: Boolean,
|
|
36
42
|
default: false
|
|
37
43
|
}
|
|
@@ -51,14 +57,33 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
51
57
|
emit("click", event);
|
|
52
58
|
};
|
|
53
59
|
return (_ctx, _cache) => {
|
|
54
|
-
return openBlock(), createElementBlock("button", {
|
|
55
|
-
|
|
60
|
+
return __props.link ? (openBlock(), createElementBlock("button", mergeProps({
|
|
61
|
+
key: 0,
|
|
62
|
+
type: __props.type,
|
|
56
63
|
disabled: __props.disabled,
|
|
57
|
-
|
|
64
|
+
loading: __props.loading,
|
|
65
|
+
link: "",
|
|
66
|
+
class: ["hy-button-text", [
|
|
58
67
|
typeObj[props.type],
|
|
59
68
|
{
|
|
60
69
|
"hy-button--large": __props.size === "large",
|
|
70
|
+
"hy-button--default": __props.size === "default",
|
|
61
71
|
"hy-button--small": __props.size === "small",
|
|
72
|
+
"is-disabled": __props.disabled
|
|
73
|
+
}
|
|
74
|
+
]]
|
|
75
|
+
}, _ctx.$attrs), [
|
|
76
|
+
renderSlot(_ctx.$slots, "default")
|
|
77
|
+
], 16, ["type", "disabled", "loading"])) : (openBlock(), createElementBlock("button", {
|
|
78
|
+
key: 1,
|
|
79
|
+
type: "button",
|
|
80
|
+
disabled: __props.disabled,
|
|
81
|
+
class: normalizeClass(["hy-button", [
|
|
82
|
+
typeObj[props.type],
|
|
83
|
+
{
|
|
84
|
+
"hy-button--large rounded-md": __props.size === "large",
|
|
85
|
+
"hy-button--default rounded-md": __props.size === "default",
|
|
86
|
+
"hy-button--small rounded": __props.size === "small",
|
|
62
87
|
"is-disabled": __props.disabled,
|
|
63
88
|
"is-loading": __props.loading,
|
|
64
89
|
clickBox: !__props.disabled && !__props.loading
|
|
@@ -67,67 +92,89 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
67
92
|
onClick: handleClick
|
|
68
93
|
}, [
|
|
69
94
|
createCommentVNode(" \u7B2C\u4E8C\u5C42\u5BB9\u5668 b "),
|
|
70
|
-
createElementVNode(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
95
|
+
createElementVNode(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
class: normalizeClass(["hy-button__border w-full h-full flex items-center justify-center p-[1px] box-border", {
|
|
99
|
+
rounded: ["large", "default"].includes(__props.size),
|
|
100
|
+
"rounded-sm": __props.size === "small"
|
|
101
|
+
}])
|
|
102
|
+
},
|
|
103
|
+
[
|
|
104
|
+
createCommentVNode(" \u7B2C\u4E09\u5C42\u5BB9\u5668 d "),
|
|
105
|
+
createElementVNode(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
class: normalizeClass(["hy-button__inner w-full h-full flex items-center justify-center relative", {
|
|
109
|
+
rounded: ["large", "default"].includes(__props.size),
|
|
110
|
+
"rounded-sm": __props.size === "small"
|
|
111
|
+
}])
|
|
112
|
+
},
|
|
113
|
+
[
|
|
114
|
+
createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
|
|
115
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
116
|
+
createElementVNode(
|
|
117
|
+
"div",
|
|
118
|
+
{
|
|
119
|
+
class: normalizeClass(["flex items-center text-main", {
|
|
120
|
+
"px-3": !__props.expand,
|
|
121
|
+
"pl-3 pr-1.5": __props.expand
|
|
122
|
+
}])
|
|
123
|
+
},
|
|
124
|
+
[
|
|
125
|
+
!__props.loading ? renderSlot(_ctx.$slots, "svg", { key: 0 }, () => [
|
|
126
|
+
__props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
|
|
127
|
+
key: 0,
|
|
128
|
+
"svg-name": __props.svgName,
|
|
129
|
+
"class-name": "!w-3 !h-3 text-main mr-2"
|
|
130
|
+
}, null, 8, ["svg-name"])) : createCommentVNode("v-if", true)
|
|
131
|
+
]) : (openBlock(), createBlock(unref(ElIcon), {
|
|
132
|
+
key: 1,
|
|
133
|
+
color: "rgb(var(--hy-main))",
|
|
134
|
+
class: "is-loading mr-2"
|
|
135
|
+
}, {
|
|
136
|
+
default: withCtx(() => [
|
|
137
|
+
createVNode(unref(Loading))
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
/* STABLE */
|
|
141
|
+
})),
|
|
142
|
+
renderSlot(_ctx.$slots, "default")
|
|
143
|
+
],
|
|
144
|
+
2
|
|
145
|
+
/* CLASS */
|
|
146
|
+
)
|
|
147
|
+
]),
|
|
148
|
+
__props.expand ? (openBlock(), createElementBlock(
|
|
149
|
+
Fragment,
|
|
150
|
+
{ key: 0 },
|
|
151
|
+
[
|
|
152
|
+
createElementVNode("div", { class: "w-px h-full bg-success/50" }),
|
|
153
|
+
createElementVNode("div", { class: "w-[30px] flex items-center justify-center" }, [
|
|
154
|
+
createVNode(unref(ElIcon), { color: "rgb(var(--hy-main))" }, {
|
|
155
|
+
default: withCtx(() => [
|
|
156
|
+
createVNode(unref(ArrowDown))
|
|
157
|
+
]),
|
|
158
|
+
_: 1
|
|
159
|
+
/* STABLE */
|
|
160
|
+
})
|
|
161
|
+
])
|
|
162
|
+
],
|
|
163
|
+
64
|
|
164
|
+
/* STABLE_FRAGMENT */
|
|
165
|
+
)) : createCommentVNode("v-if", true)
|
|
166
|
+
]),
|
|
167
|
+
createCommentVNode(" \u6E10\u53D8\u906E\u7F69 e "),
|
|
168
|
+
createElementVNode("div", { class: "hy-button__mask w-full h-full absolute blur-[1px]" })
|
|
169
|
+
],
|
|
170
|
+
2
|
|
171
|
+
/* CLASS */
|
|
172
|
+
)
|
|
173
|
+
],
|
|
174
|
+
2
|
|
175
|
+
/* CLASS */
|
|
176
|
+
)
|
|
177
|
+
], 10, ["disabled"]));
|
|
131
178
|
};
|
|
132
179
|
}
|
|
133
180
|
});
|