fix: 兼容IE
This commit is contained in:
parent
87ed08a724
commit
6524a1d9aa
|
@ -262,9 +262,11 @@ var TableHeader = function (_Component) {
|
||||||
|
|
||||||
var events = [{ key: 'mouseup', fun: this.onTrMouseUp }, { key: 'mousemove', fun: this.onTrMouseMove }];
|
var events = [{ key: 'mouseup', fun: this.onTrMouseUp }, { key: 'mousemove', fun: this.onTrMouseMove }];
|
||||||
// this.eventListen(events,'remove',this.table.tr[0]);
|
// this.eventListen(events,'remove',this.table.tr[0]);
|
||||||
|
if (this.table && this.table.tr) {
|
||||||
this.doEventList(this.table.tr, function (tr) {
|
this.doEventList(this.table.tr, function (tr) {
|
||||||
_this5.eventListen(events, 'remove', _this5.table.tr);
|
_this5.eventListen(events, 'remove', _this5.table.tr);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
TableHeader.prototype.eventListen = function eventListen(events, type, eventSource) {
|
TableHeader.prototype.eventListen = function eventListen(events, type, eventSource) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bee-table",
|
"name": "bee-table",
|
||||||
"version": "2.3.15-beta.20",
|
"version": "2.3.15-beta.21",
|
||||||
"description": "Table ui component for react",
|
"description": "Table ui component for react",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"react",
|
"react",
|
||||||
|
|
|
@ -210,10 +210,12 @@ class TableHeader extends Component {
|
||||||
{key:'mousemove', fun:this.onTrMouseMove},
|
{key:'mousemove', fun:this.onTrMouseMove},
|
||||||
];
|
];
|
||||||
// this.eventListen(events,'remove',this.table.tr[0]);
|
// this.eventListen(events,'remove',this.table.tr[0]);
|
||||||
|
if(this.table && this.table.tr){
|
||||||
this.doEventList(this.table.tr,(tr)=>{
|
this.doEventList(this.table.tr,(tr)=>{
|
||||||
this.eventListen(events,'remove',this.table.tr);
|
this.eventListen(events,'remove',this.table.tr);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
eventListen(events,type,eventSource){
|
eventListen(events,type,eventSource){
|
||||||
if(!this.table)return;
|
if(!this.table)return;
|
||||||
|
|
Loading…
Reference in New Issue