DemuMesDataV/components/borderBox1/index.vue

55 lines
1.0 KiB
Vue
Raw Normal View History

2018-12-05 13:43:34 +08:00
<template>
2019-01-16 16:56:11 +08:00
<div class="dv-border-box-1">
<img class="dv-flash-left-top" src="./img/border.gif">
<img class="dv-flash-right-top" src="./img/border.gif">
<img class="dv-flash-left-bottom" src="./img/border.gif">
<img class="dv-flash-right-bottom" src="./img/border.gif">
2018-12-05 13:43:34 +08:00
<slot></slot>
</div>
</template>
<script>
export default {
name: 'BorderBox1'
}
</script>
<style lang="less">
2019-01-16 16:56:11 +08:00
.dv-border-box-1 {
2018-12-05 13:43:34 +08:00
position: relative;
box-sizing: border-box;
min-width: 300px;
min-height: 300px;
padding: 35px;
overflow: hidden;
2019-01-16 16:56:11 +08:00
.dv-flash-left-top, .dv-flash-right-top, .dv-flash-left-bottom, .dv-flash-right-bottom {
2018-12-05 13:43:34 +08:00
position: absolute;
width: 250px;
}
2019-01-16 16:56:11 +08:00
.dv-flash-left-top {
2018-12-05 13:43:34 +08:00
top: 0px;
left: -70px;
}
2019-01-16 16:56:11 +08:00
.dv-flash-right-top {
2018-12-05 13:43:34 +08:00
top: 0px;
right: -70px;
transform: rotateY(180deg);
}
2019-01-16 16:56:11 +08:00
.dv-flash-left-bottom {
2018-12-05 13:43:34 +08:00
bottom: 0px;
left: -70px;
transform: rotateX(180deg);
}
2019-01-16 16:56:11 +08:00
.dv-flash-right-bottom {
2018-12-05 13:43:34 +08:00
bottom: 0px;
right: -70px;
transform: rotate(180deg);
}
}
</style>