feat(grid): copy inserts when primary keys are hidden
This commit is contained in:
3 files changed
+136
-6
No files matched your search
@@ -607,9 +607,7 @@ export function useDataGridExport(options: UseDataGridExportOptions) {
|
||||
if (!tableMeta.value?.primaryKeys.length) return false;
|
||||
const rows = insertEligibleRows();
|
||||
if (!rows.length) return false;
|
||||
const insertableCount = insertableCopyColumnCount(false);
|
||||
const insertColumnsCount = insertableCopyColumnCount(true);
|
||||
return insertColumnsCount > 0 && insertColumnsCount < insertableCount;
|
||||
return insertableCopyColumnCount(true) > 0;
|
||||
});
|
||||
|
||||
async function copyAll() {
|
||||
|
||||
Reference in new issue
Block a user