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;
|
||||
}>();
|
||||
defineProps<{
|
||||
icon: string;
|
||||
icon?: string;
|
||||
color: string;
|
||||
iconOnly?: boolean;
|
||||
solid?: boolean;
|
||||
|
|
@ -30,7 +30,7 @@ defineProps<{
|
|||
type="button"
|
||||
>
|
||||
<slot name="icon">
|
||||
<Icon :icon class="main-btn-icon" />
|
||||
<Icon :icon="icon || ''" class="main-btn-icon" />
|
||||
</slot>
|
||||
<slot v-if="!iconOnly" />
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue