Skip to content

Commit 3b55060

Browse files
authored
Merge pull request #95 from HC200ok/feature/rowsPerPage-new-css-varaiables
Feature/rows per page new css varaiables
2 parents 12130f7 + 3a877e8 commit 3b55060

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "HC200ok",
44
"description": "A customizable and easy-to-use data table component made with Vue.js 3.x.",
55
"private": false,
6-
"version": "1.4.12",
6+
"version": "1.4.13",
77
"types": "./types/main.d.ts",
88
"license": "MIT",
99
"files": [

src/components/DataTable.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ const {
354354
sortBy,
355355
sortType,
356356
updateServerOptionsSort,
357-
emits
357+
emits,
358358
);
359359
360360
const {
@@ -533,6 +533,9 @@ defineExpose({
533533
--easy-table-footer-font-size: 12px;
534534
--easy-table-footer-padding: 0px 5px;
535535
--easy-table-footer-height: 36px;
536+
/**footer-rowsPerPage**/
537+
--easy-table-rows-per-page-selector-width: auto;
538+
--easy-table-rows-per-page-selector-option-padding: 5px;
536539
/*message*/
537540
--easy-table-message-font-color: #212121;
538541
--easy-table-message-font-size: 12px;
@@ -557,4 +560,3 @@ defineExpose({
557560
height: v-bind(tableHeightPx);
558561
}
559562
</style>
560-

src/components/RowsSelector.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ const themeColor = inject('themeColor');
103103
min-width: 45px;
104104
position: relative;
105105
margin: 0px 10px;
106+
width: var(--easy-table-rows-per-page-selector-width);
106107
.rows-input__wrapper {
107108
height: 20px;
108109
border-bottom: 1px solid var(--easy-table-footer-font-color);
@@ -141,7 +142,7 @@ const themeColor = inject('themeColor');
141142
box-shadow: 0 5px 5px -3px rgb(0 0 0 / 20%), 0 8px 10px 1px rgb(0 0 0 / 14%), 0 3px 14px 2px rgb(0 0 0 / 12%);
142143
li {
143144
cursor: pointer;
144-
padding: 5px;
145+
padding: var(--easy-table-rows-per-page-selector-option-padding);
145146
background-color: var(--easy-table-footer-background-color);
146147
147148
&.selected {

src/modes/Client.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
@click-row="showItem"
3535
@update-sort="updateSort"
3636
>
37+
3738
<template #expand="item">
3839
<div style="padding: 15px">
3940
{{ item.name }} won championships
@@ -278,6 +279,9 @@ const updatePage = (paginationNumber: number) => {
278279
--easy-table-footer-padding: 0px 10px;
279280
--easy-table-footer-height: 40px;
280281
282+
--easy-table-rows-per-page-selector-width: 70px;
283+
--easy-table-rows-per-page-selector-option-padding: 10px;
284+
281285
--easy-table-scrollbar-track-color: #4c5d7a;
282286
--easy-table-scrollbar-color: #4c5d7a;
283287
--easy-table-scrollbar-corner-color: #4c5d7a;

0 commit comments

Comments
 (0)