aloha-vue 1.2.243 → 1.2.244
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
|
@@ -359,8 +359,12 @@ export default {
|
|
|
359
359
|
round: [],
|
|
360
360
|
};
|
|
361
361
|
|
|
362
|
-
if (props
|
|
363
|
-
|
|
362
|
+
if (props) {
|
|
363
|
+
if (props.type in validSubTypes) {
|
|
364
|
+
return isNil(value) || validSubTypes[props.type].indexOf(value) !== -1;
|
|
365
|
+
}
|
|
366
|
+
} else {
|
|
367
|
+
return ["square", "circle", "square-bordered", "circle-bordered"].indexOf(value) !== -1;
|
|
364
368
|
}
|
|
365
369
|
|
|
366
370
|
return false;
|
package/src/AWizard/AWizard.js
CHANGED
|
@@ -243,8 +243,12 @@ export default {
|
|
|
243
243
|
round: [],
|
|
244
244
|
};
|
|
245
245
|
|
|
246
|
-
if (props
|
|
247
|
-
|
|
246
|
+
if (props) {
|
|
247
|
+
if (props.type in validSubTypes) {
|
|
248
|
+
return isNil(value) || validSubTypes[props.type].indexOf(value) !== -1;
|
|
249
|
+
}
|
|
250
|
+
} else {
|
|
251
|
+
return ["square", "circle", "square-bordered", "circle-bordered"].indexOf(value) !== -1;
|
|
248
252
|
}
|
|
249
253
|
|
|
250
254
|
return false;
|