23 lines
554 B
Plaintext
23 lines
554 B
Plaintext
import { DebugService, FloatingDebugWindow} from '@b2c-spi/hx_cbas_api';
|
|
|
|
/**
|
|
* 悬浮窗页面
|
|
*/
|
|
@Entry
|
|
@Component
|
|
struct FloatingWindowPage {
|
|
build() {
|
|
Column() {
|
|
FloatingDebugWindow({
|
|
onMinimize: (): void => { DebugService.getInstance().minimizeToIcon(); },
|
|
onClose: (): void => { DebugService.getInstance().hideWindow(); },
|
|
onMove: (deltaX: number, deltaY: number): void => {
|
|
DebugService.getInstance().moveWindow(deltaX, deltaY);
|
|
}
|
|
})
|
|
}
|
|
.width('100%')
|
|
.height('100%')
|
|
}
|
|
|
|
} |