feat(tabs): add configurable data tab reuse modes

This commit is contained in:
t8y2 committed 2026-08-05 13:05:26 +08:00
1 parent 1a818563b7
commit d65d712089
26 files changed
+393 -98

No files matched your search

@@ -3054,6 +3054,16 @@ watch([pendingChangeCount, pendingChangesVersion], () => {
schedulePreviewRefresh();
});
watch(
pendingChangeCount,
(count) => {
if (props.context !== "table-data" || !props.cacheKey) return;
const tab = queryStore.tabs.find((item) => item.id === props.cacheKey);
if (tab?.mode === "data") tab.pendingDataChangeCount = count || undefined;
},
{ immediate: true },
);
const saveActionMode = computed(() =>
dataGridSaveActionMode({
pendingChangeCount: pendingChangeCount.value,