diff --git a/examples/components/footer.vue b/examples/components/footer.vue
index ed41f658a..d74fe9838 100644
--- a/examples/components/footer.vue
+++ b/examples/components/footer.vue
@@ -11,7 +11,7 @@
ref="weixin"
placement="top"
width="120"
- class="footer-popover"
+ popper-class="footer-popover"
trigger="hover">
@@ -39,6 +40,7 @@ export default {
title: String,
content: String,
reference: {},
+ popperClass: String,
width: {},
visibleArrow: {
default: true
diff --git a/packages/steps/src/step.vue b/packages/steps/src/step.vue
index 22fea2112..a0755b5d5 100644
--- a/packages/steps/src/step.vue
+++ b/packages/steps/src/step.vue
@@ -60,8 +60,8 @@ export default {
data() {
return {
index: -1,
- style: { width: '', height: '' },
- lineStyle: { width: '', height: '' },
+ style: {},
+ lineStyle: {},
mainOffset: 0,
currentStatus: this.status
};
@@ -88,18 +88,21 @@ export default {
calcProgress(status) {
let step = 100;
+ const style = {};
- this.lineStyle.transitionDelay = 150 * this.index + 'ms';
+ style.transitionDelay = 150 * this.index + 'ms';
if (status === this.$parent.processStatus) {
step = 50;
} else if (status === 'wait') {
step = 0;
- this.lineStyle.transitionDelay = (-150 * this.index) + 'ms';
+ style.transitionDelay = (-150 * this.index) + 'ms';
}
this.$parent.direction === 'vertical'
- ? this.lineStyle.height = step + '%'
- : this.lineStyle.width = step + '%';
+ ? style.height = step + '%'
+ : style.width = step + '%';
+
+ this.lineStyle = style;
}
},