@fy-/fws-vue 0.8.9 → 0.9.0

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.
@@ -36,6 +36,7 @@ const props = withDefaults(
36
36
  videoComponent?: Component | string;
37
37
  imageComponent?: Component | string;
38
38
  isVideo?: Function;
39
+ ranking?: boolean;
39
40
  }>(),
40
41
  {
41
42
  modelValue: 0,
@@ -49,6 +50,7 @@ const props = withDefaults(
49
50
  getThumbnailUrl: (image: any) => `${image.image_url}?s=250x250&m=autocrop`,
50
51
  paging: undefined,
51
52
  borderColor: undefined,
53
+ ranking: false,
52
54
  },
53
55
  );
54
56
  const emit = defineEmits(["update:modelValue"]);
@@ -341,6 +343,7 @@ onUnmounted(() => {
341
343
  >
342
344
  <slot name="thumbnail" />
343
345
  <template v-for="i in images.length" :key="`g_${id}_${i}`">
346
+ <div v-if="ranking" class="img-gallery-ranking">#{{ i }}</div>
344
347
  <template v-if="mode == 'mason'">
345
348
  <div
346
349
  class="grid gap-4 items-start"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "0.8.9",
3
+ "version": "0.9.0",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {