first commit

This commit is contained in:
lingxiao865
2026-02-10 08:05:03 +08:00
commit c5af079d8c
1094 changed files with 97530 additions and 0 deletions

View File

@@ -0,0 +1 @@
"use strict";const e=require("../common/src/instantiationDecorator.js"),o=require("../common/config.js"),i=require("./props.js"),n=require("../mixins/transition.js"),t=require("../mixins/using-custom-navbar.js"),r=require("../common/utils.wxs.js"),s=require("../../../../common/vendor.js"),a=`${o.prefix}-overlay`,l=e.uniComponent({name:a,options:{styleIsolation:"shared"},mixins:[n.transition(),t.useCustomNavbarBehavior],props:{...i.props},emits:["click","leaved"],data:()=>({prefix:o.prefix,classPrefix:a,computedStyle:"",_zIndex:11e3,tools:r.tools}),watch:{backgroundColor:{handler(e){this.computedStyle=e?`background-color: ${e};`:""},immediate:!0},zIndex:{handler(e){0!==e&&(this._zIndex=e)},immediate:!0}},methods:{handleClick(){this.$emit("click",{visible:!this.visible})},noop(){}}});const c=s._export_sfc(l,[["render",function(e,o,i,n,t,r){return s.e({a:e.realVisible&&e.preventScrollThrough},e.realVisible&&e.preventScrollThrough?{b:s.n(e.prefix+"-overlay "+e.transitionClass),c:s.s(e.tools._style(["--td-overlay-transition-duration:"+e.duration+"ms","z-index:"+e._zIndex,"top:"+e.distanceTop+"px",e.computedStyle,e.customStyle])),d:e.ariaRole||"button",e:e.ariaLabel||"关闭",f:s.o(((...o)=>e.handleClick&&e.handleClick(...o))),g:s.o(((...o)=>e.noop&&e.noop(...o))),h:s.o(((...o)=>e.onTransitionEnd&&e.onTransitionEnd(...o)))}:e.realVisible?{j:s.n(e.prefix+"-overlay "+e.transitionClass),k:s.s(e.tools._style(["z-index:"+e._zIndex,"top:"+e.distanceTop+"px",e.computedStyle,e.customStyle])),l:e.ariaRole||"button",m:e.ariaLabel||"关闭",n:s.o(((...o)=>e.handleClick&&e.handleClick(...o))),o:s.o(((...o)=>e.onTransitionEnd&&e.onTransitionEnd(...o)))}:{},{i:e.realVisible})}],["__scopeId","data-v-87948317"]]);wx.createComponent(c);

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="data-v-87948317"><view wx:if="{{a}}" class="{{['data-v-87948317', b]}}" style="{{c}}" aria-role="{{d}}" aria-label="{{e}}" disable-scroll catchtap="{{f}}" catchtouchmove="{{g}}" bindtransitionend="{{h}}"><slot/></view><view wx:elif="{{i}}" class="{{['data-v-87948317', j]}}" style="{{k}}" aria-role="{{l}}" aria-label="{{m}}" catchtap="{{n}}" bindtransitionend="{{o}}"><slot/></view></view>

View File

@@ -0,0 +1 @@
.t-overlay.data-v-87948317{position:fixed;top:0;left:0;width:100%;bottom:0;background-color:var(--td-overlay-bg-color, var(--td-mask-active, rgba(0, 0, 0, .6)));transition-property:opacity;transition-duration:var(--td-overlay-transition-duration, .3s);transition-timing-function:ease}.t-fade-enter.data-v-87948317,.t-fade-leave-to.data-v-87948317{opacity:0}

View File

@@ -0,0 +1 @@
"use strict";const e={backgroundColor:{type:String,default:""},duration:{type:Number,default:300},preventScrollThrough:{type:Boolean,default:!0},usingCustomNavbar:Boolean,visible:Boolean,zIndex:{type:Number,default:11e3},onClick:{type:Function,default:()=>({})}};exports.props=e;