Unverified Commit c429d7a5 authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #654 from mikemand/feature/default-page-length

Set default page length to 30 for tables
parents 6c771cf5 d613c083
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="meta.current_page" :current-page.sync="meta.current_page"
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 30, 50, 100]"
:page-size="parseInt(meta.per_page)" :page-size="parseInt(meta.per_page)"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="meta.total" :total="meta.total"
...@@ -165,7 +165,7 @@ ...@@ -165,7 +165,7 @@
tableIsLoading: false, tableIsLoading: false,
meta: { meta: {
current_page: 1, current_page: 1,
per_page: 10, per_page: 30,
}, },
order_meta: { order_meta: {
order_by: '', order_by: '',
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="meta.current_page" :current-page.sync="meta.current_page"
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 30, 50, 100]"
:page-size="parseInt(meta.per_page)" :page-size="parseInt(meta.per_page)"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="meta.total"> :total="meta.total">
...@@ -118,7 +118,7 @@ ...@@ -118,7 +118,7 @@
data, data,
meta: { meta: {
current_page: 1, current_page: 1,
per_page: 10, per_page: 30,
}, },
order_meta: { order_meta: {
order_by: '', order_by: '',
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="meta.current_page" :current-page.sync="meta.current_page"
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 30, 50, 100]"
:page-size="parseInt(meta.per_page)" :page-size="parseInt(meta.per_page)"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="meta.total"> :total="meta.total">
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
data: [], data: [],
meta: { meta: {
current_page: 1, current_page: 1,
per_page: 10, per_page: 30,
}, },
order_meta: { order_meta: {
order_by: '', order_by: '',
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page.sync="meta.current_page" :current-page.sync="meta.current_page"
:page-sizes="[10, 20, 50, 100]" :page-sizes="[10, 20, 30, 50, 100]"
:page-size="parseInt(meta.per_page)" :page-size="parseInt(meta.per_page)"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
:total="meta.total"> :total="meta.total">
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
data: [], data: [],
meta: { meta: {
current_page: 1, current_page: 1,
per_page: 10, per_page: 30,
}, },
order_meta: { order_meta: {
order_by: '', order_by: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment