Skip to content

Commit 3850469

Browse files
committed
make expandable and searchable properties work together in table component
1 parent b205192 commit 3850469

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/components/compounds/Table/Table.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import VTag from '../../primitives/Tag/Tag.vue'
44
import VButton from '../../primitives/Button/Button.vue'
55
import VCheckbox from '../../primitives/Checkbox/Checkbox.vue'
66
import VSelect from '../../primitives/Select/Select.vue'
7+
import VInput from '../../primitives/Input/Input.vue'
78
89
export default {
910
name: 'VTable',
10-
components: { VButton, VCheckbox, VSelect, VTag },
11+
components: { VButton, VCheckbox, VSelect, VTag, VInput },
1112
props: {
1213
data: {
1314
type: Object,
@@ -207,15 +208,14 @@ export default {
207208
<tbody>
208209
<tr v-if="searchable">
209210
<td v-if="checkable" />
211+
<td v-if="expandable" />
210212
<td v-for="column in data.getColumns()" :key="column.name" :class="column.style">
211-
<input
213+
<v-input
212214
name="search"
213215
type="text"
214216
v-model="search[column.name]"
215217
@input="data.searchColumn(column.name, search[column.name])"
216-
color="is-dark"
217-
placeholder="Search"
218-
class="input has-text-black is-small is-black" />
218+
placeholder="Search" />
219219
</td>
220220
</tr>
221221
<template v-if="!groupBy">

0 commit comments

Comments
 (0)