feat(tabs): add configurable data tab reuse modes
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user