@me-framework/me-ui-antdv-next 0.0.4 → 0.0.6

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.
@@ -14,3 +14,18 @@ export declare const debounce: <T extends (...args: any[]) => any>(fn: T, delay:
14
14
  * Throttle function
15
15
  */
16
16
  export declare const throttle: <T extends (...args: any[]) => any>(fn: T, delay: number) => ((...args: Parameters<T>) => void);
17
+ /**
18
+ * 选择文件选项
19
+ */
20
+ export interface ChooseFileOptions {
21
+ /** 接受的文件类型,如 '.json'、'.png,.jpg',默认 '*' */
22
+ accept?: string;
23
+ /** 是否允许多选,默认 false */
24
+ multiple?: boolean;
25
+ }
26
+ /**
27
+ * 弹出文件选择对话框
28
+ * @param options - 配置选项
29
+ * @returns 单选时返回 File,多选时返回 File[],用户取消时返回 null
30
+ */
31
+ export declare function chooseFile<T extends ChooseFileOptions>(options: T): T['multiple'] extends true ? Promise<File[] | null> : Promise<File | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@me-framework/me-ui-antdv-next",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "A Vue 3 + TypeScript UI component library",
5
5
  "type": "module",
6
6
  "main": "./dist/me-ui-antdv-next.umd.cjs",
@@ -53,6 +53,7 @@
53
53
  "vue": ">=3.0.0"
54
54
  },
55
55
  "devDependencies": {
56
+ "@types/jsoneditor": "^9.9.6",
56
57
  "@types/node": "^26.2.0",
57
58
  "@typescript/typescript6": "^6.0.2",
58
59
  "@vitejs/plugin-vue": "^6.0.8",