Commit a03d8645 by zhangquan

预览图片的dialog添加到body

1 parent 33809a85
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<input type="file" ref="uploadImg" class="upload-img" style="opacity: 0" accept=".jpg, .jpeg, .png" @change="e => handleImgChange(e)" /> <input type="file" ref="uploadImg" class="upload-img" style="opacity: 0" accept=".jpg, .jpeg, .png" @change="e => handleImgChange(e)" />
</div> </div>
</template> </template>
<el-dialog class="image-dialog" :visible.sync="dialogVisibleImg" width="50%"> <el-dialog class="image-dialog" :visible.sync="dialogVisibleImg" :append-to-body="true" width="50%">
<img :src="dialogSrc" width="100%" v-if="dialogType == 'img'" /> <img :src="dialogSrc" width="100%" v-if="dialogType == 'img'" />
<!-- <video width="100%" autoplay controls :src="dialogSrc" v-else></video> --> <!-- <video width="100%" autoplay controls :src="dialogSrc" v-else></video> -->
</el-dialog> </el-dialog>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!