fix: 修复 ios 没有 DragEvent 会报错问题 (#6490)

This commit is contained in:
吴多益 2023-03-29 14:12:00 +08:00 committed by GitHub
parent 3071cce849
commit d749c78409
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {}
});
}