You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
555 B
32 lines
555 B
<template>
|
|
<Card
|
|
:class="customClass"
|
|
>
|
|
<template #header>
|
|
<slot name="header"></slot>
|
|
</template>
|
|
<template #content>
|
|
<slot></slot>
|
|
</template>
|
|
</Card>
|
|
</template>
|
|
|
|
<script setup>
|
|
import Card from 'primevue/card'
|
|
import {computed} from "vue"
|
|
|
|
const props = defineProps({
|
|
plain: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
})
|
|
|
|
const customClass = computed(() => {
|
|
let resultClass = ''
|
|
if (props.plain) {
|
|
resultClass += 'bg-gray-15 border border-gray-25 shadow-none '
|
|
}
|
|
return resultClass
|
|
})
|
|
</script>
|
|
|