diff --git a/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap index 80e1558dc2..b6af47008c 100644 --- a/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/steps/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -844,6 +844,435 @@ exports[`renders ./components/steps/demo/icon.md extend context correctly 1`] = `; +exports[`renders ./components/steps/demo/label-placement.md extend context correctly 1`] = ` +Array [ +
+
+
+
+
+ + + + + +
+
+
+ Finished +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 2 + +
+
+
+ In Progress +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 3 + +
+
+
+ Waiting +
+
+ This is a description. +
+
+
+
+
, +
, +
+
+
+
+
+ + + + + +
+
+
+ Finished +
+
+ This is a description. +
+
+
+
+
+
+
+
+
+
+
+ + + + + + +
+
+ + 2 + +
+
+
+
+ In Progress +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 3 + +
+
+
+ Waiting +
+
+ This is a description. +
+
+
+
+
, +
, +
+
+
+
+
+ + + + + +
+
+
+ Finished +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 2 + +
+
+
+ In Progress +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 3 + +
+
+
+ Waiting +
+
+ This is a description. +
+
+
+
+
, +] +`; + exports[`renders ./components/steps/demo/nav.md extend context correctly 1`] = ` Array [
`; +exports[`renders ./components/steps/demo/label-placement.md correctly 1`] = ` +Array [ +
+
+
+
+
+ + + + + +
+
+
+ Finished +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 2 + +
+
+
+ In Progress +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 3 + +
+
+
+ Waiting +
+
+ This is a description. +
+
+
+
+
, +
, +
+
+
+
+
+ + + + + +
+
+
+ Finished +
+
+ This is a description. +
+
+
+
+
+
+
+
+
+
+
+ + + + + + +
+
+ + 2 + +
+
+
+
+ In Progress +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 3 + +
+
+
+ Waiting +
+
+ This is a description. +
+
+
+
+
, +
, +
+
+
+
+
+ + + + + +
+
+
+ Finished +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 2 + +
+
+
+ In Progress +
+
+ This is a description. +
+
+
+
+
+
+
+
+ + 3 + +
+
+
+ Waiting +
+
+ This is a description. +
+
+
+
+
, +] +`; + exports[`renders ./components/steps/demo/nav.md correctly 1`] = ` Array [
( + <> + + + + + +
+ + + + + +
+ + + + + + +); + +export default App; +``` diff --git a/components/steps/style/progress.less b/components/steps/style/progress.less index 586f2c20dc..8d0a487a87 100644 --- a/components/steps/style/progress.less +++ b/components/steps/style/progress.less @@ -9,9 +9,17 @@ } } - &.@{steps-prefix-cls}-horizontal .@{steps-prefix-cls}-item:first-child { - padding-bottom: 4px; - padding-left: 4px; + &.@{steps-prefix-cls}-horizontal { + .@{steps-prefix-cls}-item:first-child { + padding-bottom: 4px; + padding-left: 4px; + } + } + + &.@{steps-prefix-cls}-label-vertical { + .@{steps-prefix-cls}-item .@{steps-prefix-cls}-item-tail { + top: 14px !important; + } } .@{steps-prefix-cls}-item-icon {