@newview/report-tools 1.0.11 → 1.0.13

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,17 +1,12 @@
1
1
  {
2
2
  "name": "@newview/report-tools",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "author": "newview",
5
5
  "type": "module",
6
6
  "main": "./dist/report-tools.umd.cjs",
7
7
  "module": "./dist/report-tools.js",
8
8
  "typings": "types/index.d.ts",
9
- "files": [
10
- "dist/*",
11
- "types/*",
12
- "package.json",
13
- "tsconfig.json"
14
- ],
9
+ "files": ["dist/*", "types/*", "package.json", "tsconfig.json"],
15
10
  "scripts": {
16
11
  "dev": "vite",
17
12
  "build": "run-p type-check build-only",
@@ -36,6 +31,7 @@
36
31
  "terser": "5.16.8",
37
32
  "typescript": "4.9.3",
38
33
  "vite": "4.0.0",
34
+ "vue": "3.2.45",
39
35
  "vue-tsc": "1.0.11"
40
36
  }
41
37
  }
package/readme.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### 1.0.13
2
+ 1、根据字段赋值Tag字段替换为tag
3
+
4
+ ### 1.0.12
5
+ 1、同步本地文件
6
+
1
7
  ### 1.0.10
2
8
  新增文本框显示签章
3
9
 
@@ -1,6 +1,21 @@
1
1
 
2
+ import { LuckySheet } from '@newview/ui'
3
+
2
4
  export declare class reportTool {
3
5
 
6
+ /**初始化报表数据 */
7
+ initPageInfo: any
8
+ /**报表数据 */
9
+ pageInfo: any
10
+ /**报表尺寸 */
11
+ pageSize: string
12
+ /**表格排版 1、竖向 2、横向 */
13
+ direction: number | undefined
14
+ /**luckySheet */
15
+ luckySheet: LuckySheet
16
+
17
+ constructor(direction?: number, pageSize?: string);
18
+
4
19
  /**
5
20
  * luckySheet数据转换
6
21
  * @param reportJson
@@ -11,7 +26,12 @@ export declare class reportTool {
11
26
  * 获取转换后的数据
12
27
  * @returns
13
28
  */
14
- getPageInfo: (value: any, defaultValue: any) => void;
29
+ getPageInfo: () => void;
30
+ /**
31
+ * 是否是横向布局
32
+ * @returns
33
+ */
34
+ isHorizontal: () => void;
15
35
  /**
16
36
  * 插入行
17
37
  * @param starRow 在第几行插入空白行,从0开始
@@ -91,7 +111,7 @@ export declare class reportTool {
91
111
 
92
112
  /**
93
113
  * 根据字段名添加图片
94
- * @param alias 别名
114
+ * @param fieldName 字段名
95
115
  * @param base64 图片base64码
96
116
  * @param sheetHandle 页码-从0开始
97
117
  * @returns
@@ -111,7 +131,7 @@ export declare class reportTool {
111
131
 
112
132
  /**
113
133
  * 根据字段赋值
114
- * @param fieldName 别名
134
+ * @param fieldName 字段名
115
135
  * @param value 数据
116
136
  * @param sheetHandle 页码-从0开始
117
137
  * @returns
@@ -151,6 +171,11 @@ export declare class reportTool {
151
171
  */
152
172
  printView: () => void;
153
173
 
174
+ /**
175
+ * 预览前更新行高
176
+ */
177
+ doReportPage: () => void;
178
+
154
179
 
155
180
  }
156
181
  export declare const ReportTool: reportTool;
package/types/index.d.ts CHANGED
@@ -1 +1,6 @@
1
+ import type { DefineComponent } from 'vue';
2
+
1
3
  export * from "./ReportTool";
4
+ export declare const ReportView: DefineComponent<{
5
+
6
+ }>