mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-19 07:46:43 +08:00
2022年5月29日从svn移到git
This commit is contained in:
31
src/components/PreviewArea/index.vue
Normal file
31
src/components/PreviewArea/index.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="pre-view">
|
||||
<div class="courseware-title">{{fileUrl.name}}</div>
|
||||
<div class="courseware-icon">
|
||||
<img v-if="fileUrl.fileType === '.jpg' || fileUrl.fileType === '.png'" :src="baseUrl + fileUrl.filePath" height="421" width="700" />
|
||||
<video v-if="fileUrl.fileType === '.vae'" :src="baseUrl + fileUrl.filePath"></video>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script >
|
||||
export default {
|
||||
props:{
|
||||
data:{
|
||||
type: Object,
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
created(){
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user