zydx-plus 1.35.628 → 1.35.629
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.json
CHANGED
|
@@ -148,6 +148,10 @@ export default {
|
|
|
148
148
|
serial: {
|
|
149
149
|
type: Boolean,
|
|
150
150
|
default: true
|
|
151
|
+
},
|
|
152
|
+
length: {
|
|
153
|
+
type: Number,
|
|
154
|
+
default: 6
|
|
151
155
|
}
|
|
152
156
|
},
|
|
153
157
|
watch: {
|
|
@@ -232,7 +236,7 @@ export default {
|
|
|
232
236
|
addData(v, n) {
|
|
233
237
|
const len = this.question.length
|
|
234
238
|
if (n) n(len)
|
|
235
|
-
if (len
|
|
239
|
+
if (len >= this.length) return
|
|
236
240
|
if (this.empty) {
|
|
237
241
|
this.empty = false
|
|
238
242
|
this.question = []
|