41 lines
753 B
Vue
41 lines
753 B
Vue
<script setup lang="ts">
|
|
import Table from '../table/Table.vue'
|
|
import { onMounted, reactive } from 'vue'
|
|
import { getDefaultValues } from '../utils/structs/defaults.util.ts'
|
|
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:{
|
|
hidden: true,
|
|
type: {
|
|
primitive: "number",
|
|
},
|
|
},
|
|
Name:{
|
|
russian: "Имя",
|
|
type: {
|
|
primitive: "string",
|
|
},
|
|
},
|
|
|
|
})
|
|
|
|
const getDefaults = () => getDefaultValues(scheme)
|
|
|
|
</script>
|
|
|
|
<template>
|
|
<main class="w-screen h-screen">
|
|
<Table :scheme :service :getDefaults></Table>
|
|
</main>
|
|
</template>
|