mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-17 02:04:03 +00:00
Add missing base components and global alias registrations
Create BaseCustomTag (dynamic tag render), BaseFormatMoney, BaseHeading, BaseScrollPane, BaseDescriptionList/Item, BaseLabel, BaseCustomerSelectInput, BaseSpinner, BaseRating, and status label components. Register all renamed v2 components under their old Base* names (BaseInputGroup->FormGroup, BasePage->Page, BaseTable->DataTable, etc.) so templates resolve correctly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
22
resources/scripts-v2/components/base/BaseHeading.vue
Normal file
22
resources/scripts-v2/components/base/BaseHeading.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
|
||||
interface Props {
|
||||
type?: 'section-title' | 'heading-title'
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
type: 'section-title',
|
||||
})
|
||||
|
||||
const typeClass = computed<Record<string, boolean>>(() => ({
|
||||
'text-heading text-lg font-medium': props.type === 'heading-title',
|
||||
'text-muted uppercase text-base': props.type === 'section-title',
|
||||
}))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<h6 :class="typeClass">
|
||||
<slot />
|
||||
</h6>
|
||||
</template>
|
||||
Reference in New Issue
Block a user