Chamilo is a learning management system focused on ease of use and accessibility
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.
 
 
 
 
 
 
chamilo-lms/assets/vue/components/basecomponents/BaseCard.vue

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>