Skip to content

Commit

Permalink
修复color应用
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Apr 19, 2024
1 parent 86785a5 commit b1a2502
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@
labelWidth: 45,
// 错误提示方式
errorType: 'message'
}
},
color: color
}
},
// 组件创建完成时,将当前实例保存到u-form中
Expand All @@ -131,7 +132,6 @@
methods: {
addStyle,
addUnit,
color,
init() {
// 父组件的实例
this.updateParentData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,22 +130,22 @@
}
},
statusColor() {
let color = ''
let colorTmp = ''
switch (this.statusClass) {
case 'finish':
color = this.parentData.activeColor
colorTmp = this.parentData.activeColor
break
case 'error':
color = color.error
colorTmp = color.error
break
case 'process':
color = this.parentData.dot ? this.parentData.activeColor : 'transparent'
colorTmp = this.parentData.dot ? this.parentData.activeColor : 'transparent'
break
default:
color = this.parentData.inactiveColor
colorTmp = this.parentData.inactiveColor
break
}
return color
return colorTmp
},
contentStyle() {
const style = {}
Expand Down

0 comments on commit b1a2502

Please sign in to comment.