el-input 样式设置

<!--

 * @Description:

 * @Author: wwf

 * @Date: 2022-05-18 14:42:31

 * @LastEditTime: 2022-05-18 16:28:31

 * @LastEditors: wwf

-->

<template>

    <div class="GlobalSeach">

        <div class="GlobalSeachInput">

            <el-input v-model="inputValue" placeholder="搜索" clearable />

        </div>

        <div class="search">搜索</div>

    </div>

</template>

<script lang="ts">

import { defineComponent, reactive, toRefs } from 'vue'

import { ref } from 'vue'

export default defineComponent({

    name: '',

    setup() {

        const inputValue = ref('')

        const state = reactive({})

        return {

            ...toRefs(state),

            inputValue

        }

    }

})

</script>

<style scoped lang="scss">

.GlobalSeach {

    width: 382px;

    height: 54px;

    background: url('../../assets/top/search.png') no-repeat;

    position: absolute;

    top: 95px;

    left: 29px;

    display: flex;

    justify-content: flex-start;

    align-content: center;

    .GlobalSeachInput {

        width: 310px;

        margin-left: 10px;

    }

    .search {

        width: 50px;

        height: 36px;

        line-height: 36px;

        text-align: center;

        background-color: #2fbbe1;

        font-size: 14px;

        font-family: SourceHanSansCN-Normal, SourceHanSansCN;

        font-weight: 400;

        color: #ffffff;

        opacity: 0.85;

        margin-top: 9px;

        cursor: pointer;

    }

    ::v-deep .el-input__wrapper {

        --el-input-inner-height: calc(var(--el-input-height) - 2px);

        display: inline-flex;

        flex-grow: 1;

        align-items: center;

        justify-content: center;

        padding: 1px 11px;

        background-color: rgba(21, 43, 56, 0.65);

        background-image: none;

        border-radius: 0;

        margin-top: 9px;

        border: none !important;

        border-color: rgba(21, 43, 56, 0.65) !important;

        box-shadow: 0 0 0 1px rgba(21, 43, 56, 0.65);

    }

    ::v-deep .el-input__inner {

        width: 100%;

        height: 34px;

        flex-grow: 1;

        -webkit-appearance: none;

        font-size: inherit;

        line-height: var(--el-input-inner-height);

        padding: 0;

        outline: 0;

        border: none !important;

        // background: 0 0;

        box-sizing: border-box;

        color: #dbe1e3 !important;

    }

    // :deep(.el-input__inner) {

    //     height: 36px;

    //     background: linear-gradient(360deg, rgba(22, 208, 255, 0.26) 0%, rgba(2, 51, 64, 0.19) 100%) !important;

    //     color: #dbe1e3 !important;

    //     // border: 1px solid rgba(21, 43, 56, 1) !important;

    //     border: none !important;

    // }

    :deep(.el-input__icon) {

        color: #3eeff2 !important;

        cursor: pointer;

    }

}

</style>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值