瀏覽代碼

marks 居中

y595705120 2 年之前
父節點
當前提交
e3b0183ab7
共有 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>