File tree Expand file tree Collapse file tree 3 files changed +32
-18
lines changed Expand file tree Collapse file tree 3 files changed +32
-18
lines changed Original file line number Diff line number Diff line change 418
418
" table" ,
419
419
" table-container" ,
420
420
" tag" ,
421
+ " tbody" ,
422
+ " td" ,
421
423
" text" ,
424
+ " th" ,
425
+ " thead" ,
426
+ " tr" ,
422
427
" v-checkbox"
423
428
],
424
429
"optional" : [
643
648
},
644
649
"VImage" : {
645
650
"always" : [
651
+ " figure" ,
646
652
" image" ,
647
653
" img"
648
654
],
Original file line number Diff line number Diff line change @@ -182,12 +182,13 @@ export default {
182
182
'is-fullwidth': fullwidth,
183
183
},
184
184
]"
185
- style =" position : relative ; " >
186
- <thead >
187
- <tr >
188
- <td v-if =" checkable" />
185
+ style =" position : relative " >
186
+ <thead class = " thead " >
187
+ <tr class = " tr " >
188
+ <td class = " td " v-if =" checkable" />
189
189
<td v-if =" expandable" />
190
190
<th
191
+ class =" th"
191
192
v-for =" (column, idx) in data.getColumns()"
192
193
:key =" idx"
193
194
:class =" columnClasses(column)"
@@ -204,7 +205,7 @@ export default {
204
205
</th >
205
206
</tr >
206
207
</thead >
207
- <tbody >
208
+ <tbody class = " tbody " >
208
209
<tr v-if =" searchable" >
209
210
<td v-if =" checkable" />
210
211
<td v-if =" expandable" />
Original file line number Diff line number Diff line change 1
1
<script >
2
2
/* eslint-disable no-undef -- Access to Benchie variable/function */
3
3
import { onBeforeMount , ref } from ' vue'
4
- import { checkBenchieSupport } from " ../../../utils/functions"
4
+ import { checkBenchieSupport } from ' ../../../utils/functions'
5
5
6
6
const hasBenchieSupport = checkBenchieSupport ()
7
7
@@ -19,28 +19,35 @@ export default {
19
19
dataSrc: {
20
20
type: String ,
21
21
},
22
- customClass: String
22
+ customClass: String ,
23
23
},
24
24
setup (props ) {
25
25
const source = ref (props .src || props .dataSrc )
26
- onBeforeMount (async () => {
26
+ onBeforeMount (async () => {
27
27
if (props .dataSrc && hasBenchieSupport) {
28
28
source .value = await t (props .dataSrc , $__CDN )
29
- }
29
+ }
30
30
})
31
31
return { source }
32
- }
32
+ },
33
33
}
34
34
</script >
35
35
36
36
<template >
37
- <figure class =" image" :class =" [
38
- size,
39
- radio,
40
- {
41
- 'container': centered
42
- }
43
- ]" >
44
- <img class =" img" v-bind =" $attrs" :src =" source" :data-src =" dataSrc" :class =" [customClass,{'is-rounded': rounded }]" />
37
+ <figure
38
+ class =" image figure"
39
+ :class =" [
40
+ size,
41
+ radio,
42
+ {
43
+ 'container': centered,
44
+ },
45
+ ]" >
46
+ <img
47
+ class =" img"
48
+ v-bind =" $attrs"
49
+ :src =" source"
50
+ :data-src =" dataSrc"
51
+ :class =" [customClass, { 'is-rounded': rounded }]" />
45
52
</figure >
46
53
</template >
You can’t perform that action at this time.
0 commit comments