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.
@@ -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
  }),