@sl-material/sl-table-sheet 1.0.0-beta3 → 1.0.0-beta4
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/core/SlTableSheet.d.ts +9 -0
- package/core/TableSheet.d.ts +12 -0
- package/core/managers/CellMarkManager.d.ts +3 -1
- package/package.json +1 -1
- package/sl-table-sheet.cjs.js +164 -117
- package/sl-table-sheet.es.js +24630 -21322
- package/sl-table-sheet.umd.umd.js +161 -114
package/core/SlTableSheet.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare class SlTableSheet {
|
|
|
27
27
|
private tableContainer;
|
|
28
28
|
private toolbarContainer;
|
|
29
29
|
private sheetTabsContainer;
|
|
30
|
+
private loadingOverlay;
|
|
30
31
|
private config;
|
|
31
32
|
/** 多 Sheet 数据 */
|
|
32
33
|
private multiSheetData;
|
|
@@ -112,6 +113,14 @@ export declare class SlTableSheet {
|
|
|
112
113
|
* @param filename 文件名(不含扩展名)
|
|
113
114
|
*/
|
|
114
115
|
downloadExcel(filename?: string): void;
|
|
116
|
+
/**
|
|
117
|
+
* 显示 loading 状态
|
|
118
|
+
*/
|
|
119
|
+
showLoading(text?: string): void;
|
|
120
|
+
/**
|
|
121
|
+
* 隐藏 loading 状态
|
|
122
|
+
*/
|
|
123
|
+
hideLoading(): void;
|
|
115
124
|
/**
|
|
116
125
|
* 解析在线 Excel 文件并显示到表格
|
|
117
126
|
* @param url Excel 文件的 URL 地址
|
package/core/TableSheet.d.ts
CHANGED
|
@@ -105,6 +105,10 @@ export declare class TableSheet {
|
|
|
105
105
|
* 创建表格实例
|
|
106
106
|
*/
|
|
107
107
|
private createSheet;
|
|
108
|
+
/**
|
|
109
|
+
* 初始化 Manager
|
|
110
|
+
*/
|
|
111
|
+
private initManagers;
|
|
108
112
|
/**
|
|
109
113
|
* 修改单元格值
|
|
110
114
|
*/
|
|
@@ -168,6 +172,14 @@ export declare class TableSheet {
|
|
|
168
172
|
* 获取标记映射
|
|
169
173
|
*/
|
|
170
174
|
getMarkedMap(): MarkedMap | null;
|
|
175
|
+
/**
|
|
176
|
+
* 获取当前表格的所有数据(包括编辑后的最新值)
|
|
177
|
+
*/
|
|
178
|
+
getAllRecords(): any[][];
|
|
179
|
+
/**
|
|
180
|
+
* 获取列配置
|
|
181
|
+
*/
|
|
182
|
+
getColumns(): any[];
|
|
171
183
|
/**
|
|
172
184
|
* 监听事件
|
|
173
185
|
*/
|
|
@@ -3,9 +3,11 @@ import { MarkedMap } from '../processors/StyleProcessor';
|
|
|
3
3
|
export declare class CellMarkManager {
|
|
4
4
|
private markedMap;
|
|
5
5
|
private tableInstance;
|
|
6
|
+
private markedCellsSet;
|
|
7
|
+
private tooltipThrottle;
|
|
6
8
|
constructor(tableInstance: any, markedMap?: MarkedMap);
|
|
7
9
|
/**
|
|
8
|
-
*
|
|
10
|
+
* 处理单元格鼠标进入事件(性能优化版)
|
|
9
11
|
*/
|
|
10
12
|
handleCellMouseEnter(args: any): void;
|
|
11
13
|
/**
|