fix: creating, updating

This commit is contained in:
opbnq-q
2025-03-07 07:16:20 -08:00
parent 96b814d54a
commit 4ec5fd2d0c
115 changed files with 11543 additions and 153 deletions

View File

@@ -0,0 +1,38 @@
<script setup lang="ts">
import Table from '../table/Table.vue'
import { onMounted, reactive } from 'vue'
import { getDefaultValues } from '../utils/structs/defaults.util'
import S from './author.service.ts'
import type { Scheme } from '../types/scheme.type'
import { Author } from '../../bindings/app/internal/services/models.ts'
const service = new S
onMounted(async () => {
})
const scheme: Scheme<Author> = reactive({
Id:{
type: {
primitive: "number",
},
},
Name:{
type: {
primitive: "string",
},
},
})
const getDefaults = () => getDefaultValues(scheme)
</script>
<template>
<main class="w-screen h-screen">
<Table :scheme :service :getDefaults></Table>
</main>
</template>