@vunk/plus 1.1.3 → 1.2.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 +1319 -0
- package/components/avatar/index.d.ts +4 -0
- package/components/avatar/index.mjs +49 -0
- package/components/avatar/src/ctx.d.ts +18 -0
- package/components/avatar/src/index.vue.d.ts +180 -0
- package/components/avatar/src/types.d.ts +1 -0
- package/components/monaco-editor/index.mjs +9 -1
- package/components/recorder-button/index.css +72 -0
- package/components/recorder-button/index.d.ts +4 -0
- package/components/recorder-button/index.mjs +319 -0
- package/components/recorder-button/src/ctx.d.ts +19 -0
- package/components/recorder-button/src/index.vue.d.ts +309 -0
- package/components/recorder-button/src/speech-to-text.d.ts +1 -0
- package/components/recorder-button/src/types.d.ts +6 -0
- package/components/sender/index.css +29 -0
- package/components/sender/index.d.ts +4 -0
- package/components/sender/index.mjs +172 -0
- package/components/sender/src/ctx.d.ts +21 -0
- package/components/sender/src/index.vue.d.ts +484 -0
- package/components/sender/src/types.d.ts +1 -0
- package/components/speech-button/index.css +10 -0
- package/components/speech-button/index.d.ts +4 -0
- package/components/speech-button/index.mjs +131 -0
- package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -0
- package/components/speech-button/src/ctx.d.ts +10 -0
- package/components/speech-button/src/index.vue.d.ts +22 -0
- package/components/speech-button/src/types.d.ts +1 -0
- package/components/table-columns/src/ctx.d.ts +4 -4
- package/components/table-columns/src/el-ctx.d.ts +5 -5
- package/components/table-columns/src/index.vue.d.ts +21 -21
- package/components/tables-v1/src/ctx.d.ts +24 -24
- package/components/tables-v1/src/el-ctx.d.ts +10 -10
- package/components/tables-v1/src/index.vue.d.ts +103 -103
- package/components/tables-v1-checkbox/src/ctx.d.ts +22 -22
- package/components/tables-v1-checkbox/src/index.vue.d.ts +182 -170
- package/components/vditor/src/index.vue.d.ts +5 -5
- package/composables/recorder/index.d.ts +15 -0
- package/composables/recorder/index.mjs +14478 -0
- package/index.css +114 -0
- package/package.json +30 -1
package/index.css
CHANGED
|
@@ -8,6 +8,120 @@
|
|
|
8
8
|
height: 100%;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
.sk-recorder-container {
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
.sk-recorder-button {
|
|
15
|
+
position: relative;
|
|
16
|
+
width: 100%;
|
|
17
|
+
touch-action: none;
|
|
18
|
+
user-select: none;
|
|
19
|
+
}
|
|
20
|
+
.recording-mask {
|
|
21
|
+
position: fixed;
|
|
22
|
+
top: 0;
|
|
23
|
+
left: 0;
|
|
24
|
+
right: 0;
|
|
25
|
+
bottom: 0;
|
|
26
|
+
background: rgba(0, 0, 0, 0.6);
|
|
27
|
+
z-index: 1000;
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
}
|
|
33
|
+
.action-buttons {
|
|
34
|
+
pointer-events: auto;
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
padding: 20px 40px;
|
|
38
|
+
margin-bottom: 100px;
|
|
39
|
+
}
|
|
40
|
+
.cancel-btn, .text-btn {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
align-items: center;
|
|
44
|
+
color: white;
|
|
45
|
+
}
|
|
46
|
+
.btn-icon {
|
|
47
|
+
width: 60px; /* 增大按钮尺寸 */
|
|
48
|
+
height: 60px;
|
|
49
|
+
background: rgba(0, 0, 0, 0.4);
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
font-size: 28px;
|
|
55
|
+
margin-bottom: 8px;
|
|
56
|
+
}
|
|
57
|
+
.cancel-btn.active .btn-icon {
|
|
58
|
+
background: var(--el-color-danger);
|
|
59
|
+
}
|
|
60
|
+
.text-btn.active .btn-icon {
|
|
61
|
+
background: var(--el-color-primary);
|
|
62
|
+
}
|
|
63
|
+
.btn-text {
|
|
64
|
+
font-size: 14px;
|
|
65
|
+
}
|
|
66
|
+
.recording-tip {
|
|
67
|
+
flex: 1;
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-direction: column;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
padding-bottom: 100px; /* 向上移动一些 */
|
|
73
|
+
color: white;
|
|
74
|
+
}
|
|
75
|
+
.wave-container {
|
|
76
|
+
width: 160px; /* 增大波形显示区域 */
|
|
77
|
+
height: 100px;
|
|
78
|
+
margin-bottom: 20px;
|
|
79
|
+
}
|
|
80
|
+
.tip-text {
|
|
81
|
+
font-size: 14px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.vk-sender .ant-sender-content{
|
|
85
|
+
display: grid;
|
|
86
|
+
/* 两列 auto 1fr */
|
|
87
|
+
grid-template-columns: auto 1fr;
|
|
88
|
+
}
|
|
89
|
+
.vk-sender .ant-sender-actions-list {
|
|
90
|
+
margin-top: 1em;
|
|
91
|
+
/* 独占两列 */
|
|
92
|
+
grid-column: 1 / -1;
|
|
93
|
+
}
|
|
94
|
+
.vk-sender .ant-sender-prefix {
|
|
95
|
+
/* 要素考上 */
|
|
96
|
+
align-self: start;
|
|
97
|
+
}
|
|
98
|
+
.vk-sender-actions{
|
|
99
|
+
display: flex;
|
|
100
|
+
justify-content: space-between;
|
|
101
|
+
align-items: center;
|
|
102
|
+
width: 100%;
|
|
103
|
+
}
|
|
104
|
+
.vk-sender-actions__before,
|
|
105
|
+
.vk-sender-actions__after {
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
}
|
|
109
|
+
.vk-sender-actions__before > * + *,
|
|
110
|
+
.vk-sender-actions__after > * + * {
|
|
111
|
+
margin-left: 8px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.vk-speech-button{
|
|
115
|
+
display: inline-flex;
|
|
116
|
+
align-items: center;
|
|
117
|
+
justify-content: center;
|
|
118
|
+
}
|
|
119
|
+
.vk-speech-button-recording-icon{
|
|
120
|
+
height: 1.2em;
|
|
121
|
+
width: 1.2em;
|
|
122
|
+
vertical-align: top;
|
|
123
|
+
}
|
|
124
|
+
|
|
11
125
|
.vk-tables-v1-table{
|
|
12
126
|
height: 100%;
|
|
13
127
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vunk/plus",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
"import": "./composables/index.mjs",
|
|
32
32
|
"types": "./composables/index.d.ts"
|
|
33
33
|
},
|
|
34
|
+
"./composables/recorder": {
|
|
35
|
+
"import": "./composables/recorder/index.mjs",
|
|
36
|
+
"types": "./composables/recorder/index.d.ts"
|
|
37
|
+
},
|
|
34
38
|
"./composables/el-breakpoints": {
|
|
35
39
|
"import": "./composables/el-breakpoints/index.mjs",
|
|
36
40
|
"types": "./composables/el-breakpoints/index.d.ts"
|
|
@@ -55,10 +59,22 @@
|
|
|
55
59
|
"import": "./components/table-columns/index.mjs",
|
|
56
60
|
"types": "./components/table-columns/index.d.ts"
|
|
57
61
|
},
|
|
62
|
+
"./components/speech-button": {
|
|
63
|
+
"import": "./components/speech-button/index.mjs",
|
|
64
|
+
"types": "./components/speech-button/index.d.ts"
|
|
65
|
+
},
|
|
66
|
+
"./components/sender": {
|
|
67
|
+
"import": "./components/sender/index.mjs",
|
|
68
|
+
"types": "./components/sender/index.d.ts"
|
|
69
|
+
},
|
|
58
70
|
"./components/routes-menu-content": {
|
|
59
71
|
"import": "./components/routes-menu-content/index.mjs",
|
|
60
72
|
"types": "./components/routes-menu-content/index.d.ts"
|
|
61
73
|
},
|
|
74
|
+
"./components/recorder-button": {
|
|
75
|
+
"import": "./components/recorder-button/index.mjs",
|
|
76
|
+
"types": "./components/recorder-button/index.d.ts"
|
|
77
|
+
},
|
|
62
78
|
"./components/monaco-environment": {
|
|
63
79
|
"import": "./components/monaco-environment/index.mjs",
|
|
64
80
|
"types": "./components/monaco-environment/index.d.ts"
|
|
@@ -71,6 +87,10 @@
|
|
|
71
87
|
"import": "./components/lottie-animation/index.mjs",
|
|
72
88
|
"types": "./components/lottie-animation/index.d.ts"
|
|
73
89
|
},
|
|
90
|
+
"./components/avatar": {
|
|
91
|
+
"import": "./components/avatar/index.mjs",
|
|
92
|
+
"types": "./components/avatar/index.d.ts"
|
|
93
|
+
},
|
|
74
94
|
"./index.css": {
|
|
75
95
|
"import": "./index.css"
|
|
76
96
|
},
|
|
@@ -86,6 +106,15 @@
|
|
|
86
106
|
"./components/tables-v1/index.css": {
|
|
87
107
|
"import": "./components/tables-v1/index.css"
|
|
88
108
|
},
|
|
109
|
+
"./components/speech-button/index.css": {
|
|
110
|
+
"import": "./components/speech-button/index.css"
|
|
111
|
+
},
|
|
112
|
+
"./components/sender/index.css": {
|
|
113
|
+
"import": "./components/sender/index.css"
|
|
114
|
+
},
|
|
115
|
+
"./components/recorder-button/index.css": {
|
|
116
|
+
"import": "./components/recorder-button/index.css"
|
|
117
|
+
},
|
|
89
118
|
"./components/monaco-editor/index.css": {
|
|
90
119
|
"import": "./components/monaco-editor/index.css"
|
|
91
120
|
},
|