add borderbox3 component
This commit is contained in:
BIN
src/components/borderBox3/img/border.png
Normal file
BIN
src/components/borderBox3/img/border.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.0 KiB |
20
src/components/borderBox3/index.vue
Normal file
20
src/components/borderBox3/index.vue
Normal file
@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div class="border-box-3">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'BorderBox3'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
.border-box-3 {
|
||||
box-sizing: border-box;
|
||||
border-style: solid;
|
||||
border-image: url('./img/border.png') 17 24 18 19 fill;
|
||||
border-width: 24px;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user