rapid-spreadjs 1.0.22 → 1.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,11 @@
1
+ /**
2
+ * 检测对象属性类型
3
+ */
4
+ export type TestObjectAttrModel = {
5
+ /** 检测对象属性标题 */
6
+ title: string;
7
+ /** 字段名称,用于后端结构化存储数据使用 */
8
+ fieldName?: string;
9
+ /** 检测对象属性值 */
10
+ value?: any;
11
+ };
@@ -0,0 +1,26 @@
1
+ import { TestObjectAttrModel } from '../types/business';
2
+ /**
3
+ * SpreadJS业务相关工具函数属性
4
+ */
5
+ export declare const BusinessUtils: {
6
+ /**
7
+ * 创建检测对象属性单元格
8
+ * @param gc GC对象
9
+ * @param sheet 工作表实例
10
+ * @param testObjectAttrs 检测对象属性配置集合
11
+ * @param isVertical 是否为纵表,默认为:true
12
+ * @param contentColStartIndex 表格内容列起始索引,默认为:1
13
+ * @param contentTotalColCount 表格内容列总数,默认为:77
14
+ * @param addRowHeight 添加的表格行高,默认为:24
15
+ */
16
+ createTestObjectAttrsCells: (gc: any, sheet: any, testObjectAttrs: TestObjectAttrModel[], isVertical?: boolean, contentColStartIndex?: number, contentTotalColCount?: number, addRowHeight?: number) => void;
17
+ /**
18
+ * 获取检测对象属性值集合
19
+ * @param sheet 工作表实例
20
+ * @param testObjectAttrs 检测对象属性配置集合
21
+ * @param isVertical 是否为纵表,默认为:true
22
+ * @param contentColStartIndex 表格内容列起始索引,默认为:1
23
+ * @param contentTotalColCount 表格内容列总数,默认为:77
24
+ */
25
+ getTestObjectAttrsVals: (sheet: any, testObjectAttrs: TestObjectAttrModel[], isVertical?: boolean, contentColStartIndex?: number, contentTotalColCount?: number) => TestObjectAttrModel[];
26
+ };
@@ -2,6 +2,12 @@
2
2
  * 公用工具函数属性
3
3
  */
4
4
  export declare const CommonUtils: {
5
+ /**
6
+ * 获取文件的字节流对象
7
+ * @param fileUrl 在线文件地址
8
+ * @returns 文件的字节流对象
9
+ */
10
+ getFileBlob: (fileUrl: string) => Promise<Blob> | null;
5
11
  /**
6
12
  * 获取列的英文字母
7
13
  * @param colIndex 列的索引
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapid-spreadjs",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "SpreadJS常用公用处理函数,包括设计器、工作簿和工作表的相关处理函数。",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
@@ -36,6 +36,6 @@
36
36
  "echarts": "^5.6.0",
37
37
  "file-saver": "^2.0.5",
38
38
  "mathjs": "^14.5.2",
39
- "rapid-utils": "^1.0.20"
39
+ "rapid-utils": "^1.0.21"
40
40
  }
41
41
  }