You've already forked isop-mirror
feat: add basic PageCard component
This commit is contained in:
@@ -1,9 +1,38 @@
|
||||
<script setup lang="ts"></script>
|
||||
<script setup lang="ts">
|
||||
function basicPropValidator(value: string, _other_props: any) {
|
||||
// zatiaľ stačí vedieť či obsah nie je prázdny reťazec
|
||||
return value.trim().length > 0
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
Component: PageCard
|
||||
</div>
|
||||
<v-card variant="outlined" :width="300" class="d-flex flex-column" style="margin: 20px; cursor: pointer" link
|
||||
:to="link">
|
||||
<v-card-title class="text-wrap"><strong>{{ title }}</strong></v-card-title>
|
||||
<v-card-text>
|
||||
{{ description }}
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
<script lang="ts">
|
||||
export default {
|
||||
props: {
|
||||
title: {
|
||||
required: true,
|
||||
type: String,
|
||||
validator: basicPropValidator
|
||||
},
|
||||
description: {
|
||||
required: true,
|
||||
type: String,
|
||||
validator: basicPropValidator
|
||||
},
|
||||
link: {
|
||||
required: true,
|
||||
type: String,
|
||||
validator: basicPropValidator
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user