提供两个Id共使用

This commit is contained in:
jonyshi 2019-01-24 19:50:17 +08:00
parent 043150368d
commit 4c979b5e65
2 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ class Demo23 extends Component {
draggable={true} draggable={true}
onDropBorder ={(e)=>{ onDropBorder ={(e)=>{
console.log("调整列宽后触发事件"); console.log("调整列宽后触发事件",e.target);
}} }}
/>; />;
} }

View File

@ -692,7 +692,7 @@ class Table extends Component {
} }
return <col key={c.key} style={{ width: width, minWidth: c.width }} className={fixedClass}/>; return <col key={c.key} style={{ width: width, minWidth: c.width }} className={fixedClass}/>;
})); }));
return <colgroup>{cols}</colgroup>; return <colgroup id="bee-table-colgroup">{cols}</colgroup>;
} }
renderDragHideTable = () => { renderDragHideTable = () => {
@ -815,7 +815,7 @@ class Table extends Component {
) : null; ) : null;
let _drag_class = this.props.dragborder ? "table-drag-bordered" : "" let _drag_class = this.props.dragborder ? "table-drag-bordered" : ""
return ( return (
<table className={` ${tableClassName} table-bordered ${_drag_class} `} style={tableStyle} > <table id="bee-table-uid" className={` ${tableClassName} table-bordered ${_drag_class} `} style={tableStyle} >
{/* {this.props.dragborder?null:this.getColGroup(columns, fixed)} */} {/* {this.props.dragborder?null:this.getColGroup(columns, fixed)} */}
{this.getColGroup(columns, fixed)} {this.getColGroup(columns, fixed)}
{hasHead ? this.getHeader(columns, fixed) : null} {hasHead ? this.getHeader(columns, fixed) : null}