Commit e9dc8a33 authored by zhangwenshuai's avatar zhangwenshuai

完善拖拽列功能

parent 49fb06fc
...@@ -142,6 +142,7 @@ ...@@ -142,6 +142,7 @@
bottom: 0; bottom: 0;
background: rgba(0,0,0,0.3); background: rgba(0,0,0,0.3);
z-index: 5; z-index: 5;
pointer-events: none; //pointer-events: none;
display: none; display: none;
cursor: grab;
} }
...@@ -317,9 +317,10 @@ export default class AirTable extends Component<TableProps, TableState> { ...@@ -317,9 +317,10 @@ export default class AirTable extends Component<TableProps, TableState> {
questionText, questionText,
icon, icon,
requiredFlag, requiredFlag,
orderNo,
} = showColumns[columnIndex]; } = showColumns[columnIndex];
return ( return (
<DragSorted columnConfig={showColumns[columnIndex]} onDropFinish={onDragSorted} onScroll={this.onScrollHor} className={styles.headerCell} key={key} style={style}> <DragSorted columnName={columnName} orderNo={orderNo} onDropFinish={onDragSorted} onScroll={this.onScrollHor} className={styles.headerCell} key={key} style={style}>
<ResizableBox <ResizableBox
width={style.width} width={style.width}
handle={ handle={
...@@ -805,7 +806,7 @@ export default class AirTable extends Component<TableProps, TableState> { ...@@ -805,7 +806,7 @@ export default class AirTable extends Component<TableProps, TableState> {
}} }}
/> />
</div> </div>
<div id="columnCopyDiv" className={styles.columnCopyDiv} /> <div id="columnCopyDiv" className={styles.columnCopyDiv} draggable={true} />
</div> </div>
); );
}} }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment