uview-plus 3.2.11 → 3.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md
CHANGED
|
@@ -115,7 +115,8 @@
|
|
|
115
115
|
labelWidth: 45,
|
|
116
116
|
// 错误提示方式
|
|
117
117
|
errorType: 'message'
|
|
118
|
-
}
|
|
118
|
+
},
|
|
119
|
+
color: color
|
|
119
120
|
}
|
|
120
121
|
},
|
|
121
122
|
// 组件创建完成时,将当前实例保存到u-form中
|
|
@@ -131,7 +132,6 @@
|
|
|
131
132
|
methods: {
|
|
132
133
|
addStyle,
|
|
133
134
|
addUnit,
|
|
134
|
-
color,
|
|
135
135
|
init() {
|
|
136
136
|
// 父组件的实例
|
|
137
137
|
this.updateParentData()
|
|
@@ -130,22 +130,22 @@
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
statusColor() {
|
|
133
|
-
let
|
|
133
|
+
let colorTmp = ''
|
|
134
134
|
switch (this.statusClass) {
|
|
135
135
|
case 'finish':
|
|
136
|
-
|
|
136
|
+
colorTmp = this.parentData.activeColor
|
|
137
137
|
break
|
|
138
138
|
case 'error':
|
|
139
|
-
|
|
139
|
+
colorTmp = color.error
|
|
140
140
|
break
|
|
141
141
|
case 'process':
|
|
142
|
-
|
|
142
|
+
colorTmp = this.parentData.dot ? this.parentData.activeColor : 'transparent'
|
|
143
143
|
break
|
|
144
144
|
default:
|
|
145
|
-
|
|
145
|
+
colorTmp = this.parentData.inactiveColor
|
|
146
146
|
break
|
|
147
147
|
}
|
|
148
|
-
return
|
|
148
|
+
return colorTmp
|
|
149
149
|
},
|
|
150
150
|
contentStyle() {
|
|
151
151
|
const style = {}
|