feat: ajout element par page configurable
This commit is contained in:
parent
af5f2983d3
commit
9e8349bb7a
1 changed files with 13 additions and 2 deletions
|
@ -95,7 +95,17 @@ function goTo(page: number) {
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="d-flex f-end">
|
<div class="d-flex f-between">
|
||||||
|
<div>
|
||||||
|
<span>Lignes par page </span>
|
||||||
|
<select class="btn-small btn-outline" v-model="table.pageLenght">
|
||||||
|
<option>5</option>
|
||||||
|
<option>10</option>
|
||||||
|
<option>15</option>
|
||||||
|
<option>25</option>
|
||||||
|
<option>50</option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
<PageList
|
<PageList
|
||||||
:current-page="currentPage + 1"
|
:current-page="currentPage + 1"
|
||||||
:page-nbr="getTotalPage + 1"
|
:page-nbr="getTotalPage + 1"
|
||||||
|
@ -119,7 +129,8 @@ table:not(:last-child) {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
input {
|
input,
|
||||||
|
.btn-outline {
|
||||||
border: 1px solid rgba(0, 0, 0, 0.2);
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
|
Loading…
Reference in a new issue