zhangwei
4 天以前 33c5adad9cec6581ba4c0db54959d0fec0ec9756
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
@import './index.scss';
 
/* 页面宽度小于576px
------------------------------- */
@media screen and (max-width: $xs) {
    .el-form-item__label {
        width: 100% !important;
        text-align: left !important;
        // 移动端 label 右对齐问题
        justify-content: flex-start !important;
    }
    .el-form-item__content {
        margin-left: 0 !important;
    }
    .el-form-item {
        // 响应式表单时,登录页需要重新处理
        display: unset !important;
    }
    // 表格演示中的表单筛选
    .table-form-btn {
        display: flex !important;
        .el-form-item__label {
            width: auto !important;
        }
    }
    // 表格演示中的表单筛选最大高度,适配移动端
    .table-search-container {
        max-height: 160px;
        overflow: auto;
    }
    // 在小屏幕中,取消表单左边距
    .el-form-item__label-wrap {
        margin-left: 0px !important;
    }
    // 列表页查询表单内的输入框宽度适配
    .el-form--inline .el-form-item .el-select,
    .el-form--inline .el-form-item .el-input {
        width: 100% !important;
    }
    .el-form--inline .el-form-item:has(.el-form-item__label) {
        margin-right: 0;
    }
}