diff --git a/packages/overlay/README.md b/packages/overlay/README.md index fadd3a60..8c743663 100644 --- a/packages/overlay/README.md +++ b/packages/overlay/README.md @@ -94,7 +94,8 @@ Page({ | duration | 动画时长,单位秒 | _string \| number_ | `0.3` | | class-name | 自定义类名 | _string_ | - | | custom-style | 自定义样式 | _string_ | - | -| lock-scroll `v1.7.3` | 是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动 | _boolean_ | true | +| lock-scroll `v1.7.3` | 是否锁定背景滚动,锁定时蒙层里的内容也将无法滚动 | _boolean_ | `true` | +| root-portal `v1.10.14` | 是否从页面中脱离出来,用于解决各种 fixed 失效问题,微信基础库 >= `2.25.2 ` | _boolean_ | `false` | ### Events diff --git a/packages/overlay/index.ts b/packages/overlay/index.ts index 0fdfa777..7614c612 100644 --- a/packages/overlay/index.ts +++ b/packages/overlay/index.ts @@ -16,6 +16,10 @@ VantComponent({ type: Boolean, value: true, }, + rootPortal: { + type: Boolean, + value: false, + }, }, methods: { diff --git a/packages/overlay/index.wxml b/packages/overlay/index.wxml index 4ac2c6dd..17fc56ff 100644 --- a/packages/overlay/index.wxml +++ b/packages/overlay/index.wxml @@ -1,21 +1,7 @@ - - - - - - + + + + + + + diff --git a/packages/overlay/overlay.wxml b/packages/overlay/overlay.wxml new file mode 100644 index 00000000..017e8018 --- /dev/null +++ b/packages/overlay/overlay.wxml @@ -0,0 +1,10 @@ + + + \ No newline at end of file