@gonsin/gview 2.0.23 → 2.0.24

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.
@@ -0,0 +1,2 @@
1
+ export declare const GUploader: any;
2
+ export default GUploader;
@@ -2,3 +2,4 @@ export * from "./GCommonDialog";
2
2
  export * from "./GCommonForm";
3
3
  export * from "./GCommonHeader";
4
4
  export * from "./GCommonTable";
5
+ export * from "./GUploader";
@@ -1,5 +1,5 @@
1
1
  export declare const WS_SERVICE_URL: string;
2
- export declare const INIT_WS_MODEL: (subcmd: string, dataId?: string) => {
2
+ export declare const INIT_WS_MODEL: (subcmd: string, dataId?: string, edificeKey?: string) => {
3
3
  head: string;
4
4
  cmd: {
5
5
  cmd: string;
@@ -16,6 +16,7 @@ export declare const INIT_WS_MODEL: (subcmd: string, dataId?: string) => {
16
16
  };
17
17
  args: {
18
18
  dataId: string;
19
+ edificeKey: string;
19
20
  };
20
21
  };
21
22
  export declare const WS_INTERVAL_TIMEOUT = 30000;
@@ -237,6 +237,11 @@ export interface ViewButton {
237
237
  * @description 下载文件的路径
238
238
  */
239
239
  downloadUrl?: string;
240
+ /**
241
+ * @description: 上传文件类型
242
+ * @value: 'path' - 文件夹; 'file' 单文件
243
+ */
244
+ fileUploadType?: "path" | "file";
240
245
  }
241
246
  /**
242
247
  * @description: 表单项类型
@@ -274,17 +279,22 @@ export interface FormItem {
274
279
  /**
275
280
  * @description: 选择器数据相关
276
281
  */
277
- listData: ViewBoardData;
282
+ listData?: ViewBoardData;
278
283
  /**
279
284
  * @description: 树选择器数据相关
280
285
  */
281
- treeData: ViewBoardData;
286
+ treeData?: ViewBoardData;
282
287
  /**
283
288
  * @description: 日期时间选择相关
284
289
  */
285
- format: string;
286
- limit: number;
287
- maxSize: number;
288
- accept: string;
289
- filenameKeyName: string;
290
+ format?: string;
291
+ limit?: number;
292
+ maxSize?: number;
293
+ accept?: string;
294
+ filenameKeyName?: string;
295
+ /**
296
+ * @description: 上传文件类型
297
+ * @value: 'path' - 文件夹; 'file' 单文件
298
+ */
299
+ fileUploadType?: "path" | "file";
290
300
  }
@@ -1,4 +1,3 @@
1
1
  export declare function getUrlQuery(url: string): any;
2
2
  export declare function resolveUrl(url: string, queryParams: any, checkOuter?: boolean): string;
3
3
  export declare function isOuterUrl(str: string): boolean;
4
- export declare function setUrlQueryParams(url: string, key: string, value: any): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonsin/gview",
3
- "version": "2.0.23",
3
+ "version": "2.0.24",
4
4
  "main": "dist/index.mjs",
5
5
  "typings": "dist/types/index.d.ts",
6
6
  "files": [
@@ -31,6 +31,7 @@
31
31
  "mustache": "^4.2.0",
32
32
  "nanoid": "^4.0.1",
33
33
  "nprogress": "^0.2.0",
34
+ "number-precision": "^1.6.0",
34
35
  "pinia": "^2.0.32",
35
36
  "qs": "^6.11.1",
36
37
  "tdesign-icons-vue-next": "^0.1.11",