Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit a85b10b

Browse files
committed
refactor(BSpinner): simplify classes
1 parent e8b3c3c commit a85b10b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/bootstrap-vue-next/src/components/BSpinner.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ const slots = useSlots()
4545
4646
const smallBoolean = useBooleanish(() => props.small)
4747
48-
const computedClasses = computed(() => ({
49-
'spinner-border': props.type === 'border',
50-
'spinner-border-sm': props.type === 'border' && smallBoolean.value,
51-
'spinner-grow': props.type === 'grow',
52-
'spinner-grow-sm': props.type === 'grow' && smallBoolean.value,
53-
[`text-${props.variant}`]: props.variant !== null,
54-
}))
48+
const computedClasses = computed(() => [
49+
`spinner-${props.type}`,
50+
{
51+
[`spinner-${props.type}-sm`]: smallBoolean.value,
52+
[`text-${props.variant}`]: props.variant !== null,
53+
},
54+
])
5555
5656
const hasLabelSlot = computed(() => !isEmptySlot(slots.label))
5757
</script>

0 commit comments

Comments
 (0)