@vunk/plus 1.2.0 → 1.3.0
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/components/SendOutlined.mjs +43 -25
- package/components/agent-chat-provider/index.mjs +789 -0
- package/components/avatar/index.mjs +2 -2
- package/components/broadcasting-markdown/index.css +3 -0
- package/components/broadcasting-markdown/index.mjs +637 -0
- package/components/bubble-list/index.css +18 -0
- package/components/bubble-list/index.mjs +386 -0
- package/components/bubble-templates/index.css +18 -0
- package/components/bubble-templates/index.mjs +258 -0
- package/components/chat-independent/index.css +47 -0
- package/components/chat-independent/index.mjs +184 -0
- package/components/index.mjs +35980 -0
- package/components/lottie-animation/index.mjs +2 -2
- package/components/monaco-editor/index.mjs +2 -2
- package/components/monaco-environment/index.mjs +11 -11
- package/components/recorder-button/index.css +7 -10
- package/components/recorder-button/index.mjs +115 -83
- package/components/routes-menu-content/index.mjs +5 -5
- package/components/sender/index.css +6 -5
- package/components/sender/index.mjs +174 -26
- package/components/speech-button/index.mjs +40 -14
- package/components/table-columns/index.mjs +3 -6
- package/components/tables-v1/index.mjs +9 -10
- package/components/tables-v1-checkbox/index.mjs +269 -33
- package/components/typing-markdown/index.mjs +128 -33
- package/components/vditor/index.mjs +5 -9
- package/composables/el-breakpoints/index.d.ts +1 -1
- package/composables/recorder/index.mjs +752 -182
- package/icons/_plugin-vue_export-helper.mjs +9 -0
- package/icons/end/index.d.ts +4 -0
- package/icons/end/index.mjs +36 -0
- package/icons/end/src/avatar.d.ts +12 -0
- package/icons/end/src/icon.d.ts +57 -0
- package/icons/keyboard/index.d.ts +4 -0
- package/icons/keyboard/index.mjs +36 -0
- package/icons/keyboard/src/avatar.d.ts +12 -0
- package/icons/keyboard/src/icon.d.ts +57 -0
- package/icons/start/index.d.ts +4 -0
- package/icons/start/index.mjs +36 -0
- package/icons/start/src/avatar.d.ts +12 -0
- package/icons/start/src/icon.d.ts +57 -0
- package/icons/voice/index.d.ts +4 -0
- package/icons/voice/index.mjs +51 -0
- package/icons/voice/src/avatar.d.ts +12 -0
- package/icons/voice/src/icon.d.ts +57 -0
- package/icons/voice/src/index.vue.d.ts +4 -0
- package/index.css +103 -15
- package/package.json +51 -7
- package/components/avatar/index.d.ts +0 -4
- package/components/avatar/src/ctx.d.ts +0 -18
- package/components/avatar/src/index.vue.d.ts +0 -180
- package/components/avatar/src/types.d.ts +0 -1
- package/components/lottie-animation/index.d.ts +0 -4
- package/components/lottie-animation/src/ctx.d.ts +0 -10
- package/components/lottie-animation/src/index.vue.d.ts +0 -21
- package/components/lottie-animation/src/types.d.ts +0 -4
- package/components/monaco-editor/index.d.ts +0 -5
- package/components/monaco-editor/src/ctx.d.ts +0 -23
- package/components/monaco-editor/src/index.vue.d.ts +0 -40
- package/components/monaco-editor/src/types.d.ts +0 -1
- package/components/monaco-environment/index.d.ts +0 -4
- package/components/monaco-environment/src/ctx.d.ts +0 -8
- package/components/monaco-environment/src/index.vue.d.ts +0 -2
- package/components/monaco-environment/src/types.d.ts +0 -1
- package/components/recorder-button/index.d.ts +0 -4
- package/components/recorder-button/src/ctx.d.ts +0 -19
- package/components/recorder-button/src/index.vue.d.ts +0 -309
- package/components/recorder-button/src/speech-to-text.d.ts +0 -1
- package/components/recorder-button/src/types.d.ts +0 -6
- package/components/routes-menu-content/index.d.ts +0 -4
- package/components/routes-menu-content/src/ctx.d.ts +0 -17
- package/components/routes-menu-content/src/index.vue.d.ts +0 -350
- package/components/routes-menu-content/src/item/core/ctx.d.ts +0 -18
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +0 -185
- package/components/routes-menu-content/src/item/ctx.d.ts +0 -14
- package/components/routes-menu-content/src/item/index.vue.d.ts +0 -316
- package/components/routes-menu-content/src/types.d.ts +0 -1
- package/components/sender/index.d.ts +0 -4
- package/components/sender/src/ctx.d.ts +0 -21
- package/components/sender/src/index.vue.d.ts +0 -484
- package/components/sender/src/types.d.ts +0 -1
- package/components/speech-button/index.d.ts +0 -4
- package/components/speech-button/src/RecordingIcon.vue.d.ts +0 -2
- package/components/speech-button/src/ctx.d.ts +0 -10
- package/components/speech-button/src/index.vue.d.ts +0 -22
- package/components/speech-button/src/types.d.ts +0 -1
- package/components/table-columns/index.d.ts +0 -5
- package/components/table-columns/src/ctx.d.ts +0 -66
- package/components/table-columns/src/el-ctx.d.ts +0 -63
- package/components/table-columns/src/index.vue.d.ts +0 -280
- package/components/table-columns/src/types.d.ts +0 -21
- package/components/tables-v1/index.d.ts +0 -5
- package/components/tables-v1/src/ctx.d.ts +0 -283
- package/components/tables-v1/src/el-ctx.d.ts +0 -272
- package/components/tables-v1/src/index.vue.d.ts +0 -2997
- package/components/tables-v1/src/types.d.ts +0 -4
- package/components/tables-v1-checkbox/index.d.ts +0 -5
- package/components/tables-v1-checkbox/src/ctx.d.ts +0 -322
- package/components/tables-v1-checkbox/src/index.vue.d.ts +0 -3788
- package/components/tables-v1-checkbox/src/types.d.ts +0 -1
- package/components/typing-markdown/index.d.ts +0 -4
- package/components/typing-markdown/src/core.d.ts +0 -3
- package/components/typing-markdown/src/ctx.d.ts +0 -33
- package/components/typing-markdown/src/index.vue.d.ts +0 -57
- package/components/typing-markdown/src/types.d.ts +0 -1
- package/components/vditor/index.d.ts +0 -5
- package/components/vditor/src/ctx.d.ts +0 -37
- package/components/vditor/src/handle-fullscreen.vue.d.ts +0 -18
- package/components/vditor/src/handle-value.vue.d.ts +0 -18
- package/components/vditor/src/index.vue.d.ts +0 -144
- package/components/vditor/src/types.d.ts +0 -9
- package/components/vditor/src/use.d.ts +0 -4
- package/fetch/PlusFetch/index.d.ts +0 -14
- package/fetch/PlusFetch/index.mjs +0 -638
- package/fetch/PlusFetch/types.d.ts +0 -54
- package/fetch/index.d.ts +0 -1
- package/fetch/index.mjs +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted,
|
|
1
|
+
import { defineComponent, ref, onMounted, createElementBlock, openBlock, Fragment, createElementVNode, renderSlot } from 'vue';
|
|
2
2
|
import lottie from 'lottie-web';
|
|
3
3
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
@@ -58,7 +58,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
58
58
|
/* STABLE_FRAGMENT */
|
|
59
59
|
);
|
|
60
60
|
}
|
|
61
|
-
var VkLottieAnimation = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]
|
|
61
|
+
var VkLottieAnimation = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
62
62
|
|
|
63
63
|
var types = /*#__PURE__*/Object.freeze({
|
|
64
64
|
__proto__: null
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { watchPausable } from '@vueuse/core';
|
|
2
2
|
import { editor } from 'monaco-editor';
|
|
3
|
-
import { defineComponent, ref, onMounted, nextTick, watchEffect, onBeforeUnmount,
|
|
3
|
+
import { defineComponent, ref, onMounted, nextTick, watchEffect, onBeforeUnmount, createElementBlock, openBlock } from 'vue';
|
|
4
4
|
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
5
5
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
6
|
|
|
@@ -89,7 +89,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
89
|
/* NEED_PATCH */
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
|
-
var VkMonacoEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]
|
|
92
|
+
var VkMonacoEditor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
93
93
|
|
|
94
94
|
var types = /*#__PURE__*/Object.freeze({
|
|
95
95
|
__proto__: null
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent, renderSlot } from 'vue';
|
|
2
|
-
import jsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker';
|
|
3
|
-
import cssWorker from 'monaco-editor/esm/vs/language/css/css.worker?worker';
|
|
4
|
-
import htmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker';
|
|
5
|
-
import tsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker';
|
|
6
1
|
import EditorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker';
|
|
2
|
+
import CssWorker from 'monaco-editor/esm/vs/language/css/css.worker?worker';
|
|
3
|
+
import HtmlWorker from 'monaco-editor/esm/vs/language/html/html.worker?worker';
|
|
4
|
+
import JsonWorker from 'monaco-editor/esm/vs/language/json/json.worker?worker';
|
|
5
|
+
import TsWorker from 'monaco-editor/esm/vs/language/typescript/ts.worker?worker';
|
|
6
|
+
import { defineComponent, renderSlot } from 'vue';
|
|
7
7
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
8
8
|
|
|
9
9
|
var _sfc_main = defineComponent({
|
|
10
10
|
name: "VkMonacoEnvironment",
|
|
11
11
|
setup() {
|
|
12
|
-
|
|
12
|
+
globalThis.MonacoEnvironment = {
|
|
13
13
|
getWorker(_, label) {
|
|
14
14
|
if (label === "json") {
|
|
15
|
-
return new
|
|
15
|
+
return new JsonWorker();
|
|
16
16
|
}
|
|
17
17
|
if (label === "css" || label === "scss" || label === "less") {
|
|
18
|
-
return new
|
|
18
|
+
return new CssWorker();
|
|
19
19
|
}
|
|
20
20
|
if (label === "html" || label === "handlebars" || label === "razor") {
|
|
21
|
-
return new
|
|
21
|
+
return new HtmlWorker();
|
|
22
22
|
}
|
|
23
23
|
if (["typescript", "javascript"].includes(label)) {
|
|
24
|
-
return new
|
|
24
|
+
return new TsWorker();
|
|
25
25
|
}
|
|
26
26
|
return new EditorWorker();
|
|
27
27
|
}
|
|
@@ -33,7 +33,7 @@ var _sfc_main = defineComponent({
|
|
|
33
33
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
34
34
|
return renderSlot(_ctx.$slots, "default");
|
|
35
35
|
}
|
|
36
|
-
var VkMonacoEnvironment = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]
|
|
36
|
+
var VkMonacoEnvironment = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
37
37
|
|
|
38
38
|
var types = /*#__PURE__*/Object.freeze({
|
|
39
39
|
__proto__: null
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
.
|
|
1
|
+
.vk-recorder-container {
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
|
-
.
|
|
4
|
+
.vk-recorder-button {
|
|
5
5
|
position: relative;
|
|
6
6
|
width: 100%;
|
|
7
7
|
touch-action: none;
|
|
8
8
|
user-select: none;
|
|
9
9
|
}
|
|
10
|
-
.recording-mask {
|
|
11
|
-
position:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
right: 0;
|
|
15
|
-
bottom: 0;
|
|
16
|
-
background: rgba(0, 0, 0, 0.6);
|
|
10
|
+
.vk-recording-mask {
|
|
11
|
+
position: absolute;
|
|
12
|
+
inset: 0;
|
|
13
|
+
background: rgba(0, 0, 0, 0.5);
|
|
17
14
|
z-index: 1000;
|
|
18
15
|
display: flex;
|
|
19
16
|
flex-direction: column;
|
|
@@ -25,7 +22,7 @@
|
|
|
25
22
|
display: flex;
|
|
26
23
|
justify-content: space-between;
|
|
27
24
|
padding: 20px 40px;
|
|
28
|
-
margin-bottom:
|
|
25
|
+
margin-bottom: 24%;
|
|
29
26
|
}
|
|
30
27
|
.cancel-btn, .text-btn {
|
|
31
28
|
display: flex;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElButton, ElMessage } from 'element-plus';
|
|
2
2
|
import Recorder from 'recorder-core';
|
|
3
|
-
import { defineComponent, ref, shallowRef, onUnmounted, resolveComponent,
|
|
3
|
+
import { defineComponent, ref, shallowRef, onUnmounted, resolveComponent, createElementBlock, openBlock, createCommentVNode, createBlock, createVNode, Teleport, createElementVNode, toDisplayString, normalizeClass, mergeProps, withCtx } from 'vue';
|
|
4
4
|
import 'recorder-core/src/engine/mp3';
|
|
5
5
|
import 'recorder-core/src/engine/wav';
|
|
6
6
|
import 'recorder-core/src/engine/mp3-engine';
|
|
@@ -9,16 +9,37 @@ import 'recorder-core/src/app-support/app';
|
|
|
9
9
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
10
10
|
|
|
11
11
|
const props = {
|
|
12
|
-
speenchToTextUrl: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "http://localhost:3000/speech-to-text"
|
|
15
|
-
},
|
|
16
12
|
/**
|
|
17
13
|
* 自定义转为文本区域事件
|
|
18
14
|
*/
|
|
19
15
|
onTextZone: {
|
|
20
16
|
type: Function,
|
|
21
17
|
default: void 0
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* 遮罩层 appendTo
|
|
21
|
+
*/
|
|
22
|
+
appendTo: {
|
|
23
|
+
type: null,
|
|
24
|
+
default: "body"
|
|
25
|
+
},
|
|
26
|
+
disabled: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
/**
|
|
31
|
+
* 语音转文本函数
|
|
32
|
+
*/
|
|
33
|
+
speechToText: {
|
|
34
|
+
type: Function,
|
|
35
|
+
default: void 0
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* @description 是否直接使用提交文本输出
|
|
39
|
+
*/
|
|
40
|
+
submitToText: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
22
43
|
}
|
|
23
44
|
};
|
|
24
45
|
const emits = {
|
|
@@ -100,14 +121,20 @@ var _sfc_main = defineComponent({
|
|
|
100
121
|
blob,
|
|
101
122
|
url: blobUrl.value
|
|
102
123
|
});
|
|
103
|
-
if (theTextZone) {
|
|
124
|
+
if (theTextZone || props2.submitToText) {
|
|
104
125
|
if (props2.onTextZone) {
|
|
105
126
|
props2.onTextZone({
|
|
106
127
|
blob,
|
|
107
128
|
url: blobUrl.value
|
|
108
129
|
});
|
|
109
130
|
} else {
|
|
110
|
-
|
|
131
|
+
if (props2.speechToText) {
|
|
132
|
+
props2.speechToText(blob).then((text) => {
|
|
133
|
+
emit("submitText", text);
|
|
134
|
+
});
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
speechToText("/speech-to-text", blob).then((text) => {
|
|
111
138
|
emit("submitText", text);
|
|
112
139
|
}).catch((err) => {
|
|
113
140
|
console.error("\u8BED\u97F3\u8BC6\u522B\u9519\u8BEF:", err);
|
|
@@ -126,6 +153,8 @@ var _sfc_main = defineComponent({
|
|
|
126
153
|
document.removeEventListener("mouseup", onmouseup);
|
|
127
154
|
};
|
|
128
155
|
const onmousedown = (e) => {
|
|
156
|
+
if (props2.disabled)
|
|
157
|
+
return;
|
|
129
158
|
e.preventDefault();
|
|
130
159
|
isMouseDown = true;
|
|
131
160
|
const touch = "touches" in e ? e.touches[0] : e;
|
|
@@ -196,10 +225,10 @@ var _sfc_main = defineComponent({
|
|
|
196
225
|
}
|
|
197
226
|
});
|
|
198
227
|
|
|
199
|
-
const _hoisted_1 = { class: "
|
|
228
|
+
const _hoisted_1 = { class: "vk-recorder-container" };
|
|
200
229
|
const _hoisted_2 = {
|
|
201
230
|
key: 0,
|
|
202
|
-
class: "recording-mask"
|
|
231
|
+
class: "vk-recording-mask"
|
|
203
232
|
};
|
|
204
233
|
const _hoisted_3 = { class: "recording-tip" };
|
|
205
234
|
const _hoisted_4 = {
|
|
@@ -212,81 +241,84 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
212
241
|
const _component_ElButton = resolveComponent("ElButton");
|
|
213
242
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
214
243
|
createCommentVNode(" \u906E\u7F69\u5C42 "),
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
createElementVNode(
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
244
|
+
(openBlock(), createBlock(Teleport, { to: _ctx.appendTo }, [
|
|
245
|
+
_ctx.isDragging ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
246
|
+
createCommentVNode(" \u5F55\u97F3\u63D0\u793A\u533A\u57DF\u79FB\u5230\u4E0A\u9762 "),
|
|
247
|
+
createElementVNode("div", _hoisted_3, [
|
|
248
|
+
createElementVNode(
|
|
249
|
+
"div",
|
|
250
|
+
_hoisted_4,
|
|
251
|
+
null,
|
|
252
|
+
512
|
|
253
|
+
/* NEED_PATCH */
|
|
254
|
+
),
|
|
255
|
+
createElementVNode(
|
|
256
|
+
"div",
|
|
257
|
+
_hoisted_5,
|
|
258
|
+
toDisplayString(_ctx.cancelZone ? "\u677E\u5F00\u624B\u6307\uFF0C\u53D6\u6D88\u53D1\u9001" : "\u677E\u5F00\u53D1\u9001\uFF0C\u4E0A\u6ED1\u53D6\u6D88"),
|
|
259
|
+
1
|
|
260
|
+
/* TEXT */
|
|
261
|
+
)
|
|
262
|
+
]),
|
|
263
|
+
createElementVNode("div", _hoisted_6, [
|
|
264
|
+
createElementVNode(
|
|
265
|
+
"div",
|
|
266
|
+
{
|
|
267
|
+
class: normalizeClass(["cancel-btn", { active: _ctx.cancelZone }])
|
|
268
|
+
},
|
|
269
|
+
_cache[0] || (_cache[0] = [
|
|
270
|
+
createElementVNode(
|
|
271
|
+
"div",
|
|
272
|
+
{ class: "btn-icon" },
|
|
273
|
+
" \xD7 ",
|
|
274
|
+
-1
|
|
275
|
+
/* HOISTED */
|
|
276
|
+
),
|
|
277
|
+
createElementVNode(
|
|
278
|
+
"div",
|
|
279
|
+
{ class: "btn-text" },
|
|
280
|
+
" \u53D6\u6D88\u53D1\u9001 ",
|
|
281
|
+
-1
|
|
282
|
+
/* HOISTED */
|
|
283
|
+
)
|
|
284
|
+
]),
|
|
285
|
+
2
|
|
286
|
+
/* CLASS */
|
|
287
|
+
),
|
|
288
|
+
createElementVNode(
|
|
289
|
+
"div",
|
|
290
|
+
{
|
|
291
|
+
class: normalizeClass(["text-btn", { active: _ctx.isTextZone }])
|
|
292
|
+
},
|
|
293
|
+
_cache[1] || (_cache[1] = [
|
|
294
|
+
createElementVNode(
|
|
295
|
+
"div",
|
|
296
|
+
{ class: "btn-icon" },
|
|
297
|
+
" \u6587 ",
|
|
298
|
+
-1
|
|
299
|
+
/* HOISTED */
|
|
300
|
+
),
|
|
301
|
+
createElementVNode(
|
|
302
|
+
"div",
|
|
303
|
+
{ class: "btn-text" },
|
|
304
|
+
" \u8F6C\u4E3A\u6587\u5B57 ",
|
|
305
|
+
-1
|
|
306
|
+
/* HOISTED */
|
|
307
|
+
)
|
|
308
|
+
]),
|
|
309
|
+
2
|
|
310
|
+
/* CLASS */
|
|
311
|
+
)
|
|
312
|
+
])
|
|
313
|
+
])) : createCommentVNode("v-if", true)
|
|
314
|
+
], 8, ["to"])),
|
|
285
315
|
createCommentVNode(" \u5F55\u97F3\u6309\u94AE "),
|
|
286
316
|
createVNode(_component_ElButton, mergeProps(_ctx.$attrs, {
|
|
287
|
-
|
|
317
|
+
disabled: _ctx.disabled,
|
|
318
|
+
class: ["vk-recorder-button", {
|
|
288
319
|
"is-recording": _ctx.recording
|
|
289
320
|
}],
|
|
321
|
+
size: "large",
|
|
290
322
|
onTouchstart: _ctx.onmousedown,
|
|
291
323
|
onTouchmove: _ctx.onmousemove,
|
|
292
324
|
onTouchend: _ctx.onmouseup,
|
|
@@ -295,7 +327,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
295
327
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
296
328
|
createElementVNode(
|
|
297
329
|
"span",
|
|
298
|
-
{ class: "
|
|
330
|
+
{ class: "vk-recorder-button-text" },
|
|
299
331
|
"\u6309\u4F4F \u8BF4\u8BDD",
|
|
300
332
|
-1
|
|
301
333
|
/* HOISTED */
|
|
@@ -303,10 +335,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
303
335
|
])),
|
|
304
336
|
_: 1
|
|
305
337
|
/* STABLE */
|
|
306
|
-
}, 16, ["class", "onTouchstart", "onTouchmove", "onTouchend", "onMousedown"])
|
|
338
|
+
}, 16, ["disabled", "class", "onTouchstart", "onTouchmove", "onTouchend", "onMousedown"])
|
|
307
339
|
]);
|
|
308
340
|
}
|
|
309
|
-
var VkRecorderButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]
|
|
341
|
+
var VkRecorderButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
310
342
|
|
|
311
343
|
var types = /*#__PURE__*/Object.freeze({
|
|
312
344
|
__proto__: null
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, computed, resolveComponent,
|
|
1
|
+
import { defineComponent, computed, resolveComponent, createBlock, openBlock, withCtx, renderSlot, createElementBlock, createCommentVNode, Fragment, mergeProps, normalizeProps, guardReactiveProps, renderList, createVNode } from 'vue';
|
|
2
2
|
import { resolveFullPath } from '@vunk/shared/string/url';
|
|
3
|
-
import {
|
|
3
|
+
import { ElMenuItem, ElSubMenu } from 'element-plus';
|
|
4
4
|
import { bindPropsFactory } from '@vunk/core/shared/utils-vue';
|
|
5
5
|
import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
|
|
6
6
|
|
|
@@ -106,7 +106,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
106
106
|
/* FORWARDED */
|
|
107
107
|
}, 8, ["index"]));
|
|
108
108
|
}
|
|
109
|
-
var CoreVue = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]
|
|
109
|
+
var CoreVue = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
110
110
|
|
|
111
111
|
const props = {
|
|
112
112
|
...props$1
|
|
@@ -224,7 +224,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
224
224
|
/* STABLE_FRAGMENT */
|
|
225
225
|
)) : createCommentVNode("v-if", true);
|
|
226
226
|
}
|
|
227
|
-
var ItemVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]
|
|
227
|
+
var ItemVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
228
228
|
|
|
229
229
|
var _sfc_main = defineComponent({
|
|
230
230
|
name: "VkRoutesMenuContent",
|
|
@@ -289,7 +289,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
289
289
|
/* KEYED_FRAGMENT */
|
|
290
290
|
);
|
|
291
291
|
}
|
|
292
|
-
var VkRoutesMenuContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]
|
|
292
|
+
var VkRoutesMenuContent = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
293
293
|
|
|
294
294
|
var types = /*#__PURE__*/Object.freeze({
|
|
295
295
|
__proto__: null
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
.
|
|
1
|
+
.ant-sender-header-header{
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
}
|
|
5
|
+
/* .vk-sender .ant-sender-content{
|
|
2
6
|
display: grid;
|
|
3
|
-
/* 两列 auto 1fr */
|
|
4
7
|
grid-template-columns: auto 1fr;
|
|
5
8
|
}
|
|
6
9
|
.vk-sender .ant-sender-actions-list {
|
|
7
10
|
margin-top: 1em;
|
|
8
|
-
/* 独占两列 */
|
|
9
11
|
grid-column: 1 / -1;
|
|
10
|
-
}
|
|
12
|
+
} */
|
|
11
13
|
.vk-sender .ant-sender-prefix {
|
|
12
|
-
/* 要素考上 */
|
|
13
14
|
align-self: start;
|
|
14
15
|
}
|
|
15
16
|
.vk-sender-actions{
|