We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cace0ce + bf49336 commit 0ae52f3Copy full SHA for 0ae52f3
1 file changed
packages/mpx-cube-ui/src/components/popup/rn-mixin.ts
@@ -1,6 +1,11 @@
1
import mpx, { getMixin } from '@mpxjs/core'
2
3
-let mixin = {} as Parameters<typeof getMixin>[0]
+let mixin = {
4
+ methods: {
5
+ // 避免web 调用报错
6
+ initContentRect() { return Promise.resolve() }
7
+ }
8
+} as Parameters<typeof getMixin>[0]
9
// eslint-disable-next-line
10
// @ts-ignore
11
if (__mpx_mode__ === 'ios' || __mpx_mode__ === 'android') {
0 commit comments