mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 08:50:34 +01:00
chore(components): random TS errors
This commit is contained in:
@@ -39,7 +39,7 @@ export interface ToastProps extends Pick<ToastRootProps, 'defaultOpen' | 'open'
|
||||
* `{ size: 'md', color: 'neutral', variant: 'link' }`{lang="ts-type"}
|
||||
* @defaultValue true
|
||||
*/
|
||||
close?: ButtonProps | boolean
|
||||
close?: boolean | Partial<ButtonProps>
|
||||
/**
|
||||
* The icon displayed in the close button.
|
||||
* @defaultValue appConfig.ui.icons.close
|
||||
@@ -169,7 +169,7 @@ defineExpose({
|
||||
color="neutral"
|
||||
variant="link"
|
||||
:aria-label="t('toast.close')"
|
||||
v-bind="typeof close === 'object' ? close : undefined"
|
||||
v-bind="(typeof close === 'object' ? close as Partial<ButtonProps> : {})"
|
||||
:class="ui.close({ class: props.ui?.close })"
|
||||
@click.stop
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user