.f-avatar{
    position: relative;
    // width: 100%;
    // height: 100%;
    cursor: pointer;
    overflow: hidden;
    &.f-avatar-readonly{
        cursor: default;
    }
    &.f-avatar-circle{
        border-radius: 100%;
        overflow: hidden;
    }
    &.f-avatar-square{
        border-radius: 0;
    }
    .f-avatar-image,.f-avatar-defult{
        display: inline-block;
        width: 100%;
        height: 100%;
    }
    .f-avatar-icon{
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.3);
        .f-icon{
            font-size: 24px;
            color: #fff;
        }
    }
    &.f-avatar-circle .f-avatar-icon{
        border-radius: 100%;
    }
    &.f-avatar-square .f-avatar-icon{
        border-radius: 0;
    }
    .f-avatar-upload-loading{
        position: absolute;
        left: 0;
        top: 0;
        display: inline-block;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.15);
        .loading-inner{
            position: absolute;
            width: 100%;
            left: 0;
            top: 50%;
            margin-top: -25px;
            height: 50px;
            line-height: 50px;
            text-align: center;
            font-size: 16px;
            color: #fff;
        }
    }
    &:hover{
        .f-avatar-icon{
            display: flex;
        }
    }
}