| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <!--
- Container de type Card
- -->
- <template>
- <v-card
- elevation="2"
- outlined
- shaped
- min-height="200"
- >
- <v-card-title>
- <slot name="card.title" />
- </v-card-title>
- <v-card-text>
- <slot name="card.text" />
- </v-card-text>
- <v-card-actions>
- <v-spacer />
- <v-btn icon>
- <NuxtLink :to="link" class="no-decoration">
- <v-icon>mdi-pencil</v-icon>
- </NuxtLink>
- </v-btn>
- <UiButtonDelete :delete-args="args" />
- <slot name="card.action" />
- </v-card-actions>
- </v-card>
- </template>
- <script lang="ts">
- import { defineComponent } from '@nuxtjs/composition-api'
- import { QUERY_TYPE } from '~/types/enums'
- import { DataDeleterArgs } from '~/types/interfaces'
- export default defineComponent({
- props: {
- link: {
- type: String,
- required: true
- },
- model: {
- type: Function,
- required: true
- },
- id: {
- type: Number,
- required: true
- }
- },
- setup (props) {
- const args: DataDeleterArgs = {
- type: QUERY_TYPE.MODEL,
- model: props.model,
- id: props.id
- }
- return {
- args
- }
- }
- })
- </script>
- <style scoped>
- </style>
|