提交 79da6fcd authored 作者: matian's avatar matian

样式调整

上级 f432d31c
...@@ -53,7 +53,7 @@ const handleClose = (val: any) => { ...@@ -53,7 +53,7 @@ const handleClose = (val: any) => {
} }
</script> </script>
<template> <template>
<el-dialog title="批量导入视频" :close-on-click-modal="false" :before-close="handleCancel"> <el-dialog title="批量导入视频" :close-on-click-modal="false" :before-close="handleCancel" width="45vw">
<el-form :model="form" label-suffix=":"> <el-form :model="form" label-suffix=":">
<el-form-item label="视频分类" prop="classification"> <el-form-item label="视频分类" prop="classification">
<el-tree-select <el-tree-select
......
...@@ -135,14 +135,13 @@ defineExpose({ uploader, fileList: $$(fileList) }) ...@@ -135,14 +135,13 @@ defineExpose({ uploader, fileList: $$(fileList) })
<input accept=".mp4" type="file" id="fileUpload" multiple @change="fileChange" /> <input accept=".mp4" type="file" id="fileUpload" multiple @change="fileChange" />
</div> </div>
<div class="tips">推荐视频格式:帧率为25fps\输出码率为4M\输出格式为mp4,建议采用格式工厂等工具处理后上传。</div> <div class="tips">推荐视频格式:帧率为25fps\输出码率为4M\输出格式为mp4,建议采用格式工厂等工具处理后上传。</div>
<div v-for="(item, index) in fileList.slice(0, 3)" :key="index">
<div v-for="(item, index) in fileList" :key="index"> <div class="video-info">
<div> <span class="name">{{ item.file?.name }}</span>
<span>{{ item.file?.name }}</span> <el-progress style="width: 200px" :percentage="percentage(item.loaded)" class="view" />
<el-progress style="width: 200px" :percentage="percentage(item.loaded)" />
</div> </div>
</div> </div>
<el-link type="primary" v-if="fileList.length > 3" @click="handleView" <el-link :underline="false" type="primary" v-if="fileList.length > 3" @click="handleView"
>{{ fileList.length }}个文件,查看更多</el-link >{{ fileList.length }}个文件,查看更多</el-link
> >
</div> </div>
...@@ -189,20 +188,15 @@ defineExpose({ uploader, fileList: $$(fileList) }) ...@@ -189,20 +188,15 @@ defineExpose({ uploader, fileList: $$(fileList) })
} }
.video-info { .video-info {
display: flex; display: flex;
margin-top: 10px;
.name { .name {
color: #333333; color: #333333;
font-size: 16px;
line-height: 100%;
}
.name1 {
color: #aa1941;
font-size: 14px; font-size: 14px;
line-height: 1.5; line-height: 1.5;
} }
.view { .view {
font-size: 16px; font-size: 16px;
line-height: 100%; line-height: 100%;
color: #399ee8;
margin-left: 20px; margin-left: 20px;
cursor: pointer; cursor: pointer;
} }
......
...@@ -39,14 +39,20 @@ const handleSizeChange = (val: any) => { ...@@ -39,14 +39,20 @@ const handleSizeChange = (val: any) => {
const handleCurrentChange = (val: any) => { const handleCurrentChange = (val: any) => {
page.currentPage = val page.currentPage = val
} }
function percentage(value: number) {
return parseFloat((value ? value * 100 : 0).toFixed(2))
}
</script> </script>
<template> <template>
<el-dialog title="更多视频文件" :before-close="handleCancel"> <el-dialog title="更多视频文件" :before-close="handleCancel" width="30vw">
<div <div
v-for="(item, index) in props.videoList.slice((page.currentPage - 1) * page.size, page.currentPage * page.size)" v-for="(item, index) in props.videoList.slice((page.currentPage - 1) * page.size, page.currentPage * page.size)"
:key="index" :key="index"
> >
{{ item.file.name }} <div class="video-info">
<span class="name">{{ item.file?.name }}</span>
<el-progress style="width: 200px" :percentage="percentage(item.loaded)" class="view" />
</div>
</div> </div>
<el-pagination <el-pagination
v-model:currentPage="currentPage" v-model:currentPage="currentPage"
...@@ -60,3 +66,23 @@ const handleCurrentChange = (val: any) => { ...@@ -60,3 +66,23 @@ const handleCurrentChange = (val: any) => {
</el-pagination> </el-pagination>
</el-dialog> </el-dialog>
</template> </template>
<style lang="scss" scoped>
.video-info {
display: flex;
margin-top: 10px;
.name {
color: #333333;
font-size: 14px;
line-height: 1.5;
}
.view {
font-size: 16px;
line-height: 100%;
margin-left: 20px;
cursor: pointer;
}
}
:deep(.el-pagination) {
margin-top: 20px;
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论