mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-18 12:35:31 -04:00
!523 EventPriority白屏问题修复
Merge pull request !523 from liuyanzhi2020/liu0722
This commit is contained in:
@@ -252,7 +252,8 @@ export function mockCommonEvent() {
|
||||
if (typeof args[len - 1] === 'function') {
|
||||
args[len - 1].call(this, paramMock.businessErrorMock);
|
||||
}
|
||||
}
|
||||
},
|
||||
Support
|
||||
}
|
||||
return commonEvent
|
||||
}
|
||||
|
||||
@@ -55,6 +55,9 @@ export function mockEmitter() {
|
||||
console.warn("emitter.emit interface mocked in the Previewer. How this interface works on the" +
|
||||
" Previewer may be different from that on a real device.");
|
||||
},
|
||||
EventData,
|
||||
InnerEvent,
|
||||
EventPriority
|
||||
}
|
||||
return emitter
|
||||
}
|
||||
|
||||
@@ -419,6 +419,9 @@ export function mockNotification() {
|
||||
});
|
||||
}
|
||||
},
|
||||
SlotType,
|
||||
ContentType,
|
||||
SlotLevel,
|
||||
subscribe: function (...args) {
|
||||
console.warn('notification.subscribe interface mocked in the Previewer. How this interface works on the' +
|
||||
' Previewer may be different from that on a real device.');
|
||||
@@ -778,7 +781,13 @@ export function mockNotification() {
|
||||
resolve(paramMock.paramBooleanMock);
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
BundleOption,
|
||||
NotificationKey,
|
||||
DoNotDisturbType,
|
||||
DoNotDisturbDate,
|
||||
DeviceRemindType,
|
||||
SourceType
|
||||
}
|
||||
return notification
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user