fix:解决dragborder和draggable必须同时使用的问题
This commit is contained in:
parent
3a16ccb5c2
commit
e67d6d5cea
|
@ -557,7 +557,7 @@ var TableHeader = function (_Component) {
|
|||
if (dragborder) {
|
||||
this.dragBorderEventInit(); //列宽
|
||||
}
|
||||
if (dragborder) {
|
||||
if (draggable) {
|
||||
this.dragAbleEventInit(); //交换列
|
||||
}
|
||||
if (this.table && this.table.tr) {
|
||||
|
|
|
@ -69,7 +69,6 @@ class Demo22 extends Component {
|
|||
columns={columns}
|
||||
data={data}
|
||||
bordered
|
||||
dragborder={true}
|
||||
draggable={true}
|
||||
onDrop ={(event,data,columns)=>{
|
||||
console.log("--拖拽交换列后触发事件");
|
||||
|
|
|
@ -61,9 +61,8 @@ class Demo23 extends Component {
|
|||
columns={columns23}
|
||||
data={data23}
|
||||
bordered
|
||||
dragborder={true}
|
||||
draggable={true}
|
||||
scroll={{y:200}}
|
||||
dragborder={true}
|
||||
onDropBorder ={(e,width)=>{
|
||||
console.log(width+"--调整列宽后触发事件",e.target);
|
||||
}}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -112,7 +112,7 @@ class TableHeader extends Component {
|
|||
if(dragborder){
|
||||
this.dragBorderEventInit();//列宽
|
||||
}
|
||||
if(dragborder){
|
||||
if(draggable){
|
||||
this.dragAbleEventInit();//交换列
|
||||
}
|
||||
if(this.table && this.table.tr){
|
||||
|
|
Loading…
Reference in New Issue