<template>
    <div v-bind:class="{ searchLayout: true, searchLayoutBox: needBox }">
        <div class="searchOptions inputBox">
            <div class="inputBox">
                <slot name="searchItem1"></slot>
            </div>
            <div class="inputBox">
                <slot name="searchItem2"></slot>
            </div>
            <div class="inputBox">
                <slot name="searchItem3"></slot>
            </div>
            <div class="inputBox">
                <slot name="searchItem4"></slot>
            </div>
            <div class="inputBox">
                <slot name="searchItem5"></slot>
            </div>
            <div class="inputBox">
                <slot name="searchItem6"></slot>
            </div>
            <div class="inputBox">
                <slot name="searchItem7"></slot>
            </div>
            <div class="inputBox">
                <slot name="searchItem8"></slot>
            </div>
            <div class="inputBox searchItem27">
                <slot name="searchItem27"></slot>
            </div>
            <!-- <div class="speBox">
                <slot name="searchItemSpe1"></slot>
            </div> -->
        </div>
        <div class="btns">
            <slot name="searchBtn1"></slot>
            <slot name="searchBtn2"></slot>
        </div>
    </div>
</template>

<script>
export default {
    name: "searchLayout",
    data() {
        return {};
    },
    props: {
        needBox: {
            type: Boolean,
            default: false,
        },
    },
    created() {},

    mounted() {},
};
</script>
<style lang="less" scoped>
.searchLayout {
    display: flex;
    margin: 24px 12px 0;

    .searchOptions {
        display: flex;
        flex: 1;
        flex-wrap: wrap;
        

        > div {
            display: flex;
            margin-right: 20px;
            margin-bottom: 22px;
            align-items: center;
        }
    }

    .searchItem27 {
        flex-basis: 100%;
    }
}
</style>
