@myun/gimi-chat 0.0.4 → 0.0.6

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.
Files changed (98) hide show
  1. package/dist/components/ai-chat-dialogue/index.js +182 -136
  2. package/dist/components/ai-chat-dialogue/index.module.css +230 -0
  3. package/dist/components/ai-correction/index.js +38 -25
  4. package/dist/components/ai-loading/index.js +13 -9
  5. package/dist/components/ai-loading/index.module.css +11 -0
  6. package/dist/components/answer-item/index.js +136 -114
  7. package/dist/components/answer-item/index.module.css +266 -0
  8. package/dist/components/ask-card/index.js +43 -34
  9. package/dist/components/ask-card/index.module.css +122 -0
  10. package/dist/components/chat-input/index.js +136 -115
  11. package/dist/components/chat-input/index.module.css +42 -0
  12. package/dist/components/chat-voice/VoiceCommunication.js +23 -21
  13. package/dist/components/chat-voice/VoiceRecord.js +24 -21
  14. package/dist/components/conversation-delete/index.js +10 -8
  15. package/dist/components/dots-loading/index.js +11 -8
  16. package/dist/components/dots-loading/index.module.css +41 -0
  17. package/dist/components/empty/index.js +13 -8
  18. package/dist/components/empty/index.module.css +24 -0
  19. package/dist/components/excel-components/ExcelCard.js +7 -3
  20. package/dist/components/excel-components/ExcelExcuting.js +61 -44
  21. package/dist/components/excel-components/ExcelFailCard.js +16 -11
  22. package/dist/components/excel-components/ExcelSuccessCard.js +3 -2
  23. package/dist/components/excel-components/index.module.css +212 -0
  24. package/dist/components/excel-components/styles.module.css +178 -0
  25. package/dist/components/file-card/fileCardSidebar.js +24 -17
  26. package/dist/components/file-card/index.js +69 -50
  27. package/dist/components/file-card/index.module.css +139 -0
  28. package/dist/components/file-preview/index.js +39 -34
  29. package/dist/components/file-preview/index.module.css +83 -0
  30. package/dist/components/file-upload/index.js +10 -7
  31. package/dist/components/file-upload/uploadV1.js +33 -27
  32. package/dist/components/gimi-sidebar/index.js +21 -14
  33. package/dist/components/gimi-sidebar/index.module.css +118 -0
  34. package/dist/components/header/index.js +19 -12
  35. package/dist/components/header/index.module.css +19 -0
  36. package/dist/components/iconfont-com/index.js +2 -1
  37. package/dist/components/knowledge-trace/KnowledgeIconComponent.js +29 -23
  38. package/dist/components/knowledge-trace/classList.js +38 -29
  39. package/dist/components/knowledge-trace/documentList.js +37 -28
  40. package/dist/components/knowledge-trace/index.js +29 -22
  41. package/dist/components/knowledge-trace/index.module.css +254 -0
  42. package/dist/components/knowledge-trace/videoList.js +47 -37
  43. package/dist/components/lottie-img/index.js +10 -8
  44. package/dist/components/message-actions/CopyButton.js +25 -22
  45. package/dist/components/message-actions/LikeButton.js +25 -22
  46. package/dist/components/message-actions/RegenerateButton.js +21 -18
  47. package/dist/components/message-actions/UnLikeButton.js +25 -22
  48. package/dist/components/message-actions/VoicePlay.js +25 -22
  49. package/dist/components/message-list/index.js +86 -76
  50. package/dist/components/message-list/index.module.css +261 -0
  51. package/dist/components/no-microphone-root/index.js +40 -30
  52. package/dist/components/no-microphone-root/index.module.css +48 -0
  53. package/dist/components/preset-agent-content/index.js +21 -16
  54. package/dist/components/preset-agent-content/index.module.css +46 -0
  55. package/dist/components/quoted-content/index.module.css +80 -0
  56. package/dist/components/reasoning-content/index.js +56 -43
  57. package/dist/components/reasoning-content/index.module.css +169 -0
  58. package/dist/components/reference-content/index.js +73 -64
  59. package/dist/components/reference-content/index.module.css +84 -0
  60. package/dist/components/templates/CommonChat.js +79 -65
  61. package/dist/components/templates/GimiChatComponent.js +13 -6
  62. package/dist/components/templates/demo/demo.js +104 -103
  63. package/dist/components/templates/index.module.css +109 -0
  64. package/dist/components/upload-list/index.js +57 -42
  65. package/dist/components/upload-list/index.module.css +119 -0
  66. package/dist/components/voice-bars/index.js +22 -19
  67. package/dist/components/voice-check-dialog/index.js +25 -18
  68. package/dist/components/voice-check-dialog/{index.module.scss → index.module.css} +2 -2
  69. package/dist/components/voice-recording/index.js +58 -43
  70. package/dist/components/voice-recording/index.module.css +41 -0
  71. package/dist/components/work-flow-content/demo.js +2 -1
  72. package/dist/components/work-flow-content/index.js +13 -10
  73. package/dist/components/work-flow-content/index.module.css +24 -0
  74. package/package.json +7 -6
  75. package/dist/components/ai-chat-dialogue/index.module.scss +0 -272
  76. package/dist/components/ai-loading/index.module.scss +0 -11
  77. package/dist/components/answer-item/index.module.scss +0 -295
  78. package/dist/components/ask-card/index.module.scss +0 -125
  79. package/dist/components/chat-input/index.module.scss +0 -44
  80. package/dist/components/dots-loading/index.module.scss +0 -45
  81. package/dist/components/empty/index.module.scss +0 -27
  82. package/dist/components/excel-components/index.module.scss +0 -210
  83. package/dist/components/excel-components/styles.module.scss +0 -186
  84. package/dist/components/file-card/index.module.scss +0 -139
  85. package/dist/components/file-preview/index.module.scss +0 -120
  86. package/dist/components/gimi-sidebar/index.module.scss +0 -136
  87. package/dist/components/header/index.module.scss +0 -26
  88. package/dist/components/knowledge-trace/index.module.scss +0 -262
  89. package/dist/components/message-list/index.module.scss +0 -304
  90. package/dist/components/no-microphone-root/index.module.scss +0 -42
  91. package/dist/components/preset-agent-content/index.module.scss +0 -48
  92. package/dist/components/quoted-content/index.module.scss +0 -76
  93. package/dist/components/reasoning-content/index.module.scss +0 -164
  94. package/dist/components/reference-content/index.module.scss +0 -73
  95. package/dist/components/templates/index.module.scss +0 -119
  96. package/dist/components/upload-list/index.module.scss +0 -119
  97. package/dist/components/voice-recording/index.module.scss +0 -41
  98. package/dist/components/work-flow-content/index.module.scss +0 -23
@@ -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,8 +4,11 @@ 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.scss";
7
+ import styles from "./index.module.css";
8
8
  import { FileCard } from ".";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { Fragment as _Fragment } from "react/jsx-runtime";
9
12
  var FileCardSideBar = function FileCardSideBar(props) {
10
13
  var targetElement = props.targetElement,
11
14
  isOverFlow = props.isOverFlow,
@@ -25,32 +28,36 @@ var FileCardSideBar = function FileCardSideBar(props) {
25
28
  dispatch(setSidebarFileList([]));
26
29
  }, [dispatch]);
27
30
  var renderContent = function renderContent() {
28
- return /*#__PURE__*/React.createElement(GimiSideBar, {
31
+ return /*#__PURE__*/_jsx(GimiSideBar, {
29
32
  show: showSidebar,
30
33
  isOverFlow: isOverFlow,
31
34
  title: "\u5168\u90E8",
32
35
  handleClose: handleClose,
33
36
  className: className,
34
- style: style
35
- }, /*#__PURE__*/React.createElement("div", {
36
- className: styles.list
37
- }, /*#__PURE__*/React.createElement("span", {
38
- className: styles.total
39
- }, "\u672C\u5BF9\u8BDD\u5171".concat((fileList === null || fileList === void 0 ? void 0 : fileList.length) || 0, "\u4E2A\u6587\u6863")), fileList.map(function (file, index) {
40
- return /*#__PURE__*/React.createElement(FileCard, {
41
- fileName: file.fileName,
42
- fileType: file.fileType,
43
- size: file.size,
44
- downloadUrl: file.downloadUrl,
45
- key: index
46
- });
47
- })));
37
+ style: style,
38
+ children: /*#__PURE__*/_jsxs("div", {
39
+ className: styles.list,
40
+ children: [/*#__PURE__*/_jsx("span", {
41
+ className: styles.total,
42
+ children: "\u672C\u5BF9\u8BDD\u5171".concat((fileList === null || fileList === void 0 ? void 0 : fileList.length) || 0, "\u4E2A\u6587\u6863")
43
+ }), fileList.map(function (file, index) {
44
+ return /*#__PURE__*/_jsx(FileCard, {
45
+ fileName: file.fileName,
46
+ fileType: file.fileType,
47
+ size: file.size,
48
+ downloadUrl: file.downloadUrl
49
+ }, index);
50
+ })]
51
+ })
52
+ });
48
53
  };
49
54
  if (isOverFlow) {
50
55
  var targetElm = targetElement || document.getElementById('myun_gimi_design_chat');
51
56
  if (!targetElm) return null;
52
57
  return /*#__PURE__*/ReactDOM.createPortal(renderContent(), targetElm);
53
58
  }
54
- return /*#__PURE__*/React.createElement(React.Fragment, null, renderContent());
59
+ return /*#__PURE__*/_jsx(_Fragment, {
60
+ children: renderContent()
61
+ });
55
62
  };
56
63
  export default FileCardSideBar;
@@ -1,11 +1,14 @@
1
1
  import React from 'react';
2
2
  import { Tooltip } from '@douyinfe/semi-ui';
3
- import styles from "./index.module.scss";
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";
7
- import { RightOutlined } from '@ant-design/icons';
8
7
  import classNames from 'classnames';
8
+ import { IconChevronRightStroked } from '@douyinfe/semi-icons';
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
+ import { jsxs as _jsxs } from "react/jsx-runtime";
11
+ import { Fragment as _Fragment } from "react/jsx-runtime";
9
12
  export var FileCard = function FileCard(_ref) {
10
13
  var fileName = _ref.fileName,
11
14
  downloadUrl = _ref.downloadUrl,
@@ -28,39 +31,52 @@ export var FileCard = function FileCard(_ref) {
28
31
  }
29
32
  }));
30
33
  };
31
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
32
- className: classNames(styles.file_main, styles.card),
33
- onClick: previewExcel
34
- }, /*#__PURE__*/React.createElement("div", {
35
- className: styles.icon
36
- }, /*#__PURE__*/React.createElement("img", {
37
- src: "https://simg01.gaodunwangxiao.com/uploadimgs/tmp/upload/202512/19/b8723_20251219094824.png",
38
- alt: ""
39
- })), /*#__PURE__*/React.createElement("div", {
40
- className: styles.left
41
- }, /*#__PURE__*/React.createElement("div", {
42
- className: styles.iconName
43
- }, /*#__PURE__*/React.createElement("div", {
44
- className: styles.nameSize
45
- }, /*#__PURE__*/React.createElement(Tooltip, {
46
- content: decodeURIComponent(fileName),
47
- position: "topLeft"
48
- }, /*#__PURE__*/React.createElement("div", {
49
- className: styles.name
50
- }, decodeURIComponent(fileName))), /*#__PURE__*/React.createElement("div", {
51
- className: styles.type
52
- }, "".concat(fileType, " | ").concat(size))))), /*#__PURE__*/React.createElement("div", {
53
- className: styles.right,
54
- onClick: handleDownLoad
55
- }, downloadText && /*#__PURE__*/React.createElement("span", {
56
- className: styles.text
57
- }, downloadText), /*#__PURE__*/React.createElement(Tooltip, {
58
- content: '下载'
59
- }, /*#__PURE__*/React.createElement("img", {
60
- src: "https://simg01.gaodunwangxiao.com/uploadfiles/tmp/upload/202509/15/c61c4_20250915193545.png",
61
- width: 20,
62
- alt: ""
63
- })))));
34
+ return /*#__PURE__*/_jsx(_Fragment, {
35
+ children: /*#__PURE__*/_jsxs("div", {
36
+ className: classNames(styles.file_main, styles.card),
37
+ onClick: previewExcel,
38
+ children: [/*#__PURE__*/_jsx("div", {
39
+ className: styles.icon,
40
+ children: /*#__PURE__*/_jsx("img", {
41
+ src: "https://simg01.gaodunwangxiao.com/uploadimgs/tmp/upload/202512/19/b8723_20251219094824.png",
42
+ alt: ""
43
+ })
44
+ }), /*#__PURE__*/_jsx("div", {
45
+ className: styles.left,
46
+ children: /*#__PURE__*/_jsx("div", {
47
+ className: styles.iconName,
48
+ children: /*#__PURE__*/_jsxs("div", {
49
+ className: styles.nameSize,
50
+ children: [/*#__PURE__*/_jsx(Tooltip, {
51
+ content: decodeURIComponent(fileName),
52
+ position: "topLeft",
53
+ children: /*#__PURE__*/_jsx("div", {
54
+ className: styles.name,
55
+ children: decodeURIComponent(fileName)
56
+ })
57
+ }), /*#__PURE__*/_jsx("div", {
58
+ className: styles.type,
59
+ children: "".concat(fileType, " | ").concat(size)
60
+ })]
61
+ })
62
+ })
63
+ }), /*#__PURE__*/_jsxs("div", {
64
+ className: styles.right,
65
+ onClick: handleDownLoad,
66
+ children: [downloadText && /*#__PURE__*/_jsx("span", {
67
+ className: styles.text,
68
+ children: downloadText
69
+ }), /*#__PURE__*/_jsx(Tooltip, {
70
+ content: '下载',
71
+ children: /*#__PURE__*/_jsx("img", {
72
+ src: "https://simg01.gaodunwangxiao.com/uploadfiles/tmp/upload/202509/15/c61c4_20250915193545.png",
73
+ width: 20,
74
+ alt: ""
75
+ })
76
+ })]
77
+ })]
78
+ })
79
+ });
64
80
  };
65
81
  export var MultipleFileCard = function MultipleFileCard(_ref2) {
66
82
  var list = _ref2.list;
@@ -78,20 +94,23 @@ export var MultipleFileCard = function MultipleFileCard(_ref2) {
78
94
  }));
79
95
  dispatch(setSidebarFileList(list));
80
96
  };
81
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
82
- className: styles.main
83
- }, renderList.map(function (item, index) {
84
- return /*#__PURE__*/React.createElement(FileCard, {
85
- fileName: item.fileName,
86
- fileType: item.fileType,
87
- size: item.size,
88
- downloadUrl: item.downloadUrl,
89
- key: index,
90
- downloadText: "\u4E0B\u8F7D"
91
- });
92
- }), hasMore && /*#__PURE__*/React.createElement("div", {
93
- className: styles.all,
94
- onClick: openSidebar
95
- }, "\u5168\u90E8", /*#__PURE__*/React.createElement(RightOutlined, null))));
97
+ return /*#__PURE__*/_jsx(_Fragment, {
98
+ children: /*#__PURE__*/_jsxs("div", {
99
+ className: styles.main,
100
+ children: [renderList.map(function (item, index) {
101
+ return /*#__PURE__*/_jsx(FileCard, {
102
+ fileName: item.fileName,
103
+ fileType: item.fileType,
104
+ size: item.size,
105
+ downloadUrl: item.downloadUrl,
106
+ downloadText: "\u4E0B\u8F7D"
107
+ }, index);
108
+ }), hasMore && /*#__PURE__*/_jsxs("div", {
109
+ className: styles.all,
110
+ onClick: openSidebar,
111
+ children: ["\u5168\u90E8", /*#__PURE__*/_jsx(IconChevronRightStroked, {})]
112
+ })]
113
+ })
114
+ });
96
115
  };
97
116
  export default MultipleFileCard;