Skip to content

Commit 1bf9de6

Browse files
authored
Merge pull request #41 from HC200ok/optimze/update-to-hideFooter
update show-footer prop to hide-footer
2 parents 138eae1 + c61fb10 commit 1bf9de6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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.2.15",
6+
"version": "1.2.16",
77
"types": "./types/main.d.ts",
88
"license": "MIT",
99
"files": [

src/components/DataTable.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
>
106106
<div
107107
class="loading-mask"
108-
:class="{'no-footer': !showFooter}"
108+
:class="{'no-footer': hideFooter}"
109109
></div>
110110
<div class="loading-entity">
111111
<slot
@@ -124,7 +124,7 @@
124124
</div>
125125
</div>
126126
<div
127-
v-if="showFooter"
127+
v-if="!hideFooter"
128128
class="data-table__footer"
129129
>
130130
<div
@@ -349,9 +349,9 @@ const props = defineProps({
349349
type: Boolean,
350350
default: false,
351351
},
352-
showFooter: {
352+
hideFooter: {
353353
type: Boolean,
354-
default: true,
354+
default: false,
355355
},
356356
filterOptions: {
357357
type: Array as PropType<FilterOption[]>,

0 commit comments

Comments
 (0)