{"code":"import { defineComponent } from \"vue\";\nimport mpMixin from '@/uni_modules/uv-ui-tools/libs/mixin/mpMixin.js';\nimport mixin from '@/uni_modules/uv-ui-tools/libs/mixin/mixin.js';\nimport props from './props.js';\n/**\n * overlay 遮罩\n * @description 创建一个遮罩层，用于强调特定的页面元素，并阻止用户对遮罩下层的内容进行操作，一般用于弹窗场景\n * @tutorial https://www.uvui.cn/components/overlay.html\n * @property {Boolean}\t\t\tshow\t\t是否显示遮罩（默认 false ）\n * @property {String | Number}\tzIndex\t\tzIndex 层级（默认 10070 ）\n * @property {String | Number}\tduration\t动画时长，单位毫秒（默认 300 ）\n * @property {String | Number}\topacity\t\t不透明度值，当做rgba的第四个参数 （默认 0.5 ）\n * @property {Object}\t\t\tcustomStyle\t定义需要用到的外部样式\n * @event {Function} click 点击遮罩发送事件\n * @example <uv-overlay :show=\"show\" @click=\"show = false\"></uv-overlay>\n */\nexport default defineComponent({\n    name: \"uv-overlay\",\n    emits: ['click'],\n    mixins: [mpMixin, mixin, props],\n    watch: {\n        show(newVal = null) {\n        }\n    },\n    computed: {\n        overlayStyle() {\n            const style = new UTSJSONObject({\n                position: 'fixed',\n                top: 0,\n                left: 0,\n                right: 0,\n                zIndex: this.zIndex,\n                bottom: 0,\n                'background-color': `rgba(0, 0, 0, ${this.opacity})`\n            });\n            return this.$uv.deepMerge(style, this.$uv.addStyle(this.customStyle));\n        }\n    },\n    methods: {\n        clickHandler() {\n            this.$emit('click');\n        },\n        clear() { }\n    }\n});\n//# sourceMappingURL=C:/Users/lj/Desktop/121/contract-front/111/uni_modules/uv-overlay/components/uv-overlay/uv-overlay.vue?vue&type=script&lang.uts.js.map","references":["C:/Users/lj/Desktop/121/contract-front/111/uni_modules/uv-ui-tools/libs/mixin/mpMixin.js","C:/Users/lj/Desktop/121/contract-front/111/uni_modules/uv-ui-tools/libs/mixin/mixin.js","C:/Users/lj/Desktop/121/contract-front/111/uni_modules/uv-overlay/components/uv-overlay/props.js"],"uniExtApis":[],"map":"{\"version\":3,\"file\":\"uv-overlay.vue?vue&type=script&lang.uts.js\",\"sourceRoot\":\"\",\"sources\":[\"uv-overlay.vue?vue&type=script&lang.uts\"],\"names\":[],\"mappings\":\";AACC,OAAO,OAAO,MAAM,iDAAiD,CAAA;AACrE,OAAO,KAAK,MAAM,+CAA+C,CAAA;AACjE,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B;;;;;;;;;;;GAWG;AACH,+BAAe;IACd,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,CAAC,OAAO,CAAC;IAChB,MAAM,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC;IAC/B,KAAK,EAAE;QACN,IAAI,CAAC,MAAM,OAAA;QAQX,CAAC;KACD;IACD,QAAQ,EAAE;QACT,YAAY;YACX,MAAM,KAAK,qBAAG;gBACb,QAAQ,EAAE,OAAO;gBACjB,GAAG,EAAE,CAAC;gBACN,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,MAAM,EAAE,CAAC;gBACT,kBAAkB,EAAE,iBAAiB,IAAI,CAAC,OAAO,GAAG;aACpD,CAAA,CAAA;YACD,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAA;QACtE,CAAC;KACD;IACD,OAAO,EAAE;QACR,YAAY;YACX,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAA;QACpB,CAAC;QACD,KAAK,KAAI,CAAC;KACV;CACD,EAAA\"}"}
