| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /**
- * TableBlock.css - 表格块样式
- */
- .table-block-wrapper {
- margin-bottom: 16px;
- position: relative;
- overflow: visible;
- }
- .table-container {
- overflow: visible; /* 改为visible以显示拖拽线 */
- margin: 8px 0;
- position: relative; /* 为虚拟拖拽线提供定位上下文 */
- }
- .table-block {
- border-collapse: collapse;
- width: 100%;
- max-width: 100%;
- background-color: #ffffff;
- transition: none; /* 拖拽时禁用过渡 */
- }
- /* 拖拽中的表格状态 */
- .table-block.table-resizing {
- user-select: none;
- }
- .table-block.table-selecting,
- .table-block.table-selecting * {
- user-select: none;
- }
- .table-block th,
- .table-block td {
- border: 1px solid #d9d9d9;
- padding: 8px 12px;
- text-align: left;
- }
- .table-block th {
- background-color: #fafafa;
- font-weight: 600;
- }
- /* 尺寸提示 Tooltip */
- .resize-tooltip {
- position: fixed;
- background: rgba(0, 0, 0, 0.75);
- color: white;
- padding: 4px 8px;
- border-radius: 4px;
- font-size: 12px;
- pointer-events: none;
- z-index: 1001;
- white-space: nowrap;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
- }
- /* 性能优化 - 使用will-change */
- .table-block.table-resizing,
- .table-block.table-resizing * {
- will-change: width, height;
- }
|