feat:新增上传作业页面

This commit is contained in:
songwc
2022-09-30 10:05:38 +08:00
parent 63edcf710c
commit e3f2b0a6af
5 changed files with 102 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 922 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

View File

@@ -0,0 +1,102 @@
<template>
<div class="uploadworkpage">
<div class="inputcontainer">
<div class="inputt">
<el-input
type="textarea"
placeholder="请输入正文"
v-model="textarea"
rows="35"
></el-input>
</div>
<div class="linecon">
<div class="line"></div>
</div>
<div class="imgcon">
<div class="allimg">
<img src="../../assets/image/homeworkpage/link.png" />
<img src="../../assets/image/homeworkpage/pre.png" />
<img src="../../assets/image/homeworkpage/next.png" />
<img src="../../assets/image/homeworkpage/delete.png" />
</div>
</div>
</div>
</div>
</template>
<script>
import { reactive, toRefs } from "vue";
export default {
name: "UploadWork",
components: {},
setup() {
const state = reactive({
text: "",
textarea: "",
});
return {
...toRefs(state),
};
},
};
</script>
<style scoped lang="scss" >
.clearfix:before,
clearfix:after {
content: " ";
display: table;
clear: both;
}
.uploadworkpage {
width: 100%;
height: 100%;
.inputcontainer {
margin-top: 20px;
background-color: #fff;
width: 100%;
// height: 100px;
// display: flex;
// justify-content: center;
height: 80%;
.inputt {
width: 100%;
}
::v-deep .el-textarea__inner {
resize: none;
border-color: transparent;
height: 100%;
}
::v-deep .el-textarea:focus {
border-color: transparent;
}
::v-deep .el-textarea {
height: 100%;
}
.linecon {
margin-top: 10px;
width: 100%;
display: flex;
justify-content: center;
.line {
width: 90%;
height: 0;
border-top: 1px solid #f1f2f3;
}
}
.imgcon {
margin-top: 24.5px;
width: 100%;
display: flex;
justify-content: center;
.allimg {
width: 70%;
display: flex;
justify-content: space-between;
margin-bottom: 24.5px;
}
}
}
}
</style>