@pointcloud/pcloud-components 0.1.7 → 0.1.8

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [0.1.8](https://192.168.101.96:8092/pointcloud_frontend/basiclibrary/pcloud-components/compare/v0.1.7...v0.1.8) (2023-09-07)
2
+
3
+ ### 🐛 修复 bug
4
+
5
+ - 修复 Dupload 组件 showUploadList 属性无法覆盖的问题 ([d2896c4](https://192.168.101.96:8092/pointcloud_frontend/basiclibrary/pcloud-components/commit/d2896c498bd409f9dd7a499a7fff9f5000a3d737))
6
+
1
7
  ## [0.1.7](https://192.168.101.96:8092/pointcloud_frontend/basiclibrary/pcloud-components/compare/v0.1.6...v0.1.7) (2023-08-30)
2
8
 
3
9
  ### 🐛 修复 bug
@@ -26,7 +26,7 @@ declare type DUploadProps = Omit<UploadProps, 'fileList' | 'onChange' | 'customR
26
26
  itemClassName?: string;
27
27
  enablePreview?: boolean | ((file: DUploadFile) => boolean);
28
28
  };
29
- declare const DUpload: React.ForwardRefExoticComponent<Omit<UploadProps<any>, "onChange" | "fileList" | "customRequest" | "onRemove" | "onDownload" | "onPreview"> & {
29
+ declare const DUpload: React.ForwardRefExoticComponent<Omit<UploadProps<any>, "fileList" | "onChange" | "customRequest" | "onRemove" | "onDownload" | "onPreview"> & {
30
30
  /** 初始文件列表(相当于defaultFileList,但优先级高于defaultFileList) */
31
31
  value?: DUploadFile | DUploadFile[] | undefined;
32
32
  /** 文件列表(在Form组件中表现为受控列表,在一般情况下相当于初始文件列表,其优先级高于value属性) */
@@ -10,7 +10,7 @@ var _excluded = ["value", "thumbOption", "uploadButton", "itemClassName", "enabl
10
10
  * @Author : wangfeihu
11
11
  * @Date : 2023-06-16 09:37:07
12
12
  * @LastEditors : wangfeihu
13
- * @LastEditTime : 2023-08-16 16:32:55
13
+ * @LastEditTime : 2023-09-07 16:33:53
14
14
  * @Description : 基于antd的Upload组件
15
15
  */
16
16
 
@@ -334,10 +334,10 @@ function InternalUpload(props, ref) {
334
334
  }
335
335
  return _originNode;
336
336
  };
337
- var _showUploadList = typeof showUploadList === 'boolean' ? showUploadList : _objectSpread(_objectSpread({}, showUploadList), {}, {
337
+ var _showUploadList = typeof showUploadList === 'boolean' ? showUploadList : _objectSpread({
338
338
  showPreviewIcon: true,
339
339
  showDownloadIcon: true
340
- });
340
+ }, showUploadList);
341
341
  var _finalFileList = fileList.filter(function (item) {
342
342
  return item.status !== 'removed';
343
343
  });