gxxc-ui 1.0.44 → 1.0.45

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.
@@ -179,10 +179,10 @@ var UploadUI = function UploadUI(props) {
179
179
  res = _context.sent;
180
180
  if (res.status == 200) {
181
181
  _res$data = res.data, code = _res$data.code, body = _res$data.body, msg = _res$data.msg;
182
- item.status = '';
183
182
  if (code === '0') {
184
183
  item.url = body.url;
185
184
  item.md5 = body.md5;
185
+ item.status = 'done';
186
186
  /// 如果是 h264 编码 显示第一帧
187
187
  if (file_url_is_video_H264(item.url)) {
188
188
  item.thumbUrl = "".concat(item.url, "?x-oss-process=video/snapshot,t_1000,f_jpg");
@@ -196,6 +196,7 @@ var UploadUI = function UploadUI(props) {
196
196
  });
197
197
  }
198
198
  } else {
199
+ item.status = 'error';
199
200
  if (options !== null && options !== void 0 && options.onError) options.onError(msg, options === null || options === void 0 ? void 0 : options.file);
200
201
  MessageUI.error(msg);
201
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gxxc-ui",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",