rapid-spreadjs 1.0.53 → 1.0.55

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.
@@ -1,4 +1,5 @@
1
1
  import { TestObjectAttrModel } from '../types/business';
2
+ import { CellModel } from '../types/sheet';
2
3
  /**
3
4
  * SpreadJS业务相关工具函数属性
4
5
  */
@@ -32,6 +33,8 @@ export declare const BusinessUtils: {
32
33
  * @param cellRange 单元格范围JSON对象,格式为:{row:0, col:0, rowCount:2, colCount:5}
33
34
  * @param curDefaultPointCount 本次默认点数
34
35
  * @param lastDefaultPointCount 上次默认点数,默认为:0(0代表首次创建)
36
+ * @param isAutoFillFirstCellNumber 是否自动填充第一个单元格为序号数字,默认为:false
37
+ * @param created 创建完成后的回调函数,第一个参数为循环后的所有单元格范围对象(格式为:{row:0, col:0, rowCount:10, colCount:5}),第二个参数为所有循环行的单元格二维数组对象
35
38
  * @param rowHeight 创建的行高度,默认为:24(单位为像素)
36
39
  */
37
40
  dynamicCreateCyclicRows: (GC: any, spread: any, cellRange: {
@@ -39,5 +42,10 @@ export declare const BusinessUtils: {
39
42
  col: number;
40
43
  rowCount: number;
41
44
  colCount: number;
42
- }, curDefaultPointCount: number, lastDefaultPointCount?: number, rowHeight?: number) => void;
45
+ }, curDefaultPointCount: number, lastDefaultPointCount?: number, isAutoFillFirstCellNumber?: boolean, created?: (cyclicCellsRange: {
46
+ row: number;
47
+ col: number;
48
+ rowCount: number;
49
+ colCount: number;
50
+ }, cyclicCells: CellModel[][]) => void, rowHeight?: number) => void;
43
51
  };
@@ -146,9 +146,10 @@ export declare const SheetUtils: {
146
146
  * 设置当前活动工作表的水印和数据绑定是否显示
147
147
  * @param spread 工作簿实例
148
148
  * @param cells 数据绑定单元格配置集合([{ row: number; col: number; title: string; pathPrev: string; pathField: string }])
149
- * @param isShow 是否显示
149
+ * @param isShow 是否显示水印
150
+ * @param isShowBindPath 是否显示数据绑定路径,默认为:true
150
151
  */
151
- setActiveSheetWatermark: (spread: any, cells: CellWatermarkModel[], isShow: boolean) => void;
152
+ setActiveSheetWatermark: (spread: any, cells: CellWatermarkModel[], isShowWatermark: boolean, isShowBindPath?: boolean) => void;
152
153
  /**
153
154
  * 设置某工作表中单元格为日期选择控件
154
155
  * @param GC GC对象
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rapid-spreadjs",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "description": "SpreadJS常用公用处理函数,包括设计器、工作簿和工作表的相关处理函数。",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",