<template>
    <div class="ht-base-grid-justify-demo">
        <p>子元素向左排列</p>
        <ht-base-row type="flex" justify="start" class="demo-code-row-bg">
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
        </ht-base-row>
        <p>子元素向右排列</p>
        <ht-base-row type="flex" justify="end" class="demo-code-row-bg">
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
        </ht-base-row>
        <p>子元素居中排列</p>
        <ht-base-row type="flex" justify="center" class="demo-code-row-bg">
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
        </ht-base-row>
        <p>子元素等宽排列</p>
        <ht-base-row type="flex" justify="space-between" class="demo-code-row-bg">
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
        </ht-base-row>
        <p>子元素分散排列</p>
        <ht-base-row type="flex" justify="space-around" class="demo-code-row-bg">
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
            <ht-base-col class="demo-col" span="4">col-4</ht-base-col>
        </ht-base-row>
    </div>
</template>

<script>
    export default {
        name: 'HtBaseGridJustifyDemo',
    }
</script>
<style lang="less">
    .ht-base-grid-justify-demo {
        .demo-col {
            background: #106CB9;
            opacity: .5;
            color: #fff;
            padding: 10px 0;
            text-align: center;
        }
        .demo-col:nth-child(odd) {
            opacity: .7;
        }
        .demo-code-row-bg {
            background: #F5F5F5;
            margin-bottom: 5px;
        }

    }
</style>

