用户使用手册

This commit is contained in:
mengxiaolong
2021-01-14 15:20:06 +08:00
parent 3f6aca922c
commit a8a572737e

View File

@@ -1,6 +1,7 @@
<template>
<div>
<img :src="$assetsUrl + img" @click="prevImg" />
<div class="detail">
<img v-if="type === 'img'" :src="$assetsUrl + img" @click="prevImg" />
<iframe v-if="type === 'pdf'" :src="$assetsUrl + img" frameborder="0" class="pdf"></iframe>
</div>
</template>
@@ -17,6 +18,9 @@ export default {
},
title: {
type: String
},
type: {
type: String
}
},
data() {
@@ -34,7 +38,15 @@ export default {
</script>
<style lang="scss" scoped>
.detail {
width: 100vw;
height: 100vh;
}
img {
max-width: 100%;
}
.pdf {
width: 100%;
height: 100%;
}
</style>