@veltra/sheet 2.3.2 → 2.3.3
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.
|
@@ -127,8 +127,9 @@ function useSheetGrid(options) {
|
|
|
127
127
|
* tab 切换:优先复用缓存实例(零重建)。
|
|
128
128
|
* 命中时校验实例是否过期(隐藏期间程序化 structure-change——插入/删除/undo
|
|
129
129
|
* 行列——vue 层只绑定激活 sheet 的 structure-change,隐藏实例靠自持订阅标记
|
|
130
|
-
* dirty
|
|
131
|
-
*
|
|
130
|
+
* dirty);过期则释放重建。命中且未过期只翻可见性:隐藏实例的 cell/merge/
|
|
131
|
+
* content-reset 已在 GridSyncManager 置脏,setVisible(true) 时一次性 flush,
|
|
132
|
+
* 不必每次切 tab 都 syncFromModel(会重放全部列宽)。
|
|
132
133
|
*/
|
|
133
134
|
function activateGrid() {
|
|
134
135
|
const sheet = getActiveSheet();
|
|
@@ -136,7 +137,6 @@ function useSheetGrid(options) {
|
|
|
136
137
|
const cached = cache.get(sheet);
|
|
137
138
|
if (cached && !cached.dirty) {
|
|
138
139
|
cached.lastUsed = ++seq;
|
|
139
|
-
cached.grid.syncFromModel();
|
|
140
140
|
showOnly(cached);
|
|
141
141
|
active = cached;
|
|
142
142
|
bindGridPointerDown(cached.el);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltra/sheet",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"homepage": "https://github.com/cabinet-fe/ultra-ui#readme",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/cabinet-fe/ultra-ui/issues"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@veltra/compositions": "^1.6.4",
|
|
43
43
|
"@veltra/desktop": "^1.6.4",
|
|
44
44
|
"@veltra/icons": "^1.5.0",
|
|
45
|
-
"@veltra/sheet-core": "^2.3.
|
|
45
|
+
"@veltra/sheet-core": "^2.3.3",
|
|
46
46
|
"@veltra/styles": "^1.6.4",
|
|
47
47
|
"@veltra/utils": "^1.6.4",
|
|
48
48
|
"vue": ">=3.5.41"
|
|
@@ -189,8 +189,9 @@ export function useSheetGrid(options: UseSheetGridOptions) {
|
|
|
189
189
|
* tab 切换:优先复用缓存实例(零重建)。
|
|
190
190
|
* 命中时校验实例是否过期(隐藏期间程序化 structure-change——插入/删除/undo
|
|
191
191
|
* 行列——vue 层只绑定激活 sheet 的 structure-change,隐藏实例靠自持订阅标记
|
|
192
|
-
* dirty
|
|
193
|
-
*
|
|
192
|
+
* dirty);过期则释放重建。命中且未过期只翻可见性:隐藏实例的 cell/merge/
|
|
193
|
+
* content-reset 已在 GridSyncManager 置脏,setVisible(true) 时一次性 flush,
|
|
194
|
+
* 不必每次切 tab 都 syncFromModel(会重放全部列宽)。
|
|
194
195
|
*/
|
|
195
196
|
function activateGrid(): void {
|
|
196
197
|
const sheet = getActiveSheet()
|
|
@@ -199,7 +200,6 @@ export function useSheetGrid(options: UseSheetGridOptions) {
|
|
|
199
200
|
const cached = cache.get(sheet)
|
|
200
201
|
if (cached && !cached.dirty) {
|
|
201
202
|
cached.lastUsed = ++seq
|
|
202
|
-
cached.grid.syncFromModel()
|
|
203
203
|
showOnly(cached)
|
|
204
204
|
active = cached
|
|
205
205
|
bindGridPointerDown(cached.el)
|