mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-18 05:58:07 +01:00
chore(types): remove partials
This commit is contained in:
@@ -109,7 +109,7 @@ export default defineComponent({
|
||||
default: () => ({})
|
||||
},
|
||||
sortButton: {
|
||||
type: Object as PropType<Partial<Button>>,
|
||||
type: Object as PropType<Button>,
|
||||
default: () => appConfig.ui.table.default.sortButton
|
||||
},
|
||||
sortAscIcon: {
|
||||
|
||||
@@ -138,7 +138,7 @@ export default defineComponent({
|
||||
default: () => appConfig.ui.commandPalette.default.selectedIcon
|
||||
},
|
||||
closeButton: {
|
||||
type: Object as PropType<Partial<Button>>,
|
||||
type: Object as PropType<Button>,
|
||||
default: () => appConfig.ui.commandPalette.default.closeButton
|
||||
},
|
||||
emptyState: {
|
||||
|
||||
@@ -82,19 +82,19 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
activeButton: {
|
||||
type: Object as PropType<Partial<Button>>,
|
||||
type: Object as PropType<Button>,
|
||||
default: () => appConfig.ui.pagination.default.activeButton
|
||||
},
|
||||
inactiveButton: {
|
||||
type: Object as PropType<Partial<Button>>,
|
||||
type: Object as PropType<Button>,
|
||||
default: () => appConfig.ui.pagination.default.inactiveButton
|
||||
},
|
||||
prevButton: {
|
||||
type: Object as PropType<Partial<Button>>,
|
||||
type: Object as PropType<Button>,
|
||||
default: () => appConfig.ui.pagination.default.prevButton
|
||||
},
|
||||
nextButton: {
|
||||
type: Object as PropType<Partial<Button>>,
|
||||
type: Object as PropType<Button>,
|
||||
default: () => appConfig.ui.pagination.default.nextButton
|
||||
},
|
||||
divider: {
|
||||
|
||||
@@ -81,11 +81,11 @@ export default defineComponent({
|
||||
default: () => appConfig.ui.notification.default.icon
|
||||
},
|
||||
avatar: {
|
||||
type: Object as PropType<Partial<Avatar>>,
|
||||
type: Object as PropType<Avatar>,
|
||||
default: null
|
||||
},
|
||||
closeButton: {
|
||||
type: Object as PropType<Partial<Button>>,
|
||||
type: Object as PropType<Button>,
|
||||
default: () => appConfig.ui.notification.default.closeButton
|
||||
},
|
||||
timeout: {
|
||||
|
||||
2
src/runtime/types/accordion.d.ts
vendored
2
src/runtime/types/accordion.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
import type { Button } from './button'
|
||||
|
||||
export interface AccordionItem extends Partial<Button> {
|
||||
export interface AccordionItem extends Button {
|
||||
slot?: string
|
||||
disabled?: boolean
|
||||
content?: string
|
||||
|
||||
14
src/runtime/types/avatar.d.ts
vendored
14
src/runtime/types/avatar.d.ts
vendored
@@ -1,9 +1,9 @@
|
||||
export interface Avatar {
|
||||
src: string | boolean
|
||||
alt: string
|
||||
text: string
|
||||
size: string
|
||||
chipColor: string
|
||||
chipVariant: string
|
||||
chipPosition: string
|
||||
src?: string | boolean
|
||||
alt?: string
|
||||
text:? string
|
||||
size?: string
|
||||
chipColor?: string
|
||||
chipVariant?: string
|
||||
chipPosition?: string
|
||||
}
|
||||
|
||||
32
src/runtime/types/button.d.ts
vendored
32
src/runtime/types/button.d.ts
vendored
@@ -1,18 +1,18 @@
|
||||
export interface Button {
|
||||
type: string
|
||||
block: boolean
|
||||
label: string
|
||||
loading: boolean
|
||||
disabled: boolean
|
||||
size: string
|
||||
color: string
|
||||
variant: string
|
||||
icon: string
|
||||
leadingIcon: string
|
||||
trailingIcon: string
|
||||
trailing: boolean
|
||||
to: string | object
|
||||
target: string
|
||||
square: boolean
|
||||
truncate: boolean
|
||||
type?: string
|
||||
block?: boolean
|
||||
label?: string
|
||||
loading?: boolean
|
||||
disabled?: boolean
|
||||
size?: string
|
||||
color?: string
|
||||
variant?: string
|
||||
icon?: string
|
||||
leadingIcon?: string
|
||||
trailingIcon?: string
|
||||
trailing?: boolean
|
||||
to?: string | object
|
||||
target?: string
|
||||
square?: boolean
|
||||
truncate?: boolean
|
||||
}
|
||||
|
||||
2
src/runtime/types/command-palette.d.ts
vendored
2
src/runtime/types/command-palette.d.ts
vendored
@@ -7,7 +7,7 @@ export interface Command {
|
||||
suffix?: string
|
||||
icon?: string
|
||||
iconClass?: string
|
||||
avatar?: Partial<Avatar>
|
||||
avatar?: Avatar
|
||||
chip?: string
|
||||
disabled?: boolean
|
||||
shortcuts?: string[]
|
||||
|
||||
2
src/runtime/types/dropdown.d.ts
vendored
2
src/runtime/types/dropdown.d.ts
vendored
@@ -6,7 +6,7 @@ export interface DropdownItem extends NuxtLinkProps {
|
||||
slot?: string
|
||||
icon?: string
|
||||
iconClass?: string
|
||||
avatar?: Partial<Avatar>
|
||||
avatar?: Avatar
|
||||
shortcuts?: string[]
|
||||
disabled?: boolean
|
||||
click?: Function
|
||||
|
||||
8
src/runtime/types/notification.d.ts
vendored
8
src/runtime/types/notification.d.ts
vendored
@@ -2,17 +2,17 @@ import type { Avatar } from './avatar'
|
||||
import type { Button } from './button'
|
||||
import appConfig from '#build/app.config'
|
||||
|
||||
export interface NotificationAction extends Partial<Button> {
|
||||
export interface NotificationAction extends Button {
|
||||
click?: Function
|
||||
}
|
||||
|
||||
export interface Notification {
|
||||
id: string
|
||||
title: string
|
||||
description: string
|
||||
description?: string
|
||||
icon?: string
|
||||
avatar?: Partial<Avatar>
|
||||
closeButton?: Partial<Button>
|
||||
avatar?: Avatar
|
||||
closeButton?: Button
|
||||
timeout: number
|
||||
actions?: NotificationAction[]
|
||||
click?: Function
|
||||
|
||||
2
src/runtime/types/vertical-navigation.d.ts
vendored
2
src/runtime/types/vertical-navigation.d.ts
vendored
@@ -5,7 +5,7 @@ export interface VerticalNavigationLink extends NuxtLinkProps {
|
||||
label: string
|
||||
icon?: string
|
||||
iconClass?: string
|
||||
avatar?: Partial<Avatar>
|
||||
avatar?: Avatar
|
||||
click?: Function
|
||||
badge?: string | number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user