Skip to content

Commit 40899d4

Browse files
committed
Fixed field render and tfoot show or hide.
Signed-off-by: Dmitry Mazurov <[email protected]>
1 parent c1a898e commit 40899d4

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,15 @@ Our component parameters:
211211
hideFooter: {
212212
type: Boolean
213213
},
214+
/**
215+
* true to hide the tfoot of the table
216+
*
217+
* @type Boolean
218+
*/
219+
hideTfoot: {
220+
type: Boolean,
221+
default: true
222+
},
214223
/**
215224
* true to hide the individual column search of the table
216225
*

src/VdtnetTable.vue

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</tr>
3838
</thead>
3939
<tfoot
40-
v-if="!hideFooter"
40+
v-if="!hideTfoot"
4141
:class="tfootClassName"
4242
>
4343
<tr>
@@ -187,6 +187,15 @@ export default {
187187
hideFooter: {
188188
type: Boolean
189189
},
190+
/**
191+
* true to hide the tfoot of the table
192+
*
193+
* @type Boolean
194+
*/
195+
hideTfoot: {
196+
type: Boolean,
197+
default: true
198+
},
190199
/**
191200
* true to hide the individual column search of the table
192201
*
@@ -313,6 +322,10 @@ export default {
313322
col.template = field.template
314323
}
315324
325+
if (field.render) {
326+
col.render = field.render
327+
}
328+
316329
// console.log(col)
317330
cols.push(col)
318331

0 commit comments

Comments
 (0)