bhd-components 0.11.19 → 0.11.20
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.js +4 -3
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.js +1 -1
- package/dist/vendor.esm.es5.production.js +1 -1
- package/es2017/AIMessageList/components/footer/index.js +4 -3
- package/es2017/AIMessageList/type.d.ts +1 -0
- package/esm/AIMessageList/components/footer/index.js +4 -3
- package/esm/AIMessageList/type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -305,12 +305,13 @@ const Footer = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
305
305
|
fileList: fileList || []
|
|
306
306
|
});
|
|
307
307
|
};
|
|
308
|
-
const sendMsgLeft = function(msgId, value, reference, fileList) {
|
|
308
|
+
const sendMsgLeft = function(msgId, value, reference, fileList, isCoverId) {
|
|
309
309
|
sendMsgAjax({
|
|
310
310
|
id: msgId,
|
|
311
311
|
value: value,
|
|
312
312
|
reference: reference || null,
|
|
313
|
-
fileList: fileList || []
|
|
313
|
+
fileList: fileList || [],
|
|
314
|
+
isCoverId: isCoverId
|
|
314
315
|
});
|
|
315
316
|
};
|
|
316
317
|
const sendMsgAjax = (recordObj)=>{
|
|
@@ -415,7 +416,7 @@ const Footer = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
415
416
|
delete data.content;
|
|
416
417
|
// 有内容返回再去填充 因为onmessage存在空内容的心跳维持
|
|
417
418
|
if (str) {
|
|
418
|
-
if (recordObj) {
|
|
419
|
+
if (recordObj && recordObj.isCoverId) {
|
|
419
420
|
data.id = recordObj.id;
|
|
420
421
|
}
|
|
421
422
|
recordMsgObj = _object_spread({
|
|
@@ -210,6 +210,7 @@ export interface footerRefProps {
|
|
|
210
210
|
value: string,
|
|
211
211
|
reference?: any,
|
|
212
212
|
fileList?: any,
|
|
213
|
+
isCoverId: boolean,//是否覆盖messageId
|
|
213
214
|
) => void; // 发送消息只显示ai返回的 不显示自己发送的
|
|
214
215
|
clearText: () => void; // 清空输入框
|
|
215
216
|
getCanSendMsg: () => boolean; //获取当前是否允许发送消息的状态
|
|
@@ -309,12 +309,13 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
309
309
|
fileList: fileList || []
|
|
310
310
|
});
|
|
311
311
|
};
|
|
312
|
-
var sendMsgLeft = function sendMsgLeft(msgId, value, reference, fileList) {
|
|
312
|
+
var sendMsgLeft = function sendMsgLeft(msgId, value, reference, fileList, isCoverId) {
|
|
313
313
|
sendMsgAjax({
|
|
314
314
|
id: msgId,
|
|
315
315
|
value: value,
|
|
316
316
|
reference: reference || null,
|
|
317
|
-
fileList: fileList || []
|
|
317
|
+
fileList: fileList || [],
|
|
318
|
+
isCoverId: isCoverId
|
|
318
319
|
});
|
|
319
320
|
};
|
|
320
321
|
var sendMsgAjax = function(recordObj) {
|
|
@@ -431,7 +432,7 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
431
432
|
delete data.content;
|
|
432
433
|
// 有内容返回再去填充 因为onmessage存在空内容的心跳维持
|
|
433
434
|
if (str) {
|
|
434
|
-
if (recordObj) {
|
|
435
|
+
if (recordObj && recordObj.isCoverId) {
|
|
435
436
|
data.id = recordObj.id;
|
|
436
437
|
}
|
|
437
438
|
recordMsgObj = _object_spread({
|
|
@@ -210,6 +210,7 @@ export interface footerRefProps {
|
|
|
210
210
|
value: string,
|
|
211
211
|
reference?: any,
|
|
212
212
|
fileList?: any,
|
|
213
|
+
isCoverId: boolean,//是否覆盖messageId
|
|
213
214
|
) => void; // 发送消息只显示ai返回的 不显示自己发送的
|
|
214
215
|
clearText: () => void; // 清空输入框
|
|
215
216
|
getCanSendMsg: () => boolean; //获取当前是否允许发送消息的状态
|