adminforth 2.4.0-next.302 → 2.4.0-next.304
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.
|
@@ -131,8 +131,11 @@ watch(() => props.modelValue, (files) => {
|
|
|
131
131
|
mime: file.type,
|
|
132
132
|
}));
|
|
133
133
|
storedFiles.value = Array.from(files);
|
|
134
|
+
} else {
|
|
135
|
+
selectedFiles.value = [];
|
|
136
|
+
storedFiles.value = [];
|
|
134
137
|
}
|
|
135
|
-
});
|
|
138
|
+
}, { immediate: true });
|
|
136
139
|
|
|
137
140
|
function doEmit(filesIn: FileList) {
|
|
138
141
|
|
|
@@ -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>
|