Skip to content

Commit ee86b1e

Browse files
committed
fix: CTable component: activePage prop is undefined by default
1 parent dc6657e commit ee86b1e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/Table/CTable.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,7 @@ export default {
237237
type: Number,
238238
default: 10
239239
},
240-
activePage: {
241-
type: Number,
242-
default: 1
243-
},
240+
activePage: Number,
244241
indexColumn: [Boolean, String],
245242
filterRow: Boolean,
246243
pagination: [Boolean, Object],
@@ -270,7 +267,7 @@ export default {
270267
columnFilter: this.defaultColumnFilter || {},
271268
sorter: { name: this.defaultSorter[0], direction: this.defaultSorter[1] },
272269
firstItemIndex: 0,
273-
page: this.activePage,
270+
page: this.activePage || 1,
274271
perPageItems: this.perPage,
275272
passedItems: this.items || []
276273
}

0 commit comments

Comments
 (0)