File tree Expand file tree Collapse file tree 6 files changed +29
-15
lines changed Expand file tree Collapse file tree 6 files changed +29
-15
lines changed Original file line number Diff line number Diff line change 5
5
</template >
6
6
7
7
<script setup lang="ts">
8
+ // import type {BTBodyProps} from '@/types/components'
8
9
import {computed } from ' vue'
9
10
10
- const props = defineProps ({
11
- headVariant: {type: Boolean , default: false },
11
+ interface BTBodyProps {
12
+ headVariant? : boolean
13
+ }
14
+
15
+ const props = withDefaults (defineProps <BTBodyProps >(), {
16
+ headVariant: false ,
12
17
})
13
18
14
19
const classes = computed (() => ({
Original file line number Diff line number Diff line change 5
5
</template >
6
6
7
7
<script setup lang="ts">
8
+ // import type {BTfootProps} from '@/types/components'
8
9
import {computed } from ' vue'
9
10
10
- const props = defineProps ({
11
- footVariant: {type: String },
12
- })
11
+ interface BTfootProps {
12
+ footVariant: string
13
+ }
14
+
15
+ const props = defineProps <BTfootProps >()
13
16
14
17
const classes = computed (() => ({
15
18
[` table-${props .footVariant } ` ]: props .footVariant ,
Original file line number Diff line number Diff line change 5
5
</template >
6
6
7
7
<script setup lang="ts">
8
+ // import type {BTheadProps} from '@/types/components'
8
9
import {computed } from ' vue'
9
10
10
- const props = defineProps ({
11
- headVariant: {type: String },
12
- })
11
+ interface BTheadProps {
12
+ headVariant: string
13
+ }
14
+
15
+ const props = defineProps <BTheadProps >()
13
16
14
17
const classes = computed (() => ({
15
18
[` table-${props .headVariant } ` ]: props .headVariant ,
Original file line number Diff line number Diff line change 5
5
</template >
6
6
7
7
<script setup lang="ts">
8
+ // import type {BTrProps} from '@/types/components'
8
9
import {computed } from ' vue'
9
10
10
- const props = defineProps ({
11
- variant: {type: String },
12
- })
11
+ interface BTrProps {
12
+ variant: string
13
+ }
14
+
15
+ const props = defineProps <BTrProps >()
13
16
14
17
const classes = computed (() => ({
15
18
[` table-${props .variant } ` ]: props .variant ,
Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
2
- import type { TableField , TableFieldObject , TableItem } from '../.. /types'
3
- import { isObject , isString } from '../.. /utils/inspect'
4
- import { startCase } from '../.. /utils/stringUtils'
2
+ import type { TableField , TableFieldObject , TableItem } from '@ /types'
3
+ import { isObject , isString } from '@ /utils/inspect'
4
+ import { startCase } from '@ /utils/stringUtils'
5
5
6
6
const useItemHelper = ( ) => {
7
7
const normaliseFields = ( origFields : TableField [ ] , items : TableItem [ ] ) : TableFieldObject [ ] => {
Original file line number Diff line number Diff line change 1
1
// Props
2
2
export interface Props {
3
- footerVariant : string
3
+ footVariant : string
4
4
}
5
5
// Emits
6
6
You can’t perform that action at this time.
0 commit comments