diff --git a/src/components/grid/DataGrid.vue b/src/components/grid/DataGrid.vue index 715226f32d..258594071b 100644 --- a/src/components/grid/DataGrid.vue +++ b/src/components/grid/DataGrid.vue @@ -88,6 +88,13 @@ const props = defineProps<{ }; loading?: boolean; onExecuteSql?: (sql: string) => Promise; + customSave?: (changes: { + dirtyRows: Map>; + newRows: (string | number | boolean | null)[][]; + deletedRows: Set; + columns: string[]; + rows: (string | number | boolean | null)[][]; + }) => Promise; }>(); const emit = defineEmits<{ @@ -804,6 +811,7 @@ const editor = useDataGridEditor({ database: computed(() => props.database), tableMeta: computed(() => props.tableMeta), onExecuteSql: computed(() => props.onExecuteSql), + customSave: computed(() => props.customSave), sql: computed(() => props.sql), searchText, whereFilterInput, @@ -1747,7 +1755,7 @@ defineExpose({ {{ t("grid.refresh") }}