openatc-components 0.1.199 → 0.2.2
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/package/kisscomps/components/PatternStatus/PatternStatus.vue +6 -0
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +7 -0
- package/package/kissui.min.js +1 -1
- package/package.json +2 -2
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +6 -0
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +7 -0
|
@@ -177,10 +177,16 @@ export default {
|
|
|
177
177
|
let res = '0%'
|
|
178
178
|
if (this.contrloCycle > 0) {
|
|
179
179
|
let curPercent = this.curtime / (this.fixCycle ? this.fixCycle : this.max ? this.max : this.contrloCycle)
|
|
180
|
+
if (curPercent >= 1) {
|
|
181
|
+
curPercent = 1
|
|
182
|
+
}
|
|
180
183
|
res = curPercent * 100 + '%'
|
|
181
184
|
}
|
|
182
185
|
if (this.cycles > 0) {
|
|
183
186
|
let curPercent = this.curtime / (this.fixCycle ? this.fixCycle : this.max ? this.max : this.contrloCycle)
|
|
187
|
+
if (curPercent >= 1) {
|
|
188
|
+
curPercent = 1
|
|
189
|
+
}
|
|
184
190
|
res = curPercent * 100 + '%'
|
|
185
191
|
}
|
|
186
192
|
return res
|