fix(components): declare ui prop with PartialString when arrays in theme slots

This commit is contained in:
Benjamin Canac
2024-07-02 15:02:29 +02:00
parent 52146dc260
commit 5cc4457a74
8 changed files with 18 additions and 12 deletions

View File

@@ -5,7 +5,7 @@ import type { AppConfig } from '@nuxt/schema'
import _appConfig from '#build/app.config'
import theme from '#build/ui/tabs'
import type { AvatarProps } from '../types'
import type { DynamicSlots } from '../types/utils'
import type { DynamicSlots, PartialString } from '../types/utils'
const appConfig = _appConfig as AppConfig & { ui: { tabs: Partial<typeof theme> } }
@@ -42,7 +42,7 @@ export interface TabsProps<T> extends Pick<TabsRootProps, 'defaultValue' | 'mode
*/
content?: boolean | Omit<TabsContentProps, 'as' | 'asChild' | 'value'>
class?: any
ui?: Partial<typeof tabs.slots>
ui?: PartialString<typeof tabs.slots>
}
export interface TabsEmits extends TabsRootEmits {}