+17
-13
lines changedFilter options
+17
-13
lines changed Original file line number Diff line number Diff line change
@@ -204,7 +204,9 @@ export default {
204
204
// a square bracket and if using in-document HTML templates, the
205
205
// v-slot attributes are lower-cased by the browser.
206
206
const slotNames = [`cell[${key}]`, `cell[${key.toLowerCase()}]`, 'cell[]']
207
-
let $childNodes = this.normalizeSlot(slotNames, slotScope) || toString(formatted)
207
+
let $childNodes = this.hasNormalizedSlot(slotNames)
208
+
? this.normalizeSlot(slotNames, slotScope)
209
+
: toString(formatted)
208
210
if (this.isStacked) {
209
211
// We wrap in a DIV to ensure rendered as a single cell when visually stacked!
210
212
$childNodes = [h('div', {}, [$childNodes])]
Original file line number Diff line number Diff line change
@@ -116,20 +116,22 @@ export default {
116
116
...slotNames
117
117
]
118
118
}
119
-
const slot = this.normalizeSlot(slotNames, {
120
-
label: field.label,
121
-
column: field.key,
122
-
field,
123
-
isFoot,
124
-
// Add in row select methods
125
-
selectAllRows,
126
-
clearSelected
127
-
})
128
-
if (!slot) {
129
-
// need to check if this will work
119
+
const hasSlot = this.hasNormalizedSlot(slotNames)
120
+
let slot = field.label
121
+
if (hasSlot) {
122
+
slot = this.normalizeSlot(slotNames, {
123
+
label: field.label,
124
+
column: field.key,
125
+
field,
126
+
isFoot,
127
+
// Add in row select methods
128
+
selectAllRows,
129
+
clearSelected
130
+
})
131
+
} else {
130
132
data.domProps = htmlOrText(field.labelHtml)
131
133
}
132
-
return h(BTh, data, slot || field.label)
134
+
return h(BTh, data, slot)
133
135
}
134
136
135
137
// Generate the array of <th> cells
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4