feat(Toast): handle vnodes in title and description

Resolves #3226
This commit is contained in:
Benjamin Canac
2025-02-05 15:32:20 +01:00
parent d94b304d0c
commit abd2be1aa6
2 changed files with 18 additions and 4 deletions

View File

@@ -33,3 +33,8 @@ export type SelectItemKey<T> = T extends Record<string, any> ? keyof T : string
export type SelectModelValueEmits<T, V, M extends boolean = false, DV = T> = {
'update:modelValue': [payload: SelectModelValue<T, V, M, DV>]
}
export type StringOrVNode =
| string
| VNode
| (() => VNode)