bhd-components 0.10.36 → 0.10.38
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/index.esm.es5.development.css +1644 -1495
- package/dist/index.esm.es5.development.js +369 -157
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +408 -408
- package/dist/vendor.esm.es5.production.js +12 -12
- package/es2017/AIMessageList/components/footer/index.js +2 -2
- package/es2017/AIMessageList/components/virtuosoList/index.js +11 -2
- package/es2017/customerService/common.module.less +3 -0
- package/es2017/customerService/function.js +5 -2
- package/es2017/customerService/index.js +182 -57
- package/es2017/customerService/index.module.less +57 -1
- package/es2017/customerService/index2.module.less +58 -1
- package/es2017/utils/Date.js +5 -1
- package/esm/AIMessageList/components/footer/index.js +2 -2
- package/esm/AIMessageList/components/virtuosoList/index.js +11 -2
- package/esm/customerService/common.module.less +3 -0
- package/esm/customerService/function.js +5 -2
- package/esm/customerService/index.js +345 -144
- package/esm/customerService/index.module.less +57 -1
- package/esm/customerService/index2.module.less +58 -1
- package/esm/utils/Date.js +4 -0
- package/package.json +1 -1
|
@@ -369,6 +369,42 @@
|
|
|
369
369
|
.content_child {
|
|
370
370
|
padding: 0;
|
|
371
371
|
line-height: 1;
|
|
372
|
+
img {
|
|
373
|
+
width: 100%;
|
|
374
|
+
}
|
|
375
|
+
:global {
|
|
376
|
+
.think-block {
|
|
377
|
+
padding: 12px;
|
|
378
|
+
border-left: 1px solid rgba(0, 0, 0, 0.15);
|
|
379
|
+
background: rgba(0, 0, 0, 0.04);
|
|
380
|
+
// display: inline-block;
|
|
381
|
+
margin-bottom: 8px;
|
|
382
|
+
width: 100%;
|
|
383
|
+
font-weight: 400;
|
|
384
|
+
font-size: 12px;
|
|
385
|
+
line-height: 1.5;
|
|
386
|
+
color: rgba(0, 0, 0, 0.45);
|
|
387
|
+
* {
|
|
388
|
+
color: rgba(0, 0, 0, 0.45);
|
|
389
|
+
font-weight: 400;
|
|
390
|
+
font-size: 12px;
|
|
391
|
+
line-height: 150%;
|
|
392
|
+
}
|
|
393
|
+
&:not(:first-of-type, :last-of-type){
|
|
394
|
+
padding-top:0;
|
|
395
|
+
padding-bottom: 0;
|
|
396
|
+
}
|
|
397
|
+
&:first-of-type{
|
|
398
|
+
padding-top: 12px !important;
|
|
399
|
+
}
|
|
400
|
+
&:last-of-type{
|
|
401
|
+
padding-bottom: 12px !important;
|
|
402
|
+
}
|
|
403
|
+
&+.think-block{
|
|
404
|
+
margin-top: -8px;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
372
408
|
|
|
373
409
|
p{
|
|
374
410
|
word-break: break-all;
|
|
@@ -441,7 +477,7 @@
|
|
|
441
477
|
// > ul + *, > ol + * {
|
|
442
478
|
// margin-top:16px;
|
|
443
479
|
// }
|
|
444
|
-
> *:not(pre){
|
|
480
|
+
> *:not(pre):not(:global(.think-block)){
|
|
445
481
|
word-break: break-all;
|
|
446
482
|
padding-top: 8px;
|
|
447
483
|
padding-bottom: 8px;
|
|
@@ -2279,4 +2315,24 @@ strong {
|
|
|
2279
2315
|
padding: 10px;
|
|
2280
2316
|
}
|
|
2281
2317
|
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
.content_put {
|
|
2321
|
+
display: flex;
|
|
2322
|
+
padding: 4px 16px;
|
|
2323
|
+
margin-bottom: 8px;
|
|
2324
|
+
border-radius: 100px;
|
|
2325
|
+
background: rgba(0, 0, 0, 0.04);
|
|
2326
|
+
width: max-content;
|
|
2327
|
+
align-items: center;
|
|
2328
|
+
cursor: pointer;
|
|
2329
|
+
span {
|
|
2330
|
+
color: rgba(0, 0, 0, 0.65);
|
|
2331
|
+
font-size: 12px;
|
|
2332
|
+
font-weight: 400;
|
|
2333
|
+
line-height: 150%;
|
|
2334
|
+
}
|
|
2335
|
+
i {
|
|
2336
|
+
margin-left: 8px;
|
|
2337
|
+
}
|
|
2282
2338
|
}
|
|
@@ -365,6 +365,43 @@
|
|
|
365
365
|
.content_child {
|
|
366
366
|
padding: 0;
|
|
367
367
|
line-height: 1;
|
|
368
|
+
img {
|
|
369
|
+
width: 100%;
|
|
370
|
+
}
|
|
371
|
+
:global {
|
|
372
|
+
.think-block {
|
|
373
|
+
padding: 12px;
|
|
374
|
+
padding-top: 12px !important;
|
|
375
|
+
border-left: 1px solid rgba(0, 0, 0, 0.15);
|
|
376
|
+
background: rgba(0, 0, 0, 0.04);
|
|
377
|
+
// display: inline-block;
|
|
378
|
+
margin-bottom: 8px;
|
|
379
|
+
width: 100%;
|
|
380
|
+
font-weight: 400;
|
|
381
|
+
font-size: 12px;
|
|
382
|
+
line-height: 1.5;
|
|
383
|
+
color: rgba(0, 0, 0, 0.45);
|
|
384
|
+
* {
|
|
385
|
+
color: rgba(0, 0, 0, 0.45);
|
|
386
|
+
font-weight: 400;
|
|
387
|
+
font-size: 12px;
|
|
388
|
+
line-height: 150%;
|
|
389
|
+
}
|
|
390
|
+
&:not(:first-of-type, :last-of-type){
|
|
391
|
+
padding-top:0;
|
|
392
|
+
padding-bottom: 0;
|
|
393
|
+
}
|
|
394
|
+
&:first-of-type{
|
|
395
|
+
padding-top: 12px !important;
|
|
396
|
+
}
|
|
397
|
+
&:last-of-type{
|
|
398
|
+
padding-bottom: 12px !important;
|
|
399
|
+
}
|
|
400
|
+
&+.think-block{
|
|
401
|
+
margin-top: -8px;
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
368
405
|
p{
|
|
369
406
|
word-break: break-all;
|
|
370
407
|
white-space: break-spaces;
|
|
@@ -436,7 +473,7 @@
|
|
|
436
473
|
// > ul + *, > ol + * {
|
|
437
474
|
// margin-top:16px;
|
|
438
475
|
// }
|
|
439
|
-
> *:not(pre){
|
|
476
|
+
> *:not(pre):not(:global(.think-block)){
|
|
440
477
|
word-break: break-all;
|
|
441
478
|
padding-top: 8px;
|
|
442
479
|
padding-bottom: 8px;
|
|
@@ -2217,3 +2254,23 @@
|
|
|
2217
2254
|
strong {
|
|
2218
2255
|
font-weight: bold !important;
|
|
2219
2256
|
}
|
|
2257
|
+
|
|
2258
|
+
.content_put {
|
|
2259
|
+
display: flex;
|
|
2260
|
+
padding: 4px 16px;
|
|
2261
|
+
margin-bottom: 8px;
|
|
2262
|
+
border-radius: 100px;
|
|
2263
|
+
background: rgba(0, 0, 0, 0.04);
|
|
2264
|
+
width: max-content;
|
|
2265
|
+
align-items: center;
|
|
2266
|
+
cursor: pointer;
|
|
2267
|
+
span {
|
|
2268
|
+
color: rgba(0, 0, 0, 0.65);
|
|
2269
|
+
font-size: 12px;
|
|
2270
|
+
font-weight: 400;
|
|
2271
|
+
line-height: 150%;
|
|
2272
|
+
}
|
|
2273
|
+
i {
|
|
2274
|
+
margin-left: 8px;
|
|
2275
|
+
}
|
|
2276
|
+
}
|
package/esm/utils/Date.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
var parseDate = function(dateStr) {
|
|
2
2
|
var date = new Date(dateStr); // 创建一个日期对象,表示当前时间
|
|
3
|
+
// @ts-ignore
|
|
4
|
+
if (date == "Invalid Date") {
|
|
5
|
+
date = new Date();
|
|
6
|
+
}
|
|
3
7
|
var year = date.getFullYear().toString(); // 获取年份
|
|
4
8
|
var month = String(date.getMonth() + 1).padStart(2, "0"); // 获取月份,并补齐两位数
|
|
5
9
|
var day = String(date.getDate()).padStart(2, "0"); // 获取日期,并补齐两位数
|