rapid-spreadjs 1.0.21 → 1.0.23

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.
@@ -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 列的索引
@@ -9,7 +9,7 @@ export declare const WorkbookUtils: {
9
9
  * @param succFunc 文件打开成功后的回调函数,返回的第一个参数为spread工作簿对象
10
10
  * @param errorFunc 文件打开失败后的回调函数,返回的第一个参数为错误信息
11
11
  */
12
- loadSjsFile: (spread: any, fileUrl: string, succFunc?: (spreadObj: any) => void, errorFunc?: (error: any) => void) => Promise<void>;
12
+ loadSjsFile: (spread: any, fileUrl: string, succFunc?: (spreadObj: any) => Promise<void>, errorFunc?: (error: any) => Promise<void>) => Promise<void>;
13
13
  /**
14
14
  * 打印所有工作表
15
15
  * @param GC GC对象
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapid-spreadjs",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "SpreadJS常用公用处理函数,包括设计器、工作簿和工作表的相关处理函数。",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",