File tree Expand file tree Collapse file tree 2 files changed +3
-30
lines changed Expand file tree Collapse file tree 2 files changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export interface StepsProps {
55
55
56
56
// layout
57
57
orientation ?: 'horizontal' | 'vertical' ;
58
- titlePlacement ?: 'horizontal' | 'vertical' | 'horizontal-alternate' ;
58
+ titlePlacement ?: 'horizontal' | 'vertical' ;
59
59
60
60
// data
61
61
status ?: Status ;
@@ -102,17 +102,8 @@ export default function Steps(props: StepsProps) {
102
102
// ============================= layout =============================
103
103
const isVertical = orientation === 'vertical' ;
104
104
const mergedOrientation = isVertical ? 'vertical' : 'horizontal' ;
105
- const mergeTitlePlacement = React . useMemo ( ( ) => {
106
- if ( isVertical ) {
107
- return titlePlacement === 'horizontal' || titlePlacement === 'horizontal-alternate'
108
- ? titlePlacement
109
- : 'horizontal' ;
110
- }
111
-
112
- return titlePlacement === 'vertical' || titlePlacement === 'horizontal'
113
- ? titlePlacement
114
- : 'horizontal' ;
115
- } , [ isVertical , titlePlacement ] ) ;
105
+ const mergeTitlePlacement =
106
+ ! isVertical && titlePlacement === 'vertical' ? 'vertical' : 'horizontal' ;
116
107
117
108
// ============================= styles =============================
118
109
const classString = cls (
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments