mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
GroupExportData Component
This commit is contained in:
parent
bd0aed06ce
commit
0a7368857d
1 changed files with 21 additions and 33 deletions
|
@ -20,18 +20,14 @@
|
||||||
</v-data-table>
|
</v-data-table>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script setup lang="ts">
|
||||||
import { parseISO, formatDistanceToNow } from "date-fns";
|
import { parseISO, formatDistanceToNow } from "date-fns";
|
||||||
import type { GroupDataExport } from "~/lib/api/types/group";
|
import type { GroupDataExport } from "~/lib/api/types/group";
|
||||||
|
|
||||||
export default defineNuxtComponent({
|
defineProps<{
|
||||||
props: {
|
exports: GroupDataExport[];
|
||||||
exports: {
|
}>();
|
||||||
type: Array as () => GroupDataExport[],
|
|
||||||
required: true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
setup() {
|
|
||||||
const i18n = useI18n();
|
const i18n = useI18n();
|
||||||
|
|
||||||
const headers = [
|
const headers = [
|
||||||
|
@ -53,12 +49,4 @@ export default defineNuxtComponent({
|
||||||
function downloadData(_: any) {
|
function downloadData(_: any) {
|
||||||
console.log("Downloading data...");
|
console.log("Downloading data...");
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
|
||||||
downloadData,
|
|
||||||
headers,
|
|
||||||
getTimeToExpire,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue