快乐的昕的电脑
2025-11-22 bf2bcc140436e35459c776f0e71c04fdfc74ae91
调试
已修改1个文件
53 ■■■■ 文件已修改
pages/index.vue 53 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index.vue
@@ -1087,25 +1087,48 @@
        border-color: #007aff !important;
    }
    /* 重点:设置选择框单元格的 padding 为 10px */
    :deep(th.el-checkbox) {
        padding: 10px !important;
     /* 覆盖 uni-table 选择列大小与内边距(H5 与非 H5 通用) */
     .uni-table .uni-table-tr > .checkbox {
         padding: 10px 10px 10px 14px !important; /* 你的要求:padding=10px,可稍微左缩进 */
         width: 90px !important; /* 扩宽整列 */
         box-sizing: border-box;
    }
    :deep(td.el-checkbox) {
        padding: 10px !important;
     .uni-table .uni-table-tr > .checkbox .uni-table-checkbox {
         margin: 0 !important; /* 去掉内部默认上下 margin */
    }
    .checkbox[data-v-c2c83a8e] {
        padding: 10px;
        width: 26px;
        padding-left: 12px;
        display: table-cell;
        vertical-align: middle;
        color: #333;
        font-weight: 500;
        border-bottom: 1px #ebeef5 solid;
        font-size: 14px;
     .uni-table .uni-table-tr > .checkbox .checkbox__inner {
         width: 36px !important;
         height: 36px !important;
         border-radius: 6px !important;
         border: 2px solid #007aff !important;
    }
     .uni-table .uni-table-tr > .checkbox .checkbox__inner.is-checked {
         background-color: #007aff !important;
         border-color: #007aff !important;
    }
     .uni-table .uni-table-tr > .checkbox .checkbox__inner-icon {
         top: 6px !important;
         left: 11px !important;
         height: 18px !important;
         width: 8px !important;
         border-width: 3px !important;
    }
     /* 表头行(第一行)checkbox 也加大(H5 的 <th class="checkbox">) */
     table.uni-table tr .checkbox {
         padding: 10px 10px 10px 14px !important;
         width: 90px !important;
    }
    /* 针对1280x800的平板使用媒体查询进行适配 */