mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
fix: 修复 ios 没有 DragEvent 会报错问题 (#6490)
This commit is contained in:
parent
3071cce849
commit
d749c78409
@ -16,3 +16,10 @@ import 'core-js/es/symbol';
|
||||
|
||||
import './cloest';
|
||||
import './classList';
|
||||
|
||||
// ios 没有这个会报错
|
||||
if (!'DragEvent' in window) {
|
||||
Object.defineProperty(window, 'DragEvent', {
|
||||
value: class DragEvent {}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user