Skip to content

Commit 0ae52f3

Browse files
committed
Merge branch 'beta' into feat/popup-center-animation
2 parents cace0ce + bf49336 commit 0ae52f3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/mpx-cube-ui/src/components/popup/rn-mixin.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
import mpx, { getMixin } from '@mpxjs/core'
22

3-
let mixin = {} as Parameters<typeof getMixin>[0]
3+
let mixin = {
4+
methods: {
5+
// 避免web 调用报错
6+
initContentRect() { return Promise.resolve() }
7+
}
8+
} as Parameters<typeof getMixin>[0]
49
// eslint-disable-next-line
510
// @ts-ignore
611
if (__mpx_mode__ === 'ios' || __mpx_mode__ === 'android') {

0 commit comments

Comments
 (0)