| | |
| | | |
| | | <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> |
| | |
| | | |
| | | <style lang="scss"> |
| | | |
| | | :deep(.checkbox), |
| | | :deep(.checkbox__inner) { |
| | | padding: 10px !important; |
| | | width: 44px !important; |
| | | min-width: 44px !important; |
| | | box-sizing: border-box; |
| | | } |
| | | |
| | | .row-selected { |
| | | background-color: #e0f3ff !important; |
| | | } |
| | |
| | | /* 可选:设置最大宽度,防止撑破表格 */ |
| | | max-width: 180px; |
| | | overflow-wrap: break-word; |
| | | } |
| | | |
| | | /* ///* 放大uni-table选择框列(兼容uni-table和原生table) */ |
| | | //.uni-table .uni-table-selection, |
| | | //.uni-table .uni-table-selection th, |
| | | //.uni-table .uni-table-selection td, |
| | | //.uni-table .uni-table__selection-column, |
| | | //.uni-table .uni-table__selection-column th, |
| | | //.uni-table .uni-table__selection-column td { |
| | | // width: 60px !important; /* 调大宽度,可根据需要调整 */ |
| | | // min-width: 60px !important; |
| | | // max-width: 80px; |
| | | // text-align: center; |
| | | //}*/ |
| | | |
| | | .uni-table .uni-table-selection .uni-checkbox-input, |
| | | .uni-table .uni-table__selection-column .uni-checkbox-input { |
| | | width: 32px !important; /* 放大复选框 */ |
| | | height: 32px !important; |
| | | transform: scale(2); /* 进一步放大 */ |
| | | margin: 0 auto; |
| | | display: block; |
| | | } |
| | | |
| | | /* 针对1280x800的平板使用媒体查询进行适配 */ |