Skip to content

Commit 7527b74

Browse files
committed
feat(x-web): UniPageImpl 补充缺失方法
1 parent b1e4a4e commit 7527b74

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

  • packages/uni-h5/src/x/framework/setup

packages/uni-h5/src/x/framework/setup/page.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,23 @@ class UniPageImpl implements UniPage {
249249
createElement() {
250250
return null as any
251251
}
252+
onLayoutChange() {
253+
return -1
254+
}
255+
offLayoutChange() {}
256+
onRenderChange() {
257+
return -1
258+
}
259+
offRenderChange() {}
260+
onTouchStart() {
261+
return -1
262+
}
263+
offTouchStart() {}
264+
onTouchEnd() {
265+
return -1
266+
}
267+
offTouchEnd() {}
268+
takeSnapshot() {}
252269
constructor({
253270
route,
254271
options,

0 commit comments

Comments
 (0)