@adminforth/upload 2.14.0 → 2.14.1

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/build.log CHANGED
@@ -11,5 +11,5 @@ custom/preview.vue
11
11
  custom/tsconfig.json
12
12
  custom/uploader.vue
13
13
 
14
- sent 59,824 bytes received 134 bytes 119,916.00 bytes/sec
15
- total size is 59,335 speedup is 0.99
14
+ sent 59,938 bytes received 134 bytes 120,144.00 bytes/sec
15
+ total size is 59,456 speedup is 0.99
@@ -32,7 +32,9 @@
32
32
  </template>
33
33
  </div>
34
34
  </template>
35
-
35
+ <template v-else>
36
+ {{ t('No image') }}
37
+ </template>
36
38
 
37
39
  </div>
38
40
  </template>
@@ -66,6 +68,9 @@
66
68
  import { ref, computed , onMounted, watch, nextTick} from 'vue'
67
69
  import mediumZoom from 'medium-zoom'
68
70
  import { useRoute } from 'vue-router'
71
+ import { useI18n } from 'vue-i18n';
72
+
73
+ const { t } = useI18n();
69
74
 
70
75
  const img = ref(null);
71
76
  const zoom = ref(null);
@@ -32,7 +32,9 @@
32
32
  </template>
33
33
  </div>
34
34
  </template>
35
-
35
+ <template v-else>
36
+ {{ t('No image') }}
37
+ </template>
36
38
 
37
39
  </div>
38
40
  </template>
@@ -66,6 +68,9 @@
66
68
  import { ref, computed , onMounted, watch, nextTick} from 'vue'
67
69
  import mediumZoom from 'medium-zoom'
68
70
  import { useRoute } from 'vue-router'
71
+ import { useI18n } from 'vue-i18n';
72
+
73
+ const { t } = useI18n();
69
74
 
70
75
  const img = ref(null);
71
76
  const zoom = ref(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/upload",
3
- "version": "2.14.0",
3
+ "version": "2.14.1",
4
4
  "description": "Plugin for uploading files for adminforth",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",