add borderbox2 component

This commit is contained in:
jiaming committed 2018-12-05 13:49:11 +08:00
1 parent 84e2374814
commit 9964f4e75c
2 files changed
+20

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 B

+20
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>