@fy-/fws-vue 2.0.86 → 2.0.87
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.
|
@@ -199,16 +199,16 @@ const ImageComponent = defineComponent({
|
|
|
199
199
|
template: `
|
|
200
200
|
<div v-if="src" class="media-wrapper">
|
|
201
201
|
<img
|
|
202
|
-
v-if="imageComponent === 'img'"
|
|
203
|
-
:src="src"
|
|
204
202
|
class="shadow max-w-full h-auto object-contain max-h-[85vh]"
|
|
203
|
+
:src="modelValueSrc"
|
|
204
|
+
v-if="modelValueSrc && imageComponent == 'img'"
|
|
205
205
|
/>
|
|
206
206
|
<component
|
|
207
|
-
v-else
|
|
207
|
+
v-else-if="modelValueSrc && imageComponent"
|
|
208
208
|
:is="imageComponent"
|
|
209
|
-
:image="
|
|
210
|
-
:variant="
|
|
211
|
-
:alt="
|
|
209
|
+
:image="modelValueSrc.image"
|
|
210
|
+
:variant="modelValueSrc.variant"
|
|
211
|
+
:alt="modelValueSrc.alt"
|
|
212
212
|
class="shadow max-w-full h-auto object-contain max-h-[85vh]"
|
|
213
213
|
/>
|
|
214
214
|
</div>
|
|
@@ -221,7 +221,7 @@ const VideoComponentWrapper = defineComponent({
|
|
|
221
221
|
<ClientOnly>
|
|
222
222
|
<component
|
|
223
223
|
:is="videoComponent"
|
|
224
|
-
:src="
|
|
224
|
+
:src="isVideo(images[modelValue])"
|
|
225
225
|
class="shadow max-w-full h-auto object-contain max-h-[85vh]"
|
|
226
226
|
/>
|
|
227
227
|
</ClientOnly>
|