@vtj/ui 0.8.85 → 0.8.87

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/ui",
3
3
  "private": false,
4
- "version": "0.8.85",
4
+ "version": "0.8.87",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "node": ">=16.0.0"
@@ -12,8 +12,8 @@
12
12
  "sortablejs": "~1.15.2",
13
13
  "vxe-table": "~4.6.17",
14
14
  "vxe-table-plugin-menus": "~4.0.3",
15
- "@vtj/icons": "~0.8.85",
16
- "@vtj/utils": "~0.8.85"
15
+ "@vtj/icons": "~0.8.87",
16
+ "@vtj/utils": "~0.8.87"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/qrcode": "^1.5.5",
@@ -62,6 +62,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
62
62
  type: PropType<"card" | "list">;
63
63
  default: string;
64
64
  };
65
+ beforeUpload: {
66
+ type: FunctionConstructor;
67
+ };
68
+ limitSize: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
65
72
  }, {
66
73
  elUploadRef: Ref<any>;
67
74
  remove: (file: AttachmentFile) => Promise<void>;
@@ -141,6 +148,13 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
141
148
  type: PropType<"card" | "list">;
142
149
  default: string;
143
150
  };
151
+ beforeUpload: {
152
+ type: FunctionConstructor;
153
+ };
154
+ limitSize: {
155
+ type: StringConstructor;
156
+ default: string;
157
+ };
144
158
  }>> & {
145
159
  onClick?: ((file: AttachmentFile) => any) | undefined;
146
160
  onChange?: ((files: AttachmentFile[]) => any) | undefined;
@@ -163,6 +177,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<{
163
177
  selectable: boolean;
164
178
  clickable: boolean;
165
179
  listType: "card" | "list";
180
+ limitSize: string;
166
181
  }, {}>, {
167
182
  upload?(_: {}): any;
168
183
  tip?(_: {}): any;
@@ -107,4 +107,17 @@ export declare const attachmentProps: {
107
107
  type: PropType<"card" | "list">;
108
108
  default: string;
109
109
  };
110
+ /**
111
+ * 上传前守卫
112
+ */
113
+ beforeUpload: {
114
+ type: FunctionConstructor;
115
+ };
116
+ /**
117
+ * 允许上传的文件大写最大值, 支持 K / M
118
+ */
119
+ limitSize: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
110
123
  };
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/ui
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.8.83
5
+ * @version 0.8.86
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.8.83";
8
+ export declare const version = "0.8.86";