@myun/gimi-chat 0.0.4 → 0.0.5
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/components/ai-chat-dialogue/index.js +1 -1
- package/dist/components/ai-chat-dialogue/index.module.css +230 -0
- package/dist/components/ai-loading/index.js +1 -1
- package/dist/components/ai-loading/index.module.css +11 -0
- package/dist/components/answer-item/index.js +1 -1
- package/dist/components/answer-item/index.module.css +266 -0
- package/dist/components/ask-card/index.js +1 -1
- package/dist/components/ask-card/index.module.css +122 -0
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-input/index.module.css +42 -0
- package/dist/components/dots-loading/index.js +1 -1
- package/dist/components/dots-loading/index.module.css +41 -0
- package/dist/components/empty/index.js +1 -1
- package/dist/components/empty/index.module.css +24 -0
- package/dist/components/excel-components/ExcelExcuting.js +1 -1
- package/dist/components/excel-components/ExcelFailCard.js +1 -1
- package/dist/components/excel-components/index.module.css +212 -0
- package/dist/components/excel-components/styles.module.css +178 -0
- package/dist/components/file-card/fileCardSidebar.js +1 -1
- package/dist/components/file-card/index.js +1 -1
- package/dist/components/file-card/index.module.css +139 -0
- package/dist/components/file-preview/index.js +6 -8
- package/dist/components/file-preview/index.module.css +83 -0
- package/dist/components/gimi-sidebar/index.js +1 -1
- package/dist/components/gimi-sidebar/index.module.css +118 -0
- package/dist/components/header/index.js +1 -1
- package/dist/components/header/index.module.css +19 -0
- package/dist/components/knowledge-trace/KnowledgeIconComponent.js +1 -1
- package/dist/components/knowledge-trace/classList.js +1 -1
- package/dist/components/knowledge-trace/documentList.js +1 -1
- package/dist/components/knowledge-trace/index.js +1 -1
- package/dist/components/knowledge-trace/index.module.css +254 -0
- package/dist/components/knowledge-trace/videoList.js +1 -1
- package/dist/components/message-list/index.js +3 -6
- package/dist/components/message-list/index.module.css +261 -0
- package/dist/components/no-microphone-root/index.js +1 -1
- package/dist/components/no-microphone-root/index.module.css +48 -0
- package/dist/components/preset-agent-content/index.js +1 -1
- package/dist/components/preset-agent-content/index.module.css +46 -0
- package/dist/components/quoted-content/index.module.css +80 -0
- package/dist/components/reasoning-content/index.js +1 -1
- package/dist/components/reasoning-content/index.module.css +169 -0
- package/dist/components/reference-content/index.js +1 -1
- package/dist/components/reference-content/index.module.css +84 -0
- package/dist/components/templates/CommonChat.js +1 -1
- package/dist/components/templates/demo/demo.js +2 -3
- package/dist/components/templates/index.module.css +109 -0
- package/dist/components/upload-list/index.js +1 -1
- package/dist/components/upload-list/index.module.css +119 -0
- package/dist/components/voice-check-dialog/index.js +1 -1
- package/dist/components/voice-check-dialog/{index.module.scss → index.module.css} +2 -2
- package/dist/components/voice-recording/index.js +1 -1
- package/dist/components/voice-recording/index.module.css +41 -0
- package/dist/components/work-flow-content/index.js +1 -1
- package/dist/components/work-flow-content/index.module.css +24 -0
- package/package.json +4 -4
- package/dist/components/ai-chat-dialogue/index.module.scss +0 -272
- package/dist/components/ai-loading/index.module.scss +0 -11
- package/dist/components/answer-item/index.module.scss +0 -295
- package/dist/components/ask-card/index.module.scss +0 -125
- package/dist/components/chat-input/index.module.scss +0 -44
- package/dist/components/dots-loading/index.module.scss +0 -45
- package/dist/components/empty/index.module.scss +0 -27
- package/dist/components/excel-components/index.module.scss +0 -210
- package/dist/components/excel-components/styles.module.scss +0 -186
- package/dist/components/file-card/index.module.scss +0 -139
- package/dist/components/file-preview/index.module.scss +0 -120
- package/dist/components/gimi-sidebar/index.module.scss +0 -136
- package/dist/components/header/index.module.scss +0 -26
- package/dist/components/knowledge-trace/index.module.scss +0 -262
- package/dist/components/message-list/index.module.scss +0 -304
- package/dist/components/no-microphone-root/index.module.scss +0 -42
- package/dist/components/preset-agent-content/index.module.scss +0 -48
- package/dist/components/quoted-content/index.module.scss +0 -76
- package/dist/components/reasoning-content/index.module.scss +0 -164
- package/dist/components/reference-content/index.module.scss +0 -73
- package/dist/components/templates/index.module.scss +0 -119
- package/dist/components/upload-list/index.module.scss +0 -119
- package/dist/components/voice-recording/index.module.scss +0 -41
- package/dist/components/work-flow-content/index.module.scss +0 -23
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.main {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
transition: all 0.3s ease;
|
|
6
|
+
flex: 1;
|
|
7
|
+
padding: 20px 0 0;
|
|
8
|
+
}
|
|
9
|
+
.main.translate {
|
|
10
|
+
transform: translateX(-320px);
|
|
11
|
+
}
|
|
12
|
+
.main .container {
|
|
13
|
+
width: 100%;
|
|
14
|
+
max-width: var(--container-max);
|
|
15
|
+
margin: 0 auto;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
padding: 0 10px;
|
|
18
|
+
}
|
|
19
|
+
.main .small_container {
|
|
20
|
+
width: min(100%, var(--container-max));
|
|
21
|
+
max-width: var(--container-max);
|
|
22
|
+
margin: 0 auto;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
padding: 0 16px;
|
|
25
|
+
}
|
|
26
|
+
.main .textWrap {
|
|
27
|
+
padding-bottom: 40px;
|
|
28
|
+
}
|
|
29
|
+
.main .textWrap .textItem {
|
|
30
|
+
width: 100%;
|
|
31
|
+
position: relative;
|
|
32
|
+
}
|
|
33
|
+
.main .textWrap .textItem.question {
|
|
34
|
+
width: 100%;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
margin-top: 22px;
|
|
38
|
+
}
|
|
39
|
+
.main .textWrap .textItem.question .title {
|
|
40
|
+
font-size: 15px;
|
|
41
|
+
line-height: 1.8;
|
|
42
|
+
display: inline-block;
|
|
43
|
+
max-width: 680px;
|
|
44
|
+
padding: 12px 16px;
|
|
45
|
+
background: #ebf2ff;
|
|
46
|
+
border-radius: 16px;
|
|
47
|
+
white-space: pre-wrap;
|
|
48
|
+
word-break: break-word;
|
|
49
|
+
align-self: flex-end;
|
|
50
|
+
overflow-x: auto;
|
|
51
|
+
}
|
|
52
|
+
.main .textWrap .textItem.question .listBox {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: row-reverse;
|
|
55
|
+
margin-top: 16px;
|
|
56
|
+
}
|
|
57
|
+
.main .textWrap .textItem.question .opera {
|
|
58
|
+
left: unset;
|
|
59
|
+
right: 0;
|
|
60
|
+
}
|
|
61
|
+
.main .textWrap .textItem.question:first-child {
|
|
62
|
+
margin-top: 0;
|
|
63
|
+
}
|
|
64
|
+
.main .textWrap .textItem:last-child {
|
|
65
|
+
margin-bottom: 0;
|
|
66
|
+
}
|
|
67
|
+
.main .textWrap .textItem .title {
|
|
68
|
+
width: 100%;
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
position: relative;
|
|
72
|
+
font-size: 16px;
|
|
73
|
+
color: #000000;
|
|
74
|
+
line-height: 24px;
|
|
75
|
+
width: fit-content;
|
|
76
|
+
text-align: left;
|
|
77
|
+
word-break: break-all;
|
|
78
|
+
/* 强制换行 */
|
|
79
|
+
overflow-wrap: break-word;
|
|
80
|
+
/* 在适当位置换行 */
|
|
81
|
+
}
|
|
82
|
+
.main .textWrap .textItem .title .qusetionOpera {
|
|
83
|
+
position: absolute;
|
|
84
|
+
top: 50%;
|
|
85
|
+
left: -30px;
|
|
86
|
+
transform: translateY(-50%);
|
|
87
|
+
}
|
|
88
|
+
.main .textWrap .textItem .title .answer {
|
|
89
|
+
width: 100%;
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
margin-bottom: 20px;
|
|
94
|
+
}
|
|
95
|
+
.main .textWrap .textItem .title .answer .relevance {
|
|
96
|
+
width: fit-content;
|
|
97
|
+
height: 40px;
|
|
98
|
+
background: #ffffff;
|
|
99
|
+
border-radius: 16px;
|
|
100
|
+
border: 1px solid #cfd7e6;
|
|
101
|
+
display: flex;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
align-items: center;
|
|
104
|
+
margin-bottom: 14px;
|
|
105
|
+
}
|
|
106
|
+
.main .textWrap .textItem .title .answer .relevance .icon {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-self: center;
|
|
110
|
+
margin-right: 12px;
|
|
111
|
+
}
|
|
112
|
+
.main .textWrap .textItem .title .answer .relevance .search_icon {
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-self: center;
|
|
116
|
+
margin-left: 16px;
|
|
117
|
+
}
|
|
118
|
+
.main .textWrap .textItem .title .answer .relevance span {
|
|
119
|
+
height: 20px;
|
|
120
|
+
font-family: PingFangSC, PingFang SC;
|
|
121
|
+
font-weight: 400;
|
|
122
|
+
font-size: 14px;
|
|
123
|
+
color: #2e394c;
|
|
124
|
+
line-height: 20px;
|
|
125
|
+
text-align: left;
|
|
126
|
+
font-style: normal;
|
|
127
|
+
margin: 0 2px;
|
|
128
|
+
}
|
|
129
|
+
.main .textWrap .textItem .opera {
|
|
130
|
+
width: 100%;
|
|
131
|
+
height: 20px;
|
|
132
|
+
margin-top: 12px;
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: center;
|
|
135
|
+
}
|
|
136
|
+
.main .textWrap .textItem .opera .opera_item {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
}
|
|
140
|
+
.main .textWrap .textItem .opera .opera_item .unlove {
|
|
141
|
+
margin-left: 18px;
|
|
142
|
+
display: flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
}
|
|
146
|
+
.main .textWrap .textItem .operaicon {
|
|
147
|
+
height: 20px;
|
|
148
|
+
margin-top: 12px;
|
|
149
|
+
text-align: end;
|
|
150
|
+
}
|
|
151
|
+
.main .textWrap .textItem .chatline {
|
|
152
|
+
margin: 40px 0;
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: 1px;
|
|
155
|
+
background: #dfe8f7;
|
|
156
|
+
}
|
|
157
|
+
.main .textWrap .textItem .course_recommend .course_recommend_header {
|
|
158
|
+
width: 100%;
|
|
159
|
+
height: 28px;
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: space-between;
|
|
163
|
+
}
|
|
164
|
+
.main .textWrap .textItem .course_recommend .course_recommend_header .course_recommend_header_title {
|
|
165
|
+
font-family: PingFangSC, PingFang SC;
|
|
166
|
+
font-weight: 600;
|
|
167
|
+
font-size: 18px;
|
|
168
|
+
color: #2e394c;
|
|
169
|
+
line-height: 28px;
|
|
170
|
+
text-align: left;
|
|
171
|
+
font-style: normal;
|
|
172
|
+
}
|
|
173
|
+
.main .textWrap .textItem .course_recommend .course_recommend_header .course_recommend_header_more {
|
|
174
|
+
display: flex;
|
|
175
|
+
align-items: center;
|
|
176
|
+
}
|
|
177
|
+
.main .textWrap .textItem .course_recommend .course_recommend_header .course_recommend_header_more .all {
|
|
178
|
+
width: 56px;
|
|
179
|
+
height: 20px;
|
|
180
|
+
font-family: PingFangSC, PingFang SC;
|
|
181
|
+
font-weight: 500;
|
|
182
|
+
font-size: 14px;
|
|
183
|
+
color: #2e394c;
|
|
184
|
+
line-height: 20px;
|
|
185
|
+
text-align: left;
|
|
186
|
+
font-style: normal;
|
|
187
|
+
}
|
|
188
|
+
.main .textWrap .textItem .course_recommend .course_recommend_list {
|
|
189
|
+
margin-top: 12px;
|
|
190
|
+
margin-bottom: 30px;
|
|
191
|
+
display: flex;
|
|
192
|
+
flex-wrap: wrap;
|
|
193
|
+
gap: 20px;
|
|
194
|
+
}
|
|
195
|
+
.main .textWrap .textItem .course_recommend .course_recommend_list .courseItem {
|
|
196
|
+
width: 360px;
|
|
197
|
+
height: 68px;
|
|
198
|
+
display: flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
justify-content: space-between;
|
|
201
|
+
gap: 20;
|
|
202
|
+
}
|
|
203
|
+
.main .textWrap .textItem .course_recommend .course_recommend_list .courseItem .cover {
|
|
204
|
+
border-radius: 4px;
|
|
205
|
+
overflow: hidden;
|
|
206
|
+
width: 120px;
|
|
207
|
+
height: 68px;
|
|
208
|
+
border-radius: 4px;
|
|
209
|
+
}
|
|
210
|
+
.main .textWrap .textItem .course_recommend .course_recommend_list .courseItem .cover img {
|
|
211
|
+
width: 100%;
|
|
212
|
+
height: 100%;
|
|
213
|
+
object-fit: cover;
|
|
214
|
+
}
|
|
215
|
+
.main .textWrap .textItem .course_recommend .course_recommend_list .courseItem .courseTitle {
|
|
216
|
+
width: 228px;
|
|
217
|
+
height: 68px;
|
|
218
|
+
font-family: PingFangSC, PingFang SC;
|
|
219
|
+
font-weight: 400;
|
|
220
|
+
font-size: 14px;
|
|
221
|
+
color: #2e394c;
|
|
222
|
+
line-height: 20px;
|
|
223
|
+
text-align: left;
|
|
224
|
+
font-style: normal;
|
|
225
|
+
display: -webkit-box;
|
|
226
|
+
-webkit-line-clamp: 3;
|
|
227
|
+
/* 限制行数 */
|
|
228
|
+
-webkit-box-orient: vertical;
|
|
229
|
+
overflow: hidden;
|
|
230
|
+
text-overflow: ellipsis;
|
|
231
|
+
}
|
|
232
|
+
.main .textWrap .answerLoading {
|
|
233
|
+
width: 40px;
|
|
234
|
+
margin-top: 20px;
|
|
235
|
+
}
|
|
236
|
+
.main .emptyWrap {
|
|
237
|
+
text-align: center;
|
|
238
|
+
height: 100%;
|
|
239
|
+
display: flex;
|
|
240
|
+
flex-direction: column;
|
|
241
|
+
justify-content: center;
|
|
242
|
+
}
|
|
243
|
+
.main .emptyWrap .title {
|
|
244
|
+
font-weight: 600;
|
|
245
|
+
font-size: 20px;
|
|
246
|
+
color: #2e394c;
|
|
247
|
+
line-height: 28px;
|
|
248
|
+
margin-bottom: 12px;
|
|
249
|
+
}
|
|
250
|
+
.main .emptyWrap .tips {
|
|
251
|
+
font-size: 16px;
|
|
252
|
+
color: #54698c;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.copyBtn {
|
|
256
|
+
width: fit-content;
|
|
257
|
+
display: flex;
|
|
258
|
+
gap: 10px;
|
|
259
|
+
margin-left: auto;
|
|
260
|
+
margin-top: 10px;
|
|
261
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Button } from '@douyinfe/semi-ui';
|
|
3
|
-
import styles from "./index.module.
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
4
|
import { IconClose, IconMicrophoneOffStroked } from '@douyinfe/semi-icons';
|
|
5
5
|
export default function NoMicrophoneModalContent(_ref) {
|
|
6
6
|
var onOk = _ref.onOk;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
width: 240px;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 12px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.title {
|
|
9
|
+
font-size: 15px;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
color: #1f2d3d;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.desc {
|
|
18
|
+
width: 240px;
|
|
19
|
+
font-size: 12px;
|
|
20
|
+
color: rgba(31, 45, 61, 0.55);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.imgArea {
|
|
24
|
+
height: 100px;
|
|
25
|
+
border-radius: 12px;
|
|
26
|
+
background: linear-gradient(90deg, #e9f0ff 0%, #d7f1ff 100%);
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.micIcon {
|
|
33
|
+
width: 56px;
|
|
34
|
+
height: 56px;
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.footer {
|
|
39
|
+
display: flex;
|
|
40
|
+
width: 100%;
|
|
41
|
+
justify-content: flex-end;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.okBtn {
|
|
45
|
+
height: 32px;
|
|
46
|
+
padding: 0 18px;
|
|
47
|
+
border-radius: 16px;
|
|
48
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.container {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: start;
|
|
6
|
+
padding: 14px 0px 20px 16px;
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
.container .prologue {
|
|
10
|
+
font-family: PingFang SC;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
line-height: 28px;
|
|
14
|
+
letter-spacing: 0px;
|
|
15
|
+
color: rgb(46, 57, 76);
|
|
16
|
+
}
|
|
17
|
+
.container .quickInputList {
|
|
18
|
+
width: 314px;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: 10px;
|
|
22
|
+
flex-wrap: wrap;
|
|
23
|
+
margin-top: 10px;
|
|
24
|
+
}
|
|
25
|
+
.container .quickInputList .quickInputItem {
|
|
26
|
+
width: fit-content;
|
|
27
|
+
max-width: 314px;
|
|
28
|
+
padding: 5px 10px;
|
|
29
|
+
font-family: PingFangSC;
|
|
30
|
+
font-weight: 400;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
color: rgb(46, 57, 76);
|
|
33
|
+
line-height: 18px;
|
|
34
|
+
text-align: left;
|
|
35
|
+
font-style: normal;
|
|
36
|
+
border-radius: 8px;
|
|
37
|
+
border: 1px solid rgb(217, 220, 229);
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
/* 禁止换行 */
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
/* 隐藏溢出内容 */
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
/* 显示省略号 */
|
|
45
|
+
cursor: pointer;
|
|
46
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.quotedContent {
|
|
2
|
+
flex: 1;
|
|
3
|
+
padding-top: 5px;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.searchInput {
|
|
10
|
+
line-height: 29px;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
padding: 0 10px;
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
}
|
|
15
|
+
.searchInput input::placeholder {
|
|
16
|
+
color: #7d91b3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.content {
|
|
20
|
+
padding-top: 10px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.newtab {
|
|
24
|
+
padding-bottom: 10px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tabItem {
|
|
28
|
+
font-size: 14px;
|
|
29
|
+
padding: 5px 10px;
|
|
30
|
+
margin: 0 8px;
|
|
31
|
+
border-radius: 8px;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
.tabItem:hover {
|
|
35
|
+
background-color: #f7f7fc;
|
|
36
|
+
color: #4086ff;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.active {
|
|
40
|
+
background-color: #f7f7fc;
|
|
41
|
+
color: #4086ff;
|
|
42
|
+
font-weight: 600;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.tabContent {
|
|
46
|
+
overflow: auto;
|
|
47
|
+
height: 200px;
|
|
48
|
+
}
|
|
49
|
+
.tabContent .table :global(.ant-table-content) {
|
|
50
|
+
font-size: 12px;
|
|
51
|
+
}
|
|
52
|
+
.tabContent .table :global(.ant-table-tbody > tr > td) {
|
|
53
|
+
border: none !important;
|
|
54
|
+
}
|
|
55
|
+
.tabContent .table .listItem {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
.tabContent .table .listItem .img {
|
|
61
|
+
width: 16px;
|
|
62
|
+
margin-right: 5px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.tabContent::-webkit-scrollbar {
|
|
66
|
+
width: 6px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.tabContent::-webkit-scrollbar-track {
|
|
70
|
+
background: #f1f1f1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tabContent::-webkit-scrollbar-thumb {
|
|
74
|
+
background: #c1c1c1;
|
|
75
|
+
border-radius: 3px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.tabContent::-webkit-scrollbar-thumb:hover {
|
|
79
|
+
background: #a8a8a8;
|
|
80
|
+
}
|
|
@@ -14,7 +14,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
14
14
|
import React, { useEffect, useRef, useCallback } from 'react';
|
|
15
15
|
import { MMarkdown } from '@myun/gimi-design';
|
|
16
16
|
// import SearchResult from '../search-result';
|
|
17
|
-
import styles from "./index.module.
|
|
17
|
+
import styles from "./index.module.css";
|
|
18
18
|
import { processString } from "../../utils/tools";
|
|
19
19
|
import LottieImg from "../../components/lottie-img";
|
|
20
20
|
import useScroll from "../../hooks/useScroll";
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.container {
|
|
3
|
+
max-width: clamp(380px, 60vw, 800px);
|
|
4
|
+
padding: 0 20px;
|
|
5
|
+
border-left: 2px solid #d9dce5;
|
|
6
|
+
margin-bottom: 16px;
|
|
7
|
+
user-select: none;
|
|
8
|
+
}
|
|
9
|
+
.container .header {
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 22px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
.container .header .title {
|
|
17
|
+
height: 16px;
|
|
18
|
+
font-family: PingFangSC, PingFang SC;
|
|
19
|
+
font-weight: 600;
|
|
20
|
+
font-size: 16px;
|
|
21
|
+
color: #2e394c;
|
|
22
|
+
line-height: 16px;
|
|
23
|
+
text-align: left;
|
|
24
|
+
font-style: normal;
|
|
25
|
+
display: flex;
|
|
26
|
+
margin-right: 4px;
|
|
27
|
+
}
|
|
28
|
+
.container .thinkQuery {
|
|
29
|
+
width: 100%;
|
|
30
|
+
}
|
|
31
|
+
.container .thinkQuery .queryTitle {
|
|
32
|
+
margin-top: 8px;
|
|
33
|
+
min-height: 26px;
|
|
34
|
+
font-family: PingFangSC, PingFang SC;
|
|
35
|
+
font-weight: 400;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
color: #7d91b3;
|
|
38
|
+
line-height: 26px;
|
|
39
|
+
text-align: left;
|
|
40
|
+
font-style: normal;
|
|
41
|
+
}
|
|
42
|
+
.container .deepThink {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
.container .deepThink .deepThink_content {
|
|
46
|
+
margin-top: 4px;
|
|
47
|
+
}
|
|
48
|
+
.container .deeping {
|
|
49
|
+
margin-top: 8px;
|
|
50
|
+
overflow-y: scroll;
|
|
51
|
+
}
|
|
52
|
+
.container .deepThinkPack {
|
|
53
|
+
width: 100%;
|
|
54
|
+
position: relative;
|
|
55
|
+
}
|
|
56
|
+
.container .deepThinkPack .deepThink_content_pack {
|
|
57
|
+
margin-top: 13px;
|
|
58
|
+
display: flex;
|
|
59
|
+
}
|
|
60
|
+
.container .deepThinkPack .text_shanow_up {
|
|
61
|
+
z-index: 2;
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
background: #ffffff;
|
|
64
|
+
filter: blur(10px);
|
|
65
|
+
width: 97%;
|
|
66
|
+
height: 25px;
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: -6px;
|
|
69
|
+
}
|
|
70
|
+
.container .deepThinkPack .text_shanow_down {
|
|
71
|
+
z-index: 2;
|
|
72
|
+
pointer-events: none;
|
|
73
|
+
background: #ffffff;
|
|
74
|
+
filter: blur(10px);
|
|
75
|
+
width: 97%;
|
|
76
|
+
height: 25px;
|
|
77
|
+
position: absolute;
|
|
78
|
+
bottom: 1px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.deeping::-webkit-scrollbar-track {
|
|
82
|
+
background-color: transparent;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.deeping::-webkit-scrollbar {
|
|
86
|
+
width: 6px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.deeping::-webkit-scrollbar-thumb {
|
|
90
|
+
border-radius: 8px;
|
|
91
|
+
background: #d9d9d9;
|
|
92
|
+
opacity: 0;
|
|
93
|
+
display: none;
|
|
94
|
+
transition: opacity 0.3s ease;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.deeping::-webkit-scrollbar-thumb:hover {
|
|
98
|
+
border-radius: 8px;
|
|
99
|
+
background: rgba(0, 0, 0, 0.15);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.expand {
|
|
103
|
+
padding-bottom: 20px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.label {
|
|
107
|
+
margin-top: 20px;
|
|
108
|
+
height: 26px;
|
|
109
|
+
font-family: PingFangSC, PingFang SC;
|
|
110
|
+
font-weight: 400;
|
|
111
|
+
font-size: 14px;
|
|
112
|
+
color: #2e394c;
|
|
113
|
+
line-height: 26px;
|
|
114
|
+
text-align: left;
|
|
115
|
+
font-style: normal;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.icon {
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-self: center;
|
|
122
|
+
margin-right: 4px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.answerLoading {
|
|
126
|
+
width: 40px;
|
|
127
|
+
margin-left: -10px;
|
|
128
|
+
margin-bottom: 20px;
|
|
129
|
+
margin: 10px 0 10px -10px;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.loadingContainer {
|
|
133
|
+
display: flex;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
align-items: center;
|
|
136
|
+
margin-left: 8px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.loadingDots {
|
|
140
|
+
display: flex;
|
|
141
|
+
gap: 3px; /* 减小间距 */
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.dot {
|
|
145
|
+
width: 8px; /* 减小大小 */
|
|
146
|
+
height: 8px; /* 减小大小 */
|
|
147
|
+
background-color: #4086ff; /* 换成antd主题浅蓝色 */
|
|
148
|
+
border-radius: 50%;
|
|
149
|
+
will-change: transform; /* 告诉浏览器提前优化动画 */
|
|
150
|
+
animation: bounce 0.8s infinite ease-in-out both; /* 减小动画变化幅度 */
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.dot:nth-child(1) {
|
|
154
|
+
animation-delay: -0.24s; /* 调整延迟 */
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.dot:nth-child(2) {
|
|
158
|
+
animation-delay: -0.12s; /* 调整延迟 */
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@keyframes bounce {
|
|
162
|
+
0%, 85%, 100% {
|
|
163
|
+
/* 减小动画变化幅度 */
|
|
164
|
+
transform: scale(0.6);
|
|
165
|
+
}
|
|
166
|
+
40% {
|
|
167
|
+
transform: scale(1);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -7,7 +7,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { knowledgeConstants } from "../../constants";
|
|
9
9
|
import { Tooltip } from '@douyinfe/semi-ui';
|
|
10
|
-
import styles from "./index.module.
|
|
10
|
+
import styles from "./index.module.css";
|
|
11
11
|
import { CloseCircleFilled } from '@ant-design/icons';
|
|
12
12
|
import { useAppSelector, useAppDispatch } from "../../store/hooks";
|
|
13
13
|
import { setQuoteTeachModelList, setQuoteProductList } from "../../store/slices/gimiMenuSlice";
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
.list {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: end;
|
|
5
|
+
gap: 10px;
|
|
6
|
+
margin-bottom: 10px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.main {
|
|
10
|
+
background-color: #f7f8fa;
|
|
11
|
+
border-radius: 12px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
gap: 10px;
|
|
15
|
+
padding: 10px;
|
|
16
|
+
position: relative;
|
|
17
|
+
min-height: 60px;
|
|
18
|
+
}
|
|
19
|
+
.main .img {
|
|
20
|
+
height: 28px;
|
|
21
|
+
width: 28px;
|
|
22
|
+
}
|
|
23
|
+
.main .description {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 5px;
|
|
27
|
+
}
|
|
28
|
+
.main .description .text_oneline {
|
|
29
|
+
text-overflow: ellipsis;
|
|
30
|
+
display: -webkit-box;
|
|
31
|
+
-webkit-line-clamp: 1;
|
|
32
|
+
-webkit-box-orient: vertical;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
width: 200px;
|
|
35
|
+
font-family: "PingFang SC";
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
line-height: 150%;
|
|
39
|
+
letter-spacing: 0px;
|
|
40
|
+
color: #2e394c;
|
|
41
|
+
}
|
|
42
|
+
.main .description .text_twoline {
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
display: -webkit-box;
|
|
45
|
+
-webkit-line-clamp: 2;
|
|
46
|
+
-webkit-box-orient: vertical;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
width: 200px;
|
|
49
|
+
font-family: "PingFang SC";
|
|
50
|
+
font-weight: 500;
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
line-height: 150%;
|
|
53
|
+
letter-spacing: 0px;
|
|
54
|
+
color: #2e394c;
|
|
55
|
+
}
|
|
56
|
+
.main .description .product_text {
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
display: -webkit-box;
|
|
59
|
+
-webkit-line-clamp: 2;
|
|
60
|
+
-webkit-box-orient: vertical;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
width: 200px;
|
|
63
|
+
font-family: "PingFang SC";
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
line-height: 150%;
|
|
67
|
+
letter-spacing: 0px;
|
|
68
|
+
color: #2e394c;
|
|
69
|
+
}
|
|
70
|
+
.main .description .duration {
|
|
71
|
+
color: #717f94;
|
|
72
|
+
font-family: "PingFang SC";
|
|
73
|
+
font-weight: 400;
|
|
74
|
+
font-style: Regular;
|
|
75
|
+
font-size: 12px;
|
|
76
|
+
line-height: 150%;
|
|
77
|
+
letter-spacing: 0px;
|
|
78
|
+
}
|
|
79
|
+
.main .closeIcon {
|
|
80
|
+
position: absolute;
|
|
81
|
+
top: 0;
|
|
82
|
+
right: 0;
|
|
83
|
+
transform: translate(5px, -5px);
|
|
84
|
+
}
|