From b36ba8640653bb29020df6227f0bebdf842e3e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Tue, 17 Sep 2019 16:31:47 +0800 Subject: [PATCH] Step add slot icon --- examples/routers/steps.vue | 4 +++- src/components/steps/step.vue | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/routers/steps.vue b/examples/routers/steps.vue index 4b11fb6d..2e358e8f 100644 --- a/examples/routers/steps.vue +++ b/examples/routers/steps.vue @@ -19,7 +19,9 @@ - + + + diff --git a/src/components/steps/step.vue b/src/components/steps/step.vue index 7d9a4cba..de6dbd02 100644 --- a/src/components/steps/step.vue +++ b/src/components/steps/step.vue @@ -3,7 +3,8 @@
- {{ stepNumber }} + {{ stepNumber }} +
@@ -57,7 +58,7 @@ `${prefixCls}-item`, `${prefixCls}-status-${this.currentStatus}`, { - [`${prefixCls}-custom`]: !!this.icon, + [`${prefixCls}-custom`]: !!this.icon || !!this.$slots.icon, [`${prefixCls}-next-error`]: this.nextError } ];