diff --git a/packages/action-sheet/test/__snapshots__/demo.spec.ts.snap b/packages/action-sheet/test/__snapshots__/demo.spec.ts.snap index 138de9f7..94db079b 100644 --- a/packages/action-sheet/test/__snapshots__/demo.spec.ts.snap +++ b/packages/action-sheet/test/__snapshots__/demo.spec.ts.snap @@ -55,6 +55,7 @@ exports[`should render demo and match snapshot 1`] = ` bind:close="onClickOverlay" > = `2.25.2 ` | _boolean_ | `false` | ### Events diff --git a/packages/popup/index.ts b/packages/popup/index.ts index fef1f49b..a4b2f71d 100644 --- a/packages/popup/index.ts +++ b/packages/popup/index.ts @@ -64,6 +64,10 @@ VantComponent({ type: Boolean, value: true, }, + rootPortal: { + type: Boolean, + value: false, + }, }, created() { diff --git a/packages/popup/index.wxml b/packages/popup/index.wxml index fad03082..ab824b15 100644 --- a/packages/popup/index.wxml +++ b/packages/popup/index.wxml @@ -1,6 +1,8 @@ + + - - - - + + + + + + diff --git a/packages/popup/popup.wxml b/packages/popup/popup.wxml new file mode 100644 index 00000000..25b57fe1 --- /dev/null +++ b/packages/popup/popup.wxml @@ -0,0 +1,14 @@ + + + + diff --git a/packages/popup/test/__snapshots__/demo.spec.ts.snap b/packages/popup/test/__snapshots__/demo.spec.ts.snap index a56a4456..7f6048de 100644 --- a/packages/popup/test/__snapshots__/demo.spec.ts.snap +++ b/packages/popup/test/__snapshots__/demo.spec.ts.snap @@ -46,6 +46,7 @@ exports[`should render demo and match snapshot 1`] = ` bind:close="hideBasic" >