@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,41 @@
|
|
|
1
|
+
.loading_dots {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
}
|
|
7
|
+
.loading_dots .loading_dots__dot {
|
|
8
|
+
width: 8px;
|
|
9
|
+
height: 8px;
|
|
10
|
+
background-color: #000;
|
|
11
|
+
border-radius: 50%;
|
|
12
|
+
/* Changed animation to swap positions left-right */
|
|
13
|
+
animation: swap 1.2s infinite ease-in-out;
|
|
14
|
+
}
|
|
15
|
+
.loading_dots .loading_dots__dot:first-child {
|
|
16
|
+
/* First dot starts from left, moves to right */
|
|
17
|
+
animation-name: swapLeftToRight;
|
|
18
|
+
}
|
|
19
|
+
.loading_dots .loading_dots__dot:last-child {
|
|
20
|
+
/* Second dot starts from right, moves to left */
|
|
21
|
+
animation-name: swapRightToLeft;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Animation for first dot: move from left to right */
|
|
25
|
+
@keyframes swapLeftToRight {
|
|
26
|
+
0%, 100% {
|
|
27
|
+
transform: translateX(0);
|
|
28
|
+
}
|
|
29
|
+
50% {
|
|
30
|
+
transform: translateX(16px);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
/* Animation for second dot: move from right to left */
|
|
34
|
+
@keyframes swapRightToLeft {
|
|
35
|
+
0%, 100% {
|
|
36
|
+
transform: translateX(0);
|
|
37
|
+
}
|
|
38
|
+
50% {
|
|
39
|
+
transform: translateX(-16px);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -8,7 +8,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
8
8
|
* @LastEditTime: 2024-05-14 11:01:02
|
|
9
9
|
* @Description:
|
|
10
10
|
*/
|
|
11
|
-
import styles from "./index.module.
|
|
11
|
+
import styles from "./index.module.css";
|
|
12
12
|
import EmptyImg from "../../assets/image/empty-img.png";
|
|
13
13
|
import EmptyImgDark from "../../assets/image/empty-img-dark.png";
|
|
14
14
|
import classNames from 'classnames';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.emptyShow {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
height: 100%;
|
|
7
|
+
}
|
|
8
|
+
.emptyShow img {
|
|
9
|
+
width: 165px;
|
|
10
|
+
}
|
|
11
|
+
.emptyShow p {
|
|
12
|
+
color: #7d91b3;
|
|
13
|
+
margin-top: 10px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.dark img {
|
|
17
|
+
width: 119px;
|
|
18
|
+
height: 98px;
|
|
19
|
+
}
|
|
20
|
+
.dark p {
|
|
21
|
+
color: white;
|
|
22
|
+
margin-top: 12px;
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
}
|
|
@@ -16,7 +16,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
16
16
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
17
17
|
import React from "react";
|
|
18
18
|
import { IconTickCircle } from "@douyinfe/semi-icons";
|
|
19
|
-
import styles from "./styles.module.
|
|
19
|
+
import styles from "./styles.module.css";
|
|
20
20
|
import LoadingIcon from "../../assets/image/Subtract.png";
|
|
21
21
|
import classNames from "classnames";
|
|
22
22
|
import { useExcelExcuteLongPoll } from "../../hooks/useLongPoll";
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.excelSucess {
|
|
3
|
+
width: 328px;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
border-radius: 12px;
|
|
6
|
+
border: 1px solid var(---, #e9ebf2);
|
|
7
|
+
background: var(---, #f2f3f7);
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: 12px;
|
|
11
|
+
padding: 16px;
|
|
12
|
+
}
|
|
13
|
+
.excelSucess:hover {
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
.excelSucess .icon {
|
|
17
|
+
display: flex;
|
|
18
|
+
width: 36px;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
align-items: center;
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
}
|
|
23
|
+
.excelSucess .icon img {
|
|
24
|
+
width: 36px;
|
|
25
|
+
height: 36px;
|
|
26
|
+
object-fit: cover;
|
|
27
|
+
}
|
|
28
|
+
.excelSucess .left {
|
|
29
|
+
flex: 1;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
justify-content: space-between;
|
|
33
|
+
}
|
|
34
|
+
.excelSucess .left .iconName {
|
|
35
|
+
display: flex;
|
|
36
|
+
margin-bottom: 4px;
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
}
|
|
40
|
+
.excelSucess .left .iconName .nameSize {
|
|
41
|
+
flex: 1 1 auto;
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
}
|
|
46
|
+
.excelSucess .left .iconName .nameSize .type {
|
|
47
|
+
width: fit-content;
|
|
48
|
+
text-align: center;
|
|
49
|
+
color: var(---, #717f94);
|
|
50
|
+
font-family: "PingFang SC";
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
line-height: normal;
|
|
55
|
+
border-radius: 4px;
|
|
56
|
+
height: 17px;
|
|
57
|
+
margin-right: 12px;
|
|
58
|
+
}
|
|
59
|
+
.excelSucess .left .iconName .nameSize .name {
|
|
60
|
+
flex: 1;
|
|
61
|
+
color: var(---, #2e394c);
|
|
62
|
+
font-family: "PingFang SC";
|
|
63
|
+
font-size: 16px;
|
|
64
|
+
width: 190px;
|
|
65
|
+
font-style: normal;
|
|
66
|
+
font-weight: 400;
|
|
67
|
+
line-height: normal;
|
|
68
|
+
overflow: hidden; /* 隐藏溢出内容 */
|
|
69
|
+
white-space: nowrap; /* 强制文本不换行 */
|
|
70
|
+
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
|
71
|
+
margin-bottom: 6px;
|
|
72
|
+
}
|
|
73
|
+
.excelSucess .left .typeSize {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
.excelSucess .left .typeSize .type {
|
|
78
|
+
color: var(--, #56bf8c);
|
|
79
|
+
text-align: center;
|
|
80
|
+
font-family: "PingFang SC";
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
font-style: normal;
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
line-height: normal;
|
|
85
|
+
padding: 0 3px;
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
border: 1px solid var(--, #56bf8c);
|
|
88
|
+
height: 17px;
|
|
89
|
+
margin-right: 12px;
|
|
90
|
+
}
|
|
91
|
+
.excelSucess .left .typeSize .size {
|
|
92
|
+
color: var(---, #717f94);
|
|
93
|
+
font-family: "PingFang SC";
|
|
94
|
+
font-size: 14px;
|
|
95
|
+
font-style: normal;
|
|
96
|
+
font-weight: 400;
|
|
97
|
+
line-height: normal;
|
|
98
|
+
}
|
|
99
|
+
.excelSucess .right {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
width: fit-content;
|
|
103
|
+
justify-content: space-between;
|
|
104
|
+
flex-shrink: 0;
|
|
105
|
+
}
|
|
106
|
+
.excelSucess .right .text {
|
|
107
|
+
color: var(--, #4086ff);
|
|
108
|
+
text-align: right;
|
|
109
|
+
font-family: "PingFang SC";
|
|
110
|
+
font-size: 16px;
|
|
111
|
+
font-style: normal;
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
line-height: normal;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.failText {
|
|
117
|
+
color: #2e394c;
|
|
118
|
+
font-family: "PingFang SC";
|
|
119
|
+
font-size: 16px;
|
|
120
|
+
font-style: normal;
|
|
121
|
+
font-weight: 400;
|
|
122
|
+
line-height: 28px; /* 175% */
|
|
123
|
+
margin-bottom: 12px;
|
|
124
|
+
white-space: pre-line;
|
|
125
|
+
max-width: clamp(360px, 50%, 600px);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.excelFail .failText {
|
|
129
|
+
color: #2e394c;
|
|
130
|
+
font-family: "PingFang SC";
|
|
131
|
+
font-size: 16px;
|
|
132
|
+
font-style: normal;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
line-height: 28px; /* 175% */
|
|
135
|
+
margin-bottom: 12px;
|
|
136
|
+
white-space: pre-line;
|
|
137
|
+
}
|
|
138
|
+
.excelFail .Retry {
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
display: flex;
|
|
141
|
+
align-items: center;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
width: 96px;
|
|
144
|
+
height: 44px;
|
|
145
|
+
flex-shrink: 0;
|
|
146
|
+
border-radius: 22px;
|
|
147
|
+
border: 1px solid var(---, #d9dce5);
|
|
148
|
+
background: #fff;
|
|
149
|
+
color: #000;
|
|
150
|
+
font-family: "PingFang SC";
|
|
151
|
+
font-size: 14px;
|
|
152
|
+
font-style: normal;
|
|
153
|
+
font-weight: 600;
|
|
154
|
+
line-height: normal;
|
|
155
|
+
}
|
|
156
|
+
.excelFail .disablebox {
|
|
157
|
+
border-radius: 22px;
|
|
158
|
+
border: 1px solid var(---, #d9dce5);
|
|
159
|
+
background: #fff;
|
|
160
|
+
color: #ced3d9;
|
|
161
|
+
font-family: "PingFang SC";
|
|
162
|
+
font-size: 14px;
|
|
163
|
+
font-style: normal;
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
line-height: normal;
|
|
166
|
+
cursor: not-allowed;
|
|
167
|
+
pointer-events: none;
|
|
168
|
+
}
|
|
169
|
+
.excelFail .selectbox {
|
|
170
|
+
border-radius: 22px;
|
|
171
|
+
background: var(---, #2e394c);
|
|
172
|
+
color: #fff;
|
|
173
|
+
font-family: "PingFang SC";
|
|
174
|
+
font-size: 14px;
|
|
175
|
+
font-style: normal;
|
|
176
|
+
font-weight: 600;
|
|
177
|
+
line-height: normal;
|
|
178
|
+
cursor: not-allowed;
|
|
179
|
+
pointer-events: none;
|
|
180
|
+
}
|
|
181
|
+
.excelFail .Retry:hover {
|
|
182
|
+
border-radius: 22px;
|
|
183
|
+
border: 1px solid var(---, #d9dce5);
|
|
184
|
+
background: #f7f7f7;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.excelRunning {
|
|
188
|
+
width: clamp(360px, 45vw, 680px);
|
|
189
|
+
margin-top: 12px;
|
|
190
|
+
}
|
|
191
|
+
.excelRunning .running {
|
|
192
|
+
display: flex;
|
|
193
|
+
align-items: center;
|
|
194
|
+
}
|
|
195
|
+
.excelRunning .running img {
|
|
196
|
+
width: 16px;
|
|
197
|
+
height: 16px;
|
|
198
|
+
object-fit: cover;
|
|
199
|
+
}
|
|
200
|
+
.excelRunning .running .runningText {
|
|
201
|
+
color: #000;
|
|
202
|
+
font-family: "PingFang SC";
|
|
203
|
+
font-size: 16px;
|
|
204
|
+
font-style: normal;
|
|
205
|
+
font-weight: 600;
|
|
206
|
+
line-height: 28px; /* 175% */
|
|
207
|
+
margin-left: 10px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.progress {
|
|
211
|
+
margin: 0 8px;
|
|
212
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
height: 300px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.aiLoadingSteps {
|
|
6
|
+
background: linear-gradient(180deg, #F9FEFE 0%, #FFFFFF 100%);
|
|
7
|
+
border-radius: 16px;
|
|
8
|
+
padding: 16px;
|
|
9
|
+
width: clamp(380px, 100%, 680px);
|
|
10
|
+
border: 1px solid rgb(233, 235, 242);
|
|
11
|
+
box-shadow: 0px 2px 2px 0px rgb(255, 255, 255) inset;
|
|
12
|
+
transition: all 0.5s ease-in-out;
|
|
13
|
+
min-height: 60px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.header {
|
|
17
|
+
margin-bottom: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.title {
|
|
21
|
+
font-size: 16px;
|
|
22
|
+
color: rgb(46, 57, 76);
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
font-family: PingFang SC;
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
font-style: Semibold;
|
|
29
|
+
letter-spacing: 0px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.titleIcon {
|
|
33
|
+
font-size: 16px;
|
|
34
|
+
color: #1890ff;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.description {
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
color: rgb(113, 127, 148);
|
|
40
|
+
margin: 0;
|
|
41
|
+
font-family: PingFang SC;
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
font-style: Regular;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
line-height: 180%;
|
|
46
|
+
letter-spacing: 0px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.stepsContainer {
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
gap: 0;
|
|
53
|
+
margin-left: 4px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.stepItem {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: baseline;
|
|
59
|
+
gap: 12px;
|
|
60
|
+
position: relative;
|
|
61
|
+
min-height: 32px;
|
|
62
|
+
transition: all 300ms ease;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.stepActiveItem {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: flex-start;
|
|
68
|
+
gap: 8px;
|
|
69
|
+
position: relative;
|
|
70
|
+
min-height: 32px;
|
|
71
|
+
transition: all 300ms ease;
|
|
72
|
+
margin-left: -4px;
|
|
73
|
+
margin-top: 5px;
|
|
74
|
+
margin-bottom: 16px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.stepIndicator {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
align-items: center;
|
|
81
|
+
position: relative;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@keyframes rotate360 {
|
|
85
|
+
0% {
|
|
86
|
+
transform: rotate(0deg);
|
|
87
|
+
}
|
|
88
|
+
100% {
|
|
89
|
+
transform: rotate(360deg);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
.checkIcon {
|
|
93
|
+
font-size: 14px;
|
|
94
|
+
color: rgb(62, 179, 86) !important;
|
|
95
|
+
background: white;
|
|
96
|
+
position: relative;
|
|
97
|
+
z-index: 2;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.pendingIcon {
|
|
101
|
+
width: 22px;
|
|
102
|
+
height: 22px;
|
|
103
|
+
animation: rotate360 1s linear infinite;
|
|
104
|
+
position: relative;
|
|
105
|
+
z-index: 2;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.verticalLine {
|
|
109
|
+
position: absolute;
|
|
110
|
+
top: 22px;
|
|
111
|
+
left: 50%;
|
|
112
|
+
transform: translateX(-50%);
|
|
113
|
+
width: 2px;
|
|
114
|
+
height: 8px;
|
|
115
|
+
border-radius: 4px;
|
|
116
|
+
background: rgb(217, 220, 229);
|
|
117
|
+
z-index: 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.stepItem.completed .verticalLine {
|
|
121
|
+
background: #52c41a;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.stepContent {
|
|
125
|
+
flex: 1;
|
|
126
|
+
padding: 0 0 12px 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.stepText {
|
|
130
|
+
font-size: 16px;
|
|
131
|
+
color: rgb(46, 57, 76);
|
|
132
|
+
font-family: PingFang SC;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
font-style: Regular;
|
|
135
|
+
font-size: 16px;
|
|
136
|
+
line-height: 18px;
|
|
137
|
+
letter-spacing: 0px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.finishText {
|
|
141
|
+
font-family: PingFang SC;
|
|
142
|
+
font-weight: 600;
|
|
143
|
+
font-style: Semibold;
|
|
144
|
+
font-size: 16px;
|
|
145
|
+
line-height: 180%;
|
|
146
|
+
letter-spacing: 0px;
|
|
147
|
+
color: rgb(46, 57, 76);
|
|
148
|
+
transition: opacity 0.3s ease-in-out;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.stepItem.completed .stepText {
|
|
152
|
+
color: #8c8c8c;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.stepActiveItem.active .stepText {
|
|
156
|
+
color: #262626;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
}
|
|
159
|
+
.stepActiveItem.active .verticalLine {
|
|
160
|
+
height: 24px;
|
|
161
|
+
top: 26px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.contentWrapper {
|
|
165
|
+
transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
|
|
166
|
+
padding: 2px 0;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.contentWrapper.collapsing {
|
|
171
|
+
max-height: 0;
|
|
172
|
+
opacity: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.contentWrapper.expanded {
|
|
176
|
+
max-height: 300px;
|
|
177
|
+
opacity: 1;
|
|
178
|
+
}
|
|
@@ -4,7 +4,7 @@ import { useAppSelector, useAppDispatch } from "../../store/hooks";
|
|
|
4
4
|
import { setShowSidebarFileList, setSidebarFileList } from "../../store/slices/gimiMenuSlice";
|
|
5
5
|
import { useCallback } from "react";
|
|
6
6
|
import ReactDOM from 'react-dom';
|
|
7
|
-
import styles from "./index.module.
|
|
7
|
+
import styles from "./index.module.css";
|
|
8
8
|
import { FileCard } from ".";
|
|
9
9
|
var FileCardSideBar = function FileCardSideBar(props) {
|
|
10
10
|
var targetElement = props.targetElement,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Tooltip } from '@douyinfe/semi-ui';
|
|
3
|
-
import styles from "./index.module.
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
4
|
import { downloadExcelByUrl } from "../../utils/tools";
|
|
5
5
|
import { useAppDispatch } from "../../store/hooks";
|
|
6
6
|
import { setFilePreviewState, setShowSidebarFileList, setSidebarFileList } from "../../store/slices/gimiMenuSlice";
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.main {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
gap: 10px;
|
|
6
|
+
padding: 10px 0px;
|
|
7
|
+
}
|
|
8
|
+
.main .all {
|
|
9
|
+
width: 78px;
|
|
10
|
+
border-radius: 12px;
|
|
11
|
+
border: 1px solid rgb(233, 235, 242);
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
font-family: PingFang SC;
|
|
16
|
+
font-weight: 400;
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
line-height: 14px;
|
|
19
|
+
letter-spacing: 0px;
|
|
20
|
+
color: rgb(46, 57, 76);
|
|
21
|
+
box-shadow: 0px 2px 16px 0px rgba(84, 105, 140, 0.1);
|
|
22
|
+
}
|
|
23
|
+
.main .all:hover {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.card {
|
|
28
|
+
box-shadow: 0px 2px 16px 0px rgba(84, 105, 140, 0.1);
|
|
29
|
+
background: rgb(255, 255, 255) !important;
|
|
30
|
+
}
|
|
31
|
+
.card:hover {
|
|
32
|
+
background: rgb(241, 247, 255) !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.file_main {
|
|
36
|
+
max-width: 328px;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
border-radius: 12px;
|
|
39
|
+
border: 1px solid rgb(233, 235, 242);
|
|
40
|
+
background: linear-gradient(90deg, #EAF2FF 0%, #FFFFFF 100%);
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
gap: 10px;
|
|
44
|
+
padding: 16px;
|
|
45
|
+
}
|
|
46
|
+
.file_main:hover {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
.file_main .icon {
|
|
50
|
+
display: flex;
|
|
51
|
+
width: 40px;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
align-items: center;
|
|
54
|
+
flex-shrink: 0;
|
|
55
|
+
}
|
|
56
|
+
.file_main .icon img {
|
|
57
|
+
width: 40px;
|
|
58
|
+
height: 36px;
|
|
59
|
+
object-fit: cover;
|
|
60
|
+
padding: 2px;
|
|
61
|
+
}
|
|
62
|
+
.file_main .left {
|
|
63
|
+
flex: 1;
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
justify-content: space-between;
|
|
67
|
+
}
|
|
68
|
+
.file_main .left .iconName {
|
|
69
|
+
display: flex;
|
|
70
|
+
margin-bottom: 4px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
.file_main .left .iconName .nameSize {
|
|
75
|
+
flex: 1 1 auto;
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
}
|
|
80
|
+
.file_main .left .iconName .nameSize .type {
|
|
81
|
+
width: fit-content;
|
|
82
|
+
text-align: center;
|
|
83
|
+
color: var(---, #717f94);
|
|
84
|
+
font-family: "PingFang SC";
|
|
85
|
+
font-size: 14px;
|
|
86
|
+
font-style: normal;
|
|
87
|
+
font-weight: 400;
|
|
88
|
+
line-height: normal;
|
|
89
|
+
border-radius: 4px;
|
|
90
|
+
height: 17px;
|
|
91
|
+
margin-right: 12px;
|
|
92
|
+
}
|
|
93
|
+
.file_main .left .iconName .nameSize .name {
|
|
94
|
+
flex: 1;
|
|
95
|
+
color: var(---, #2e394c);
|
|
96
|
+
font-family: "PingFang SC";
|
|
97
|
+
font-size: 16px;
|
|
98
|
+
width: fit-content;
|
|
99
|
+
max-width: 190px;
|
|
100
|
+
font-style: normal;
|
|
101
|
+
font-weight: 400;
|
|
102
|
+
line-height: normal;
|
|
103
|
+
overflow: hidden; /* 隐藏溢出内容 */
|
|
104
|
+
white-space: nowrap; /* 强制文本不换行 */
|
|
105
|
+
text-overflow: ellipsis; /* 超出部分显示省略号 */
|
|
106
|
+
margin-bottom: 6px;
|
|
107
|
+
}
|
|
108
|
+
.file_main .right {
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
width: fit-content;
|
|
112
|
+
justify-content: space-between;
|
|
113
|
+
flex-shrink: 0;
|
|
114
|
+
}
|
|
115
|
+
.file_main .right .text {
|
|
116
|
+
color: rgb(64, 134, 255);
|
|
117
|
+
text-align: right;
|
|
118
|
+
font-family: "PingFang SC";
|
|
119
|
+
font-size: 16px;
|
|
120
|
+
font-style: normal;
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
line-height: normal;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.list {
|
|
126
|
+
display: flex;
|
|
127
|
+
flex-direction: column;
|
|
128
|
+
gap: 10px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.text {
|
|
132
|
+
font-family: PingFang SC;
|
|
133
|
+
font-weight: 400;
|
|
134
|
+
font-style: Regular;
|
|
135
|
+
font-size: 15px;
|
|
136
|
+
line-height: 180%;
|
|
137
|
+
letter-spacing: 0px;
|
|
138
|
+
color: rgb(46, 57, 76);
|
|
139
|
+
}
|
|
@@ -6,9 +6,9 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { useAppSelector, useAppDispatch } from "../../store/hooks";
|
|
8
8
|
import React from 'react';
|
|
9
|
-
import styles from "./index.module.
|
|
9
|
+
import styles from "./index.module.css";
|
|
10
10
|
import { Button } from '@douyinfe/semi-ui';
|
|
11
|
-
import { IconClose
|
|
11
|
+
import { IconClose } from '@douyinfe/semi-icons';
|
|
12
12
|
import { useState, useRef, useEffect, useMemo } from 'react';
|
|
13
13
|
import EmptyShow from "../../components/empty";
|
|
14
14
|
var OfficeFilePreviewPanel = function OfficeFilePreviewPanel() {
|
|
@@ -36,7 +36,7 @@ var OfficeFilePreviewPanel = function OfficeFilePreviewPanel() {
|
|
|
36
36
|
iframeLoaded = _useState8[0],
|
|
37
37
|
setIframeLoaded = _useState8[1]; // iframe 是否已加载
|
|
38
38
|
var panelRef = useRef(null);
|
|
39
|
-
var
|
|
39
|
+
var resizerRef = useRef(null);
|
|
40
40
|
var startXRef = useRef(0);
|
|
41
41
|
var startWidthRef = useRef(0);
|
|
42
42
|
var widthRef = useRef(600); // 用于在事件处理函数中访问最新的 width 值
|
|
@@ -219,11 +219,9 @@ var OfficeFilePreviewPanel = function OfficeFilePreviewPanel() {
|
|
|
219
219
|
}) : /*#__PURE__*/React.createElement(EmptyShow, {
|
|
220
220
|
title: iframeError ? '文档加载失败' : '暂无内容'
|
|
221
221
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
222
|
-
ref:
|
|
223
|
-
className: styles.
|
|
222
|
+
ref: resizerRef,
|
|
223
|
+
className: styles.resizer,
|
|
224
224
|
onMouseDown: handleMouseDown
|
|
225
|
-
}
|
|
226
|
-
className: styles.dragIcon
|
|
227
|
-
})));
|
|
225
|
+
}));
|
|
228
226
|
};
|
|
229
227
|
export default OfficeFilePreviewPanel;
|