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

@ -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;
}>(),
{