1
1
<view class="step {{'step-'+direction}} l-class"
2
- style="{{direction=='row'?'width:'+(1/length)*750+'rpx ':''}}">
2
+ style="{{direction=== 'row'?'width:'+(1/length)*stepsWidth+'px ':'min-height:'+stepMinHeight+'rpx '}}">
3
3
<view class="step-container l-step-class {{'step-container-'+direction}}">
4
4
<view wx:if="{{custom}}" class="step-custom">
5
5
<slot name="dot"/>
6
6
</view>
7
7
<view wx:else
8
8
class="l-step-class {{dot && !icon?'step-dot-'+currentStatus.setStatus(activeIndex,index,status)+' step-dot':'step-'+currentStatus.setStatus(activeIndex,index,status)+' step-icon'}}"
9
- style="{{dot?currentStatus.dotStyle(activeIndex,index,color):currentStatus.statusStyle(activeIndex,index,color)}}">
9
+ style="{{dot?currentStatus.dotStyle(activeIndex,index,color):currentStatus.statusStyle(activeIndex,index,color,status )}}">
10
10
<l-icon wx:if="{{icon}}" name="{{icon}}" size="{{iconSize}}" color="{{(currentStatus.setStatus(activeIndex,index,status))==='process'?'#3963BC':iconColor}}"/>
11
11
<block wx:if="{{!dot && !icon}}">
12
12
<view wx:if="{{currentStatus.setStatus(activeIndex,index,status)==='error' || currentStatus.setStatus(activeIndex,index,status)==='finish'}}"
16
16
</view>
17
17
</view>
18
18
<view class="step-content {{'step-content-'+direction}}">
19
- <view class="l-title-class {{'step-title-' + direction}} {{ activeIndex===index?'step-title-process':'step-title'}}">
19
+ <view class="l-title-class {{activeIndex===index?'step-title-process':'step-title'}}">
20
20
{{title}}
21
21
</view>
22
22
<view class="l-describe-class step-describe">
@@ -41,9 +41,9 @@ var setStatus = function(activeIndex,index,status){
41
41
}
42
42
}
43
43
44
- var statusStyle = function(activeIndex,index,color){
44
+ var statusStyle = function(activeIndex,index,color,status ){
45
45
if(activeIndex===index){
46
- return ('background-color:' + color)
46
+ return status==='error'?'': ('background-color:' + color)
47
47
} else if(activeIndex>index){
48
48
return ('border-color:' + color + ';color:' + color)
49
49
}else{
0 commit comments