Skip to content

Commit 1309171

Browse files
authored
Merge pull request #406 from kwiksilver3441/setup
Adding component type interfaces, props, emits,etc
2 parents 793e800 + 125f440 commit 1309171

File tree

91 files changed

+1398
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+1398
-0
lines changed

src/types/components/BAccordion.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Props
2+
export interface Props {
3+
flush?: boolean
4+
free?: boolean
5+
id: string | undefined
6+
}
7+
// Emits
8+
9+
// Other
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Props
2+
export interface Props {
3+
id: string
4+
title: string
5+
visible?: boolean
6+
}
7+
// Emits
8+
9+
// Other

src/types/components/BAlert.d.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Props
2+
export interface Props {
3+
dismissLabel?: string
4+
dismissible?: boolean
5+
fade?: boolean
6+
modelValue?: boolean | number
7+
show?: boolean
8+
variant?: ColorVariant
9+
}
10+
// Emits
11+
export interface Emits {
12+
(e: 'dismissed'): void
13+
(e: 'dismiss-count-down', value: number): void
14+
(e: 'update:modelValue', value: boolean | number): void
15+
}
16+
// Other
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import ColorVariant from 'src/types/ColorVariant'
2+
3+
// Props
4+
export interface Props {
5+
alt: string
6+
ariaLabel: string
7+
badge?: boolean | string
8+
badgeLeft?: boolean
9+
badgeOffset?: string
10+
badgeTop?: boolean
11+
badgeVariant?: ColorVariant
12+
button?: boolean
13+
buttonType?: string
14+
disabled?: boolean
15+
icon?: string
16+
rounded?: boolean | string
17+
size?: InputSize | string | number
18+
square?: boolean
19+
src?: string
20+
text?: string
21+
textVariant?: ColorVariant // not standard BootstrapVue props
22+
variant?: ColorVariant
23+
}
24+
// Emits
25+
export interface Emits {
26+
(e: 'click', value: MouseEvent): void
27+
(e: 'img-error', value: Event): void
28+
}
29+
// Other
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Props
2+
export interface Props {
3+
overlap?: number | string
4+
rounded?: boolean | string
5+
size?: InputSize | string
6+
square?: boolean
7+
tag?: string
8+
variant?: ColorVariant
9+
}
10+
// Emits
11+
12+
// Other
13+
export interface ParentData {
14+
overlapScale: ComputedRef<number>
15+
size: InputSize | string | undefined
16+
square: boolean
17+
rounded: boolean | string
18+
variant: ColorVariant | undefined
19+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Props
2+
3+
// Emits
4+
5+
// Other
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Props
2+
interface Props {
3+
items: Array<BreadcrumbItem>
4+
}
5+
// Emits
6+
7+
// Other
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Props
2+
3+
// Emits
4+
5+
// Other
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Props
2+
3+
// Emits
4+
5+
// Other
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// Props
2+
export interface Props {
3+
disabled?: boolean
4+
white?: boolean
5+
}
6+
// Emits
7+
8+
// Other

0 commit comments

Comments
 (0)