Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to the "vuetify-drilldown-table" plugin will be documented in this file.

## v1.0.1
11-09-23
[main] (@webdevnerdstuff)
* Fix header slot name
* Update docs

## v1.0.0
11-09-23
[main] (@webdevnerdstuff)
Expand Down
2 changes: 1 addition & 1 deletion dist/plugin/slots/HeadersSlot.vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
}, {
showSelect: boolean;
isTheadSlot: boolean;
}, {}>, Partial<Record<`column.${string}`, (_: {
}, {}>, Partial<Record<`header.${string}`, (_: {
column: Column;
}) => any>> & {
"header.sortIcon"?(_: {}): any;
Expand Down
6 changes: 3 additions & 3 deletions dist/vuetify-drilldown-table.cjs.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/vuetify-drilldown-table.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wdns/vuetify-drilldown-table",
"version": "1.0.0",
"version": "1.0.1",
"description": "The Vuetify Drilldown Table is a powerful component that enhances the functionality of the Vuetify framework's VDataTable and VDataTableServer. It provides a recursive table structure, allowing you to display hierarchical data in a nested format.",
"private": false,
"publishConfig": {
Expand Down
12 changes: 6 additions & 6 deletions src/documentation/sections/SlotsSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ const topLeftRightSlotCode = `{

const slotsSupported = [
{
desc: 'The <code class="inline-code">[`column.${string}`]</code> slot is available for each column',
name: '[`column.${string}`]',
desc: 'The <code class="inline-code">[`header.${string}`]</code> slot is available for each column',
name: '[`header.${string}`]',
},
{
desc: 'The <code class="inline-code">[`item.${string}`]</code> slot is available for each item',
Expand All @@ -197,12 +197,12 @@ const slotsSupported = [
name: 'body',
},
{
desc: 'The <code class="inline-code">column.data-table-expand</code> slot is available',
name: 'column.data-table-expand',
desc: 'The <code class="inline-code">header.data-table-expand</code> slot is available',
name: 'header.data-table-expand',
},
{
desc: 'The <code class="inline-code">column.data-table-select</code> slot is available',
name: 'column.data-table-select',
desc: 'The <code class="inline-code">header.data-table-select</code> slot is available',
name: 'header.data-table-select',
},
{
desc: 'The <code class="inline-code">footer.prepend</code> slot is available',
Expand Down
6 changes: 3 additions & 3 deletions src/playground/configs/templates/ClientTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@

<!-- <template #[`header.data-table-select`]>
<div class="d-flex justify-center">
<v-icon>mdi mdi-vuetify</v-icon>
<v-icon icon="$vuetify"></v-icon>
</div>
</template> -->

<!-- <template #[`header.sortIcon`]>
<fa-icon icon="fa-solid fa-arrow-up"></fa-icon>
<v-icon icon="$vuetify"></v-icon>
</template> -->

<!-- <template #[`header.id`]="{ column }">
Expand Down Expand Up @@ -166,7 +166,7 @@
</template> -->

<!-- <template #[`item.data-table-select`]>
<v-icon>mdi mdi-vuetify</v-icon>
<v-icon icon="$vuetify"></v-icon>
</template> -->

<!-- <template #[`item.data-table-expand`]>
Expand Down
4 changes: 2 additions & 2 deletions src/plugin/slots/HeadersSlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
>
<!-- Column Dynamic Name Header Slot -->
<th
v-if="slots[`column.${column.key}`]"
v-if="slots[`column.${column.key}`] || slots[`header.${column.key}`]"
:class="cellClasses(column, column.key)"
:colspan="column.colspan || 1"
:style="cellStyles(column, true)"
>
<slot
:column="column"
:name="`column.${column.key}`"
:name="`header.${column.key}`"
/>
</th>
<!-- Column Render `data-table-group` -->
Expand Down