(css)element-ui表格行图片点击放大且可调整preview-src-list大图预览样式
效果:
常规写法:
<el-table-column prop="display" label="展示效果" align="center">
<template slot-scope="scope">
<el-image
style="width: 100px; height: 40px"
:src="scope.row.display"
:preview-src-list="[scope.row.display]"
/>
</template>
</el-table-column>
<style lang="scss" scoped>
//图片过大时添加
::v-deep .el-image-viewer__img {
width: 25%;
height: auto;
}
</style>