<template>
    <div class="ht-base-grid-align-demo">
        <p>顶部对齐</p>
        <ht-base-row type="flex" justify="center" align="top" class="demo-code-row-bg">
            <ht-base-col class="demo-col" span="4"><p style="height: 80px;color: #fff;">col-4</p></ht-base-col>
            <ht-base-col class="demo-col" span="4"><p style="height: 30px;color: #fff;">col-4</p></ht-base-col>
            <ht-base-col class="demo-col" span="4"><p style="height: 100px;color: #fff;">col-4</p></ht-base-col>
            <ht-base-col class="demo-col" span="4"><p style="height: 60px;color: #fff;">col-4</p></ht-base-col>
        </ht-base-row>
        <p>底部对齐</p>
        <ht-base-row type="flex" justify="center" align="bottom" class="demo-code-row-bg">
            <ht-base-col class="demo-col" span="4"><p style="height: 80px;color: #fff;">col-4</p></ht-base-col>
            <ht-base-col class="demo-col" span="4"><p style="height: 30px;color: #fff;">col-4</p></ht-base-col>
            <ht-base-col class="demo-col" span="4"><p style="height: 100px;color: #fff;">col-4</p></ht-base-col>
            <ht-base-col class="demo-col" span="4"><p style="height: 60px;color: #fff;">col-4</p></ht-base-col>
        </ht-base-row>
        <p>居中对齐</p>
        <ht-base-row type="flex" justify="center" align="middle" class="demo-code-row-bg">
            <ht-base-col class="demo-col" span="4"><p style="height: 80px;color: #fff;">col-4</p></ht-base-col>
            <ht-base-col class="demo-col" span="4"><p style="height: 30px;color: #fff;">col-4</p></ht-base-col>
            <ht-base-col class="demo-col" span="4"><p style="height: 100px;color: #fff;">col-4</p></ht-base-col>
            <ht-base-col class="demo-col" span="4"><p style="height: 60px;color: #fff;">col-4</p></ht-base-col>
        </ht-base-row>
    </div>
</template>

<script>
    export default {
        name: 'HtBaseGridAlignDemo',
    }
</script>
<style lang="less">
    .ht-base-grid-align-demo {
        .demo-col {
            background: #106CB9;
            opacity: .5;
            padding: 30px 0;
            text-align: center;
        }

        .demo-col:nth-child(odd) {
            opacity: .7;
        }

        .demo-code-row-bg {
            background: #F5F5F5;
            margin-bottom: 5px;
        }
    }
</style>

