bhd-components 0.10.19 → 0.10.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 +8 -24
- 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/esm/AIMessageList/components/fileList/index.js +8 -24
- package/package.json +1 -1
|
@@ -282,6 +282,14 @@ const FileList = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
282
282
|
children: list.map((item)=>{
|
|
283
283
|
return /*#__PURE__*/ _jsxs("div", {
|
|
284
284
|
className: `${getCls("footer-fileList-listItem")}`,
|
|
285
|
+
style: {
|
|
286
|
+
cursor: item.status === "uploadError" ? "pointer" : "default"
|
|
287
|
+
},
|
|
288
|
+
onClick: ()=>{
|
|
289
|
+
if (item.status === "uploadError") {
|
|
290
|
+
retryUploadFile(item);
|
|
291
|
+
}
|
|
292
|
+
},
|
|
285
293
|
children: [
|
|
286
294
|
/*#__PURE__*/ _jsx("div", {
|
|
287
295
|
className: `${getCls("footer-fileList-listItem-icon")}`,
|
|
@@ -292,29 +300,7 @@ const FileList = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
292
300
|
title: item.name,
|
|
293
301
|
children: item.name
|
|
294
302
|
}),
|
|
295
|
-
item.status === "uploadError" ? // <Upload
|
|
296
|
-
// fileList={[]}
|
|
297
|
-
// accept={fileUpload.accept}
|
|
298
|
-
// customRequest={(options: any) =>
|
|
299
|
-
// addFile(options.file, item.fileId)
|
|
300
|
-
// }
|
|
301
|
-
// multiple={false}
|
|
302
|
-
// >
|
|
303
|
-
// <div
|
|
304
|
-
// className={`${getCls("footer-fileList-listItem-status")}`}
|
|
305
|
-
// style={{ cursor: "pointer" }}
|
|
306
|
-
// >
|
|
307
|
-
// {statusRender(item.status, fileUpload.statusText)}
|
|
308
|
-
// </div>
|
|
309
|
-
// </Upload>
|
|
310
303
|
/*#__PURE__*/ _jsx("div", {
|
|
311
|
-
className: `${getCls("footer-fileList-listItem-status")}`,
|
|
312
|
-
style: {
|
|
313
|
-
cursor: "pointer"
|
|
314
|
-
},
|
|
315
|
-
onClick: ()=>retryUploadFile(item),
|
|
316
|
-
children: statusRender(item.status, fileUpload.statusText)
|
|
317
|
-
}) : /*#__PURE__*/ _jsx("div", {
|
|
318
304
|
className: `${getCls("footer-fileList-listItem-status")}`,
|
|
319
305
|
children: statusRender(item.status, fileUpload.statusText)
|
|
320
306
|
}),
|
|
@@ -300,6 +300,14 @@ var FileList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
300
300
|
children: list.map(function(item) {
|
|
301
301
|
return /*#__PURE__*/ _jsxs("div", {
|
|
302
302
|
className: "".concat(getCls("footer-fileList-listItem")),
|
|
303
|
+
style: {
|
|
304
|
+
cursor: item.status === "uploadError" ? "pointer" : "default"
|
|
305
|
+
},
|
|
306
|
+
onClick: function() {
|
|
307
|
+
if (item.status === "uploadError") {
|
|
308
|
+
retryUploadFile(item);
|
|
309
|
+
}
|
|
310
|
+
},
|
|
303
311
|
children: [
|
|
304
312
|
/*#__PURE__*/ _jsx("div", {
|
|
305
313
|
className: "".concat(getCls("footer-fileList-listItem-icon")),
|
|
@@ -310,31 +318,7 @@ var FileList = /*#__PURE__*/ forwardRef(function(props, ref) {
|
|
|
310
318
|
title: item.name,
|
|
311
319
|
children: item.name
|
|
312
320
|
}),
|
|
313
|
-
item.status === "uploadError" ? // <Upload
|
|
314
|
-
// fileList={[]}
|
|
315
|
-
// accept={fileUpload.accept}
|
|
316
|
-
// customRequest={(options: any) =>
|
|
317
|
-
// addFile(options.file, item.fileId)
|
|
318
|
-
// }
|
|
319
|
-
// multiple={false}
|
|
320
|
-
// >
|
|
321
|
-
// <div
|
|
322
|
-
// className={`${getCls("footer-fileList-listItem-status")}`}
|
|
323
|
-
// style={{ cursor: "pointer" }}
|
|
324
|
-
// >
|
|
325
|
-
// {statusRender(item.status, fileUpload.statusText)}
|
|
326
|
-
// </div>
|
|
327
|
-
// </Upload>
|
|
328
321
|
/*#__PURE__*/ _jsx("div", {
|
|
329
|
-
className: "".concat(getCls("footer-fileList-listItem-status")),
|
|
330
|
-
style: {
|
|
331
|
-
cursor: "pointer"
|
|
332
|
-
},
|
|
333
|
-
onClick: function() {
|
|
334
|
-
return retryUploadFile(item);
|
|
335
|
-
},
|
|
336
|
-
children: statusRender(item.status, fileUpload.statusText)
|
|
337
|
-
}) : /*#__PURE__*/ _jsx("div", {
|
|
338
322
|
className: "".concat(getCls("footer-fileList-listItem-status")),
|
|
339
323
|
children: statusRender(item.status, fileUpload.statusText)
|
|
340
324
|
}),
|