fix: 兼容IE

This commit is contained in:
gx 2021-04-13 15:48:33 +08:00
parent 87ed08a724
commit 6524a1d9aa
3 changed files with 11 additions and 7 deletions

View File

@ -262,9 +262,11 @@ var TableHeader = function (_Component) {
var events = [{ key: 'mouseup', fun: this.onTrMouseUp }, { key: 'mousemove', fun: this.onTrMouseMove }];
// this.eventListen(events,'remove',this.table.tr[0]);
if (this.table && this.table.tr) {
this.doEventList(this.table.tr, function (tr) {
_this5.eventListen(events, 'remove', _this5.table.tr);
});
}
};
TableHeader.prototype.eventListen = function eventListen(events, type, eventSource) {

View File

@ -1,6 +1,6 @@
{
"name": "bee-table",
"version": "2.3.15-beta.20",
"version": "2.3.15-beta.21",
"description": "Table ui component for react",
"keywords": [
"react",

View File

@ -210,10 +210,12 @@ class TableHeader extends Component {
{key:'mousemove', fun:this.onTrMouseMove},
];
// this.eventListen(events,'remove',this.table.tr[0]);
if(this.table && this.table.tr){
this.doEventList(this.table.tr,(tr)=>{
this.eventListen(events,'remove',this.table.tr);
})
}
}
eventListen(events,type,eventSource){
if(!this.table)return;