/* ============================================ * GX-WMS 通用列表(Grid)组件样式 * 与 grid.js 配套使用 * ============================================ */ .gx-grid { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow-x: auto; max-height: calc(100vh - 220px); overflow-y: auto; } .gx-grid table { width: 100%; border-collapse: collapse; min-width: 2400px; table-layout: fixed; } .gx-grid thead { background: #f7f9fc; } .gx-grid thead th { position: sticky; top: 0; background: #f7f9fc; z-index: 5; text-align: left; padding: 9px 8px; font-size: 12px; color: #606266; font-weight: 600; border-bottom: 2px solid #ebeef5; white-space: nowrap; border-right: 1px solid #ebeef5; position: relative; user-select: none; } .gx-grid thead th .gx-resizer { position: absolute; right: 0; top: 0; height: 100%; width: 6px; cursor: col-resize; user-select: none; } .gx-grid thead th .gx-resizer:hover { background: #409eff; } .gx-grid thead th .gx-resizer.active { background: #409eff; } .gx-grid tbody td { padding: 8px; font-size: 12px; color: #303133; border-bottom: 1px solid #f0f2f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid #f5f7fa; } .gx-grid tbody tr:hover { background: #f5f7fa; } .gx-grid tbody tr:nth-child(even) { background: #fafbfc; } .gx-grid tbody tr:nth-child(even):hover { background: #f5f7fa; } /* 风险标签 */ .gx-grid .tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; } .gx-grid .tag.broken { background: #fef0f0; color: #f56c6c; } .gx-grid .tag.warn { background: #fdf6ec; color: #e6a23c; } .gx-grid .tag.safe { background: #f0f9eb; color: #67c23a; } .gx-grid .tag.empty { background: #f4f4f5; color: #909399; } /* 数字 */ .gx-grid .num { font-family: 'Consolas','Monaco',monospace; } .gx-grid .num.zero { color: #c0c4cc; } .gx-grid .num.neg { color: #f56c6c; font-weight: 600; } /* 占位符 */ .gx-grid .muted { color: #909399; }