@afeefa/vue-app 0.0.77 → 0.0.78
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.78
|
package/package.json
CHANGED
@@ -69,7 +69,18 @@ export class FormFieldMixin extends Vue {
|
|
69
69
|
}
|
70
70
|
|
71
71
|
if (field.hasOptions()) {
|
72
|
-
|
72
|
+
let options = field.getOptions()
|
73
|
+
|
74
|
+
if (!Array.isArray(options)) {
|
75
|
+
options = Object.entries(options).map(([key, title]) => {
|
76
|
+
return {
|
77
|
+
itemText: title,
|
78
|
+
itemValue: key
|
79
|
+
}
|
80
|
+
})
|
81
|
+
return options
|
82
|
+
}
|
83
|
+
|
73
84
|
return options.map((value, index) => {
|
74
85
|
if (typeof value === 'object') { // object option
|
75
86
|
return {
|