@@ -30,30 +30,30 @@ export const CDivider = defineComponent({
30
30
...vueThemingProps ,
31
31
} ,
32
32
setup ( props , { slots, attrs } ) {
33
- return ( ) => {
34
- const themingProps = computed < ThemingProps > ( ( ) =>
35
- filterUndefined ( {
36
- colorScheme : props . colorScheme ,
37
- variant : props . variant ,
38
- size : props . size ,
39
- styleConfig : props . styleConfig ,
40
- orientation : props . orientation ,
41
- } )
42
- )
33
+ const themingProps = computed < ThemingProps > ( ( ) =>
34
+ filterUndefined ( {
35
+ colorScheme : props . colorScheme ,
36
+ variant : props . variant ,
37
+ size : props . size ,
38
+ styleConfig : props . styleConfig ,
39
+ orientation : props . orientation ,
40
+ } )
41
+ )
43
42
44
- const styles = useStyleConfig ( 'Divider' , themingProps . value )
43
+ const styles = useStyleConfig ( 'Divider' , themingProps . value )
45
44
46
- const {
47
- borderLeftWidth,
48
- borderBottomWidth,
49
- borderTopWidth,
50
- borderRightWidth,
51
- borderWidth,
52
- borderStyle,
53
- borderColor,
54
- ...stylesRest
55
- } = styles . value
45
+ const {
46
+ borderLeftWidth,
47
+ borderBottomWidth,
48
+ borderTopWidth,
49
+ borderRightWidth,
50
+ borderWidth,
51
+ borderStyle,
52
+ borderColor,
53
+ ...stylesRest
54
+ } = styles . value
56
55
56
+ const dividerStyle = computed ( ( ) => {
57
57
const dividerStyles = {
58
58
vertical : {
59
59
borderLeftWidth :
@@ -66,7 +66,10 @@ export const CDivider = defineComponent({
66
66
width : '100%' ,
67
67
} ,
68
68
}
69
+ return dividerStyles [ props . orientation ! ]
70
+ } )
69
71
72
+ return ( ) => {
70
73
return h (
71
74
chakra ( 'hr' , {
72
75
label : 'divider' ,
@@ -77,7 +80,7 @@ export const CDivider = defineComponent({
77
80
78
81
borderColor,
79
82
borderStyle,
80
- ...dividerStyles [ props . orientation ! ] ,
83
+ ...dividerStyle . value ,
81
84
} ,
82
85
} ) ,
83
86
{
0 commit comments