vxe-pc-ui 4.15.21 → 4.15.22

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.
Files changed (36) hide show
  1. package/dist/all.esm.js +10 -5
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/style.css +1 -1
  6. package/es/style.min.css +1 -1
  7. package/es/ui/index.js +1 -1
  8. package/es/ui/src/log.js +1 -1
  9. package/es/upload/src/upload.js +8 -3
  10. package/lib/icon/style/style.css +1 -1
  11. package/lib/icon/style/style.min.css +1 -1
  12. package/lib/index.umd.js +11 -5
  13. package/lib/index.umd.min.js +1 -1
  14. package/lib/style.css +1 -1
  15. package/lib/style.min.css +1 -1
  16. package/lib/ui/index.js +1 -1
  17. package/lib/ui/index.min.js +1 -1
  18. package/lib/ui/src/log.js +1 -1
  19. package/lib/ui/src/log.min.js +1 -1
  20. package/lib/upload/src/upload.js +9 -3
  21. package/lib/upload/src/upload.min.js +1 -1
  22. package/package.json +1 -1
  23. package/packages/upload/src/upload.ts +8 -3
  24. package/types/components/upload.d.ts +3 -1
  25. /package/es/icon/{iconfont.1783046335286.ttf → iconfont.1783065896433.ttf} +0 -0
  26. /package/es/icon/{iconfont.1783046335286.woff → iconfont.1783065896433.woff} +0 -0
  27. /package/es/icon/{iconfont.1783046335286.woff2 → iconfont.1783065896433.woff2} +0 -0
  28. /package/es/{iconfont.1783046335286.ttf → iconfont.1783065896433.ttf} +0 -0
  29. /package/es/{iconfont.1783046335286.woff → iconfont.1783065896433.woff} +0 -0
  30. /package/es/{iconfont.1783046335286.woff2 → iconfont.1783065896433.woff2} +0 -0
  31. /package/lib/icon/style/{iconfont.1783046335286.ttf → iconfont.1783065896433.ttf} +0 -0
  32. /package/lib/icon/style/{iconfont.1783046335286.woff → iconfont.1783065896433.woff} +0 -0
  33. /package/lib/icon/style/{iconfont.1783046335286.woff2 → iconfont.1783065896433.woff2} +0 -0
  34. /package/lib/{iconfont.1783046335286.ttf → iconfont.1783065896433.ttf} +0 -0
  35. /package/lib/{iconfont.1783046335286.woff → iconfont.1783065896433.woff} +0 -0
  36. /package/lib/{iconfont.1783046335286.woff2 → iconfont.1783065896433.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -81,7 +81,7 @@ function checkDynamic() {
81
81
  }
82
82
 
83
83
  const { log } = VxeUI;
84
- const uiVersion = `ui v${"4.15.21"}`;
84
+ const uiVersion = `ui v${"4.15.22"}`;
85
85
  function createComponentLog(name) {
86
86
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
87
87
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -95,7 +95,7 @@ function createComponentLog(name) {
95
95
  const warnLog$g = log.create('warn', uiVersion);
96
96
  log.create('error', uiVersion);
97
97
 
98
- const version = "4.15.21";
98
+ const version = "4.15.22";
99
99
  VxeUI.uiVersion = version;
100
100
  VxeUI.dynamicApp = dynamicApp;
101
101
  function config(options) {
@@ -44710,7 +44710,12 @@ var VxeUploadComponent = defineVxeComponent({
44710
44710
  if (cacheItem) {
44711
44711
  cacheItem.loading = false;
44712
44712
  }
44713
- dispatchEvent('upload-end', { option: item }, null);
44713
+ const result = {
44714
+ option: item,
44715
+ status: cacheItem ? cacheItem.status : null,
44716
+ response: cacheItem ? cacheItem.response : null
44717
+ };
44718
+ dispatchEvent('upload-end', { option: item, result }, null);
44714
44719
  });
44715
44720
  }
44716
44721
  else {
@@ -44858,7 +44863,7 @@ var VxeUploadComponent = defineVxeComponent({
44858
44863
  Promise.all(uploadPromiseRests).then(() => {
44859
44864
  const { fileCacheMaps } = reactData;
44860
44865
  const restFileList = reactData.fileList;
44861
- const uploadResults = restFileList.map(option => {
44866
+ const uploadResults = newFileList.map(option => {
44862
44867
  const fileKey = getFieldKey(option);
44863
44868
  const cacheItem = fileCacheMaps[fileKey];
44864
44869
  return {
@@ -44871,7 +44876,7 @@ var VxeUploadComponent = defineVxeComponent({
44871
44876
  dispatchEvent('upload-queue-end', { value, options: restFileList, results: uploadResults, files: selectFiles }, evnt);
44872
44877
  // 自动更新校验状态
44873
44878
  if ($xeForm && formItemInfo) {
44874
- $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, restFileList);
44879
+ $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
44875
44880
  }
44876
44881
  });
44877
44882
  };