@newview/ui 1.1.0 → 1.1.2

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@newview/ui",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "author": "newview",
5
5
  "type": "module",
6
6
  "main": "./dist/newview-ui.umd.cjs",
package/types/Grid.d.ts CHANGED
@@ -2,7 +2,7 @@ import { BaseInstance } from "@newview/base-vue";
2
2
 
3
3
  import { ApiResult, BaseApi, QueryWrapper } from "@newview/infrastructure";
4
4
  import { VNode } from "vue";
5
- import { VxeColumnProps, VxeTableInstance, VxeTableListeners, VxeTablePropTypes } from "vxe-table";
5
+ import { VxeColumnProps, VxeTableDefines, VxeTableInstance, VxeTableListeners, VxeTablePropTypes } from "vxe-table";
6
6
  import { SearchComOption } from "./SearchCom";
7
7
  import { ToolbarOption } from "./Toolbar";
8
8
 
@@ -78,7 +78,7 @@ export interface GridOptions {
78
78
  /**
79
79
  * 列参数
80
80
  */
81
- columns?: GridColumn[];
81
+ columns?: GridColumn[];
82
82
  }
83
83
 
84
84
  /**
@@ -272,6 +272,10 @@ export interface GridSetting {
272
272
  * 双切换展开树
273
273
  */
274
274
  dblClickToggleTreeExpand?: boolean;
275
+ /**
276
+ * 校验规则配置项
277
+ */
278
+ editRules?: { [field: string]: VxeTableDefines.ValidatorRule[] }
275
279
  }
276
280
 
277
281
  /**
@@ -600,6 +604,11 @@ export declare class GridInstance extends BaseInstance {
600
604
  * 清除行checkbox选中状态
601
605
  */
602
606
  doClearCheckboxRow(): void;
607
+
608
+ /**
609
+ * 校验数据
610
+ */
611
+ validate(): Promise<boolean>;
603
612
  }
604
613
 
605
614
  import type { DefineComponent } from 'vue';
@@ -1059,10 +1059,18 @@ export declare class ReportApi extends BaseInstance {
1059
1059
 
1060
1060
  /**
1061
1061
  * 加载报表
1062
- * @param contentStr
1063
- * @param callback
1062
+ * @param contentStr
1063
+ * @param callback
1064
+ * @param isHttp
1065
+ */
1066
+ build(contentStr: string, callback: any, isHttp?: boolean): void;
1067
+
1068
+ /**
1069
+ * 通过Url导入报表
1070
+ * @param fileUrl
1071
+ * @param callback
1064
1072
  */
1065
- build(contentStr: string, callback?: any): void;
1073
+ importReportByUrl(fileUrl: string, callback?: any): void;
1066
1074
 
1067
1075
  /**
1068
1076
  * 导入报表