add borderbox2 component

This commit is contained in:
jiaming 2018-12-05 13:49:11 +08:00
parent 84e2374814
commit 9964f4e75c
2 changed files with 20 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

View File

@ -0,0 +1,20 @@
<template>
<div class="border-box-2">
<slot></slot>
</div>
</template>
<script>
export default {
name: 'BorderBox2'
}
</script>
<style lang="less">
.border-box-2 {
box-sizing: border-box;
border-style: solid;
border-image: url('./img/border.png') 14 fill;
border-width: 14px;
}
</style>