fix(grid): preserve page size when reloading data after save
The reload event did not carry limit/offset, so buildTableSelectSql always fell back to its default LIMIT 100, resetting 1000-row pages back to 100 after every commit.
This commit is contained in:
1 parent
78184544cf
commit
9463ff07a7
5 files changed
+58
-11
No files matched your search
+8
-2
@@ -618,8 +618,14 @@ onUnmounted(() => {
|
||||
@editor-cursor-change="(p: number) => (cursorPos = p)"
|
||||
@format-error="toast(t('toolbar.formatSqlFailed'))"
|
||||
@reload="
|
||||
(sql?: string, searchText?: string, whereInput?: string, orderBy?: string) =>
|
||||
onReloadData(sql, searchText, whereInput, orderBy)
|
||||
(
|
||||
sql?: string,
|
||||
searchText?: string,
|
||||
whereInput?: string,
|
||||
orderBy?: string,
|
||||
limit?: number,
|
||||
offset?: number,
|
||||
) => onReloadData(sql, searchText, whereInput, orderBy, limit, offset)
|
||||
"
|
||||
@paginate="onPaginate"
|
||||
@sort="onSort"
|
||||
|
||||
Reference in new issue
Block a user