File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 4
4
@click.stop.prevent =" click"
5
5
6
6
:is =" componentType"
7
- active-class =" active"
8
7
:to =" to"
9
8
:exact =" exact"
10
9
>
72
71
default: ' secondary'
73
72
},
74
73
to: {
75
- type: String ,
74
+ type: [ String , Object ] ,
76
75
default: ' ' ,
77
76
},
78
77
exact: {
Original file line number Diff line number Diff line change 39
39
default: false
40
40
},
41
41
to: {
42
- type: String ,
42
+ type: [ String , Object ] ,
43
43
default: ' ' ,
44
44
},
45
45
exact: {
Original file line number Diff line number Diff line change 9
9
</tr >
10
10
</thead >
11
11
<tbody >
12
- <tr v-for =" item in _items" >
12
+ <tr v-for =" item in _items" :key = " items_key " >
13
13
<td v-for =" (field,key) in fields" >
14
14
<slot :name =" key" :value =" item[key]" :item =" item" >{{item[key]}}</slot >
15
15
</td >
16
16
</tr >
17
17
</tbody >
18
18
</table >
19
- <div class =" text-center" v-if =" pagination" >
19
+
20
+ <div class =" justify-content-center row my-1" v-if =" pagination" >
21
+
20
22
<b-pagination size =" md"
21
- variant =" primary"
22
23
:total-rows =" items.length"
23
24
:per-page =" perPage"
24
25
v-model =" current"
25
26
/>
27
+
26
28
</div >
29
+
27
30
</section >
28
31
</template >
29
32
53
56
type: Number ,
54
57
default: 20 ,
55
58
},
59
+ items_key: {
60
+ type: String ,
61
+ default: null ,
62
+ },
56
63
},
57
64
58
65
computed: {
You can’t perform that action at this time.
0 commit comments