update dist and lib

This commit is contained in:
jiaming743
2020-09-09 17:20:28 +08:00
parent fdd1117e00
commit ebf1354be5
12 changed files with 956 additions and 213 deletions

View File

@ -10,12 +10,12 @@
flex: 1;
}
.dv-decoration-4 .normal {
animation: ani-height 3s ease-in-out infinite;
animation: ani-height ease-in-out infinite;
left: 50%;
margin-left: -2px;
}
.dv-decoration-4 .reverse {
animation: ani-width 3s ease-in-out infinite;
animation: ani-width ease-in-out infinite;
top: 50%;
margin-top: -2px;
}

View File

@ -2,7 +2,7 @@
<div class="dv-decoration-4" :ref="ref">
<div
:class="`container ${reverse ? 'reverse' : 'normal'}`"
:style="reverse ? `width:${width}px;height:5px` : `width:5px;height:${height}px;`"
:style="reverse ? `width:${width}px;height:5px;animation-duration:${dur}s` : `width:5px;height:${height}px;animation-duration:${dur}s`"
>
<svg :width="reverse ? width : 5" :height="reverse ? 5 : height">
<polyline
@ -40,6 +40,10 @@ export default {
reverse: {
type: Boolean,
default: false
},
dur: {
type: Number,
default: 3
}
},
data () {