feat:增加下载页面

This commit is contained in:
李晓鸽
2022-10-22 18:31:03 +08:00
parent 8a285da098
commit fe993cb724
4 changed files with 114 additions and 9 deletions

View File

@@ -0,0 +1,71 @@
<template>
<a-drawer
:visible="downloadVisible"
class="drawerStyle downloadDrawer"
placement="right"
width="80%"
@after-visible-change="afterVisibleChange"
>
<div class="drawerMain">
<div class="header">
<div class="headerTitle">下载中心</div>
<img
style="width: 29px; height: 29px; cursor: pointer"
src="../../assets/images/basicinfo/close.png"
@click="closeDrawer"
/>
</div>
<div class="main"></div>
</div>
</a-drawer>
</template>
<script>
import { toRefs, reactive } from "vue";
export default {
name: "DownLoad",
props: {
downloadVisible: {
type: Boolean,
default: false,
},
},
setup(props, ctx) {
console.log("props", props.downloadVisible);
const state = reactive({});
const closeDrawer = () => {
ctx.emit("update:downloadVisible", false);
};
return {
...toRefs(state),
closeDrawer,
};
},
};
</script>
<style lang="scss">
.downloadDrawer {
.drawerMain {
.header {
height: 73px;
border-bottom: 1px solid #e8e8e8;
display: flex;
justify-content: space-between;
align-items: center;
.headerTitle {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin-left: 24px;
}
}
.contentMain {
}
}
}
</style>