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={badgeProps:{type:Object,default:()=>({})},disabled:Boolean,icon:{type:[String,Object]},label:{type:String,default:""},lazy:Boolean,panel:{type:String},value:{type:[String,Number]}};exports.props=e;

View File

@@ -0,0 +1 @@
"use strict";const e=require("../common/src/instantiationDecorator.js"),t=require("./props.js"),a=require("../common/config.js"),i=require("../common/utils.wxs.js"),s=require("../common/relation/parent-map.js"),n=require("../common/relation/relation.js"),r=require("../../../../common/vendor.js"),o=`${a.prefix}-tab-panel`,l=e.uniComponent({name:o,options:{styleIsolation:"shared",virtualHost:!0},externalClasses:[`${a.prefix}-class`],mixins:[n.ChildrenMixin(s.RELATION_MAP.TabPanel)],props:{...t.props},data:()=>({prefix:a.prefix,classPrefix:o,active:!1,hide:!0,id:"",hasActivated:!1,tools:i.tools}),watch:{label:"update",badgeProps:{handler(){this.update()},deep:!0},disabled:"update",icon:"update",panel:"update",value:"update",lazy:"update"},methods:{setParent(e){this[s.RELATION_MAP.TabPanel]=e,e.children.includes(this)||e.children.push(this),e.innerAfterLinked(this)},setId(e){this.id=e},getComputedName(){return null!=this.value?`${this.value}`:`${this.dataIndex}`},update(){var e;null==(e=this[s.RELATION_MAP.TabPanel])||e.updateTabs()},render(e,t){this.initialized=this.initialized||e,e&&!this.hasActivated&&(this.hasActivated=!0),this.active=e,this.hide=!t.animation&&!e}}});const d=r._export_sfc(l,[["render",function(e,t,a,i,s,n){return r.e({a:!e.lazy||e.hasActivated},!e.lazy||e.hasActivated?r.e({b:e.panel},e.panel?{c:r.t(e.panel)}:{},{d:e.id,e:r.n(e.tClass+" "+e.classPrefix+" "+(e.active?e.classPrefix+"--active":e.classPrefix+"--inactive")),f:r.s(e.tools._style([e.customStyle,e.hide?"display: none":""]))}):{})}],["__scopeId","data-v-a6b1077e"]]);wx.createComponent(d);

View File

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

View File

@@ -0,0 +1 @@
<view wx:if="{{a}}" id="{{d}}" class="{{['data-v-a6b1077e', e]}}" style="{{f}}" aria-role="tabpanel"><view wx:if="{{b}}" class="data-v-a6b1077e">{{c}}</view><slot/><slot name="panel"/></view>

View File

@@ -0,0 +1 @@
.t-tab-panel.data-v-a6b1077e{flex-shrink:0;width:100%;height:100%;box-sizing:border-box;overflow-y:auto;-webkit-overflow-scrolling:touch}.t-tab-panel--active.data-v-a6b1077e{height:auto}.t-tab-panel--inactive.data-v-a6b1077e{height:0;overflow:visible}