@ditojs/admin 2.34.4 → 2.34.5
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditojs/admin",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Dito.js Admin is a schema based admin interface for Dito.js Server, featuring auto-generated views and forms and built with Vue.js",
|
|
6
6
|
"repository": "https://github.com/ditojs/dito/tree/master/packages/admin",
|
|
@@ -91,5 +91,5 @@
|
|
|
91
91
|
"vite": "^5.4.8"
|
|
92
92
|
},
|
|
93
93
|
"types": "types",
|
|
94
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "ff641d5efcf55eed5ce7ebdd0a63d4d59dcbd43e"
|
|
95
95
|
}
|
|
@@ -17,12 +17,6 @@ import {
|
|
|
17
17
|
export default {
|
|
18
18
|
mixins: [DataMixin],
|
|
19
19
|
|
|
20
|
-
data() {
|
|
21
|
-
return {
|
|
22
|
-
hasOptions: false
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
|
|
26
20
|
computed: {
|
|
27
21
|
selectedValue: {
|
|
28
22
|
get() {
|
|
@@ -80,9 +74,6 @@ export default {
|
|
|
80
74
|
if (!isArray(data)) {
|
|
81
75
|
throw new Error(`Invalid options data, should be array: ${data}`)
|
|
82
76
|
}
|
|
83
|
-
// TODO: Fix side-effects
|
|
84
|
-
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
|
|
85
|
-
this.hasOptions = data.length > 0
|
|
86
77
|
return this.processOptions(data)
|
|
87
78
|
},
|
|
88
79
|
|
|
@@ -92,6 +83,10 @@ export default {
|
|
|
92
83
|
return this.options
|
|
93
84
|
},
|
|
94
85
|
|
|
86
|
+
hasOptions() {
|
|
87
|
+
return this.activeOptions.length > 0
|
|
88
|
+
},
|
|
89
|
+
|
|
95
90
|
relate: getSchemaAccessor('relate', {
|
|
96
91
|
// TODO: Convert to `relateBy: 'id'`
|
|
97
92
|
type: Boolean,
|