Refonte inventaire et objets #236
1 changed files with 24 additions and 0 deletions
24
src/views/ObjetsView.vue
Normal file
24
src/views/ObjetsView.vue
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
import DynTable from "@/components/tableaux/DynTable.vue";
|
||||||
|
import { useConfigStore } from "@/stores/config";
|
||||||
|
import { onMounted } from "vue";
|
||||||
|
import { useRoute } from "vue-router";
|
||||||
|
import MarkdownFile from "../components/MarkdownFile.vue";
|
||||||
|
import { objectFields } from "@/data/fields";
|
||||||
|
|
||||||
|
const store = useConfigStore();
|
||||||
|
const route = useRoute();
|
||||||
|
const objectTest = ["base", "potions"];
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
store.loadJdr(`${route.params.jdr}`);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<main>
|
||||||
|
<MarkdownFile :path="`rules/inventaire/objets`">
|
||||||
|
<DynTable :fields="objectFields" :files="objectTest" />
|
||||||
|
</MarkdownFile>
|
||||||
|
</main>
|
||||||
|
</template>
|
Loading…
Reference in a new issue