sard-uniapp 1.20.0 → 1.20.1

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,12 @@
1
+ ## [1.20.1](https://github.com/sutras/sard-uniapp/compare/v1.20.0...v1.20.1) (2025-07-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 修复upload图片预览失败和remove按钮层级过高问题 ([ea29178](https://github.com/sutras/sard-uniapp/commit/ea291785fe2197d46091a8d10e6da7fdab9d6624))
7
+
8
+
9
+
1
10
  # [1.20.0](https://github.com/sutras/sard-uniapp/compare/v1.19.5...v1.20.0) (2025-07-01)
2
11
 
3
12
 
@@ -18,6 +18,7 @@ export interface UploadFileItem {
18
18
  status?: UploadStatus;
19
19
  name?: string;
20
20
  message?: string;
21
+ [key: PropertyKey]: any;
21
22
  }
22
23
  export interface UploadProps {
23
24
  rootStyle?: StyleValue;
@@ -307,7 +307,7 @@ export default _defineComponent({
307
307
  const previewImage = (index) => {
308
308
  const currentFileItem = innerValue.value[index];
309
309
  const fileList = innerValue.value.filter(
310
- (item) => item.url && isImageUrl(item.url) || item.file?.type === "image"
310
+ (item) => item.isImage || item.file?.type === "image" || item.url && isImageUrl(item.url)
311
311
  );
312
312
  const currentIndex = fileList.findIndex((item) => item === currentFileItem);
313
313
  const urls = fileList.map((item) => item.url || item.file?.path);
@@ -93,7 +93,7 @@
93
93
  left: 0;
94
94
  right: 0;
95
95
  bottom: 0;
96
- z-index: 10;
96
+ z-index: 1;
97
97
  flex-direction: column;
98
98
  align-items: center;
99
99
  justify-content: center;
@@ -119,7 +119,7 @@
119
119
  position: absolute;
120
120
  top: 0;
121
121
  right: 0;
122
- z-index: 20;
122
+ z-index: 2;
123
123
  padding-right: var(--sar-upload-close-right);
124
124
  padding-top: var(--sar-upload-close-top);
125
125
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "sard-uniapp",
3
3
  "name": "sard-uniapp",
4
4
  "displayName": "sard-uniapp",
5
- "version": "1.20.0",
5
+ "version": "1.20.1",
6
6
  "description": "sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库",
7
7
  "main": "index.js",
8
8
  "scripts": {
@@ -16,7 +16,7 @@
16
16
  "tag": "sard tag",
17
17
  "changelog": "sard changelog",
18
18
  "buildAndRelease": "npm run build && npm run release",
19
- "push": "git push origin && git push gitee && git push origin --tags && git push gitee --tags",
19
+ "push": "git push origin && git push gitee && git push origin --tags --force && git push gitee --tags --force",
20
20
  "prepare": "husky install",
21
21
  "new-component": "tsx ./scripts/new-component.ts",
22
22
  "nc": "npm run new-component",