Files
dvcp_v2_wxcp_app/components/AiAdd/AiAdd.vue

69 lines
1.0 KiB
Vue
Raw Normal View History

2021-11-15 10:29:05 +08:00
<template>
<movable-area class="movableArea">
<movable-view direction="all" x="300" y="500">
<div class="AiAdd" @click.stop="add"></div>
</movable-view>
</movable-area>
</template>
<script>
2021-12-15 14:37:20 +08:00
export default {
name: "AiAdd",
props: {},
data() {
return {}
},
methods: {
add() {
this.$emit("add")
2021-11-15 10:29:05 +08:00
}
}
2021-12-15 14:37:20 +08:00
}
2021-11-15 10:29:05 +08:00
</script>
<style lang="scss" scoped>
2021-12-15 14:37:20 +08:00
.movableArea {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 999;
2021-11-15 10:29:05 +08:00
2021-12-15 14:37:20 +08:00
uni-movable-view {
pointer-events: auto;
2021-11-15 10:29:05 +08:00
}
2021-12-15 14:37:20 +08:00
}
2021-11-15 10:29:05 +08:00
2021-12-15 14:37:20 +08:00
.AiAdd {
width: 96px;
height: 96px;
background: #1365DD;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
border-radius: 50%;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
2021-11-15 10:29:05 +08:00
2021-12-15 14:37:20 +08:00
&:before, &:after {
content: "";
background: #FFFFFF;
display: block;
position: absolute;
border-radius: 4px;
}
2021-11-15 10:29:05 +08:00
2021-12-15 14:37:20 +08:00
&:before {
height: 48px;
width: 4px;
}
&:after {
height: 4px;
width: 48px;
2021-11-15 10:29:05 +08:00
}
2021-12-15 14:37:20 +08:00
}
2021-11-15 10:29:05 +08:00
</style>