but disabled
This commit is contained in:
parent
33c32ce124
commit
d7c2a3067e
@ -1,13 +1,14 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import type { TColor } from '../colors'
|
import type { TColor } from '../colors'
|
||||||
import type { TUiIcon } from '../icons'
|
import type { TIcon } from '../icons'
|
||||||
|
|
||||||
export type TUiBtnProps = {
|
export type TUiBtnProps = {
|
||||||
label?: string
|
label?: string
|
||||||
type?: 'button' | 'submit'
|
type?: 'button' | 'submit'
|
||||||
color?: TColor
|
color?: TColor
|
||||||
icon?: TUiIcon
|
icon?: TIcon
|
||||||
to?: string
|
to?: string
|
||||||
|
disabled?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export type TUiBtnEmits = {
|
export type TUiBtnEmits = {
|
||||||
@ -47,6 +48,7 @@ const cssClass = computed(() => {
|
|||||||
:type="props.type"
|
:type="props.type"
|
||||||
@click="clickHandler"
|
@click="clickHandler"
|
||||||
:class="cssClass"
|
:class="cssClass"
|
||||||
|
:disabled="props.disabled"
|
||||||
>
|
>
|
||||||
<ui-icon v-if="props.icon" :name="props.icon" />
|
<ui-icon v-if="props.icon" :name="props.icon" />
|
||||||
<div v-if="props.label" class="label">{{ props.label }}</div>
|
<div v-if="props.label" class="label">{{ props.label }}</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user