bhd-components 0.10.12 → 0.10.13

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 (116) hide show
  1. package/README.md +1 -1
  2. package/dist/index.esm.es5.development.css +768 -0
  3. package/dist/index.esm.es5.development.js +3130 -159
  4. package/dist/index.esm.es5.production.css +1 -1
  5. package/dist/index.esm.es5.production.js +1 -1
  6. package/dist/vendor.esm.es5.development.js +2515 -1100
  7. package/dist/vendor.esm.es5.production.js +136 -136
  8. package/es2017/AIMessageList/components/content/index.d.ts +4 -0
  9. package/es2017/AIMessageList/components/content/index.js +29 -0
  10. package/es2017/AIMessageList/components/content/index.module.less +8 -0
  11. package/es2017/AIMessageList/components/copyIcon/index.d.ts +7 -0
  12. package/es2017/AIMessageList/components/copyIcon/index.js +73 -0
  13. package/es2017/AIMessageList/components/copyIcon/index.module.less +23 -0
  14. package/es2017/AIMessageList/components/errorCallback/index.d.ts +3 -0
  15. package/es2017/AIMessageList/components/errorCallback/index.js +6 -0
  16. package/es2017/AIMessageList/components/fileList/fileIcon.d.ts +3 -0
  17. package/es2017/AIMessageList/components/fileList/fileIcon.js +970 -0
  18. package/es2017/AIMessageList/components/fileList/index.d.ts +4 -0
  19. package/es2017/AIMessageList/components/fileList/index.js +315 -0
  20. package/es2017/AIMessageList/components/fileList/index.module.less +95 -0
  21. package/es2017/AIMessageList/components/footer/index.d.ts +10 -0
  22. package/es2017/AIMessageList/components/footer/index.js +398 -0
  23. package/es2017/AIMessageList/components/footer/index.module.less +51 -0
  24. package/es2017/AIMessageList/components/header/index.d.ts +9 -0
  25. package/es2017/AIMessageList/components/header/index.js +94 -0
  26. package/es2017/AIMessageList/components/header/index.module.less +31 -0
  27. package/es2017/AIMessageList/components/referencesIcon/index.d.ts +9 -0
  28. package/es2017/AIMessageList/components/referencesIcon/index.js +63 -0
  29. package/es2017/AIMessageList/components/referencesIcon/index.module.less +14 -0
  30. package/es2017/AIMessageList/components/refreshBtn/index.d.ts +4 -0
  31. package/es2017/AIMessageList/components/refreshBtn/index.js +29 -0
  32. package/es2017/AIMessageList/components/refreshBtn/index.module.less +12 -0
  33. package/es2017/AIMessageList/components/remarkBtn/index.d.ts +4 -0
  34. package/es2017/AIMessageList/components/remarkBtn/index.js +51 -0
  35. package/es2017/AIMessageList/components/remarkBtn/index.module.less +13 -0
  36. package/es2017/AIMessageList/components/renderReferrnce/index.d.ts +10 -0
  37. package/es2017/AIMessageList/components/renderReferrnce/index.js +68 -0
  38. package/es2017/AIMessageList/components/renderReferrnce/index.module.less +64 -0
  39. package/es2017/AIMessageList/components/sendBtn/index.d.ts +4 -0
  40. package/es2017/AIMessageList/components/sendBtn/index.js +51 -0
  41. package/es2017/AIMessageList/components/sendBtn/index.module.less +25 -0
  42. package/es2017/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -0
  43. package/es2017/AIMessageList/components/uplodaFileBtn/index.js +33 -0
  44. package/es2017/AIMessageList/components/uplodaFileBtn/index.module.less +5 -0
  45. package/es2017/AIMessageList/components/virtuosoList/index.d.ts +5 -0
  46. package/es2017/AIMessageList/components/virtuosoList/index.js +696 -0
  47. package/es2017/AIMessageList/components/virtuosoList/index.module.less +467 -0
  48. package/es2017/AIMessageList/index.d.ts +4 -0
  49. package/es2017/AIMessageList/index.js +58 -0
  50. package/es2017/AIMessageList/index.module.less +20 -0
  51. package/es2017/AIMessageList/type.d.ts +307 -0
  52. package/es2017/customerService/index.js +1 -0
  53. package/es2017/images/loading2.js +2 -0
  54. package/es2017/index.d.ts +1 -0
  55. package/es2017/index.js +1 -0
  56. package/es2017/utils/Date.d.ts +2 -1
  57. package/es2017/utils/Date.js +2 -1
  58. package/es2017/utils/dom.d.ts +4 -1
  59. package/es2017/utils/dom.js +44 -1
  60. package/es2017/utils/number.d.ts +1 -0
  61. package/es2017/utils/number.js +9 -0
  62. package/esm/AIMessageList/components/content/index.d.ts +4 -0
  63. package/esm/AIMessageList/components/content/index.js +29 -0
  64. package/esm/AIMessageList/components/content/index.module.less +8 -0
  65. package/esm/AIMessageList/components/copyIcon/index.d.ts +7 -0
  66. package/esm/AIMessageList/components/copyIcon/index.js +76 -0
  67. package/esm/AIMessageList/components/copyIcon/index.module.less +23 -0
  68. package/esm/AIMessageList/components/errorCallback/index.d.ts +3 -0
  69. package/esm/AIMessageList/components/errorCallback/index.js +6 -0
  70. package/esm/AIMessageList/components/fileList/fileIcon.d.ts +3 -0
  71. package/esm/AIMessageList/components/fileList/fileIcon.js +970 -0
  72. package/esm/AIMessageList/components/fileList/index.d.ts +4 -0
  73. package/esm/AIMessageList/components/fileList/index.js +337 -0
  74. package/esm/AIMessageList/components/fileList/index.module.less +95 -0
  75. package/esm/AIMessageList/components/footer/index.d.ts +10 -0
  76. package/esm/AIMessageList/components/footer/index.js +414 -0
  77. package/esm/AIMessageList/components/footer/index.module.less +51 -0
  78. package/esm/AIMessageList/components/header/index.d.ts +9 -0
  79. package/esm/AIMessageList/components/header/index.js +96 -0
  80. package/esm/AIMessageList/components/header/index.module.less +31 -0
  81. package/esm/AIMessageList/components/referencesIcon/index.d.ts +9 -0
  82. package/esm/AIMessageList/components/referencesIcon/index.js +65 -0
  83. package/esm/AIMessageList/components/referencesIcon/index.module.less +14 -0
  84. package/esm/AIMessageList/components/refreshBtn/index.d.ts +4 -0
  85. package/esm/AIMessageList/components/refreshBtn/index.js +31 -0
  86. package/esm/AIMessageList/components/refreshBtn/index.module.less +12 -0
  87. package/esm/AIMessageList/components/remarkBtn/index.d.ts +4 -0
  88. package/esm/AIMessageList/components/remarkBtn/index.js +51 -0
  89. package/esm/AIMessageList/components/remarkBtn/index.module.less +13 -0
  90. package/esm/AIMessageList/components/renderReferrnce/index.d.ts +10 -0
  91. package/esm/AIMessageList/components/renderReferrnce/index.js +72 -0
  92. package/esm/AIMessageList/components/renderReferrnce/index.module.less +64 -0
  93. package/esm/AIMessageList/components/sendBtn/index.d.ts +4 -0
  94. package/esm/AIMessageList/components/sendBtn/index.js +53 -0
  95. package/esm/AIMessageList/components/sendBtn/index.module.less +25 -0
  96. package/esm/AIMessageList/components/uplodaFileBtn/index.d.ts +4 -0
  97. package/esm/AIMessageList/components/uplodaFileBtn/index.js +33 -0
  98. package/esm/AIMessageList/components/uplodaFileBtn/index.module.less +5 -0
  99. package/esm/AIMessageList/components/virtuosoList/index.d.ts +5 -0
  100. package/esm/AIMessageList/components/virtuosoList/index.js +673 -0
  101. package/esm/AIMessageList/components/virtuosoList/index.module.less +467 -0
  102. package/esm/AIMessageList/index.d.ts +4 -0
  103. package/esm/AIMessageList/index.js +58 -0
  104. package/esm/AIMessageList/index.module.less +20 -0
  105. package/esm/AIMessageList/type.d.ts +307 -0
  106. package/esm/customerService/index.js +1 -0
  107. package/esm/images/loading2.js +2 -0
  108. package/esm/index.d.ts +1 -0
  109. package/esm/index.js +1 -0
  110. package/esm/utils/Date.d.ts +2 -1
  111. package/esm/utils/Date.js +2 -1
  112. package/esm/utils/dom.d.ts +4 -1
  113. package/esm/utils/dom.js +45 -1
  114. package/esm/utils/number.d.ts +1 -0
  115. package/esm/utils/number.js +9 -0
  116. package/package.json +2 -1
@@ -0,0 +1,467 @@
1
+ .virtuosoList-wrapper {
2
+ width: 100%;
3
+ height: 100%;
4
+ .loadingIcon {
5
+ width: 100%;
6
+ display: flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ padding: 16px 0 24px 0;
10
+ box-sizing: border-box;
11
+ & > img {
12
+ width: 32px;
13
+ height: 32px;
14
+ }
15
+ }
16
+
17
+ .msg-date {
18
+ width: 100%;
19
+ display: flex;
20
+ align-items: center;
21
+ justify-content: center;
22
+ padding: 16px 32px 16px 32px;
23
+ box-sizing: border-box;
24
+ gap: 16px;
25
+ font-size: 14px;
26
+ color: rgba(0, 0, 0, 0.25);
27
+ &:before {
28
+ content: "";
29
+ display: block;
30
+ flex: 1;
31
+ width: 50%;
32
+ height: 1px;
33
+ background: #ebebeb;
34
+ }
35
+ &:after {
36
+ content: "";
37
+ display: block;
38
+ flex: 1;
39
+ width: 50%;
40
+ height: 1px;
41
+ background: #ebebeb;
42
+ }
43
+ }
44
+
45
+ .msgItem {
46
+ width: 100%;
47
+ padding: 0px 16px;
48
+ padding-top: 0;
49
+ box-sizing: border-box;
50
+ display: flex;
51
+ .msgItem-box {
52
+ max-width: 80%;
53
+ font-size: 14px;
54
+ color: rgba(0, 0, 0, 0.65);
55
+ display: flex;
56
+ flex-direction: column;
57
+ .msgItem-content {
58
+ position: relative;
59
+ width: fit-content;
60
+ max-width: 100%;
61
+ .msgItem-text {
62
+ padding: 12px 16px;
63
+ .copyCode {
64
+ display: flex;
65
+ justify-content: flex-end;
66
+ align-items: center;
67
+ border-radius: 4px 4px 0px 0px;
68
+ border: 1px solid rgba(0, 0, 0, 0.06);
69
+ border-bottom-color: rgba(0, 0, 0, 0.06);
70
+ background: rgba(0, 0, 0, 0.02);
71
+ text-align: right;
72
+ height: 37px;
73
+ line-height: 37px;
74
+ padding: 0;
75
+ padding-right: 16px;
76
+ position: relative;
77
+ cursor: pointer;
78
+ font-weight: 400;
79
+ top: 6px;
80
+ &.copyCodeFun {
81
+ display: flex;
82
+ }
83
+ .copyCodeText {
84
+ line-height: 1;
85
+ }
86
+ .icon {
87
+ display: none;
88
+ margin-right: 8px;
89
+ color: rgba(0, 0, 0, 0.65);
90
+ font-size: 14px;
91
+ &.copy {
92
+ display: block;
93
+ }
94
+ }
95
+ &.copy_success {
96
+ .copyCode {
97
+ color: #f4523b;
98
+ }
99
+ .copy {
100
+ display: none;
101
+ }
102
+ .copy_success_flag {
103
+ display: inline-block;
104
+ color: #f4523b;
105
+ }
106
+ .copyCodeText {
107
+ color: #f4523b;
108
+ }
109
+ }
110
+ }
111
+ & > div {
112
+ h1,
113
+ h2,
114
+ h3,
115
+ h4,
116
+ h5,
117
+ h6 {
118
+ color: rgba(0, 0, 0, 0.85);
119
+ }
120
+ pre::-webkit-scrollbar {
121
+ background-color: #eaedf1;
122
+ background-color: transparent;
123
+ width: 4px;
124
+ height: 4px;
125
+ }
126
+ pre::-webkit-scrollbar-thumb {
127
+ border-radius: 4px;
128
+ background-color: rgba(0, 0, 0, 0.25);
129
+ }
130
+ p {
131
+ word-break: break-all;
132
+ white-space: break-spaces;
133
+ }
134
+ p,
135
+ li {
136
+ line-height: 1.5;
137
+ color: rgba(0, 0, 0, 0.85);
138
+ }
139
+
140
+ li {
141
+ margin-top: 8px;
142
+ &:first-child {
143
+ margin-top: 0;
144
+ }
145
+ }
146
+
147
+ & > h3 {
148
+ font-size: 16px;
149
+ font-weight: 600;
150
+ padding: 10px 0;
151
+ }
152
+ ol {
153
+ list-style: decimal;
154
+ padding-inline-start: 20px;
155
+
156
+ li {
157
+ list-style-type: auto;
158
+ }
159
+
160
+ li p {
161
+ // padding: 4px 0;
162
+ font-size: 14px;
163
+ font-weight: 600;
164
+ }
165
+ li > ul li {
166
+ // padding-bottom: 8px;
167
+ list-style: inside;
168
+ color: rgba(0, 0, 0, 0.85);
169
+ &::marker {
170
+ color: #d9d9d9;
171
+ }
172
+ &:first-child {
173
+ padding-top: 8px;
174
+ }
175
+ }
176
+ li > ol li {
177
+ // padding-bottom: 8px;
178
+ &::marker {
179
+ color: rgba(0, 0, 0, 0.45);
180
+ }
181
+
182
+ &:first-child {
183
+ padding-top: 8px;
184
+ }
185
+ }
186
+ > li:last-of-type {
187
+ pre {
188
+ margin-bottom: 0;
189
+ }
190
+ }
191
+ }
192
+ // li{
193
+ // margin-top:16px;
194
+ // }
195
+ // > * + ul, > * + ol {
196
+ // margin-top:16px;
197
+ // }
198
+ // > ul + *, > ol + * {
199
+ // margin-top:16px;
200
+ // }
201
+ > *:not(pre) {
202
+ padding-top: 8px;
203
+ padding-bottom: 8px;
204
+ &:first-child {
205
+ padding-top: 0;
206
+ }
207
+ &:last-child {
208
+ padding-bottom: 0;
209
+ }
210
+ }
211
+ > h3,
212
+ > h4 {
213
+ padding-top: 8px;
214
+ padding-bottom: 4px;
215
+ }
216
+ > p + p {
217
+ padding-top: 4px;
218
+ padding-bottom: 4px;
219
+ }
220
+
221
+ > pre:last-of-type {
222
+ margin-bottom: 0;
223
+
224
+ & + * {
225
+ margin-top: 8px;
226
+ }
227
+ }
228
+ hr {
229
+ height: 0;
230
+ padding: 0;
231
+ margin: 0;
232
+ border: none;
233
+ }
234
+ table {
235
+ width: 100%;
236
+ padding: 0;
237
+ margin: 8px 0;
238
+ border-collapse: separate;
239
+ border-top: 1px solid #dfe6ec;
240
+ border-left: 1px solid #dfe6ec;
241
+ thead tr th {
242
+ background-color: #f8f8f9;
243
+ padding: 8px;
244
+ text-align: center;
245
+ border-bottom: 1px solid #dfe6ec;
246
+ border-right: 1px solid #dfe6ec;
247
+ }
248
+ tbody tr td {
249
+ padding: 8px;
250
+ line-height: 21px;
251
+ height: 37px; //设置单元格最小高度
252
+ border-bottom: 1px solid #dfe6ec;
253
+ border-right: 1px solid #dfe6ec;
254
+ }
255
+ }
256
+
257
+ pre {
258
+ background: #fafafa;
259
+ border: 1px solid rgba(0, 0, 0, 0.06);
260
+ border-top: none;
261
+
262
+ padding: 12px;
263
+ line-height: 1.5;
264
+ margin: 4px 0;
265
+ margin-bottom: 8px;
266
+ border-radius: 0 0 4px 4px;
267
+ }
268
+ }
269
+ .msgItem-file {
270
+ display: flex;
271
+ align-items: center;
272
+ padding: 8px 12px;
273
+ background: #fafafa;
274
+ border-radius: 8px;
275
+ border: 1px solid #ebebeb;
276
+ gap: 12px;
277
+ min-width: 216px;
278
+ .msgItem-file-left {
279
+ font-size: 24px;
280
+ display: flex;
281
+ justify-content: center;
282
+ align-items: center;
283
+ padding: 0;
284
+ margin: 0;
285
+ & > i {
286
+ display: flex;
287
+ font-size: 24px;
288
+ }
289
+ }
290
+ .msgItem-file-right {
291
+ font-size: 14px;
292
+ font-weight: 400;
293
+ color: rgba(0, 0, 0, 0.65);
294
+ margin: 0;
295
+ padding: 0;
296
+ & > p {
297
+ &:nth-child(1) {
298
+ // margin-bottom: 4px;
299
+ }
300
+ // &:nth-child(2) {
301
+ // font-size: 12px;
302
+ // color: rgba(0, 0, 0, 0.25);
303
+ // }
304
+ }
305
+ }
306
+ }
307
+ }
308
+ .msgItem-action {
309
+ border-top: 1px solid rgba(0, 0, 0, 0.06);
310
+ padding: 12px 16px;
311
+ width: 100%;
312
+ display: flex;
313
+ align-items: center;
314
+ justify-content: space-between;
315
+ .msgItem-action-left {
316
+ display: flex;
317
+ align-items: center;
318
+ gap: 8px;
319
+ }
320
+ .msgItem-action-right {
321
+ display: flex;
322
+ align-items: center;
323
+ gap: 8px;
324
+ }
325
+ }
326
+ }
327
+ .msgItem-action-operate {
328
+ height: 24px;
329
+ position: relative;
330
+ .msgItem-action-popover {
331
+ position: absolute;
332
+ width: max-content;
333
+ border-radius: 4px;
334
+ background: #fff;
335
+ line-height: 1;
336
+ z-index: 9;
337
+ padding: 4px 8px;
338
+ .msgItem-action-left {
339
+ display: flex;
340
+ align-items: center;
341
+ gap: 8px;
342
+ }
343
+ .msgItem-action-right {
344
+ display: flex;
345
+ align-items: center;
346
+ gap: 8px;
347
+ }
348
+ &.msgItem-action-popover-floatTop {
349
+ bottom: 4px;
350
+ right: 0;
351
+ box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.1);
352
+ }
353
+ &.msgItem-action-popover-floatBottom {
354
+ box-shadow: 0 4px 10px 4px rgba(0, 0, 0, 0.1);
355
+ right: 0;
356
+ top: 4px;
357
+ }
358
+ }
359
+ }
360
+ }
361
+
362
+ .msgItem-reference-text {
363
+ padding: 8px;
364
+ border-radius: 2px;
365
+ background: #e7e7e7;
366
+ font-size: 12px;
367
+ color: rgba(0, 0, 0, 0.65);
368
+ margin-top: 8px;
369
+ & > div {
370
+ width: 100%;
371
+ max-height: 36px;
372
+ word-break: break-all;
373
+ display: -webkit-box;
374
+ -webkit-line-clamp: 2;
375
+ -webkit-box-orient: vertical;
376
+ overflow: hidden;
377
+ text-overflow: ellipsis;
378
+ word-wrap: break-word;
379
+ }
380
+ }
381
+ .msgItem-reference-file {
382
+ padding: 8px;
383
+ border-radius: 2px;
384
+ background: #e7e7e7;
385
+ font-size: 12px;
386
+ color: rgba(0, 0, 0, 0.65);
387
+ margin-top: 8px;
388
+
389
+ .msgItem-reference-file-box {
390
+ display: flex;
391
+ align-items: center;
392
+ gap: 12px;
393
+ background: #fafafa;
394
+ border-radius: 8px;
395
+ border: 1px solid #ebebeb;
396
+ display: flex;
397
+ align-items: center;
398
+ gap: 12px;
399
+ padding: 8px 12px;
400
+ min-width: 216px;
401
+ .msgItem-reference-file-left {
402
+ font-size: 24px;
403
+ display: flex;
404
+ justify-content: center;
405
+ align-items: center;
406
+ padding: 0;
407
+ margin: 0;
408
+ & > i {
409
+ display: flex;
410
+ font-size: 24px;
411
+ }
412
+ }
413
+ .msgItem-reference-file-right {
414
+ font-size: 14px;
415
+ font-weight: 400;
416
+ color: rgba(0, 0, 0, 0.65);
417
+ }
418
+ }
419
+ }
420
+ &.msgItem-left {
421
+ justify-content: flex-start;
422
+ .msgItem-box {
423
+ align-items: flex-start;
424
+ .msgItem-content {
425
+ background: #ffffff;
426
+ border-radius: 2px 20px 20px 20px;
427
+ .msgItem-action {
428
+ border-radius: 0px 0px 20px 20px;
429
+ }
430
+ }
431
+ .msgItem-action-operate {
432
+ margin-left: auto;
433
+ .msgItem-action-popover {
434
+ display: none;
435
+ }
436
+ }
437
+ }
438
+ }
439
+ &.msgItem-right {
440
+ justify-content: flex-end;
441
+ padding-bottom: 24px;
442
+ .msgItem-box {
443
+ align-items: flex-end;
444
+ &:hover {
445
+ .msgItem-action-operate {
446
+ .msgItem-action-popover {
447
+ display: flex;
448
+ }
449
+ }
450
+ }
451
+ .msgItem-content {
452
+ border-radius: 20px 2px 20px 20px;
453
+ background: #d1e4ff;
454
+ .msgItem-action {
455
+ border-radius: 0px 0px 20px 20px;
456
+ }
457
+ }
458
+
459
+ .msgItem-action-operate {
460
+ .msgItem-action-popover {
461
+ display: none;
462
+ }
463
+ }
464
+ }
465
+ }
466
+ }
467
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { AIMessageListProps, AIMessageListRefProps } from "./type";
3
+ declare const AIMessageList: React.ForwardRefExoticComponent<AIMessageListProps & React.RefAttributes<AIMessageListRefProps>>;
4
+ export default AIMessageList;
@@ -0,0 +1,58 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "@ice/jsx-runtime/jsx-runtime";
2
+ import * as React from "react";
3
+ import { useRef, forwardRef, useImperativeHandle } from "react";
4
+ import styles from "./index.module.less";
5
+ import Header from "./components/header";
6
+ import Content from "./components/content";
7
+ import Footer from "./components/footer";
8
+ import errorCallbackDefault from "./components/errorCallback";
9
+ var AIMessageList = /*#__PURE__*/ forwardRef(function(props, ref) {
10
+ var _props_prefix = props.prefix, prefix = _props_prefix === void 0 ? "bhd-AIMessageList" : _props_prefix, _props_className = props.className, className = _props_className === void 0 ? "" : _props_className, headerConfig = props.headerConfig, footerConfig = props.footerConfig, _props_errorCallback = props.errorCallback, errorCallback = _props_errorCallback === void 0 ? errorCallbackDefault : _props_errorCallback, contentConfig = props.contentConfig;
11
+ var footerRef = useRef(null);
12
+ var contentRef = useRef(null);
13
+ var apiRef = useRef({
14
+ contentApi: null,
15
+ footerApi: null
16
+ });
17
+ useImperativeHandle(ref, function() {
18
+ apiRef.current.contentApi = contentRef.current;
19
+ apiRef.current.footerApi = footerRef.current;
20
+ return apiRef.current;
21
+ });
22
+ var getCls = function(clsName) {
23
+ return styles[clsName] + " " + prefix + "-" + clsName;
24
+ };
25
+ return /*#__PURE__*/ _jsxs("div", {
26
+ className: "".concat(getCls("root"), " ").concat(className),
27
+ children: [
28
+ /*#__PURE__*/ _jsx("div", {
29
+ className: getCls("rootHeader"),
30
+ children: /*#__PURE__*/ _jsx(Header, {
31
+ headerConfig: headerConfig,
32
+ prefix: prefix,
33
+ errorCallback: errorCallback
34
+ })
35
+ }),
36
+ /*#__PURE__*/ _jsx("div", {
37
+ className: getCls("rootContent"),
38
+ children: /*#__PURE__*/ _jsx(Content, {
39
+ prefix: prefix,
40
+ contentConfig: contentConfig,
41
+ ref: contentRef,
42
+ apiRef: apiRef.current
43
+ })
44
+ }),
45
+ /*#__PURE__*/ _jsx("div", {
46
+ className: getCls("rootFooter"),
47
+ children: /*#__PURE__*/ _jsx(Footer, {
48
+ footerConfig: footerConfig,
49
+ prefix: prefix,
50
+ errorCallback: errorCallback,
51
+ ref: footerRef,
52
+ apiRef: apiRef.current
53
+ })
54
+ })
55
+ ]
56
+ });
57
+ });
58
+ export default AIMessageList;
@@ -0,0 +1,20 @@
1
+ .root {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ background: #f5f5f5;
7
+ overflow: hidden;
8
+ .rootHeader {
9
+ width: 100%;
10
+ flex-shrink: 0;
11
+ }
12
+ .rootContent {
13
+ width: 100%;
14
+ flex: 1;
15
+ }
16
+ .rootFooter {
17
+ width: 100%;
18
+ flex-shrink: 0;
19
+ }
20
+ }