bhd-components 0.10.19 → 0.10.21
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 +17 -30
- 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/fileList/index.js +8 -22
- package/es2017/AIMessageList/components/footer/index.js +9 -6
- package/esm/AIMessageList/components/fileList/index.js +8 -24
- package/esm/AIMessageList/components/footer/index.js +9 -6
- package/package.json +1 -1
|
@@ -15286,6 +15286,14 @@ var FileList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
15286
15286
|
children: list.map(function(item) {
|
|
15287
15287
|
return /*#__PURE__*/ jsxs("div", {
|
|
15288
15288
|
className: "".concat(getCls("footer-fileList-listItem")),
|
|
15289
|
+
style: {
|
|
15290
|
+
cursor: item.status === "uploadError" ? "pointer" : "default"
|
|
15291
|
+
},
|
|
15292
|
+
onClick: function() {
|
|
15293
|
+
if (item.status === "uploadError") {
|
|
15294
|
+
retryUploadFile(item);
|
|
15295
|
+
}
|
|
15296
|
+
},
|
|
15289
15297
|
children: [
|
|
15290
15298
|
/*#__PURE__*/ jsx("div", {
|
|
15291
15299
|
className: "".concat(getCls("footer-fileList-listItem-icon")),
|
|
@@ -15296,31 +15304,7 @@ var FileList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
15296
15304
|
title: item.name,
|
|
15297
15305
|
children: item.name
|
|
15298
15306
|
}),
|
|
15299
|
-
item.status === "uploadError" ? // <Upload
|
|
15300
|
-
// fileList={[]}
|
|
15301
|
-
// accept={fileUpload.accept}
|
|
15302
|
-
// customRequest={(options: any) =>
|
|
15303
|
-
// addFile(options.file, item.fileId)
|
|
15304
|
-
// }
|
|
15305
|
-
// multiple={false}
|
|
15306
|
-
// >
|
|
15307
|
-
// <div
|
|
15308
|
-
// className={`${getCls("footer-fileList-listItem-status")}`}
|
|
15309
|
-
// style={{ cursor: "pointer" }}
|
|
15310
|
-
// >
|
|
15311
|
-
// {statusRender(item.status, fileUpload.statusText)}
|
|
15312
|
-
// </div>
|
|
15313
|
-
// </Upload>
|
|
15314
15307
|
/*#__PURE__*/ jsx("div", {
|
|
15315
|
-
className: "".concat(getCls("footer-fileList-listItem-status")),
|
|
15316
|
-
style: {
|
|
15317
|
-
cursor: "pointer"
|
|
15318
|
-
},
|
|
15319
|
-
onClick: function() {
|
|
15320
|
-
return retryUploadFile(item);
|
|
15321
|
-
},
|
|
15322
|
-
children: statusRender(item.status, fileUpload.statusText)
|
|
15323
|
-
}) : /*#__PURE__*/ jsx("div", {
|
|
15324
15308
|
className: "".concat(getCls("footer-fileList-listItem-status")),
|
|
15325
15309
|
children: statusRender(item.status, fileUpload.statusText)
|
|
15326
15310
|
}),
|
|
@@ -15673,15 +15657,18 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
15673
15657
|
});
|
|
15674
15658
|
}
|
|
15675
15659
|
var msgContent = "";
|
|
15660
|
+
var sendValue = recordRef.current.value;
|
|
15661
|
+
var referencesSourceValue = recordRef.current.referencesSource;
|
|
15662
|
+
var fileListValue = fileListRef.current ? fileListRef.current.getFileList() : [];
|
|
15676
15663
|
setSending(true);
|
|
15677
15664
|
setTextValue("");
|
|
15678
15665
|
fileListRef.current.clearFileList();
|
|
15679
15666
|
setReferencesSource(null);
|
|
15680
15667
|
var recordMsgObj = {};
|
|
15681
15668
|
var arg = [
|
|
15682
|
-
|
|
15683
|
-
|
|
15684
|
-
|
|
15669
|
+
sendValue,
|
|
15670
|
+
referencesSourceValue,
|
|
15671
|
+
fileListValue
|
|
15685
15672
|
];
|
|
15686
15673
|
if (recordObj) {
|
|
15687
15674
|
arg = [
|
|
@@ -15691,9 +15678,9 @@ var Footer = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
15691
15678
|
];
|
|
15692
15679
|
} else {
|
|
15693
15680
|
arg = [
|
|
15694
|
-
|
|
15695
|
-
|
|
15696
|
-
|
|
15681
|
+
sendValue,
|
|
15682
|
+
referencesSourceValue,
|
|
15683
|
+
fileListValue
|
|
15697
15684
|
];
|
|
15698
15685
|
}
|
|
15699
15686
|
beforeSendMsg.apply(void 0, _to_consumable_array(arg)).then(function(beforeInfo) {
|