Skip to content

Commit

Permalink
fix: pager
Browse files Browse the repository at this point in the history
  • Loading branch information
aringlai committed May 11, 2022
1 parent f8aa894 commit 04dbfb9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/koala-form/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@koala-form/core",
"version": "1.1.3",
"version": "1.1.5",
"description": "vue form helper",
"main": "dist/index.js",
"module": "dist/index.js",
Expand Down
3 changes: 0 additions & 3 deletions packages/koala-form/src/usePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ export default function usePage(fields: Array<Field>, config: Config): UsePageRe

const render = (slots: Slots): VNodeChild => {
const tableActionsSlot: Slot = (record = {}) => {
if (!record.row) {
console.warn(`preset.tableRnder slot table_[name] params record.row is empty!`);
}
const params = {
openUpdateModal: actions.update?.open,
openViewModal: actions.view?.open,
Expand Down
2 changes: 1 addition & 1 deletion packages/koala-form/src/useTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function useTable(fields: Array<Field>, uniqueKey = 'id'): UseTab
const tableRef: Ref = ref(null);
const pagerRef: Ref = ref(null);
const tableDataRef: Ref<Record<string, any>[]> = ref([]);
const pagerModel: Pager = reactive(DEFAULT_PAGER);
const pagerModel: Pager = reactive({ ...DEFAULT_PAGER });
const tableProps: Record<string, any> = reactive({});
const pagerProps: Record<string, any> = reactive({});
const columns: Record<string, any>[] = [];
Expand Down

0 comments on commit 04dbfb9

Please sign in to comment.