@community-release/nx-ui 0.0.50 → 0.0.51
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/dist/module.json
CHANGED
|
@@ -81,9 +81,10 @@
|
|
|
81
81
|
});
|
|
82
82
|
|
|
83
83
|
const filesList = ref([]);
|
|
84
|
+
|
|
84
85
|
watch(filesList, e => {
|
|
85
|
-
emit('update:modelValue', e);
|
|
86
|
-
});
|
|
86
|
+
emit('update:modelValue', unwrapFiles(e));
|
|
87
|
+
}, { deep: true });
|
|
87
88
|
|
|
88
89
|
const imagePreview = ref();
|
|
89
90
|
|
|
@@ -168,6 +169,10 @@
|
|
|
168
169
|
return result;
|
|
169
170
|
}
|
|
170
171
|
|
|
172
|
+
function unwrapFiles(ar) {
|
|
173
|
+
return ar.length ? ar.map(v => v.file) : [];
|
|
174
|
+
}
|
|
175
|
+
|
|
171
176
|
// Hooks
|
|
172
177
|
|
|
173
178
|
</script>
|