File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 3
3
"author" : " HC200ok" ,
4
4
"description" : " A customizable and easy-to-use data table component made with Vue.js 3.x." ,
5
5
"private" : false ,
6
- "version" : " 1.5.36 " ,
6
+ "version" : " 1.5.37 " ,
7
7
"types" : " ./types/main.d.ts" ,
8
8
"license" : " MIT" ,
9
9
"files" : [
Original file line number Diff line number Diff line change 147
147
@click =" column === 'expand' ? updateExpandingItemIndexList(index + prevPageEndIndex, item, $event) : null"
148
148
>
149
149
<slot
150
- v-if =" slots[`item-${column}`]"
150
+ v-if =" slots['item-general']"
151
+ name =" item-general"
152
+ v-bind =" generateColumnContent(column, item)"
153
+ />
154
+ <slot
155
+ v-else-if =" slots[`item-${column}`]"
151
156
:name =" `item-${column}`"
152
157
v-bind =" item"
153
158
/>
156
161
:name =" `item-${column.toLowerCase()}`"
157
162
v-bind =" item"
158
163
/>
164
+
159
165
<template v-else-if =" column === ' expand' " >
160
166
<i
161
167
class =" expand-icon"
Original file line number Diff line number Diff line change 89
89
</div >
90
90
</template >
91
91
92
- <template #header =" header " >
93
- {{ header.text.toLocaleLowerCase() }}
92
+ <template #item-general =" item " >
93
+ <div style =" padding : 15px " >
94
+ {{ item }} camelCase
95
+ </div >
94
96
</template >
95
97
96
- <template #item-lastAttended =" item " >
98
+ <!-- < template #item-lastAttended="item">
97
99
<div style="padding: 15px">
98
100
{{ item.lastAttended }} camelCase
99
101
</div>
107
109
108
110
<template #body.append>
109
111
<span>body.append</span>
110
- </template >
112
+ </template> -->
111
113
</DataTable >
112
114
</div >
113
115
</template >
You can’t perform that action at this time.
0 commit comments