optmization
This commit is contained in:
21
src/components/forSlot/index.vue
Normal file
21
src/components/forSlot/index.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div class="for-slot">
|
||||
<slot />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ForSlot'
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
.for-slot {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user