Sfoglia il codice sorgente

fix: 修改dnd-layout大小与实际不一致

xyh 2 anni fa
parent
commit
9552715922
1 ha cambiato i file con 1 aggiunte e 9 eliminazioni
  1. 1 9
      packages/app/src/components/table/header-th/index.tsx

+ 1 - 9
packages/app/src/components/table/header-th/index.tsx

@@ -20,7 +20,7 @@ const HeaderTh: FC<Props> = function ({header, useDiv}) {
   const isResizing = header.column.getIsResizing();
 
   const style: CSSProperties = {
-    width: header.getSize(),
+    width: `${header.getSize()}px !important`,
     cursor: isResizing ? 'col-resize' : fixed ? 'auto' : 'move',
     boxShadow: useDiv
       ? '0.5px 0.6px 12.3px rgba(0, 0, 0, 0.059),4px 5px 80px rgba(0, 0, 0, 0.1)'
@@ -40,14 +40,6 @@ const HeaderTh: FC<Props> = function ({header, useDiv}) {
         {header.isPlaceholder
           ? null
           : flexRender(header.column.columnDef.header, header.getContext())}
-
-        <div
-          onMouseDown={header.getResizeHandler()}
-          onPointerDown={e => e.stopPropagation()}
-          className={classNames(css.resizer, {
-            [css.resizing]: header.column.getIsResizing(),
-          })}
-        />
       </div>
     );
   }