updating some components and configs

This commit is contained in:
2022-05-04 13:00:55 -06:00
parent bac487e447
commit de53c3c882
6 changed files with 321 additions and 290 deletions

View File

@@ -1,3 +1,28 @@
<script setup>
import { ref } from 'vue'
defineEmits([])
const attrs = useAttrs()
const props = defineProps({
class: {
type: String,
default: '',
},
})
// computed properties
const hasHeader = computed(() => !! useSlots().header);
// watchers
// lifecycle hooks
// methods
</script>
<template>
<div class="card" :class="class">
<div class="card-header" v-if="hasHeader">
@@ -8,26 +33,3 @@
</div>
</div>
</template>
<script>
import { defineComponent, ref } from 'vue'
export default defineComponent({
props: {
class: {
type: String,
default: '',
},
},
setup(props, {slots}) {
const hasHeader = ref(false)
if (slots.header && slots.header().length) {
hasHeader.value = true
}
return { hasHeader }
},
})
</script>

View File

@@ -239,6 +239,7 @@ import { Head, Link } from '@inertiajs/inertia-vue3'
import SuccessNotifications from '@/Components/Notifications/SuccessNotifications.vue'
import ErrorNotifications from '@/Components/Notifications/ErrorNotifications.vue'
import GenericNotifications from '@/Components/Notifications/GenericNotifications.vue'
import WarningNotifications from '@/Components/Notifications/WarningNotifications.vue'
import ApplicationMark from '@/Jetstream/ApplicationMark.vue'
import ResponsiveNavLink from '@/Components/ResponsiveNavLink.vue'
import SidenavLink from '@/Components/SidenavLink.vue'
@@ -257,6 +258,7 @@ export default defineComponent({
SuccessNotifications,
ErrorNotifications,
GenericNotifications,
WarningNotifications,
ApplicationMark,
ResponsiveNavLink,
SidenavLink,