@@ -55,7 +55,7 @@ export interface StepsProps {
5555
5656 // layout
5757 orientation ?: 'horizontal' | 'vertical' ;
58- labelPlacement ?: 'horizontal' | 'vertical' ;
58+ titlePlacement ?: 'horizontal' | 'vertical' ;
5959
6060 // data
6161 status ?: Status ;
@@ -82,7 +82,7 @@ export default function Steps(props: StepsProps) {
8282
8383 // layout
8484 orientation = 'horizontal' ,
85- labelPlacement = 'horizontal' ,
85+ titlePlacement = 'horizontal' ,
8686
8787 // data
8888 status = 'process' ,
@@ -102,14 +102,14 @@ export default function Steps(props: StepsProps) {
102102 // ============================= layout =============================
103103 const isVertical = orientation === 'vertical' ;
104104 const mergedOrientation = isVertical ? 'vertical' : 'horizontal' ;
105- const mergeLabelPlacement =
106- ! isVertical && labelPlacement === 'vertical' ? 'vertical' : 'horizontal' ;
105+ const mergeTitlePlacement =
106+ ! isVertical && titlePlacement === 'vertical' ? 'vertical' : 'horizontal' ;
107107
108108 // ============================= styles =============================
109109 const classString = cls (
110110 prefixCls ,
111111 `${ prefixCls } -${ mergedOrientation } ` ,
112- `${ prefixCls } -label -${ mergeLabelPlacement } ` ,
112+ `${ prefixCls } -title -${ mergeTitlePlacement } ` ,
113113 rootClassName ,
114114 className ,
115115 classNames . root ,
0 commit comments