用户使用手册

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