fix: main btn & select input component props, etc
This commit is contained in:
parent
20254a41e4
commit
06a6bae2ca
2 changed files with 7 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ defineEmits<{
|
||||||
(e: 'click', v: MouseEvent): void;
|
(e: 'click', v: MouseEvent): void;
|
||||||
}>();
|
}>();
|
||||||
defineProps<{
|
defineProps<{
|
||||||
icon: string;
|
icon?: string;
|
||||||
color: string;
|
color: string;
|
||||||
iconOnly?: boolean;
|
iconOnly?: boolean;
|
||||||
solid?: boolean;
|
solid?: boolean;
|
||||||
|
|
@ -30,7 +30,7 @@ defineProps<{
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<slot name="icon">
|
<slot name="icon">
|
||||||
<Icon :icon class="main-btn-icon" />
|
<Icon :icon="icon || ''" class="main-btn-icon" />
|
||||||
</slot>
|
</slot>
|
||||||
<slot v-if="!iconOnly" />
|
<slot v-if="!iconOnly" />
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { onMounted, ref, watch } from 'vue';
|
||||||
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
import { selectFilterOptionRefMod } from 'src/stores/utils';
|
||||||
import { QSelect } from 'quasar';
|
import { QSelect } from 'quasar';
|
||||||
|
|
||||||
const model = defineModel<string | null>();
|
const model = defineModel<string | Record<string, unknown> | null>();
|
||||||
|
|
||||||
const options = ref<Record<string, unknown>[]>([]);
|
const options = ref<Record<string, unknown>[]>([]);
|
||||||
let defaultFilter: (
|
let defaultFilter: (
|
||||||
|
|
@ -91,6 +91,10 @@ watch(
|
||||||
"
|
"
|
||||||
:rules
|
:rules
|
||||||
>
|
>
|
||||||
|
<template v-if="$slots.prepend" v-slot:prepend>
|
||||||
|
<slot name="prepend"></slot>
|
||||||
|
</template>
|
||||||
|
|
||||||
<template v-slot:no-option>
|
<template v-slot:no-option>
|
||||||
<slot name="noOption"></slot>
|
<slot name="noOption"></slot>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue