@drax/crud-vue 0.5.5 → 0.5.9
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.5.
|
|
6
|
+
"version": "0.5.9",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@drax/common-front": "^0.5.5",
|
|
28
28
|
"@drax/crud-front": "^0.5.3",
|
|
29
|
-
"@drax/crud-share": "^0.5.
|
|
29
|
+
"@drax/crud-share": "^0.5.9"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"pinia": "^2.2.2",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"vue-tsc": "^2.0.11",
|
|
64
64
|
"vuetify": "^3.7.1"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "9b734c6232ae023b9f718b3a503049d2731e47df"
|
|
67
67
|
}
|
|
@@ -148,6 +148,7 @@ defineEmits(['updateValue'])
|
|
|
148
148
|
v-if="field.type === 'ref'"
|
|
149
149
|
:entity="entity.getRef(field.ref)"
|
|
150
150
|
:field="field"
|
|
151
|
+
:item-title="field?.refDisplay"
|
|
151
152
|
v-model="valueModel"
|
|
152
153
|
:label="label"
|
|
153
154
|
:error-messages="inputErrors"
|
|
@@ -219,6 +220,7 @@ defineEmits(['updateValue'])
|
|
|
219
220
|
v-if="field.type === 'array.ref'"
|
|
220
221
|
:entity="entity.getRef(field.ref)"
|
|
221
222
|
:field="field"
|
|
223
|
+
:item-title="field?.refDisplay"
|
|
222
224
|
v-model="valueModel"
|
|
223
225
|
:multiple="true"
|
|
224
226
|
:chips="true"
|
|
@@ -96,7 +96,9 @@ export function useCrud(entity: IEntityCrud) {
|
|
|
96
96
|
|
|
97
97
|
entity.fields.filter(field => field.type === 'array.ref')
|
|
98
98
|
.forEach(field => {
|
|
99
|
-
item[field.name]
|
|
99
|
+
if(item[field.name] && Array.isArray(item[field.name])){
|
|
100
|
+
item[field.name] = item[field.name].map(((i:any) => i?._id ? i._id : i))
|
|
101
|
+
}
|
|
100
102
|
})
|
|
101
103
|
|
|
102
104
|
return item
|