first commit
This commit is contained in:
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-overlay/types.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/wot-design-uni/components/wd-overlay/types.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const o=require("../common/props.js"),e={...o.baseProps,show:o.makeBooleanProp(!1),duration:{type:[Object,Number,Boolean],default:300},lockScroll:o.makeBooleanProp(!0),zIndex:o.makeNumberProp(10)};exports.overlayProps=e;
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const o=require("../../../../common/vendor.js"),t=require("./types.js");Math||e();const e=()=>"../wd-transition/wd-transition.js",s=o.defineComponent({name:"wd-overlay",options:{virtualHost:!0,addGlobalClass:!0,styleIsolation:"shared"},props:t.overlayProps,emits:["click"],setup(t,{emit:e}){const s=e;function n(){s("click")}return(t,e)=>({a:o.o(n),b:o.p({show:t.show,name:"fade","custom-class":"wd-overlay",duration:t.duration,"custom-style":`z-index: ${t.zIndex}; ${t.customStyle}`,"disable-touch-move":t.lockScroll})})}});wx.createComponent(s);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"wd-transition": "../wd-transition/wd-transition"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<wd-transition wx:if="{{b}}" u-s="{{['d']}}" bindclick="{{a}}" u-i="7d2ead0b-0" bind:__l="__l" u-p="{{b}}"><slot></slot></wd-transition>
|
||||
@@ -0,0 +1 @@
|
||||
.wot-theme-dark .wd-overlay{background:var(--wot-overlay-bg-dark, rgba(0, 0, 0, .75))}.wd-overlay{position:fixed;left:0;top:0;right:0;bottom:0;background:var(--wot-overlay-bg, rgba(0, 0, 0, .65))}
|
||||
Reference in New Issue
Block a user