mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 23:40:39 +01:00
fix(components): declare ui prop with PartialString when arrays in theme slots
This commit is contained in:
@@ -5,6 +5,7 @@ import _appConfig from '#build/app.config'
|
||||
import theme from '#build/ui/button'
|
||||
import type { LinkProps } from './Link.vue'
|
||||
import type { UseComponentIconsProps } from '../composables/useComponentIcons'
|
||||
import type { PartialString } from '../types/utils'
|
||||
|
||||
const appConfig = _appConfig as AppConfig & { ui: { button: Partial<typeof theme> } }
|
||||
|
||||
@@ -22,7 +23,7 @@ export interface ButtonProps extends UseComponentIconsProps, Omit<LinkProps, 'ra
|
||||
/** Render the button full width. */
|
||||
block?: boolean
|
||||
class?: any
|
||||
ui?: Partial<typeof button.slots>
|
||||
ui?: PartialString<typeof button.slots>
|
||||
}
|
||||
|
||||
export interface ButtonSlots {
|
||||
|
||||
Reference in New Issue
Block a user