comand-component-library 4.0.51 → 4.0.52

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "comand-component-library",
3
- "version": "4.0.51",
3
+ "version": "4.0.52",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "GPL-3.0-only",
@@ -97,7 +97,7 @@
97
97
 
98
98
  <!-- begin default-view -->
99
99
  <!-- begin image with figure/figcaption -->
100
- <figure v-else-if="figcaption?.show" :class="['cmd-image', textAlign]">
100
+ <figure v-else-if="useFigureTag || figcaption?.show" :class="['cmd-image', textAlign]">
101
101
  <figcaption v-if="figcaption?.position === 'top'" v-html="figcaption?.text"/>
102
102
  <img :src="imageSource" :alt="image?.alt" :title="image?.tooltip" @load="onImageLoaded"/>
103
103
  <figcaption v-if="figcaption?.position !== 'top'" v-html="figcaption?.text"/>
@@ -167,6 +167,13 @@ export default {
167
167
  type: Object,
168
168
  required: false
169
169
  },
170
+ /**
171
+ * activate if image should be wrapped by figure-tag
172
+ */
173
+ useFigureTag: {
174
+ type: Boolean,
175
+ default: true
176
+ },
170
177
  /**
171
178
  * figcaption-object including visibility, position (top/bottom), text
172
179
  */