Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit e72d94b

Browse files
committed
chore(layout): move code block
1 parent 8195e4f commit e72d94b

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

packages/layout/src/badge.ts

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,16 @@ export const CBadge = defineComponent({
2828
...vueThemingProps,
2929
},
3030
setup(props, { slots, attrs }) {
31+
const themingProps = computed<ThemingProps>(() =>
32+
filterUndefined({
33+
colorScheme: props.colorScheme,
34+
variant: props.variant,
35+
size: props.size,
36+
styleConfig: props.styleConfig,
37+
})
38+
)
39+
const styles = useStyleConfig('Badge', themingProps.value)
3140
return () => {
32-
const themingProps = computed<ThemingProps>(() =>
33-
filterUndefined({
34-
colorScheme: props.colorScheme,
35-
variant: props.variant,
36-
size: props.size,
37-
styleConfig: props.styleConfig,
38-
})
39-
)
40-
const styles = useStyleConfig('Badge', themingProps.value)
41-
4241
return h(
4342
chakra(props.as, { label: 'badge' }),
4443
{

0 commit comments

Comments
 (0)