<wxs module="utils" src="../wxs/utils.wxs"/>
<wxs module="computed" src="./index.wxs"/>

<import src="./popup.wxml"/>

<van-overlay
        bind:click="onClickOverlay"
        custom-style="{{ overlayStyle }}"
        duration="{{ duration }}"
        lock-scroll="{{ lockScroll }}"
        root-portal="{{ rootPortal }}"
        show="{{ show }}"
        wx:if="{{ overlay }}"
        z-index="{{ zIndex }}"
/>

<root-portal wx:if="{{ rootPortal }}">
    <include src="./popup.wxml"/>
</root-portal>

<include src="./popup.wxml" wx:else/>
