Skip to content

Commit

Permalink
Small grid fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonL9vov committed May 8, 2024
1 parent cd00cef commit fff830a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue3-hive-ui-kit",
"private": false,
"version": "0.7.24",
"version": "0.7.25",
"type": "module",
"description": "UI kit for Vue 3",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/hive-grid/hive-grid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const rowClicked = (row: Record<string, unknown>, rowRef: ComponentPublicInstanc
defineExpose({ items, grid });
const currentPageItems = computed(() => {
if (pagginatedItems.value.length === 0) return items;
if (pagginatedItems.value.length === 0) return items.value;
if (currentPage.value <= 0) return pagginatedItems.value[0];
if (currentPage.value > pagginatedItems.value.length) return pagginatedItems.value[pagginatedItems.value.length - 1];
return pagginatedItems.value[currentPage.value - 1];
Expand Down
2 changes: 1 addition & 1 deletion src/examples/components/all-widgets.vue
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ const optionsObject1 = {
:data-items="rows"
has-filter
:filter-fields="['name', 'bool', 'age']"
:items-on-page="2"
:items-on-page="0"
:row-css-class="(row: any) => [`aaa-${row['age']}`, 'bbb']"
:extension-fields="['score']"
></HiveGrid>
Expand Down

0 comments on commit fff830a

Please sign in to comment.