adminforth 2.4.0-next.301 → 2.4.0-next.303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -222,6 +222,11 @@ async function writeTemplateFiles(dirname, cwd, options) {
|
|
|
222
222
|
data: { provider },
|
|
223
223
|
condition: Boolean(prismaDbUrl), // only create if prismaDbUrl is truthy
|
|
224
224
|
},
|
|
225
|
+
{
|
|
226
|
+
src: 'prisma.config.ts.hbs',
|
|
227
|
+
dest: 'prisma.config.ts',
|
|
228
|
+
data: {},
|
|
229
|
+
},
|
|
225
230
|
{
|
|
226
231
|
src: 'package.json.hbs',
|
|
227
232
|
dest: 'package.json',
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
'afcl-table-body odd:bg-lightTableOddBackground odd:dark:bg-darkTableOddBackground even:bg-lightTableEvenBackground even:dark:bg-darkTableEvenBackground': evenHighlights,
|
|
58
58
|
'border-b border-lightTableBorder dark:border-darkTableBorder': index !== dataPage.length - 1 || totalPages > 1,
|
|
59
59
|
}"
|
|
60
|
+
@click="tableRowClick(item)"
|
|
60
61
|
>
|
|
61
62
|
<td class="px-6 py-4" :key="`cell-${index}-${column.fieldName}`"
|
|
62
63
|
v-for="column in props.columns"
|
|
@@ -242,6 +243,7 @@
|
|
|
242
243
|
'update:sortField',
|
|
243
244
|
'update:sortDirection',
|
|
244
245
|
'sort-change',
|
|
246
|
+
'clickTableRow'
|
|
245
247
|
]);
|
|
246
248
|
|
|
247
249
|
function onPageInput(event: any) {
|
|
@@ -349,4 +351,8 @@ function sortArrayData(data:any[], sortField?:string, dir:'asc'|'desc'='asc') {
|
|
|
349
351
|
return dir === 'asc' ? cmp : -cmp;
|
|
350
352
|
});
|
|
351
353
|
}
|
|
354
|
+
|
|
355
|
+
function tableRowClick(row) {
|
|
356
|
+
emit("clickTableRow", row)
|
|
357
|
+
}
|
|
352
358
|
</script>
|