瀏覽代碼

Merge branch 'master' of http://git.ndjsxh.cn:10080/nd/nd_h5

LosMessi 2 年之前
父節點
當前提交
09b5a4a789
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/image.vue

+ 1 - 1
src/components/image.vue

@@ -2,7 +2,7 @@
   <div v-if="!options.text" @click="click" class="image mb-6 last:mb-0 mx-auto">
     <img v-if="options.preview" :style="options.style" :src="options.image" :large="options.image.split('?')[0]" :preview="1" @click="handleClick"/>
     <img v-else :style="options.style" :src="options.image"/>
-    <div v-if="options.marks" class="mark flex justify-center items-center">
+    <div v-if="options.marks" class="mark flex" :class="options.center?'justify-center items-center':''">
       <span :style="options.marksStyle" v-html="options.marks"></span>
     </div>
   </div>