Skip to content

Commit 43006e6

Browse files
Merge pull request #3 from webdevnerdstuff/dev
Uncommented problem code
2 parents 3db84b6 + 1d99b7a commit 43006e6

File tree

1 file changed

+20
-24
lines changed

1 file changed

+20
-24
lines changed

src/plugin/VDrilldownTable.vue

Lines changed: 20 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -130,23 +130,21 @@
130130
:key="column"
131131
>
132132
<!-- Expand Column -->
133-
<td v-if="
134-
column.key === 'data-table-expand' && loadedDrilldown.showExpand
135-
">
133+
<td v-if="column.key === 'data-table-expand' && loadedDrilldown.showExpand
134+
">
136135
<v-icon
137136
v-if="loadedDrilldown.level < loadedDrilldown.levels"
138137
class="v-drilldown-table--expand-icon"
139138
:class="!isExpanded(item) ? '' : 'rotate-180'"
140-
@click="
141-
drilldownEvent({
139+
@click="drilldownEvent({
142140
columns,
143141
index,
144142
isExpanded,
145143
item,
146144
level,
147145
toggleExpand,
148146
})
149-
"
147+
"
150148
>
151149
mdi-chevron-down
152150
</v-icon>
@@ -184,27 +182,26 @@
184182
<!-- ================================================== Data Table Expand Slot -->
185183
<!-- @update:expanded="updateExpanded" -->
186184
<template #[`item.data-table-expand`]="{
187-
columns,
188-
index,
189-
isExpanded,
190-
item,
191-
toggleExpand,
192-
}">
185+
columns,
186+
index,
187+
isExpanded,
188+
item,
189+
toggleExpand,
190+
}">
193191
b
194192
<v-icon
195193
v-if="loadedDrilldown.level < loadedDrilldown.levels"
196194
class="v-drilldown-table--expand-icon"
197195
:class="!isExpanded(item) ? 'rotate-180' : ''"
198-
@click="
199-
drilldownEvent({
196+
@click="drilldownEvent({
200197
columns,
201198
index,
202199
isExpanded,
203200
item,
204201
level,
205202
toggleExpand,
206203
})
207-
"
204+
"
208205
>
209206
mdi-chevron-down
210207
</v-icon>
@@ -235,27 +232,27 @@
235232
></slot>
236233

237234
<!-- Pass on all scoped slots -->
238-
<!-- // ! This does not pass rollup bundle -->
239-
<!-- <template
235+
<!-- ! This does not pass rollup bundle -->
236+
<template
240237
v-for="slot in Object.keys(slots)"
241238
#[slot]="scope"
242239
>
243240
<slot
244241
:name="slot"
245242
v-bind="scope"
246-
></slot>
247-
</template> -->
243+
></slot>
244+
</template>
248245

249-
<!-- // ! This also does not pass rollup bundle -->
250-
<!-- <template
246+
<!-- ! This also does not pass rollup bundle -->
247+
<template
251248
v-for="slot in Object.keys(slots)"
252249
v-slot:[`${slot}`]="scope"
253250
>
254251
<slot
255252
:name="slot"
256253
v-bind="scope"
257-
></slot>
258-
</template> -->
254+
></slot>
255+
</template>
259256
</VDrilldownTable>
260257
</td>
261258
</tr>
@@ -538,7 +535,6 @@ const headerRowThClasses = (column): object => {
538535
539536
const headerRowThStyles = (column: { width?: string | number; }, dataTableExpand = false): CSSProperties => {
540537
const headerColors = useGetLevelColors(loadedDrilldown.value, theme, 'header');
541-
console.log('headerRowThStyles', headerColors);
542538
543539
const styles = {
544540
backgroundColor: headerColors.bg,

0 commit comments

Comments
 (0)