mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 11:47:55 +01:00
chore(types): remove partials
This commit is contained in:
@@ -109,7 +109,7 @@ export default defineComponent({
|
|||||||
default: () => ({})
|
default: () => ({})
|
||||||
},
|
},
|
||||||
sortButton: {
|
sortButton: {
|
||||||
type: Object as PropType<Partial<Button>>,
|
type: Object as PropType<Button>,
|
||||||
default: () => appConfig.ui.table.default.sortButton
|
default: () => appConfig.ui.table.default.sortButton
|
||||||
},
|
},
|
||||||
sortAscIcon: {
|
sortAscIcon: {
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export default defineComponent({
|
|||||||
default: () => appConfig.ui.commandPalette.default.selectedIcon
|
default: () => appConfig.ui.commandPalette.default.selectedIcon
|
||||||
},
|
},
|
||||||
closeButton: {
|
closeButton: {
|
||||||
type: Object as PropType<Partial<Button>>,
|
type: Object as PropType<Button>,
|
||||||
default: () => appConfig.ui.commandPalette.default.closeButton
|
default: () => appConfig.ui.commandPalette.default.closeButton
|
||||||
},
|
},
|
||||||
emptyState: {
|
emptyState: {
|
||||||
|
|||||||
@@ -82,19 +82,19 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
activeButton: {
|
activeButton: {
|
||||||
type: Object as PropType<Partial<Button>>,
|
type: Object as PropType<Button>,
|
||||||
default: () => appConfig.ui.pagination.default.activeButton
|
default: () => appConfig.ui.pagination.default.activeButton
|
||||||
},
|
},
|
||||||
inactiveButton: {
|
inactiveButton: {
|
||||||
type: Object as PropType<Partial<Button>>,
|
type: Object as PropType<Button>,
|
||||||
default: () => appConfig.ui.pagination.default.inactiveButton
|
default: () => appConfig.ui.pagination.default.inactiveButton
|
||||||
},
|
},
|
||||||
prevButton: {
|
prevButton: {
|
||||||
type: Object as PropType<Partial<Button>>,
|
type: Object as PropType<Button>,
|
||||||
default: () => appConfig.ui.pagination.default.prevButton
|
default: () => appConfig.ui.pagination.default.prevButton
|
||||||
},
|
},
|
||||||
nextButton: {
|
nextButton: {
|
||||||
type: Object as PropType<Partial<Button>>,
|
type: Object as PropType<Button>,
|
||||||
default: () => appConfig.ui.pagination.default.nextButton
|
default: () => appConfig.ui.pagination.default.nextButton
|
||||||
},
|
},
|
||||||
divider: {
|
divider: {
|
||||||
|
|||||||
@@ -81,11 +81,11 @@ export default defineComponent({
|
|||||||
default: () => appConfig.ui.notification.default.icon
|
default: () => appConfig.ui.notification.default.icon
|
||||||
},
|
},
|
||||||
avatar: {
|
avatar: {
|
||||||
type: Object as PropType<Partial<Avatar>>,
|
type: Object as PropType<Avatar>,
|
||||||
default: null
|
default: null
|
||||||
},
|
},
|
||||||
closeButton: {
|
closeButton: {
|
||||||
type: Object as PropType<Partial<Button>>,
|
type: Object as PropType<Button>,
|
||||||
default: () => appConfig.ui.notification.default.closeButton
|
default: () => appConfig.ui.notification.default.closeButton
|
||||||
},
|
},
|
||||||
timeout: {
|
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'
|
import type { Button } from './button'
|
||||||
|
|
||||||
export interface AccordionItem extends Partial<Button> {
|
export interface AccordionItem extends Button {
|
||||||
slot?: string
|
slot?: string
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
content?: string
|
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 {
|
export interface Avatar {
|
||||||
src: string | boolean
|
src?: string | boolean
|
||||||
alt: string
|
alt?: string
|
||||||
text: string
|
text:? string
|
||||||
size: string
|
size?: string
|
||||||
chipColor: string
|
chipColor?: string
|
||||||
chipVariant: string
|
chipVariant?: string
|
||||||
chipPosition: 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 {
|
export interface Button {
|
||||||
type: string
|
type?: string
|
||||||
block: boolean
|
block?: boolean
|
||||||
label: string
|
label?: string
|
||||||
loading: boolean
|
loading?: boolean
|
||||||
disabled: boolean
|
disabled?: boolean
|
||||||
size: string
|
size?: string
|
||||||
color: string
|
color?: string
|
||||||
variant: string
|
variant?: string
|
||||||
icon: string
|
icon?: string
|
||||||
leadingIcon: string
|
leadingIcon?: string
|
||||||
trailingIcon: string
|
trailingIcon?: string
|
||||||
trailing: boolean
|
trailing?: boolean
|
||||||
to: string | object
|
to?: string | object
|
||||||
target: string
|
target?: string
|
||||||
square: boolean
|
square?: boolean
|
||||||
truncate: 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
|
suffix?: string
|
||||||
icon?: string
|
icon?: string
|
||||||
iconClass?: string
|
iconClass?: string
|
||||||
avatar?: Partial<Avatar>
|
avatar?: Avatar
|
||||||
chip?: string
|
chip?: string
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
shortcuts?: string[]
|
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
|
slot?: string
|
||||||
icon?: string
|
icon?: string
|
||||||
iconClass?: string
|
iconClass?: string
|
||||||
avatar?: Partial<Avatar>
|
avatar?: Avatar
|
||||||
shortcuts?: string[]
|
shortcuts?: string[]
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
click?: Function
|
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 type { Button } from './button'
|
||||||
import appConfig from '#build/app.config'
|
import appConfig from '#build/app.config'
|
||||||
|
|
||||||
export interface NotificationAction extends Partial<Button> {
|
export interface NotificationAction extends Button {
|
||||||
click?: Function
|
click?: Function
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Notification {
|
export interface Notification {
|
||||||
id: string
|
id: string
|
||||||
title: string
|
title: string
|
||||||
description: string
|
description?: string
|
||||||
icon?: string
|
icon?: string
|
||||||
avatar?: Partial<Avatar>
|
avatar?: Avatar
|
||||||
closeButton?: Partial<Button>
|
closeButton?: Button
|
||||||
timeout: number
|
timeout: number
|
||||||
actions?: NotificationAction[]
|
actions?: NotificationAction[]
|
||||||
click?: Function
|
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
|
label: string
|
||||||
icon?: string
|
icon?: string
|
||||||
iconClass?: string
|
iconClass?: string
|
||||||
avatar?: Partial<Avatar>
|
avatar?: Avatar
|
||||||
click?: Function
|
click?: Function
|
||||||
badge?: string | number
|
badge?: string | number
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user