el-plus-crud 0.1.122 → 0.1.124

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
@@ -2,6 +2,26 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.124](https://github.com/KDJack/el-plus-crud/compare/v0.1.123...v0.1.124) (2026-08-15)
6
+
7
+
8
+ ### Features
9
+
10
+ * **form:** file 组件附件卡片增加下载按钮 ([4c4dcc5](https://github.com/KDJack/el-plus-crud/commit/4c4dcc5090ea5b81bba804d790ff0acd0c080e1e))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **form:** 修复上传成功后仍误报「请上传」的校验时序问题 ([a4601a3](https://github.com/KDJack/el-plus-crud/commit/a4601a3b794d7f2b0cde9723554be16c8634c534))
16
+
17
+ ### [0.1.123](https://github.com/KDJack/el-plus-crud/compare/v0.1.122...v0.1.123) (2026-08-15)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **form:** 修复 upload 父级 modelValue 为字符串时组件卸载报错 ([2ec5ada](https://github.com/KDJack/el-plus-crud/commit/2ec5ada477941c6748e9a952330522c0b0bad71a))
23
+ * **table:** size 默认不再硬编码 default,未配置时继承 EP 全局 size ([803760c](https://github.com/KDJack/el-plus-crud/commit/803760cb7b135887c63bdfd208eeaadd95acbf02))
24
+
5
25
  ### [0.1.122](https://github.com/KDJack/el-plus-crud/compare/v0.1.121...v0.1.122) (2026-08-14)
6
26
 
7
27
 
@@ -30,6 +30,17 @@ export declare function getImageUrl(item: any): string;
30
30
  * 否则点击会误判为非图片 → 走文件预览分支。
31
31
  */
32
32
  export declare function isImageItem(item: any): boolean;
33
+ /**
34
+ * 下载取址:与 getImageUrl 同序(signUrl → shareUrl → url → furl → previewUrl),
35
+ * 语义独立便于后续分化(如下载需强制签名链接时只改这里)
36
+ */
37
+ export declare function getDownloadUrl(item: any): string;
38
+ /**
39
+ * fetch blob 下载(保证保存为文件 + 自定义文件名);
40
+ * 失败(CORS/网络/签名过期)回退 window.open 直链打开。
41
+ * data:image base64 项同样可走 fetch→blob(fetch 支持 data URL),无需特判。
42
+ */
43
+ export declare function downloadFile(item: any): void;
33
44
  /**
34
45
  * 文件大小格式化
35
46
  */
@@ -2,11 +2,11 @@ import { IColumnItem } from '../../../types';
2
2
 
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
4
  item: IColumnItem;
5
- size: string;
5
+ size?: string | undefined;
6
6
  index: number;
7
7
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
8
  item: IColumnItem;
9
- size: string;
9
+ size?: string | undefined;
10
10
  index: number;
11
11
  }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
12
12
  export default _default;
@@ -18,7 +18,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
18
18
  isDialog: boolean;
19
19
  loading: boolean;
20
20
  isShowRefresh: boolean;
21
- size: string;
21
+ size?: string | undefined;
22
22
  queryDataFn?: Function | undefined;
23
23
  layoutSelect?: boolean | undefined;
24
24
  initLoad?: boolean | undefined;
@@ -28,7 +28,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
28
28
  isDialog: boolean;
29
29
  loading: boolean;
30
30
  isShowRefresh: boolean;
31
- size: string;
32
31
  }>>, {
33
32
  getData: () => any;
34
33
  initCol: typeof initCol;
@@ -47,7 +46,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
47
46
  isDialog: boolean;
48
47
  loading: boolean;
49
48
  isShowRefresh: boolean;
50
- size: string;
49
+ size?: string | undefined;
51
50
  queryDataFn?: Function | undefined;
52
51
  layoutSelect?: boolean | undefined;
53
52
  initLoad?: boolean | undefined;
@@ -57,14 +56,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
57
56
  isDialog: boolean;
58
57
  loading: boolean;
59
58
  isShowRefresh: boolean;
60
- size: string;
61
59
  }>>> & Readonly<{
62
60
  onReset?: ((...args: any[]) => any) | undefined;
63
61
  onQuery?: ((...args: any[]) => any) | undefined;
64
62
  onLayoutChange?: ((...args: any[]) => any) | undefined;
65
63
  }>, {
66
64
  loading: boolean;
67
- size: string;
68
65
  isDialog: boolean;
69
66
  tbName: string;
70
67
  isShowRefresh: boolean;
@@ -8,14 +8,14 @@ declare function initLocalCheckList(): void;
8
8
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
9
  column: Array<IColumnItem>;
10
10
  tbName: string;
11
- size: string;
11
+ size?: string | undefined;
12
12
  showText?: boolean | undefined;
13
13
  }>>, {
14
14
  initCol: typeof initLocalCheckList;
15
15
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
16
16
  column: Array<IColumnItem>;
17
17
  tbName: string;
18
- size: string;
18
+ size?: string | undefined;
19
19
  showText?: boolean | undefined;
20
20
  }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
21
21
  export default _default;