refactor(05): component (quo card, date picker, select zone)

This commit is contained in:
puriphatt 2024-09-24 11:25:39 +07:00
parent 2fd669b573
commit 270deacba7
4 changed files with 29 additions and 5 deletions

View file

@ -91,7 +91,7 @@ defineEmits<{
<section class="row q-py-sm">
<div class="col-3 app-text-muted">{{ $t('quotation.customerName') }}</div>
<div class="col-9">{{ customerName || '-' }}</div>
<div class="col-3 app-text-muted">{{ $t('quotation.reporter') }}</div>
<div class="col-3 app-text-muted">{{ $t('quotation.actor') }}</div>
<div class="col-9">{{ reporter || '-' }}</div>
</section>
<q-separator />

View file

@ -11,6 +11,7 @@ const props = defineProps<{
readonly?: boolean;
clearable?: boolean;
label?: string;
bgColor?: string;
rules?: ((value: string) => string | true)[];
disabledDates?: string[] | Date[] | ((date: Date) => boolean);
}>();
@ -79,6 +80,7 @@ function valueUpdate(value: string) {
hide-bottom-space
dense
outlined
:bg-color="bgColor"
:rules
:label
:for="id"

View file

@ -4,7 +4,8 @@ const selectedItem = defineModel<unknown[]>('selectedItem', { default: [] });
const props = withDefaults(
defineProps<{
items: unknown[];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
items: any;
color?: string;
}>(),
{