快乐的昕的电脑
2025-11-22 0bab22e5fa317dce2c1a003fabefb8f23205721e
调试
已修改1个文件
34 ■■■■■ 文件已修改
pages/index.vue 34 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/index.vue
@@ -192,7 +192,7 @@
                        <view class="section card">
                            <uni-table ref="table" type="selection" border stripe emptyText="暂无更多数据"
                                       @selection-change="selectionChange">
                                       class="large-selection-table" @selection-change="selectionChange">
                                <uni-tr>
                                    <uni-th align="center" class="th" style="color: #FFFFFF; width: 100px;">工序</uni-th>
                                    <uni-th align="center" class="th" style="color: #FFFFFF; width: 120px;">工单号</uni-th>
@@ -1060,29 +1060,23 @@
    }
    /* 放大uni-table选择框 */
    .uni-table .uni-table-selection,
    .uni-table .uni-table__selection-column {
        width: 80px !important;
        min-width: 80px !important;
    /* 通过自定义类名放大选择框 */
    .large-selection-table .uni-table-selection,
    .large-selection-table .uni-table__selection-column {
        width: 120px !important;
        min-width: 120px !important;
    }
    .uni-table .uni-table-selection .uni-checkbox-input,
    .uni-table .uni-table__selection-column .uni-checkbox-input {
        width: 40px !important;
        height: 40px !important;
        transform: scale(1.5);
        margin: 0 auto;
        display: block;
    .large-selection-table .uni-checkbox-input {
        width: 48px !important;
        height: 48px !important;
        transform: scale(2) !important;
        border: 3px solid #007aff !important;
    }
    /* 确保选择框在行中垂直居中 */
    .uni-table .uni-table-selection .uni-checkbox-wrapper,
    .uni-table .uni-table__selection-column .uni-checkbox-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
    .large-selection-table .uni-checkbox-input.uni-checkbox-input-checked {
        background-color: #007aff !important;
        border-color: #007aff !important;
    }
    /* 针对1280x800的平板使用媒体查询进行适配 */