add borderbox2 component
This commit is contained in:
parent
84e2374814
commit
9964f4e75c
Binary file not shown.
After Width: | Height: | Size: 549 B |
|
@ -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>
|
Loading…
Reference in New Issue