Skip to content

Commit

Permalink
Bump to 1.5.37
Browse files Browse the repository at this point in the history
  • Loading branch information
HC200ok committed Mar 14, 2023
1 parent 3238a61 commit bc8d77f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"author": "HC200ok",
"description": "A customizable and easy-to-use data table component made with Vue.js 3.x.",
"private": false,
"version": "1.5.32",
"version": "1.5.37",
"types": "./types/main.d.ts",
"license": "MIT",
"files": [
Expand Down
13 changes: 7 additions & 6 deletions src/components/DataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@
@click="column === 'expand' ? updateExpandingItemIndexList(index + prevPageEndIndex, item, $event) : null"
>
<slot
v-if="slots[`item-${column}`]"
v-if="slots['item-general']"
name="item-general"
v-bind="generateColumnContent(column, item)"
/>
<slot
v-else-if="slots[`item-${column}`]"
:name="`item-${column}`"
v-bind="item"
/>
Expand All @@ -146,11 +151,7 @@
:name="`item-${column.toLowerCase()}`"
v-bind="item"
/>
<slot
v-if="slots['item']"
:name="item"
v-bind="item"
/>

<template v-else-if="column === 'expand'">
<i
class="expand-icon"
Expand Down
10 changes: 8 additions & 2 deletions src/modes/Client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@
</div>
</template>

<template #item-lastAttended="item">
<template #item-general="item">
<div style="padding: 15px">
{{ item }} camelCase
</div>
</template>

<!-- <template #item-lastAttended="item">
<div style="padding: 15px">
{{ item.lastAttended }} camelCase
</div>
Expand All @@ -84,7 +90,7 @@
<template #body.append>
<span>body.append</span>
</template>
</template> -->
</DataTable>
</div>
</template>
Expand Down

0 comments on commit bc8d77f

Please sign in to comment.