<template>
    <div class="step-container">
        <span class="step-num">{{numText}}</span>
        <div class="step-content">
            <div class="step-text">{{stepText}}</div>
            <div class="step-time">{{stepTime}}</div>
        </div>
        <img :class="{'img-style':stepFlag}" :src="imgSrc"/>
    </div>
</template>
<script>
export default {
    props: {
        stepFlag: {
            type: Boolean,
            default: false
        },
        imgSrc: {
            type: String,
            default: ''
        },
        numText: {
            type: Number,
            default: 0
        },
        stepText: {
            type: String,
            default: ''
        },
        stepTime: {
            type: String,
            default: ''
        }
    }
}
</script>
<style lang="less" scoped>
.step-container {
    position: relative;
    display: flex;
    flex-direction: row;
    padding: 20px 10px 20px 0px;
    .step-num {
        display: inline-block;
        margin-top: 7px;
        font-size: 20px;
        line-height: 30px;
        color: #FFE8A5;
        width: 30px;
        height: 30px;
        border: 1px solid rgba(255,232,165,0.5);
        border-radius: 50%;
        text-align: center;
        font-weight: 700;
    }
    .step-content {
        padding-left: 10px;
        color: #FFE8A5;
        .step-text {
            font-size: 18px;
            font-weight: 700;
            padding-bottom: 8px;
        }
        .step-time {
            font-size: 13px;
        }
    }
    img {
        width: 40px;
        height: 40px;
        margin-left: 70px;
    }
    img.img-style {
        position: absolute;
        right: 10px;
        top: 0px;
        width: 65px;
        height: 65px;
    }
}
</style>