Merge branch '1.x' into 'dev'

This commit is contained in:
陈嘉涵
2019-05-05 11:23:22 +08:00
11 changed files with 67 additions and 24 deletions
+3 -1
View File
@@ -5,7 +5,9 @@ const [sfc, bem] = use('step');
export default sfc({
beforeCreate() {
this.$parent.steps.push(this);
const { steps } = this.$parent;
const index = this.$parent.slots().indexOf(this.$vnode);
steps.splice(index === -1 ? steps.length : index, 0, this);
},
beforeDestroy() {
+5 -1
View File
@@ -26,7 +26,7 @@
&:last-child {
position: absolute;
right: 10px;
right: 1px;
width: auto;
.van-step__title {
@@ -55,6 +55,10 @@
font-size: 12px;
margin-left: 3px;
transform: translateX(-50%);
@media(max-width: 321px) {
font-size: 11px;
}
}
.van-step__line {