Browse Source

图片预览

dev-warehouse
zhangsiyu 1 year ago
parent
commit
385e4b8afa
  1. 2
      src/components/tablecmt/tablecmt.vue

2
src/components/tablecmt/tablecmt.vue

@ -79,7 +79,7 @@
<el-text class="mx-2" v-if="Number(column.type)<6&&Number(column.type)>0">{{ scope.row[column.prop] }}</el-text> <el-text class="mx-2" v-if="Number(column.type)<6&&Number(column.type)>0">{{ scope.row[column.prop] }}</el-text>
<slot v-if="column.type == 6" :scope="scope"></slot> <slot v-if="column.type == 6" :scope="scope"></slot>
<div v-if="column.type==7"> <div v-if="column.type==7">
<el-image style="width: 100px; height: 100px" v-for="item in scope.row[column.prop].split(',')" :src="item" /> <el-image style="width: 100px; height: 100px" v-for="item in scope.row[column.prop].split(',')" :src="item" :preview-src-list="scope.row[column.prop].split(',')"/>
</div> </div>
<!-- <slot v-if="column.type == 7" name="test" :testdata="scope"></slot> --> <!-- <slot v-if="column.type == 7" name="test" :testdata="scope"></slot> -->
<!-- <el-button <!-- <el-button

Loading…
Cancel
Save