diff --git a/runtime/main/extend/systemplugin/napi/ohos_window.js b/runtime/main/extend/systemplugin/napi/ohos_window.js index 4136794d..ff040641 100644 --- a/runtime/main/extend/systemplugin/napi/ohos_window.js +++ b/runtime/main/extend/systemplugin/napi/ohos_window.js @@ -635,6 +635,26 @@ export const Window = { }) } }, + setBlur: function() { + console.warn("Window.setBlur interface mocked in the Previewer. How this interface works on the" + + " Previewer may be different from that on a real device.") + }, + setBackdropBlur: function() { + console.warn("Window.setBackdropBlur interface mocked in the Previewer. How this interface works on the" + + " Previewer may be different from that on a real device.") + }, + setBackdropBlurStyle: function() { + console.warn("Window.setBackdropBlurStyle interface mocked in the Previewer. How this interface works on the" + + " Previewer may be different from that on a real device.") + }, + setShadow: function() { + console.warn("Window.setShadow interface mocked in the Previewer. How this interface works on the" + + " Previewer may be different from that on a real device.") + }, + setCornerRadius: function() { + console.warn("Window.setCornerRadius interface mocked in the Previewer. How this interface works on the" + + " Previewer may be different from that on a real device.") + }, } export const windowMock = Window @@ -642,6 +662,12 @@ export const windowMock = Window export function mockWindow() { const window = { + BlurStyle: { + OFF: 0, + THIN: 1, + REGULAR: 2, + THICK: 3 + }, getTopWindow: function(...args) { console.warn("Window.getTopWindow interface mocked in the Previewer. How this interface works on the Previewer" + "may be different from that on a real device.")