Skip to content

Commit 652cac8

Browse files
committed
fix(CDataTable): v-else without v-if breaking Parcel - thanks @adamshaylor
- closes #143 v-else used on element <td> without corresponding v-if - closes #144 fix: CDataTable: v-else compiler warning
1 parent 9709051 commit 652cac8

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/components/table/CDataTable.vue

+7-6
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,13 @@
124124
:key="itemIndex"
125125
>
126126
<template v-for="(colName, index) in rawColumnNames" >
127-
<slot
128-
v-if="$scopedSlots[colName]"
129-
:name="colName"
130-
:item="item"
131-
:index="itemIndex + firstItemIndex"
132-
/>
127+
<template v-if="$scopedSlots[colName]">
128+
<slot
129+
:name="colName"
130+
:item="item"
131+
:index="itemIndex + firstItemIndex"
132+
/>
133+
</template>
133134
<td
134135
v-else
135136
:class="cellClass(item, colName, index)"

0 commit comments

Comments
 (0)