Skip to content

Commit fb3077d

Browse files
author
Pooya Parsa
committed
Improvments
1 parent 9ee92db commit fb3077d

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

components/button.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
@click.stop.prevent="click"
55

66
:is="componentType"
7-
active-class="active"
87
:to="to"
98
:exact="exact"
109
>
@@ -72,7 +71,7 @@
7271
default: 'secondary'
7372
},
7473
to: {
75-
type: String,
74+
type: [String, Object],
7675
default: '',
7776
},
7877
exact: {

components/nav-item.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
default: false
4040
},
4141
to: {
42-
type: String,
42+
type: [String, Object],
4343
default: '',
4444
},
4545
exact: {

components/table.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,24 @@
99
</tr>
1010
</thead>
1111
<tbody>
12-
<tr v-for="item in _items">
12+
<tr v-for="item in _items" :key="items_key">
1313
<td v-for="(field,key) in fields">
1414
<slot :name="key" :value="item[key]" :item="item">{{item[key]}}</slot>
1515
</td>
1616
</tr>
1717
</tbody>
1818
</table>
19-
<div class="text-center" v-if="pagination">
19+
20+
<div class="justify-content-center row my-1" v-if="pagination">
21+
2022
<b-pagination size="md"
21-
variant="primary"
2223
:total-rows="items.length"
2324
:per-page="perPage"
2425
v-model="current"
2526
/>
27+
2628
</div>
29+
2730
</section>
2831
</template>
2932

@@ -53,6 +56,10 @@
5356
type: Number,
5457
default: 20,
5558
},
59+
items_key: {
60+
type: String,
61+
default: null,
62+
},
5663
},
5764
5865
computed: {

0 commit comments

Comments
 (0)