@newview/report-tools 1.0.0 → 1.0.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/report-tools",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "author": "newview",
5
5
  "main": "dist/tools.js",
6
6
  "module": "./dist/tools.esm.js",
@@ -24,7 +24,6 @@
24
24
  "typescript": "4.9.3",
25
25
  "view-ui-plus": "1.3.1",
26
26
  "vite": "4.0.0",
27
- "vue": "3.2.45",
28
27
  "@types/jquery": "^3.5.0",
29
28
  "@newview/base-vue": "^1.1.0",
30
29
  "@newview/ui": "^1.1.0"
package/readme.md CHANGED
@@ -1,3 +1,9 @@
1
1
 
2
+ ### 1.0.2
3
+ 修改工具类导入方式
4
+
5
+ ### 1.0.1
6
+ 新增删除页面方法
7
+
2
8
  ### 1.0.0
3
9
  新增报表预览工具
@@ -30,6 +30,14 @@ export declare class ReportTool {
30
30
  */
31
31
  deleteRow: (starRow: number, rowCount: number, sheetHandle?: number) => void;
32
32
 
33
+
34
+ /**
35
+ * 删除指定sheet页
36
+ * @param sheetHandle
37
+ */
38
+ deleteSheet: (sheetHandle?: number) => void;
39
+
40
+
33
41
  /**
34
42
  * 合并指定单元格
35
43
  * @param parmes 格式{r-起始行,c-起始列,rs-结束行,cs-结束列 }
@@ -91,6 +99,16 @@ export declare class ReportTool {
91
99
  setCellImgByAlias: (alias: string, base64: any, sheetHandle?: number) => void;
92
100
 
93
101
 
102
+ /**
103
+ * 根据字段赋值
104
+ * @param fieldName 别名
105
+ * @param value 数据
106
+ * @param sheetHandle 页码-从0开始
107
+ * @returns
108
+ */
109
+ setCellByFieldName:(fieldName: string, value: any, sheetHandle?: number)=>void;
110
+
111
+
94
112
  /**
95
113
  * 根据别名向文本框添加图片
96
114
  * @param alias 别名
@@ -121,7 +139,7 @@ export declare class ReportTool {
121
139
  /**
122
140
  * 打印预览
123
141
  */
124
- printView:(width: number) => void;
142
+ printView:(width?: number) => void;
125
143
 
126
144
 
127
145
  }