feat: ajout element par page configurable

This commit is contained in:
Kazhnuz 2023-02-18 19:03:59 +01:00
parent af5f2983d3
commit 9e8349bb7a

View file

@ -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;