generate frontend
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import AuthorScheme from "./author/AuthorScheme.vue";
|
|
||||||
import { Dialog } from 'primevue';
|
import { Dialog } from 'primevue';
|
||||||
import { useErrorStore } from './stores/error.store';
|
import { useErrorStore } from './stores/error.store';
|
||||||
|
|
||||||
@@ -14,6 +13,6 @@ const errorStore = useErrorStore()
|
|||||||
<h1 class="text-red-500 text-2xl">{{ errorStore.message }}</h1>
|
<h1 class="text-red-500 text-2xl">{{ errorStore.message }}</h1>
|
||||||
</Dialog>
|
</Dialog>
|
||||||
<main class="w-screen h-screen">
|
<main class="w-screen h-screen">
|
||||||
<AuthorScheme></AuthorScheme>
|
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -83,6 +83,6 @@ const validate: Validate<Author> = (entity) => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<main class="w-screen h-screen">
|
<main class="w-screen h-screen">
|
||||||
<Table :scheme :service :get-defaults :load :items :validate></Table>
|
<Table name="Author" :scheme :service :get-defaults :load :items :validate></Table>
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -31,8 +31,8 @@ const setNullIds = () => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="relative">
|
<div class="">
|
||||||
<ul class="absolute max-h-48 h-auto overflow-y-auto background rounded-md p-3 w-full border-gray-500 border">
|
<ul class="max-h-48 h-auto overflow-y-auto background rounded-md p-3 w-full border-gray-500 border">
|
||||||
<li v-for="option in options" :key="option.Id" class="flex items-center gap-2">
|
<li v-for="option in options" :key="option.Id" class="flex items-center gap-2">
|
||||||
<Checkbox :checked="selected.some(item => item.Id == option.Id)" @click="pushOrRemove(option)" />
|
<Checkbox :checked="selected.some(item => item.Id == option.Id)" @click="pushOrRemove(option)" />
|
||||||
<label :for="option.Id.toString()">{{ structView(option, path) }}</label>
|
<label :for="option.Id.toString()">{{ structView(option, path) }}</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user