<template>
<uni-shadow-root class="weapp-lib-overlay-index"><root-portal v-if="rootPortal">
  <include src="./overlay.wxml"></include>
</root-portal>

<include v-else src="./overlay.wxml"></include></uni-shadow-root>
</template>

<script>

const __wxTemplateComponentProps = {}
import __wxTemplateComponent0 from './overlay.vue'

import VanTransition from '../transition/index.vue'
global['__wxVueOptions'] = {components:{'van-transition': VanTransition,}}

global['__wxRoute'] = 'weapp/lib/overlay/index'
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var component_1 = require("../common/component");
(0, component_1.VantComponent)({
    props: {
        show: Boolean,
        customStyle: String,
        duration: {
            type: null,
            value: 300,
        },
        zIndex: {
            type: Number,
            value: 1,
        },
        lockScroll: {
            type: Boolean,
            value: true,
        },
        rootPortal: {
            type: Boolean,
            value: false,
        },
    },
    methods: {
        onClick: function () {
            this.$emit('click');
        },
        // for prevent touchmove
        noop: function () { },
    },
});
export default global['__wxComponents']['weapp/lib/overlay/index']
</script>
<style platform="mp-weixin">
@import '../common/index.css';.van-overlay{background-color:var(--overlay-background-color,rgba(0,0,0,.7));height:100%;left:0;position:fixed;top:0;width:100%}
</style>