@community-release/nx-ui 0.0.50 → 0.0.52

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
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "ui",
3
3
  "configKey": "ui",
4
- "version": "0.0.50"
4
+ "version": "0.0.52"
5
5
  }
@@ -157,13 +157,13 @@
157
157
  };
158
158
 
159
159
  // Handle navigate
160
- if (computedType == 'a') {
161
- if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
160
+ // if (computedType == 'a') {
161
+ // if (e.metaKey || e.ctrlKey || e.shiftKey || e.altKey || e.button !== 0) return;
162
162
 
163
- e.preventDefault();
163
+ // e.preventDefault();
164
164
 
165
- router.push(props.href);
166
- }
165
+ // router.push(props.href);
166
+ // }
167
167
  }
168
168
  </script>
169
169
 
@@ -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>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@community-release/nx-ui",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "packageManager": "pnpm@10.14.0",
5
5
  "description": "nx-ui - Nuxt UI library",
6
6
  "repository": {