.lh-select {
    display: block;
    width: 100%;
    position: relative;
    .lh-select-text {
        width: 100%;
        color: @color_b1;
        display: block;
        background-color: #ffffff;
        border-radius: 2px;
        border: solid 1px @color_b5;
        height: 32px;
        padding: 0 7px 0 3px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        position: relative;
        user-select: none;
        //单选
        .lh-select-single {
            line-height: 30px;
            font-size: 14px;
            width: 100%;
            padding-right: 15px;
            margin-left: 4px;
        }
        .lh-select-placeholder {
            line-height: 30px;
            font-size: 14px;
            color: @color_b4;
            margin-left: 4px;
        }
        //多选
        .lh-select-node {
            display: inline-block;
            height: 24px;
            line-height: 24px;
            font-size: 12px;
            background-color: @color_b6;
            border-radius:2px;
            padding:0 7px 0 7px;
            margin:3px 4px 0 0;
            color: @color_b1;
            max-width: -moz-calc(~"100% - 50px");
            max-width: -webkit-calc(~"100% - 50px");
            max-width: calc(~"100% - 50px");
            position: relative;
            .icon_component_close {
                cursor: pointer;
                position: absolute;
                right: 4px;
                font-size: 14px;
                color:@color_b4;
                &:hover {
                    color:@color_b3;
                }
            }
            &.lh-select-node-close {
                padding:0 4px 0 4px;
            }
        }
        .dropdown-icon {
            position: absolute;
            right: 8px;
            top: 8px;
            font-size:14px;
            color:@color_b4;
            transition: All 0.3s ease-in-out;
            line-height: 1;
        }
        // 实心直角三角
        .dropdown-icon-caret-bottom {
            width: 0;
            height: 0;
            border-left: 4px solid transparent;
            border-right: 4px solid transparent;
            border-top: 4px solid #858585;
            position: absolute;
            right: 14px;
            top: 10px;
            transition: All 0.3s ease-in-out;
            &.disabled {
                display: none;
            }
        }
        &:hover {
            border-color: @color_theme5;
        }
        &.error {
            border-color: #e9563e;
        }
        &.disabled {
            background-color: @color_b7;
            border-color: @color_b5;
            cursor: no-drop;
            .dropdown-icon {
                color:@color_b4;
            }
            .lh-select-single {
                color: @color_b4;
            }
        }
    }
    //上面那个三角形，其实可以用伪类啊。
    .triangle_border_up {
        display: none;
        width: 0;
        height: 0;
        border-width: 0 6px 6px;
        border-style: solid;
        border-color: transparent transparent #e8ecf1;
        position: absolute;
        z-index: 11;
        left: 50%;
        margin-left: -6px;

        &:before {
            content: "";
            display: block;
            width: 0;
            height: 0;
            border-width: 0 6px 6px;
            border-style: solid;
            border-color: transparent transparent #fff;
            position: absolute;
            top: 1px;
            left: -6px;
        }
    }
    &.mini {
        .lh-select-text {
            height:24px;
            .lh-select-single {
                font-size: 12px;
                line-height: 22px;
            }
            .lh-select-placeholder {
                line-height: 22px;
                font-size: 12px;
            }
            .lh-select-node {
                height: 16px;
                margin-top: 3px;
                margin-right: 2px;
                line-height: 16px;
                max-width: -moz-calc(~"100% - 38px");
                max-width: -webkit-calc(~"100% - 38px");
                max-width: calc(~"100% - 38px");
            }
            .dropdown-icon {
                top: 4px;
                right:4px;
            }
        }
    }
    &.active {
        .triangle_border_up {
            display: block;
        }
        .lh-select-text {
            border-color: @color_theme6;
            .dropdown-icon {
                -webkit-transform:rotate(-180deg);
                transform:rotate(-180deg);
            }
            .dropdown-icon-caret-bottom {
                transform: rotate(-180deg);
            }
        }
        &.mini {
            .lh-select-text {
                .dropdown-icon {
                    -webkit-transform:rotate(-180deg);
                    transform:rotate(-180deg);
                }
            }
        }
    }
}
.lh-select-ul {
    // display: none;
    min-height: 10px; //网上查到一种说法，说这个min-height 可以让内部的div把外层撑起来  https://www.cnblogs.com/fatty-yu/p/6252758.html（链接：里面的div怎么撑开外面的div,让高度自适应）
    // border-radius: 3px;
    // box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.05);
    // border: solid 1px @color_b5;
    background-color: #ffffff;
    padding: 4px 0 4px 0;
    .nullMsg {
        color: #b8bbc3;
        text-align: center;
    }
    .lh-select-search {
        width: 100%;
        padding-top: 8px;
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 6px;
    }
    ul {
        width: 100%;
        li {
            font-size: 14px;
            background-color: #fff;
            border-radius: 2px;
            height: 32px;
            line-height: 32px;
            padding: 0 12px;
            color: @color_b1;
            cursor: pointer;
            //超限显示...
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            &:hover {
              background-color: @color_b7;
            }
            &.active {
                background-color: @color_theme1;
                font-weight: bold;
            }
            &.disabled {
                background-color: #fff;
                color: #b0b1b9;
                cursor: not-allowed;
            }
            span {
                &.events-none {
                    pointer-events: none;
                }
            }
        }
    }
    &.mini {
        ul {
            padding: 0 0 0 0;
            li {
                font-size: 12px;
                height: 22px;
                line-height: 22px;
                padding-left: 6px;
                padding-right: 6px;
            }
        }
        .lh-select-search {
            padding-top: 0;
            padding-left: 6px;
            padding-right: 6px;
        }
    }
}
.lh-select-dialog-title {
    position: fixed;
    z-index: 10000;
    border: 1px solid #222;
    background-color: #fff;
    padding: 4px 5px;
    max-width: 850px;
}
// 下拉popover样式覆写
.lh-select-popover-content {
    overflow: hidden;
}
