stack组件示例
基本用法
<template>
<stack class="wrapper">
<div class="under-box">
<text class="under-text">under</text>
</div>
<div class="above-box">
<text class="above-text">above</text>
</div>
</stack>
</template>
<script>
export default {}
</script>
<style>
.wrapper {
width: 480px;
height: 480px;
flex-direction: column;
align-items: center;
justify-content: center;
}
.under-box {
width: 400px;
height: 400px;
justify-content: flex-start;
align-items: flex-start;
background-color: #6a88e6;
}
.above-box {
width: 200px;
height: 80px;
background-color: #e8f3fe;
}
.under-text {
font-size: 100px;
}
</style>
复制代码