File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export default {
51
51
},
52
52
stopValue: { // { '1': 0, '2': 1 }
53
53
type: Object ,
54
- required : true
54
+ default : () => ({})
55
55
},
56
56
triggerUpdate: {
57
57
type: Boolean ,
@@ -143,14 +143,18 @@ export default {
143
143
}
144
144
},
145
145
shouldStop () {
146
- let stop = true ;
147
- for (const id in this .stopValue ) {
148
- if (this .values [id].value !== this .stopValue [id]) {
149
- stop = false ;
150
- break ;
146
+ if (Object .keys (this .stopValue ) > 0 ) {
147
+ let stop = true ;
148
+ for (const id in this .stopValue ) {
149
+ if (this .values [id].value !== this .stopValue [id]) {
150
+ stop = false ;
151
+ break ;
152
+ }
151
153
}
154
+ return stop;
155
+ } else {
156
+ return false ;
152
157
}
153
- return stop;
154
158
},
155
159
notifyUpdateValues () {
156
160
if (this .triggerUpdate ) {
You can’t perform that action at this time.
0 commit comments