update lib
This commit is contained in:
6
lib/components/borderBox10/index.js
Normal file
6
lib/components/borderBox10/index.js
Normal file
@ -0,0 +1,6 @@
|
||||
import './src/main.css'
|
||||
import BorderBox10 from './src/main.vue'
|
||||
|
||||
export default function (Vue) {
|
||||
Vue.component(BorderBox10.name, BorderBox10)
|
||||
}
|
29
lib/components/borderBox10/src/main.css
Normal file
29
lib/components/borderBox10/src/main.css
Normal file
@ -0,0 +1,29 @@
|
||||
.dv-border-box-10 {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
box-shadow: inset 0 0 25px 3px #1d48c4;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.dv-border-box-10 .border {
|
||||
position: absolute;
|
||||
display: block;
|
||||
}
|
||||
.dv-border-box-10 .right-top {
|
||||
right: 0px;
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
.dv-border-box-10 .left-bottom {
|
||||
bottom: 0px;
|
||||
transform: rotateX(180deg);
|
||||
}
|
||||
.dv-border-box-10 .right-bottom {
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
transform: rotateX(180deg) rotateY(180deg);
|
||||
}
|
||||
.dv-border-box-10 .border-box-content {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
31
lib/components/borderBox10/src/main.vue
Normal file
31
lib/components/borderBox10/src/main.vue
Normal file
@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="dv-border-box-10">
|
||||
<svg
|
||||
width="150px"
|
||||
height="150px"
|
||||
:key="item"
|
||||
v-for="item in border"
|
||||
:class="`${item} border`"
|
||||
>
|
||||
<polygon
|
||||
fill="#d3e1f8"
|
||||
points="40, 0 5, 0 0, 5 0, 16 3, 19 3, 7 7, 3 35, 3"
|
||||
/>
|
||||
</svg>
|
||||
|
||||
<div class="border-box-content">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'DvBorderBox10',
|
||||
data () {
|
||||
return {
|
||||
border: ['left-top', 'right-top', 'left-bottom', 'right-bottom']
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user