first commit
This commit is contained in:
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/badge.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/badge.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../common/src/instantiationDecorator.js"),t=require("../common/config.js"),o=require("./props.js"),s=require("../common/utils.js"),n=require("../common/utils.wxs.js"),a=require("./computed.js"),r=require("../../../../common/vendor.js"),i=`${t.prefix}-badge`,c=s.uniqueFactory("badge"),l=e.uniComponent({name:i,options:{styleIsolation:"shared"},externalClasses:[`${t.prefix}-class`,`${t.prefix}-class-count`,`${t.prefix}-class-content`],props:{...o.props},data:()=>({prefix:t.prefix,classPrefix:i,value:"",labelID:"",descriptionID:"",tools:n.tools,useOuterClass:!1}),computed:{hasChild(){var e;return!!(null==(e=this.$slots)?void 0:e.default)}},mounted(){const e=c();this.labelID=`${e}_label`,this.descriptionID=`${e}_description`,this.checkForActualContent()},methods:{getBadgeValue:a.getBadgeValue,getBadgeStyles:a.getBadgeStyles,getBadgeInnerClass:a.getBadgeInnerClass,isShowBadge:a.isShowBadge,checkForActualContent(){if(!this.content&&["ribbon","ribbon-right","ribbon-left","triangle-right","triangle-left"].includes(this.shape))return s.getRect(this,`.${i}__content`).then((e=>{const t=e.width>0||e.height>0;this.useOuterClass=!t}));this.useOuterClass=!1}}});const u=r._export_sfc(l,[["render",function(e,t,o,s,n,a){return r.e({a:!e.content},e.content?{b:r.t(e.content),c:r.n(e.classPrefix+"__content-text")}:{},{d:e.labelID,e:r.n(e.tools.cls(e.classPrefix+"__content",[["empty",!e.content&&!e.hasChild]])+" "+e.tClassContent),f:e.isShowBadge({dot:e.dot,count:e.count,showZero:e.showZero})||null===e.count},e.isShowBadge({dot:e.dot,count:e.count,showZero:e.showZero})||null===e.count?r.e({g:e.isShowBadge({dot:e.dot,count:e.count,showZero:e.showZero})},e.isShowBadge({dot:e.dot,count:e.count,showZero:e.showZero})?{h:r.t(e.getBadgeValue({dot:e.dot,count:e.count,maxCount:e.maxCount}))}:{},{i:r.n(e.classPrefix+"__count"),j:e.descriptionID,k:e.ariaLabel||e.tools.getBadgeAriaLabel({dot:e.dot,count:e.count,maxCount:e.maxCount}),l:r.n(e.getBadgeInnerClass({classPrefix:e.classPrefix,dot:e.dot,size:e.size,shape:e.shape,count:e.count})+" "+e.prefix+"-has-count "),m:r.n(e.tClassCount),n:r.s(e.tools._style([e.getBadgeStyles({color:e.color,offset:e.offset})]))}):{},{o:r.s(e.tools._style([e.customStyle])),p:r.n(e.classPrefix+" "+(e.useOuterClass?e.classPrefix+"__"+e.shape+"-outer":"")+e.tClass),q:e.labelID,r:e.descriptionID,s:e.ariaRole||"option"})}],["__scopeId","data-v-58865647"]]);wx.createComponent(u);
|
||||
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/badge.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/badge.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/badge.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/badge.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{o}}" class="{{['data-v-58865647', p]}}" aria-labelledby="{{q}}" aria-describedby="{{r}}" aria-role="{{s}}"><view id="{{d}}" class="{{['data-v-58865647', e]}}" aria-hidden="{{true}}"><slot wx:if="{{a}}"/><text wx:else class="{{['data-v-58865647', c]}}">{{b}}</text></view><view wx:if="{{f}}" id="{{j}}" aria-hidden="{{true}}" aria-label="{{k}}" class="{{['data-v-58865647', l, m]}}" style="{{n}}"><view class="{{['data-v-58865647', i]}}"><block wx:if="{{g}}">{{h}}</block><slot name="count"/></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/badge.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/badge.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/computed.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/computed.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t=function(t){return t.indexOf("px")>0||t.indexOf("rpx")>0||t.indexOf("em")>0||t.indexOf("rem")>0||t.indexOf("%")>0||t.indexOf("vh")>0||t.indexOf("vm")>0};exports.getBadgeInnerClass=function(t){const o=t.classPrefix;return[`${o}--basic`,t.dot?`${o}--dot`:"",`${o}--${t.size}`,`${o}--${t.shape}`,t.dot?"":`${o}--count`].join(" ")},exports.getBadgeStyles=function(o){var n,e;let s="";return o.color&&(s+=`background:${o.color};`),(null==(n=o.offset)?void 0:n[0])&&(s+=`left: calc(100% + ${t(o.offset[0].toString())?o.offset[0]:`${o.offset[0]}px`});`),(null==(e=o.offset)?void 0:e[1])&&(s+=`top:${t(o.offset[1].toString())?o.offset[1]:`${o.offset[1]}px`};`),s},exports.getBadgeValue=function(t){return t.dot?"":isNaN(t.count)||isNaN(t.maxCount)?t.count:parseInt(t.count,10)>t.maxCount?`${t.maxCount}+`:t.count},exports.isShowBadge=function(t){return!!t.dot||!(!t.showZero&&!isNaN(t.count)&&0===parseInt(t.count,10))&&null!=t.count};
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/badge/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e={color:{type:String,default:""},content:{type:String,default:""},count:{type:[String,Number],default:0},dot:Boolean,maxCount:{type:Number,default:99},offset:{type:Array},shape:{type:String,default:"circle",validator:e=>!e||["circle","square","bubble","ribbon","ribbon-right","ribbon-left","triangle-right","triangle-left"].includes(e)},showZero:Boolean,size:{type:String,default:"medium",validator:e=>!e||["medium","large"].includes(e)}};exports.props=e;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/button.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/button.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../common/src/instantiationDecorator.js"),o=require("../common/config.js"),s=require("./props.js"),t=require("../common/utils.js"),i=require("../common/utils.wxs.js"),a=require("../../../../common/vendor.js"),n=`${o.prefix}-button`,r=e.uniComponent({name:n,options:{styleIsolation:"shared"},externalClasses:[`${o.prefix}-class`,`${o.prefix}-class-icon`,`${o.prefix}-class-loading`],components:{TIcon:()=>"../icon/icon.js",TLoading:()=>"../loading/loading.js"},props:{...s.props},emits:["click"],data:()=>({tools:i.tools,prefix:o.prefix,className:"",classPrefix:n,_icon:void 0}),computed:{iconCustomStyle(){return i.tools._style([{fontSize:{"extra-small":"var(--td-button-extra-small-icon-font-size, 18px)",small:"var(--td-button-small-icon-font-size, 18px)",medium:"var(--td-button-medium-icon-font-size, 20px)",large:"var(--td-button-large-icon-font-size, 24px)"}[this.size||"medium"],borderRadius:"var(--td-button-icon-border-radius, 4px)"},this._icon.style||""])},loadingCustomStyle:()=>i.tools._style({display:"flex",alignItems:"center",justifyContent:"center"})},watch:{icon:{handler(e){this._icon=t.calcIcon(e,"")},immediate:!0},theme:"setClass",size:"setClass",plain:"setClass",block:"setClass",shape:"setClass",disabled:"setClass",loading:"setClass",variant:"setClass"},mounted(){this.setClass()},methods:{setClass(){const e=[n,this.tClass,`${n}--${this.variant||"base"}`,`${n}--${this.theme||"default"}`,`${n}--${this.shape||"rectangle"}`,`${n}--size-${this.size||"medium"}`];this.block&&e.push(`${n}--block`),this.disabled&&e.push(`${n}--disabled`),this.ghost&&e.push(`${n}--ghost`),this.className=e.join(" ")},getuserinfo(e){this.$emit("getuserinfo",e)},contact(e){this.$emit("contact",e)},getphonenumber(e){this.$emit("getphonenumber",e)},error(e){this.$emit("error",e)},opensetting(e){this.$emit("opensetting",e)},launchapp(e){this.$emit("launchapp",e)},chooseavatar(e){this.$emit("chooseavatar",e)},agreeprivacyauthorization(e){this.$emit("agreeprivacyauthorization",e)},handleTap(e){this.disabled||this.loading||this.$emit("click",e)}}});if(!Array){(a.resolveComponent("t-icon")+a.resolveComponent("t-loading"))()}Math||((()=>"../icon/icon.js")+(()=>"../loading/loading.js"))();const l=a._export_sfc(r,[["render",function(e,o,s,t,i,n){return a.e({a:e._icon},e._icon?{b:a.o((e=>"handleClose")),c:a.p({"custom-style":e.iconCustomStyle,"t-class":e.classPrefix+"__icon "+e.classPrefix+"__icon--"+(e._icon.activeIdx==e._icon.index?"active ":" ")+e.tClassIcon,prefix:e._icon.prefix,name:e._icon.name||"",size:e._icon.size,color:e._icon.color})}:{},{d:e.loading},e.loading?{e:a.p({delay:e.loadingProps.delay||0,duration:e.loadingProps.duration||800,indicator:e.loadingProps.indicator||!0,"inherit-color":e.loadingProps.inheritColor||!0,layout:e.loadingProps.layout||"horizontal",pause:e.loadingProps.pause||!1,progress:e.loadingProps.progress||0,reverse:e.loadingProps.reverse||!1,size:e.loadingProps.size||"40rpx",text:e.loadingProps.text||"",theme:e.loadingProps.theme||"circular",loading:!0,"t-class":e.classPrefix+"__loading "+e.classPrefix+"__loading--wrapper","t-class-indicator":e.classPrefix+"__loading--indicator "+e.tClassLoading,"custom-style":e.loadingCustomStyle})}:{},{f:e.content},e.content?{g:a.t(e.content)}:{},{h:a.n(e.classPrefix+"__content "+((e._icon&&e._icon.name||e.loading)&&e.content?e.classPrefix+"__content--has-icon":"")),i:e.tId,j:a.s(e.tools._style([e.customStyle])),k:e.customDataset,l:a.n(e.className),m:e.disabled||e.loading?"":e.type,n:e.disabled||e.loading?"":e.openType,o:e.hoverStopPropagation,p:e.hoverStartTime,q:e.hoverStayTime,r:e.lang,s:e.sessionFrom,t:e.disabled||e.loading?"":e.hoverClass||e.classPrefix+"--hover",v:e.sendMessageTitle,w:e.sendMessagePath,x:e.sendMessageImg,y:e.appParameter,z:e.showMessageCard,A:e.ariaLabel,B:a.o(((...o)=>e.handleTap&&e.handleTap(...o))),C:a.o(((...o)=>e.getuserinfo&&e.getuserinfo(...o))),D:a.o(((...o)=>e.contact&&e.contact(...o))),E:a.o(((...o)=>e.getphonenumber&&e.getphonenumber(...o))),F:a.o(((...o)=>e.error&&e.error(...o))),G:a.o(((...o)=>e.opensetting&&e.opensetting(...o))),H:a.o(((...o)=>e.launchapp&&e.launchapp(...o))),I:a.o(((...o)=>e.chooseavatar&&e.chooseavatar(...o))),J:a.o(((...o)=>e.agreeprivacyauthorization&&e.agreeprivacyauthorization(...o)))})}],["__scopeId","data-v-0f6cdf38"]]);wx.createComponent(l);
|
||||
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/button.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/button.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-icon": "../icon/icon",
|
||||
"t-loading": "../loading/loading"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/button.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/button.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<button id="{{i}}" style="{{j}}" data-custom="{{k}}" class="{{['data-v-0f6cdf38', l]}}" form-type="{{m}}" open-type="{{n}}" hover-stop-propagation="{{o}}" hover-start-time="{{p}}" hover-stay-time="{{q}}" lang="{{r}}" session-from="{{s}}" hover-class="{{t}}" send-message-title="{{v}}" send-message-path="{{w}}" send-message-img="{{x}}" app-parameter="{{y}}" show-message-card="{{z}}" aria-label="{{A}}" catchtap="{{B}}" bindgetuserinfo="{{C}}" bindcontact="{{D}}" bindgetphonenumber="{{E}}" binderror="{{F}}" bindopensetting="{{G}}" bindlaunchapp="{{H}}" bindchooseavatar="{{I}}" bindagreeprivacyauthorization="{{J}}"><block wx:if="{{a}}" name="icon"><t-icon wx:if="{{c}}" class="data-v-0f6cdf38" bindclick="{{b}}" u-i="0f6cdf38-0" bind:__l="__l" u-p="{{c}}"/></block><t-loading wx:if="{{d}}" class="data-v-0f6cdf38" u-i="0f6cdf38-1" bind:__l="__l" u-p="{{e}}"/><view class="{{['data-v-0f6cdf38', h]}}"><slot name="content"/><block wx:if="{{f}}">{{g}}</block><slot/></view><slot name="suffix"/></button>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/button.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/button.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/button/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e={appParameter:{type:String,default:""},block:Boolean,content:{type:String},customDataset:{type:[String,Number,Boolean,Object,Array],default:()=>({})},disabled:{type:Boolean,default:void 0},ghost:Boolean,hoverClass:{type:String,default:""},hoverStartTime:{type:Number,default:20},hoverStayTime:{type:Number,default:70},hoverStopPropagation:Boolean,icon:{type:[String,Object]},lang:{type:String,validator:e=>!e||["en","zh_CN","zh_TW"].includes(e)},loading:Boolean,loadingProps:{type:Object,default:()=>({})},openType:{type:String,validator:e=>!e||["contact","share","getPhoneNumber","getUserInfo","launchApp","openSetting","feedback","chooseAvatar","agreePrivacyAuthorization"].includes(e)},phoneNumberNoQuotaToast:{type:Boolean,default:!0},sendMessageImg:{type:String,default:"截图"},sendMessagePath:{type:String,default:"当前分享路径"},sendMessageTitle:{type:String,default:"当前标题"},sessionFrom:{type:String,default:""},shape:{type:String,default:"rectangle",validator:e=>!e||["rectangle","square","round","circle"].includes(e)},showMessageCard:Boolean,size:{type:String,default:"medium",validator:e=>!e||["extra-small","small","medium","large"].includes(e)},tId:{type:String,default:""},theme:{type:String,default:"default",validator:e=>!e||["default","primary","danger","light"].includes(e)},type:{type:String,validator:e=>!e||["submit","reset"].includes(e)},variant:{type:String,default:"base",validator:e=>!e||["base","outline","dashed","text"].includes(e)},onAgreeprivacyauthorization:{type:Function,default:()=>({})},onChooseavatar:{type:Function,default:()=>({})},onClick:{type:Function,default:()=>({})},onContact:{type:Function,default:()=>({})},onCreateliveactivity:{type:Function,default:()=>({})},onError:{type:Function,default:()=>({})},onGetphonenumber:{type:Function,default:()=>({})},onGetrealtimephonenumber:{type:Function,default:()=>({})},onGetuserinfo:{type:Function,default:()=>({})},onLaunchapp:{type:Function,default:()=>({})},onOpensetting:{type:Function,default:()=>({})}};exports.props=e;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/bus.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/bus.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";exports.Bus=class{constructor(){this.listeners=new Map,this.emitted=new Map,this.onceListeners=new Map}on(e,t){const s=this.listeners.get(e)||[];s.push(t),this.listeners.set(e,s),this.emitted.has(e)&&t(...this.emitted.get(e))}once(e,t){if(this.emitted.has(e))return void t(...this.emitted.get(e));const s=(...i)=>{t(...i),this.off(e,s)},i=this.onceListeners.get(e)||new Map;i.set(t,s),this.onceListeners.set(e,i),this.on(e,s)}emit(e,...t){this.emitted.set(e,t);[...this.listeners.get(e)||[]].forEach((e=>e(...t)))}off(e,t){if(t){const s=this.onceListeners.get(e);if(s&&s.has(t)){const i=s.get(t);return this._removeListener(e,i),void s.delete(t)}this._removeListener(e,t)}else this.listeners.delete(e),this.onceListeners.delete(e),this.emitted.delete(e)}_removeListener(e,t){const s=this.listeners.get(e);if(!s)return;const i=s.indexOf(t);i>-1&&(s.splice(i,1),0===s.length&&this.listeners.delete(e))}};
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/config.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/config.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";exports.prefix="t";
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";function t(t){return t.replace(/^(\w)/,((t,e)=>`data${e.toUpperCase()}`))}function e(e){Object.keys(e).forEach((r=>{this[t(r)]=e[r]}))}exports.getFunctionalMixin=function(r){return{data(){return{...(e=this,a=r,Object.keys(a).reduce(((r,a)=>(r[t(a)]=e[a],r)),{}))};var e,a},watch:{...(a=r,Object.keys(a).reduce(((e,r)=>(e[r]={handler(e){this[t(r)]=e}},e)),{}))},methods:{setData(t){e.call(this,t)}}};var a};
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";exports.RELATION_MAP={CollapsePanel:"Collapse",TabPanel:"Tabs",StepItem:"Steps",TabBarItem:"TabBar",SideBarItem:"SideBar",GridItem:"Grid",DropdownItem:"DropdownMenu",Radio:"RadioGroup",Checkbox:"CheckboxGroup",Cell:"CellGroup",Avatar:"AvatarGroup",PickerItem:"Picker",IndexesAnchor:"Indexes",SwiperNav:"Swiper",Col:"Row",BackTop:"PullDownRefresh",FormItem:"Form",FormKey:"FormKey"};
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";exports.ChildrenMixin=function(n,i={}){const t=i.indexKey||"index";return{inject:{[n]:{default:null}},data:()=>({}),computed:{[t](){const i=this;return i.bindRelation(),i[n]?i[n].children.indexOf(this):null}},watch:{disableBindRelation(n){n||this.bindRelation()}},created(){this.bindRelation()},mounted(){},beforeUnmount(){this.onBeforeMount()},methods:{bindRelation(){var i,t,e;if(!this[n]||this[n].children&&-1!==this[n].children.indexOf(this))return;const l=[...this[n].children||[],this];this[n].children=l,null==(i=this.innerAfterLinked)||i.call(this,this),null==(e=(t=this[n]).innerAfterLinked)||e.call(t,this)},onBeforeMount(){var i,t,e,l;const r=this;r[n]&&(r[n].children=r[n].children.filter((n=>n!==r)),null==(t=(i=this[n]).innerAfterUnLinked)||t.call(i,this),null==(e=this.innerAfterUnLinked)||e.call(this,this),null==(l=null==r?void 0:r.destroyCallback)||l.call(r))}}}},exports.ParentMixin=function(n){return{provide(){return{[n]:this}},data:()=>({})}};
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";exports.getRegExp=function(){const t=Array.prototype.slice.call(arguments);return t.unshift(RegExp),new(Function.prototype.bind.apply(RegExp,t))};
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/src/control.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/src/control.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/src/flatTool.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/src/flatTool.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/src/index.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/src/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";require("./instantiationDecorator.js");
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../validator.js"),t=require("../version.js"),o=require("../utils.js"),s=e=>`data${e.replace(/^(\w)/,((e,t)=>t.toUpperCase()))}`,r=e=>`default${e.replace(/^(\w)/,((e,t)=>t.toUpperCase()))}`,i=[{key:"ariaHidden",type:Boolean},{key:"ariaRole",type:String},{key:"ariaLabel",type:String},{key:"ariaLabelledby",type:String},{key:"ariaDescribedby",type:String},{key:"ariaBusy",type:Boolean}],n=(e,t=!1)=>!(e===Boolean&&!t)&&(e===String?"":void 0),a={...i.reduce(((e,t)=>({...e,[t.key]:{type:t.type,default:n(t.type)}})),{}),customStyle:{type:[String,Object],default:""}};function l(e){if(!e.externalClasses)return{};const{externalClasses:t}=e;return(Array.isArray(t)?t:[t]).reduce(((e,t)=>({...e,[o.toCamel(t)]:{type:String,default:""}})),{})}exports.uniComponent=function(i){const{newProps:p,emits:y}=function(e,t){const s={},i=[],a=/^on[A-Z][a-z]/,l=Object.values(t).map((e=>e.key)),p=l.map((e=>r(e)));return Object.keys(e).forEach((t=>{const r=e[t].type||e[t];if(a.test(t)&&e[t].type===Function){const e=t.replace(/^on/,""),s=e.charAt(0).toLowerCase()+e.slice(1);i.push(o.hyphenate(s),s)}else if(l.indexOf(t)>-1||p.indexOf(t)>-1){const e=Array.isArray(r)?r:[r];s[t]={type:[null,...e],default:null}}else[Boolean,String].indexOf(e[t].type)>-1&&void 0===e[t].default?s[t]={...e[t],default:n(e[t].type,!0)}:s[t]={..."object"==typeof e[t]?e[t]:{},type:(y=r,Array.isArray(y)?(y.sort(((e,t)=>e===Boolean?-1:t===Boolean?1:0)),y):y)};var y})),{newProps:s,emits:i}}(i.props||{},i.controlledProps||{});var c;i.props={...l(i),...p,...a},i.emits=Array.from(new Set([...i.emits||[],...(c=i.controlledProps||{},Object.values(c).map((e=>`update:${e.key}`))),...y])),i.options={...i.options||{},multipleSlots:!0},t.canUseVirtualHost()&&null==i.options.virtualHost&&(i.options.virtualHost=!0),i.options.styleIsolation||(i.options.styleIsolation="shared"),i.name&&(i.name=o.toPascal(i.name));const u=function(t){!t.properties&&t.props&&(t.properties=t.props),t.properties&&Object.keys(t.properties).forEach((o=>{let s=t.properties[o];e.isPlainObject(s)||(s={type:s}),t.properties[o]=s})),t.methods||(t.methods={}),t.lifetimes||(t.lifetimes={});const o=t.created,{controlledProps:i=[]}=t;return t.created=function(...e){o&&o.apply(this,e),i.forEach((({key:e})=>{const t=r(e),o=s(e);this[o]=this[e],null==this[e]&&(this._selfControlled=!0),null==this[e]&&null!=this[t]&&(this[o]=this[t])}))},t.methods._trigger=function(e,t,o){const r=i.find((t=>t.event===e));if(r){const{key:e}=r;this._selfControlled&&(this[s(e)]=t[e]),this.$emit(`update:${e}`,t[e],o)}this.$emit(e,t,o)},t}(i);return u};
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/utils.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/utils.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js"),t=require("./config.js"),r=require("./validator.js"),n=require("./wechat.js"),o=n.getWindowInfo(),s=n.getAppBaseInfo(),c=n.getDeviceInfo();function a(...e){for(let t=0;t<e.length;t+=1)if(null!==e[t]&&void 0!==e[t])return e[t];return e[e.length-1]}const i=function(...e){const t={}.hasOwnProperty,r=[];return e.forEach((e=>{if(!e)return;const n=typeof e;if("string"===n||"number"===n)r.push(e);else if(Array.isArray(e)&&e.length){const t=i(...e);t&&r.push(t)}else if("object"===n)for(const o in e)t.call(e,o)&&e[o]&&r.push(o)})),r.join(" ")};null==c||c.environment,["mac","windows"].includes(null==c?void 0:c.platform);exports.addUnit=function(e){if(r.isDef(e))return e=String(e),r.isNumeric(e)?`${e}px`:e},exports.appBaseInfo=s,exports.calcIcon=(e,t)=>e&&(r.isBoolean(e)&&t||r.isString(e))?{name:r.isBoolean(e)?t:e}:r.isObject(e)?e:null,exports.classNames=i,exports.coalesce=a,exports.getCharacterLength=(e,t,r)=>{const n=String(a(t,""));if(0===n.length)return{length:0,characters:""};if("maxcharacter"===e){let e=0;for(let t=0;t<n.length;t+=1){let o=0;if(o=n.charCodeAt(t)>127||94===n.charCodeAt(t)?2:1,e+o>r)return{length:e,characters:n.slice(0,t)};e+=o}return{length:e,characters:n}}if("maxlength"===e){const e=n.length>r?r:n.length;return{length:e,characters:n.slice(0,e)}}return{length:n.length,characters:n}},exports.getCurrentPage=function(){const e=getCurrentPages();return e[e.length-1]},exports.getRect=function(t,r,n=!1,o=!1){return new Promise(((o,s)=>{e.index.createSelectorQuery().in(t)[n?"selectAll":"select"](r).boundingClientRect((e=>{e?o(e):s(e)})).exec()}))},exports.hyphenate=function(e){return e.replace(/\B([A-Z])/g,"-$1").toLowerCase()},exports.nextTick=()=>new Promise((e=>{setTimeout((()=>{e()}),33)})),exports.setIcon=(e,t,r)=>t?"string"==typeof t?{[`${e}Name`]:t,[`${e}Data`]:{}}:"object"==typeof t?{[`${e}Name`]:"",[`${e}Data`]:t}:{[`${e}Name`]:r,[`${e}Data`]:{}}:{[`${e}Name`]:"",[`${e}Data`]:{}},exports.styles=function(e){return Object.keys(e).map((t=>`${t}: ${e[t]}`)).join("; ")},exports.systemInfo=o,exports.toCamel=e=>e.replace(/-(\w)/g,((e,t)=>t.toUpperCase())),exports.toPascal=e=>e.split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(""),exports.uniqueFactory=e=>{let r=0;return()=>{const n=`${t.prefix}_${e}_${r}`;return r+=1,n}},exports.unitConvert=e=>"string"==typeof e?e.includes("rpx")?parseInt(e,10)*a(null==o?void 0:o.screenWidth,750)/750:parseInt(e,10):a(e,0);
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/utils.wxs.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/utils.wxs.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("./runtime/wxs-polyfill.js");function n(t){return Array.isArray(t)}function r(t){const n=typeof t;return null!==t&&("object"===n||"function"===n)}const e={addUnit:function(n){const r=t.getRegExp("^-?\\d+(.\\d+)?$");if(null!=n)return r.test(`${n}`)?`${n}px`:n},isString:function(t){return"string"==typeof t},isArray:n,isObject:r,isBoolean:function(t){return"boolean"==typeof t},isNoEmptyObj:function(t){return r(t)&&"{}"!==JSON.stringify(t)},includes:function(t,r){if(!t||!n(t))return!1;let e=0;const o=t.length;for(;e<o;e++)if(t[e]===r)return!0;return!1},cls:function(t,n){const r=[t];let e=0;for(let o=n.length;e<o;e++){const o=n[e];if(o&&Array.isArray(o)){const o=n[e][0];n[e][1]&&r.push(`${t}--${o}`)}else"string"!=typeof o&&"number"!=typeof o||o&&r.push(`${t}--${o}`)}return r.join(" ")},getBadgeAriaLabel:function(t){const n=t.maxCount||99;if(t.dot)return"有新的消息";if("..."===t.count)return"有很多消息";if(isNaN(t.count))return t.count;const r=`有${n}+条消息`,e=`有${t.count}条消息`;return Number(t.count)>n?r:e},_style:function e(o){return n(o)?o.filter((t=>null!=t&&""!==t)).map((t=>{return n(t)||r(t)?e(t):(i=";",(o=t).slice(-i.length)===i?o:o+i);var o,i})).join(" "):r(o)?(i=o,JSON.stringify(i).replace(t.getRegExp('{|}|"',"g"),"").split(",").map((t=>t.split(":")[0]))).filter((t=>null!=o[t]&&""!==o[t])).map((n=>{return[(r=n,r.replace(t.getRegExp("[A-Z]","g"),(t=>`-${t}`)).toLowerCase()),[o[n]]].join(":");var r})).join(";"):o;var i},isValidIconName:function(n){return t.getRegExp("^[A-Za-z0-9-_]+$").test(n)}};exports.tools=e;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/validator.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/validator.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";exports.isBoolean=function(t){return"boolean"==typeof t},exports.isDef=function(t){return!(t=>void 0===t)(t)&&!(t=>null===t)(t)},exports.isNumeric=function(t){return!Number.isNaN(Number(t))},exports.isObject=function(t){const e=typeof t;return null!==t&&("object"===e||"function"===e)},exports.isPlainObject=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===Object.prototype.toString.call(t)},exports.isString=t=>"string"==typeof t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/version.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/version.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("./wechat.js");let e;function n(t,e){t=t.split("."),e=e.split(".");const n=Math.max(t.length,e.length);for(;t.length<n;)t.push("0");for(;e.length<n;)e.push("0");for(let r=0;r<n;r+=1){const n=parseInt(t[r],10),s=parseInt(e[r],10);if(n>s)return 1;if(n<s)return-1}return 0}function r(r){return n((null==e&&(e=t.getAppBaseInfo()),e).SDKVersion,r)>=0}exports.canUseVirtualHost=function(){let t=!1;return t=r("2.19.2"),t},exports.compareVersion=n;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/wechat.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/common/wechat.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");exports.getAppBaseInfo=()=>e.index.getAppBaseInfo&&e.index.getAppBaseInfo()||e.index.getSystemInfoSync(),exports.getDeviceInfo=()=>e.index.getDeviceInfo&&e.index.getDeviceInfo()||e.index.getSystemInfoSync(),exports.getObserver=(n,o)=>new Promise((t=>{e.index.createIntersectionObserver(n,{nativeMode:!0}).relativeToViewport().observe(o,(e=>{t(e)}))})),exports.getWindowInfo=()=>e.index.getWindowInfo&&e.index.getWindowInfo()||e.index.getSystemInfoSync();
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/computed.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/computed.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("../common/utils.js");exports.getActionClass=function(o,s,n,c){const u=[`${o}__button`,`${o}__button--action`];return s&&u.push(`${o}__button--${s}`),`${u.join(" ")} ${t.coalesce(n.tClass,c)}`};
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/dialog.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/dialog.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/dialog.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/dialog.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-popup": "../popup/popup",
|
||||
"t-icon": "../icon/icon",
|
||||
"t-button": "../button/button"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/dialog.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/dialog.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<t-popup wx:if="{{U}}" class="data-v-20ecca46" u-s="{{['content']}}" bindvisibleChange="{{T}}" u-i="20ecca46-0" bind:__l="__l" u-p="{{U}}"><view class="{{['data-v-20ecca46', S]}}" slot="content"><slot name="top"/><view wx:if="{{a}}" class="{{['data-v-20ecca46', e]}}" bindtap="{{f}}"><block wx:if="{{b}}"><t-icon wx:if="{{c}}" class="data-v-20ecca46" u-i="20ecca46-1,20ecca46-0" bind:__l="__l" u-p="{{c}}"/></block><t-icon wx:else class="data-v-20ecca46" u-i="20ecca46-2,20ecca46-0" bind:__l="__l" u-p="{{d||''}}"/></view><view class="{{['data-v-20ecca46', n]}}"><view wx:if="{{g}}" class="{{['data-v-20ecca46', i]}}">{{h}}</view><slot name="title"/><view wx:if="{{j}}" class="{{['data-v-20ecca46', m]}}"><text class="{{['data-v-20ecca46', l]}}">{{k}}</text></view><slot name="content"/></view><slot name="middle"/><view class="{{['data-v-20ecca46', R]}}"><block wx:if="{{o}}"><t-button wx:for="{{p}}" wx:for-item="actionItem" wx:key="b" u-s="{{['d']}}" class="{{['data-v-20ecca46', actionItem.c]}}" data-type="{{'action'}}" data-extra="{{actionItem.d}}" bindclick="{{actionItem.e}}" bindgetuserinfo="{{actionItem.f}}" bindcontact="{{actionItem.g}}" bindgetphonenumber="{{actionItem.h}}" binderror="{{actionItem.i}}" bindopensetting="{{actionItem.j}}" bindlaunchapp="{{actionItem.k}}" bindagreeprivacyauthorization="{{actionItem.l}}" u-i="{{actionItem.m}}" bind:__l="__l" u-p="{{actionItem.n}}"><slot wx:if="{{actionItem.a}}"/></t-button></block><slot name="actions"/><block wx:if="{{q}}"><t-button wx:if="{{D}}" u-s="{{['d']}}" class="{{['data-v-20ecca46', s]}}" data-type="{{'cancel'}}" data-extra="{{t}}" bindclick="{{v}}" bindgetuserinfo="{{w}}" bindcontact="{{x}}" bindgetphonenumber="{{y}}" binderror="{{z}}" bindopensetting="{{A}}" bindlaunchapp="{{B}}" bindagreeprivacyauthorization="{{C}}" u-i="20ecca46-4,20ecca46-0" bind:__l="__l" u-p="{{D}}"><slot wx:if="{{r}}"/></t-button></block><slot name="cancel-btn"/><block wx:if="{{E}}"><t-button wx:if="{{Q}}" u-s="{{['d']}}" class="{{['data-v-20ecca46', G]}}" data-type="{{'confirm'}}" data-extra="{{H}}" bindclick="{{I}}" bindgetuserinfo="{{J}}" bindcontact="{{K}}" bindgetphonenumber="{{L}}" binderror="{{M}}" bindopensetting="{{N}}" bindlaunchapp="{{O}}" bindagreeprivacyauthorization="{{P}}" u-i="20ecca46-5,20ecca46-0" bind:__l="__l" u-p="{{Q}}"><slot wx:if="{{F}}"/></t-button></block><slot name="confirm-btn"/></view></view></t-popup>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/dialog.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/dialog.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.t-dialog.data-v-20ecca46{overflow:hidden;width:var(--td-dialog-width, 622rpx);border-radius:var(--td-dialog-border-radius, var(--td-radius-extraLarge, 24rpx));background-color:var(--td-bg-color-container, var(--td-font-white-1, #ffffff))}.t-dialog__wrapper.data-v-20ecca46{--td-popup-border-radius: var(--td-dialog-border-radius, var(--td-radius-extraLarge, 24rpx))}.t-dialog__close-btn.data-v-20ecca46{position:absolute;top:var(--td-spacer, 16rpx);right:var(--td-spacer, 16rpx);color:var(--td-dialog-close-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, .4))));z-index:1}.t-dialog__content.data-v-20ecca46{padding-top:var(--td-spacer-3, 48rpx);padding-right:var(--td-spacer-3, 48rpx);padding-bottom:0;padding-left:var(--td-spacer-3, 48rpx);max-height:var(--td-dialog-body-max-height, 912rpx);box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;font-size:var(--td-font-size-m, 32rpx)}.t-dialog__content.data-v-20ecca46:empty{display:none}.t-dialog__header.data-v-20ecca46{text-align:center;font:var(--td-dialog-title-font, var(--td-font-title-large, 600 36rpx / 52rpx var(--td-font-family, PingFang SC, Microsoft YaHei, Arial Regular)));color:var(--td-dialog-title-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, .9))))}.t-dialog__header+.t-dialog__body.data-v-20ecca46{margin-top:var(--td-spacer, 16rpx)}.t-dialog__body.data-v-20ecca46{overflow-y:scroll;text-align:center;-webkit-overflow-scrolling:touch;font:var(--td-dialog-content-font, var(--td-font-body-large, 32rpx / 48rpx var(--td-font-family, PingFang SC, Microsoft YaHei, Arial Regular)));color:var(--td-dialog-content-color, var(--td-text-color-secondary, var(--td-font-gray-2, rgba(0, 0, 0, .6))))}.t-dialog__body-text.data-v-20ecca46{word-wrap:break-word}.t-dialog__body--left.data-v-20ecca46{text-align:left}.t-dialog__body--right.data-v-20ecca46{text-align:right}.t-dialog__footer.data-v-20ecca46{display:flex;padding:var(--td-spacer-3, 48rpx)}.t-dialog__footer--column.data-v-20ecca46{flex-flow:column-reverse}.t-dialog__footer--column.data-v-20ecca46 .t-dialog__button{width:100%}.t-dialog__footer--full.data-v-20ecca46{padding:var(--td-spacer-4, 64rpx) 0 0}.data-v-20ecca46 .t-dialog__button{position:relative;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.data-v-20ecca46 .t-dialog__button--horizontal:not(:first-child){margin-left:var(--td-spacer-1, 24rpx)}.data-v-20ecca46 .t-dialog__button--vertical:not(:first-child){margin-bottom:var(--td-spacer-1, 24rpx)}.data-v-20ecca46 .t-dialog__button--text{flex:1;--td-button-border-radius: 0;--td-button-medium-height: 112rpx;border-radius:0}.data-v-20ecca46 .t-dialog__button--text:before{content:" ";position:absolute;box-sizing:border-box;top:0;left:0;border-top:1px solid var(--td-border-level-1-color, var(--td-gray-color-3, #e7e7e7));border-left:1px solid var(--td-border-level-1-color, var(--td-gray-color-3, #e7e7e7));transform:scale(.5);transform-origin:0 0;width:200%;height:200%;border-radius:0}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/dialog/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t={actions:{type:Array},buttonLayout:{type:String,default:"horizontal",validator:t=>!t||["horizontal","vertical"].includes(t)},cancelBtn:{type:[String,Object]},closeBtn:{type:[Boolean,Object],default:!1},closeOnOverlayClick:Boolean,confirmBtn:{type:[String,Object]},content:{type:String},overlayProps:{type:Object,default:()=>({})},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},title:{type:String},usingCustomNavbar:Boolean,visible:Boolean,zIndex:{type:Number,default:11500},onAction:{type:Function,default:()=>({})},onCancel:{type:Function,default:()=>({})},onClose:{type:Function,default:()=>({})},onConfirm:{type:Function,default:()=>({})},onOverlayClick:{type:Function,default:()=>({})}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/draggable/draggable.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/draggable/draggable.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("../common/src/instantiationDecorator.js"),e=require("../common/config.js"),o=require("./props.js"),s=require("../common/utils.js"),i=require("../common/utils.wxs.js"),r=require("../../../../common/vendor.js"),n=require("../common/wechat.js"),c=`${e.prefix}-draggable`,h=t.uniComponent({name:c,options:{styleIsolation:"shared"},props:{...o.props},emits:["move","start","end"],data:()=>({prefix:e.prefix,classPrefix:c,tools:i.tools,systemInfo:n.getWindowInfo()}),mounted(){this.computedRect()},methods:{onTouchStart(t){const{systemInfo:e}=this;"none"!==this.direction&&(this.startX=t.touches[0].clientX+e.windowWidth-this.rect.right,this.startY=t.touches[0].clientY+e.windowHeight-this.rect.bottom,this.$emit("start",{startX:this.startX,startY:this.startY,rect:this.rect,e:t}))},onTouchMove(t){const{systemInfo:e}=this;if("none"===this.direction)return;let o=this.startX-t.touches[0].clientX,s=this.startY-t.touches[0].clientY;"vertical"===this.direction&&(o=e.windowWidth-this.rect.right),"horizontal"===this.direction&&(s=e.windowHeight-this.rect.bottom),this.$emit("move",{x:o,y:s,rect:this.rect,e:t})},async onTouchEnd(t){"none"!==this.direction&&(await this.computedRect(),this.$emit("end",{rect:this.rect,e:t}))},async computedRect(){this.rect={right:0,bottom:0,width:0,height:0};try{this.rect=await s.getRect(this,`.${this.classPrefix}`)}catch(t){}}}});const a=r._export_sfc(h,[["render",function(t,e,o,s,i,n){return{a:r.n(t.classPrefix),b:r.n(t.tClass),c:r.s(t.tools._style([t.customStyle])),d:r.o(((...e)=>t.onTouchStart&&t.onTouchStart(...e))),e:r.o(((...e)=>t.onTouchMove&&t.onTouchMove(...e))),f:r.o(((...e)=>t.onTouchEnd&&t.onTouchEnd(...e)))}}],["__scopeId","data-v-74d90c49"]]);wx.createComponent(a);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-74d90c49', a, b]}}" style="{{c}}" bindtouchstart="{{d}}" catchtouchmove="{{e}}" bindtouchend="{{f}}"><slot/></view>
|
||||
@@ -0,0 +1 @@
|
||||
.hotspot-expanded.relative.data-v-74d90c49{position:relative}.hotspot-expanded.data-v-74d90c49:after{content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;transform:scale(1.5)}.t-draggable.data-v-74d90c49{position:fixed}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/draggable/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/draggable/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t={direction:{type:String,value:"all"},tClass:{type:String,default:""},tClassButton:{type:String,default:""},customStyle:{type:[String,Object],default:""}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/empty.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/empty.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const s=require("../common/src/instantiationDecorator.js"),e=require("./props.js"),i=require("../common/config.js"),o=require("../common/utils.js"),a=require("../common/utils.wxs.js"),n=require("../common/version.js"),t=require("../../../../common/vendor.js"),c=`${i.prefix}-empty`,r=s.uniComponent({name:c,options:{styleIsolation:"shared"},externalClasses:[`${i.prefix}-class`,`${i.prefix}-class-description`,`${i.prefix}-class-image`,`${i.prefix}-class-actions`],components:{TIcon:()=>"../icon/icon.js",TImage:()=>"../image/image.js"},props:{...e.props},data:()=>({prefix:i.prefix,classPrefix:c,iconName:"",iconData:{},tools:a.tools}),computed:{iconTClass(){return n.canUseVirtualHost()?this.iconRealClass:""},iconClass(){return n.canUseVirtualHost()?"":this.iconRealClass},iconRealClass(){const{classPrefix:s,iconData:e}=this;return`${s}__icon ${s}__icon--${e.activeIdx==e.index?"active ":" "}`}},watch:{icon:{handler(s){const e=o.setIcon("icon",s,"");Object.keys(e).forEach((s=>{this[s]=e[s]}))},immediate:!0}},mounted(){},methods:{}});if(!Array){(t.resolveComponent("t-image")+t.resolveComponent("t-icon"))()}Math||((()=>"../image/image.js")+(()=>"../icon/icon.js"))();const l=t._export_sfc(r,[["render",function(s,e,i,o,a,n){return t.e({a:s.image},s.image?{b:t.p({"t-class":s.tClassImage,src:s.image,mode:"aspectFit"})}:s.iconName||s.tools.isNoEmptyObj(s.iconData)?{d:t.n(s.iconClass),e:t.p({"custom-style":s.iconData.style||"","t-class":s.iconTClass,prefix:s.iconData.prefix,name:s.iconName||s.iconData.name,size:s.iconData.size,color:s.iconData.color,"aria-hidden":!!s.iconData.ariaHidden,"aria-label":s.iconData.ariaLabel,"aria-role":s.iconData.ariaRole})}:{},{c:s.iconName||s.tools.isNoEmptyObj(s.iconData),f:t.n(s.classPrefix+"__thumb"),g:s.description},s.description?{h:t.t(s.description)}:{},{i:t.n(s.classPrefix+"__description "),j:t.n(s.tClassDescription),k:t.n(s.classPrefix+"__actions "),l:t.n(s.tClassActions),m:t.s(s.tools._style([s.customStyle])),n:t.n(s.tClass),o:t.n(s.classPrefix)})}],["__scopeId","data-v-e1b48b1d"]]);wx.createComponent(l);
|
||||
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/empty.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/empty.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-icon": "../icon/icon",
|
||||
"t-image": "../image/image"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/empty.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/empty.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{m}}" class="{{['data-v-e1b48b1d', n, o]}}"><view aria-hidden="{{true}}" class="{{['data-v-e1b48b1d', f]}}"><t-image wx:if="{{a}}" class="data-v-e1b48b1d" u-i="e1b48b1d-0" bind:__l="__l" u-p="{{b}}"/><block wx:elif="{{c}}" name="icon"><t-icon wx:if="{{e}}" class="{{['data-v-e1b48b1d', d]}}" u-i="e1b48b1d-1" bind:__l="__l" u-p="{{e}}"/></block><slot wx:else name="image"/></view><view class="{{['data-v-e1b48b1d', i, j]}}"><block wx:if="{{g}}">{{h}}</block><slot name="description"/></view><view class="{{['data-v-e1b48b1d', k, l]}}"><slot name="action"/></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/empty.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/empty.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.t-empty.data-v-e1b48b1d{display:flex;flex-direction:column;align-items:center}.data-v-e1b48b1d .t-empty__icon{font-size:192rpx;color:var(--td-empty-icon-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, .4))))}.t-empty__thumb+.t-empty__description.data-v-e1b48b1d:not(:empty){margin-top:var(--td-empty-description-margin-top, var(--td-spacer-2, 32rpx))}.t-empty__description.data-v-e1b48b1d{text-align:center;color:var(--td-empty-description-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, .4))));font:var(--td-empty-description-font, var(--td-font-body-medium, 28rpx / 44rpx var(--td-font-family, PingFang SC, Microsoft YaHei, Arial Regular)));white-space:pre-wrap}.t-empty__description+.t-empty__actions.data-v-e1b48b1d:not(:empty){margin-top:var(--td-empty-action-margin-top, var(--td-spacer-4, 64rpx))}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/empty/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t={description:{type:String},icon:{type:[String,Object]},image:{type:String}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/fab.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/fab.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/fab.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/fab.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-button": "../button/button",
|
||||
"t-draggable": "../draggable/draggable"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/fab.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/fab.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<t-draggable wx:if="{{a}}" class="r data-v-e2150818" u-s="{{['d']}}" u-r="draggable" bindstart="{{p}}" bindmove="{{q}}" bindend="{{r}}" u-i="e2150818-0" bind:__l="__l" u-p="{{s}}"><slot wx:if="{{b}}"/><block wx:else name="button"><t-button wx:if="{{n}}" u-s="{{['d']}}" class="{{['data-v-e2150818', d]}}" data-type="{{'action'}}" data-extra="{{e}}" bindclick="{{f}}" bindgetuserinfo="{{g}}" bindcontact="{{h}}" bindgetphonenumber="{{i}}" binderror="{{j}}" bindopensetting="{{k}}" bindlaunchapp="{{l}}" bindagreeprivacyauthorization="{{m}}" u-i="e2150818-1,e2150818-0" bind:__l="__l" u-p="{{n}}"><slot wx:if="{{c}}"/></t-button></block></t-draggable><view wx:else class="{{['data-v-e2150818', G, H]}}" style="{{I}}"><slot wx:if="{{t}}"/><t-button wx:else u-s="{{['d']}}" class="{{['data-v-e2150818', v]}}" data-type="{{'action'}}" data-extra="{{w}}" bindclick="{{x}}" bindgetuserinfo="{{y}}" bindcontact="{{z}}" bindgetphonenumber="{{A}}" binderror="{{B}}" bindopensetting="{{C}}" bindlaunchapp="{{D}}" bindagreeprivacyauthorization="{{E}}" u-i="e2150818-2" bind:__l="__l" u-p="{{F||''}}"><slot/></t-button></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/fab.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/fab.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.t-fab.data-v-e2150818{position:fixed}.t-fab__button.data-v-e2150818{box-shadow:var(--td-fab-shadow, var(--td-shadow-2, 0 3px 14px 2px rgba(0, 0, 0, .05), 0 8px 10px 1px rgba(0, 0, 0, .06), 0 5px 5px -3px rgba(0, 0, 0, .1)))}.t-fab__draggable.data-v-e2150818{position:fixed}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/fab/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t={buttonProps:{type:Object},draggable:{type:[String,Boolean],default:!1},icon:{type:String,default:""},style:{type:String,default:"right: 16px; bottom: 32px;"},text:{type:String,default:""},usingCustomNavbar:Boolean,yBounds:{type:Array},onClick:{type:Function,default:()=>({})},onDragEnd:{type:Function,default:()=>({})},onDragStart:{type:Function,default:()=>({})}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/icon.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/icon.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../common/src/instantiationDecorator.js"),i=require("../common/config.js"),s=require("./props.js"),t=require("../common/utils.js"),o=require("../common/utils.wxs.js"),n=require("../../../../common/vendor.js"),a=`${i.prefix}-icon`,r=e.uniComponent({name:a,options:{styleIsolation:"shared"},externalClasses:[`${i.prefix}-class`],props:{...s.props},data:()=>({componentPrefix:i.prefix,classPrefix:a,isImage:!1,iconStyle:void 0,tools:o.tools}),watch:{name:{handler(){this.setIconStyle()},immediate:!0},color:{handler(){this.setIconStyle()},immediate:!0},size:{handler(){this.setIconStyle()},immediate:!0},style:{handler(){this.setIconStyle()},immediate:!0}},methods:{onTap(e){this.$emit("click",e)},setIconStyle(){const{name:e,color:i,size:s,classPrefix:o}=this,n=-1!==e.indexOf("/"),a=t.addUnit(s),r={...i?{color:i}:{},...s?{"font-size":a}:{}};if(this.isImage=n,n){let e=a;e||t.getRect(this,`.${o}`).then((i=>{e=t.addUnit(null==i?void 0:i.height)})).catch((()=>{})),r.width=e,r.height=e}this.iconStyle=`${t.styles(r)}`}}});const c=n._export_sfc(r,[["render",function(e,i,s,t,o,a){return n.e({a:e.isImage},e.isImage?{b:e.name,c:n.n(e.classPrefix+"__image"),d:n.n(e.classPrefix+"--image")}:{},{e:e.tools.isValidIconName(e.name)&&!e.isImage},e.tools.isValidIconName(e.name)&&!e.isImage?{f:n.n((e.prefix?e.prefix:e.classPrefix)+"-"+e.name+" "+e.classPrefix+"-base")}:{},{g:n.n(e.tClass),h:n.n(e.prefix||"t-icon"),i:n.s(e.tools._style([e.iconStyle,e.customStyle])),j:e.ariaHidden,k:e.ariaLabel,l:e.ariaRole,m:n.o(((...i)=>e.onTap&&e.onTap(...i)))})}],["__scopeId","data-v-a4f8549c"]]);wx.createComponent(c);
|
||||
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/icon.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/icon.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/icon.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/icon.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-a4f8549c', g, h]}}" style="{{i}}" aria-hidden="{{j}}" aria-label="{{k}}" aria-role="{{l}}" bindtap="{{m}}"><view wx:if="{{a}}" class="{{['data-v-a4f8549c', d]}}"><image src="{{b}}" mode="aspectFit" class="{{['data-v-a4f8549c', c]}}"/></view><view wx:if="{{e}}" class="{{['data-v-a4f8549c', f]}}"/></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/icon.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/icon.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/icon/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t={color:{type:String,default:""},name:{type:String,default:"",required:!0},prefix:{type:String,default:""},size:{type:[String,Number],default:""},onClick:{type:Function,default:()=>({})}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/image.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/image.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const i=require("../common/src/instantiationDecorator.js"),s=require("./props.js"),e=require("../common/config.js"),o=require("../common/utils.js"),a=require("../common/version.js"),t=require("../common/utils.wxs.js"),r=require("../../../../common/vendor.js"),n=`${e.prefix}-image`,l=i.uniComponent({name:n,options:{styleIsolation:"shared"},externalClasses:[`${e.prefix}-class`,`${e.prefix}-class-load`,`${e.prefix}-class-image`,`${e.prefix}-class-error`],components:{TLoading:()=>"../loading/loading.js",TIcon:()=>"../icon/icon.js"},props:{...s.ImageProps},emits:["click"],data:()=>({prefix:e.prefix,isLoading:!0,isFailed:!1,innerStyle:"",classPrefix:n,tools:t.tools,preSrc:""}),watch:{src(){this.preSrc!==this.src&&this.update()},width:"calcSize",height:"calcSize"},mounted(){this.calcSize(this.width,this.height)},methods:{onLoaded(i){const s=o.appBaseInfo.SDKVersion,{mode:e,tId:t}=this,r=a.compareVersion(s,"2.10.3")<0;"heightFix"===e&&r&&o.getRect(this,`#${t||"image"}`).then((i=>{const{height:s,width:e}=i;this.innerStyle=`height: ${o.addUnit(s)}; width: ${e}px;`})).catch((()=>{})),this.isLoading=!1,this.isFailed=!1,this.$emit("load",{e:i})},onLoadError(i){this.isLoading=!1,this.isFailed=!0,this.$emit("error",{e:i})},calcSize(i=this.width,s=this.height){let e="";i&&(e+=`width: ${o.addUnit(i)};`),s&&(e+=`height: ${o.addUnit(s)};`),this.innerStyle=e},update(){const{src:i}=this;this.preSrc=i,i?(this.isLoading=!0,this.isFailed=!1):this.onLoadError({errMsg:"图片链接为空"})},onClick(i){this.$emit("click",i)}}});if(!Array){(r.resolveComponent("t-loading")+r.resolveComponent("t-icon"))()}Math||((()=>"../loading/loading.js")+(()=>"../icon/icon.js"))();const d=r._export_sfc(l,[["render",function(i,s,e,o,a,t){return r.e({a:i.isLoading},i.isLoading?r.e({b:"default"===i.loading},"default"===i.loading?{c:r.p({theme:"dots",size:"44rpx",loading:!0,"inherit-color":!0,"t-class":i.tClassLoad,"t-class-text":i.classPrefix+"--loading-text"})}:""!==i.loading&&"slot"!==i.loading?{e:r.t(i.loading),f:r.n(i.classPrefix+"__common "+i.tClassLoad)}:{},{d:""!==i.loading&&"slot"!==i.loading,g:r.s(i.tools._style([i.innerStyle])),h:r.n(i.classPrefix+"__mask "+i.classPrefix+"--loading "+i.classPrefix+"--shape-"+i.shape),i:i.ariaHidden}):i.isFailed?r.e({k:"default"===i.error},"default"===i.error?{l:r.p({name:"close","aria-role":"img","aria-label":"加载失败"}),m:r.n(i.tClassLoad)}:i.error&&"slot"!==i.error?{o:r.t(i.error),p:r.n(i.classPrefix+"__common "),q:r.n(i.tClassLoad)}:{},{n:i.error&&"slot"!==i.error,r:r.s(i.tools._style([i.innerStyle])),s:r.n(i.classPrefix+"__mask "+i.classPrefix+"--failed "+i.classPrefix+"--shape-"+i.shape),t:r.n(i.tClassError),v:i.ariaHidden}):{},{j:i.isFailed,w:!i.isFailed},i.isFailed?{}:{x:i.tId||"image",y:r.s(i.tools._style([i.innerStyle])),z:r.n(i.classPrefix+"__img "+i.classPrefix+"--shape-"+i.shape+" "),A:r.n((i.isLoading?i.classPrefix+"--lazy":"")+" "),B:r.n(i.tClassImage),C:i.src,D:i.mode,E:i.webp,F:i.lazy,G:i.showMenuByLongpress,H:i.ariaHidden||i.isLoading||i.isFailed,I:i.ariaLabel,J:r.o(((...s)=>i.onClick&&i.onClick(...s))),K:r.o(((...s)=>i.onLoaded&&i.onLoaded(...s))),L:r.o(((...s)=>i.onLoadError&&i.onLoadError(...s)))},{M:r.s(i.tools._style([i.customStyle])),N:r.n(i.tClass),O:r.n(i.classPrefix)})}],["__scopeId","data-v-4372ccb7"]]);wx.createComponent(d);
|
||||
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/image.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/image.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-loading": "../loading/loading",
|
||||
"t-icon": "../icon/icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/image.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/image.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{M}}" class="{{['data-v-4372ccb7', N, O]}}"><view wx:if="{{a}}" style="{{g}}" class="{{['data-v-4372ccb7', h]}}" aria-hidden="{{i}}"><t-loading wx:if="{{b}}" class="data-v-4372ccb7" u-i="4372ccb7-0" bind:__l="__l" u-p="{{c}}"/><view wx:elif="{{d}}" class="{{['data-v-4372ccb7', f]}}">{{e}}</view><slot wx:else name="loading"/></view><view wx:elif="{{j}}" style="{{r}}" class="{{['data-v-4372ccb7', s, t]}}" aria-hidden="{{v}}"><view wx:if="{{k}}" style="font-size:44rpx" class="{{['data-v-4372ccb7', m]}}"><t-icon wx:if="{{l}}" class="data-v-4372ccb7" u-i="4372ccb7-1" bind:__l="__l" u-p="{{l}}"/></view><view wx:elif="{{n}}" class="{{['data-v-4372ccb7', p, q]}}">{{o}}</view><slot wx:else name="error"/></view><image wx:if="{{w}}" id="{{x}}" style="{{y}}" class="{{['data-v-4372ccb7', z, A, B]}}" src="{{C}}" mode="{{D}}" webp="{{E}}" lazy-load="{{F}}" show-menu-by-longpress="{{G}}" aria-hidden="{{H}}" aria-label="{{I}}" bindtap="{{J}}" bindload="{{K}}" binderror="{{L}}"/></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/image.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/image.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.t-image.data-v-4372ccb7{position:relative;display:inline-block}.t-image__mask.data-v-4372ccb7,.t-image__img.data-v-4372ccb7{color:var(--td-image-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, .4))));vertical-align:top;width:inherit;height:inherit}.t-image__mask.data-v-4372ccb7{display:flex;align-items:center;justify-content:center;background-color:var(--td-image-loading-bg-color, var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3)));color:var(--td-image-loading-color, var(--td-text-color-placeholder, var(--td-font-gray-3, rgba(0, 0, 0, .4))))}.t-image--loading-text.data-v-4372ccb7{width:0;height:0}.t-image__common.data-v-4372ccb7{width:100%;height:100%}.t-image--lazy.data-v-4372ccb7{position:absolute;top:0;left:0;z-index:-1}.t-image--shape-circle.data-v-4372ccb7{border-radius:50%;overflow:hidden}.t-image--shape-round.data-v-4372ccb7{border-radius:var(--td-image-round-radius, var(--td-radius-default, 12rpx));overflow:hidden}.t-image--shape-square.data-v-4372ccb7{border-radius:0;overflow:hidden}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/image/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t={error:{type:String,default:"default"},height:{type:[String,Number]},lazy:Boolean,loading:{type:String,default:"default"},mode:{type:String,default:"scaleToFill",validator:t=>!t||["scaleToFill","aspectFit","aspectFill","widthFix","heightFix","top","bottom","center","left","right","top left","top right","bottom left","bottom right"].includes(t)},shape:{type:String,default:"square",validator:t=>!t||["circle","round","square"].includes(t)},showMenuByLongpress:Boolean,src:{type:String,default:""},tId:{type:String,default:""},webp:Boolean,width:{type:[String,Number]},onError:{type:Function,default:()=>({})},onLoad:{type:Function,default:()=>({})}};exports.ImageProps=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/computed.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/computed.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";exports.getInputClass=function(t,s,n,o){const r=[`${t}__control`];return n&&r.push(`${t}--${n}`),o&&r.push(`${t}__control--disabled`),r.join(" ")};
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/input.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/input.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/input.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/input.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-icon": "../icon/icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/input.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/input.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{an}}" class="{{['data-v-6a6baae8', ao]}}" aria-describedby><view class="{{['data-v-6a6baae8', h]}}"><view class="{{['data-v-6a6baae8', d]}}"><slot name="prefix-icon"/><block wx:if="{{a}}" name="icon"><t-icon wx:if="{{c}}" class="data-v-6a6baae8" bindclick="{{b}}" u-i="6a6baae8-0" bind:__l="__l" u-p="{{c}}"/></block></view><view class="{{['data-v-6a6baae8', g]}}" aria-hidden><slot name="label"/><block wx:if="{{e}}">{{f}}</block></view></view><view class="{{['data-v-6a6baae8', am]}}"><view class="{{['data-v-6a6baae8', ah]}}" bindtap="{{ai}}"><block wx:if="{{r0}}"><input class="{{['data-v-6a6baae8', i]}}" maxlength="{{j}}" disabled="{{k}}" placeholder="{{l}}" placeholder-style="{{m}}" placeholder-class="{{n}}" value="{{o}}" password="{{p}}" type="{{q}}" focus="{{r}}" confirm-type="{{s}}" confirm-hold="{{t}}" cursor="{{v}}" cursor-color="{{w}}" cursor-spacing="{{x}}" adjust-position="{{y}}" auto-focus="{{z}}" always-embed="{{A}}" selection-start="{{B}}" selection-end="{{C}}" hold-keyboard="{{D}}" safe-password-cert-path="{{E}}" safe-password-length="{{F}}" safe-password-time-stamp="{{G}}" safe-password-nonce="{{H}}" safe-password-salt="{{I}}" safe-password-custom-hash="{{J}}" aria-role="textbox" aria-label="{{K}}" aria-roledescription="{{L}}" bindinput="{{M}}" bindchange="{{N}}" bindfocus="{{O}}" bindblur="{{P}}" bindconfirm="{{Q}}" bindkeyboardheightchange="{{R}}" bindnicknamereview="{{S}}"></input></block><view wx:if="{{T}}" class="{{['data-v-6a6baae8', W]}}" catchtap="{{X}}"><t-icon wx:if="{{V}}" class="data-v-6a6baae8" bindclick="{{U}}" u-i="6a6baae8-1" bind:__l="__l" u-p="{{V}}"/></view><view class="{{['data-v-6a6baae8', aa]}}" bindtap="{{ab}}"><text wx:if="{{Y}}" class="data-v-6a6baae8">{{Z}}</text><slot name="suffix"/></view><view class="{{['data-v-6a6baae8', af]}}" bindtap="{{ag}}"><slot name="suffix-icon"/><block wx:if="{{ac}}" name="icon"><t-icon wx:if="{{ae}}" class="data-v-6a6baae8" bindclick="{{ad}}" u-i="6a6baae8-2" bind:__l="__l" u-p="{{ae}}"/></block></view></view><view wx:if="{{aj}}" class="{{['data-v-6a6baae8', al]}}">{{ak}}</view><slot name="tips"/></view><slot name="extra"/></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/input.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/input.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/input/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e={adjustPosition:{type:Boolean,default:!0},align:{type:String,default:"left",validator:e=>!e||["left","center","right"].includes(e)},allowInputOverMax:Boolean,alwaysEmbed:Boolean,autoFocus:Boolean,borderless:Boolean,clearTrigger:{type:String,default:"always",validator:e=>!e||["always","focus"].includes(e)},clearable:{type:[Boolean,Object],default:!1},confirmHold:Boolean,confirmType:{type:String,default:"done",validator:e=>!e||["send","search","next","go","done"].includes(e)},cursor:{type:Number,default:-1},cursorColor:{type:String,default:"#0052d9"},cursorSpacing:{type:Number,default:0},disabled:{type:Boolean,default:void 0},focus:Boolean,format:{type:Function},holdKeyboard:Boolean,label:{type:String},layout:{type:String,default:"horizontal",validator:e=>!e||["vertical","horizontal"].includes(e)},maxcharacter:{type:Number},maxlength:{type:Number,default:-1},placeholder:{type:String,default:void 0},placeholderClass:{type:String,default:"input-placeholder"},placeholderStyle:{type:String,default:""},prefixIcon:{type:[String,Object]},readonly:{type:Boolean,default:void 0},safePasswordCertPath:{type:String,default:""},safePasswordCustomHash:{type:String,default:""},safePasswordLength:{type:Number},safePasswordNonce:{type:String,default:""},safePasswordSalt:{type:String,default:""},safePasswordTimeStamp:{type:Number},selectionEnd:{type:Number,default:-1},selectionStart:{type:Number,default:-1},status:{type:String,default:"default",validator:e=>!e||["default","success","warning","error"].includes(e)},suffix:{type:String},suffixIcon:{type:[String,Object]},tips:{type:String},type:{type:String,default:"text",validator:e=>!e||["text","number","idcard","digit","safe-password","password","nickname"].includes(e)},value:{type:[String,Number]},onBlur:{type:Function,default:()=>({})},onChange:{type:Function,default:()=>({})},onClear:{type:Function,default:()=>({})},onClick:{type:Function,default:()=>({})},onEnter:{type:Function,default:()=>({})},onFocus:{type:Function,default:()=>({})},onKeyboardheightchange:{type:Function,default:()=>({})},onNicknamereview:{type:Function,default:()=>({})},onValidate:{type:Function,default:()=>({})}};exports.props=e;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/loading.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/loading.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../common/src/instantiationDecorator.js"),t=require("../common/config.js"),i=require("./props.js"),s=require("../common/utils.wxs.js"),a=require("../../../../common/vendor.js"),n=`${t.prefix}-loading`,o=e.uniComponent({name:n,options:{multipleSlots:!0,styleIsolation:"shared"},externalClasses:[`${t.prefix}-class`,`${t.prefix}-class-text`,`${t.prefix}-class-indicator`],props:{...i.props},data:()=>({prefix:t.prefix,classPrefix:n,show:!0,tools:s.tools}),watch:{loading:{handler(e){const{delay:t}=this;this.timer&&clearTimeout(this.timer),e&&t?this.timer=setTimeout((()=>{this.show=e,this.timer=null}),t):this.show=e},immediate:!0}},beforeUnMount(){clearTimeout(this.timer)},methods:{refreshPage(){this.$emit("reload")}}});const r=a._export_sfc(o,[["render",function(e,t,i,s,n,o){return a.e({a:e.indicator},e.indicator?a.e({b:"spinner"===e.theme},"spinner"===e.theme?{c:a.f(12,((t,i,s)=>({a:i,b:a.n(e.classPrefix+"__dot "+e.classPrefix+"__dot-"+i)})))}:{},{d:"circular"===e.theme},"circular"===e.theme?{e:a.n(e.classPrefix+"__circular")}:{},{f:"dots"===e.theme},"dots"===e.theme?{g:a.n(e.classPrefix+"__dot"),h:a.s((e.duration?"animation-duration: "+e.duration/1e3+"s; animation-delay:0s;":"")+" animation-play-state: "+(e.pause?"paused":"running")+";"),i:a.n(e.classPrefix+"__dot"),j:a.s((e.duration?"animation-duration: "+e.duration/1e3+"s; animation-delay:"+1*e.duration/3e3+"s;":"")+" animation-play-state: "+(e.pause?"paused":"running")+";"),k:a.n(e.classPrefix+"__dot"),l:a.s((e.duration?"animation-duration: "+e.duration/1e3+"s; animation-delay:"+2*e.duration/3e3+"s;":"")+" animation-play-state: "+(e.pause?"paused":"running")+";")}:{},{m:a.n(e.tClassIndicator),n:a.n(e.classPrefix+"__spinner "+e.classPrefix+"__spinner--"+e.theme+" "+(e.reverse?"reverse":"")),o:a.s("width: "+e.tools.addUnit(e.size)+"; height: "+e.tools.addUnit(e.size)+"; "+(e.inheritColor?"color: inherit;":"")+" "+(e.indicator?"":"display: none;")+" "+(e.duration?"animation-duration: "+e.duration/1e3+"s;":"")+" animation-play-state: "+(e.pause?"paused":"running")+";"),p:e.ariaRole||"img",q:e.ariaLabel||e.text||"加载中"}):{},{r:e.text},e.text?{s:a.t(e.text)}:{},{t:a.n(e.tools.cls(e.classPrefix+"__text",[e.layout])),v:a.n(e.tClassText),w:e.indicator,x:e.ariaLabel||e.text,y:a.s(e.tools._style([e.customStyle,e.show?"":"display: none",e.inheritColor?"color: inherit":""])),z:a.n(e.tClass),A:a.n(e.classPrefix+" "+e.classPrefix+"--"+e.layout+" "+(e.fullscreen?e.classPrefix+"--fullscreen":""))})}],["__scopeId","data-v-3e29eb03"]]);wx.createComponent(r);
|
||||
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/loading.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/loading.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/loading.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/loading.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{y}}" class="{{['data-v-3e29eb03', z, A]}}"><view wx:if="{{a}}" class="{{['data-v-3e29eb03', m, n]}}" style="{{o}}" aria-role="{{p}}" aria-label="{{q}}"><block wx:if="{{b}}"><view wx:for="{{c}}" wx:for-item="item" wx:key="a" class="{{['data-v-3e29eb03', item.b]}}"/></block><view wx:if="{{d}}" class="{{['data-v-3e29eb03', e]}}"/><block wx:if="{{f}}"><view class="{{['data-v-3e29eb03', g]}}" style="{{h}}"/><view class="{{['data-v-3e29eb03', i]}}" style="{{j}}"/><view class="{{['data-v-3e29eb03', k]}}" style="{{l}}"/></block><slot name="indicator"/></view><view class="{{['data-v-3e29eb03', t, v]}}" aria-hidden="{{w}}" aria-label="{{x}}"><block wx:if="{{r}}">{{s}}</block><slot name="text"/><slot/></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/loading.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/loading.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.t-loading.data-v-3e29eb03{display:inline-flex;align-items:center;justify-content:center}.t-loading--fullscreen.data-v-3e29eb03{position:fixed;display:flex;align-items:center;vertical-align:middle;justify-content:center;top:0;left:0;width:100%;height:100%;z-index:var(--td-loading-z-index, 3500);background-color:var(--td-loading-full-bg-color, rgba(255, 255, 255, .6))}.t-loading__spinner.data-v-3e29eb03{position:relative;box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;animation:rotate-3e29eb03 .8s linear infinite;color:var(--td-loading-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)))}.t-loading__spinner.reverse.data-v-3e29eb03{animation-name:rotateReverse-3e29eb03}.t-loading__spinner--spinner.data-v-3e29eb03{animation-timing-function:steps(12);color:var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, .9)))}.t-loading__spinner--spinner .t-loading__dot.data-v-3e29eb03{position:absolute;top:0;left:0;width:100%;height:100%}.t-loading__spinner--spinner .t-loading__dot.data-v-3e29eb03:before{display:block;width:5rpx;height:25%;margin:0 auto;background-color:var(--td-loading-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));border-radius:40%;content:" "}.t-loading__spinner--circular .t-loading__circular.data-v-3e29eb03{border-radius:100%;width:100%;height:100%;background:conic-gradient(from 180deg at 50% 50%,rgba(255,255,255,0) 0deg,rgba(255,255,255,0) 60deg,currentColor 330deg,rgba(255,255,255,0) 360deg);mask:radial-gradient(transparent calc(50% - 1rpx),#fff 50%);-webkit-mask:radial-gradient(transparent calc(50% - 1rpx),#fff 50%)}.t-loading__spinner--dots.data-v-3e29eb03{display:flex;justify-content:space-between;align-items:center;animation:none}.t-loading__spinner--dots .t-loading__dot.data-v-3e29eb03{width:20%;height:20%;border-radius:50%;background-color:var(--td-loading-color, var(--td-brand-color, var(--td-primary-color-7, #0052d9)));animation-duration:1.8s;animation-name:dotting-3e29eb03;animation-timing-function:linear;animation-iteration-count:infinite;animation-fill-mode:both}.t-loading__text.data-v-3e29eb03{color:var(--td-loading-text-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, .9))));font:var(--td-loading-text-font, var(--td-font-body-small, 24rpx / 40rpx var(--td-font-family, PingFang SC, Microsoft YaHei, Arial Regular)))}.t-loading__text--vertical.data-v-3e29eb03:not(:first-child):not(:empty){margin-top:12rpx}.t-loading__text--horizontal.data-v-3e29eb03:not(:first-child):not(:empty){margin-left:16rpx}.t-loading--vertical.data-v-3e29eb03{flex-direction:column}.t-loading--horizontal.data-v-3e29eb03{flex-direction:row;vertical-align:top}@keyframes t-bar-3e29eb03{0%{width:0}50%{width:70%}to{width:80%}}@keyframes t-bar-loaded-3e29eb03{0%{height:6rpx;opacity:1;width:90%}50%{height:6rpx;opacity:1;width:100%}to{height:0;opacity:0;width:100%}}.t-loading__dot-1.data-v-3e29eb03{transform:rotate(30deg);opacity:0}.t-loading__dot-2.data-v-3e29eb03{transform:rotate(60deg);opacity:.08333333}.t-loading__dot-3.data-v-3e29eb03{transform:rotate(90deg);opacity:.16666667}.t-loading__dot-4.data-v-3e29eb03{transform:rotate(120deg);opacity:.25}.t-loading__dot-5.data-v-3e29eb03{transform:rotate(150deg);opacity:.33333333}.t-loading__dot-6.data-v-3e29eb03{transform:rotate(180deg);opacity:.41666667}.t-loading__dot-7.data-v-3e29eb03{transform:rotate(210deg);opacity:.5}.t-loading__dot-8.data-v-3e29eb03{transform:rotate(240deg);opacity:.58333333}.t-loading__dot-9.data-v-3e29eb03{transform:rotate(270deg);opacity:.66666667}.t-loading__dot-10.data-v-3e29eb03{transform:rotate(300deg);opacity:.75}.t-loading__dot-11.data-v-3e29eb03{transform:rotate(330deg);opacity:.83333333}.t-loading__dot-12.data-v-3e29eb03{transform:rotate(360deg);opacity:.91666667}@keyframes rotate-3e29eb03{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotateReverse-3e29eb03{0%{transform:rotate(360deg)}to{transform:rotate(0)}}@keyframes dotting-3e29eb03{0%{opacity:.15}1%{opacity:.8}33%{opacity:.8}34%{opacity:.15}to{opacity:.15}}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/loading/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e={delay:{type:Number,default:0},duration:{type:Number,default:800},fullscreen:Boolean,indicator:{type:Boolean,default:!0},inheritColor:Boolean,layout:{type:String,default:"horizontal",validator:e=>!e||["horizontal","vertical"].includes(e)},loading:{type:Boolean,default:!0},pause:Boolean,progress:{type:Number},reverse:Boolean,size:{type:String,default:"20px"},text:{type:String},theme:{type:String,default:"circular",validator:e=>!e||["circular","spinner","dots","custom"].includes(e)}};exports.props=e;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/mixins/page-scroll.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/mixins/page-scroll.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const r=require("../common/utils.js"),e=new(require("../common/bus.js").Bus),o=function(e){const o=r.getCurrentPage();if(!o)return;const{pageScroller:l}=o;null==l||l.forEach((r=>{"function"==typeof r&&r(e)}))};exports.pageScrollMixin=(l="onScroll",n=!0)=>({mounted(){if(n)return void e.on("page-scroll",this[l]);const t=r.getCurrentPage();t&&(Array.isArray(t.pageScroller)?t.pageScroller.push(this._bindScroller):t.pageScroller="function"==typeof t.onPageScroll?[t.onPageScroll.bind(t),this._bindScroller]:[this._bindScroller],t.onPageScroll=o)},beforeUnMount(){var o;if(n)return void e.off("page-scroll",this[l]);const t=r.getCurrentPage();t&&(t.pageScroller=(null==(o=t.pageScroller)?void 0:o.filter((r=>r!==this._bindScroller)))||[])},methods:{_bindScroller(r){var e;let o;return o=null==(e=this[l])?void 0:e.call(this,r),o}}});
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/mixins/touch.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/mixins/touch.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t={data:()=>({}),methods:{resetTouchStatus(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},touchStart(t){this.resetTouchStatus();const[s]=t.touches;this.startX=s.clientX,this.startY=s.clientY},touchMove(t){const[s]=t.touches;this.deltaX=s.clientX-this.startX,this.deltaY=s.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=((t,s)=>t>s&&t>10?"horizontal":s>t&&s>10?"vertical":"")(this.offsetX,this.offsetY)}}};exports.touch=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/mixins/transition.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/mixins/transition.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("../common/config.js");function i(){return{data:()=>({transitionClass:"",transitionDurations:300,className:"",realVisible:!1}),props:{visible:{type:Boolean,default:null},appear:Boolean,name:{type:String,default:"fade"},durations:{type:Number,optionalTypes:[Array]}},watch:{visible:{handler(t,i){this.watchVisible(t,i)}}},created(){this.status="",this.transitionT=0},beforeMount(){this.dataDurations=this.getDurations(),this.visible&&this.enter(),this.inited=!0},destroyed(){clearTimeout(this.transitionT)},methods:{watchVisible(t,i){this.inited&&t!==i&&(t?this.enter():this.leave())},getDurations(){const{durations:t}=this;return Array.isArray(t)?t.map((t=>Number(t))):[Number(t),Number(t)]},enter(){const{name:i,transitionDurations:s}=this,[e]=this.dataDurations;this.status="entering",this.realVisible=!0,this.transitionClass=`${t.prefix}-${i}-enter ${t.prefix}-${i}-enter-active`,setTimeout((()=>{this.transitionClass=`${t.prefix}-${i}-enter-active ${t.prefix}-${i}-enter-to`}),30),this.transitionT="number"==typeof e&&e>0?setTimeout(this.entered.bind(this),e+30):setTimeout("leaving"===this.status?this.leaved.bind(this):()=>{},s+30)},entered(){this.customDuration=!1,clearTimeout(this.transitionT),this.status="entered",this.transitionClass=""},leave(){const{name:i,transitionDurations:s}=this,[,e]=this.dataDurations;this.status="leaving",this.transitionClass=`${t.prefix}-${i}-leave ${t.prefix}-${i}-leave-active`,clearTimeout(this.transitionT),setTimeout((()=>{this.transitionClass=`${t.prefix}-${i}-leave-active ${t.prefix}-${i}-leave-to`}),30),"number"==typeof e&&e>0?(this.customDuration=!0,this.transitionT=setTimeout(this.leaved.bind(this),e+30)):this.transitionT=setTimeout("leaving"===this.status?this.leaved.bind(this):()=>{},s+30)},leaved(){this.customDuration=!1,this.$emit("leaved"),clearTimeout(this.transitionT),this.status="leaved",this.transitionClass="",this.realVisible=!1},onTransitionEnd(){this.customDuration||(clearTimeout(this.transitionT),"entering"===this.status&&this.visible?this.entered():"leaving"!==this.status||this.visible||this.leaved())}}}}const s=i();exports.transition=i,exports.transitionMixins=s;
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("../../../../common/vendor.js"),e=require("../common/utils.js"),a={data:()=>({distanceTop:0}),props:{usingCustomNavbar:{type:Boolean,default:!1},customNavbarHeight:{type:Number,default:0}},created(){this.usingCustomNavbar&&this.calculateCustomNavbarDistanceTop()},methods:{calculateCustomNavbarDistanceTop(){const{statusBarHeight:a}=e.systemInfo;let s=0;const o=t.index.getMenuButtonBoundingClientRect();s=o.top+o.bottom-a,this.distanceTop=Math.max(s,this.customNavbarHeight+a)}}};exports.useCustomNavbarBehavior=a;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/overlay.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/overlay.js
vendored
Normal 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);
|
||||
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/overlay.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/overlay.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/overlay.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/overlay.wxml
vendored
Normal 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>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/overlay.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/overlay.wxss
vendored
Normal 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}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/overlay/props.js
vendored
Normal 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;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/computed.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/computed.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t={getPopupStyles:function({zIndex:t,distanceTop:p,placement:e,duration:o}){let n=t?`z-index:${t};`:"";return"top"!==e&&"left"!==e&&"right"!==e||!p||(n=`${n}top:${p}px;--td-popup-distance-top:${p}px;`),o&&(n=`${n}--td-popup-transition:all ${o}ms ease;`),n}};exports.popup=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/popup.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/popup.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../common/src/instantiationDecorator.js"),o=require("../common/config.js"),s=require("./props.js"),r=require("../mixins/transition.js"),n=require("../mixins/using-custom-navbar.js"),l=require("../common/utils.wxs.js"),t=require("./computed.js"),i=require("../../../../common/vendor.js");delete s.props.visible;const a=`${o.prefix}-popup`,c=e.uniComponent({name:a,options:{styleIsolation:"shared"},externalClasses:[`${o.prefix}-class`,`${o.prefix}-class-content`],mixins:[r.transitionMixins,n.useCustomNavbarBehavior],components:{TOverlay:()=>"../overlay/overlay.js",TIcon:()=>"../icon/icon.js"},props:{...s.props},emits:["visible-change","leaved","update:visible"],data:()=>({prefix:o.prefix,classPrefix:a,popup:t.popup,tools:l.tools}),computed:{innerPreventScrollThrough(){const{preventScrollThrough:e,overlayProps:o}=this;return e||!!o&&!!o.preventScrollThrough}},methods:{noop(){},handleOverlayClick(){const{closeOnOverlayClick:e}=this;e&&(this.$emit("visible-change",{visible:!1,trigger:"overlay"}),this.$emit("update:visible",!1))},handleClose(){this.$emit("visible-change",{visible:!1,trigger:"close-btn"}),this.$emit("update:visible",!1)}}});if(!Array){(i.resolveComponent("t-icon")+i.resolveComponent("t-overlay"))()}Math||((()=>"../icon/icon.js")+(()=>"../overlay/overlay.js"))();const p=i._export_sfc(c,[["render",function(e,o,s,r,n,l){return i.e({a:e.realVisible},e.realVisible?i.e({b:e.innerPreventScrollThrough},e.innerPreventScrollThrough?i.e({c:e.closeBtn},e.closeBtn?{d:i.p({name:"close",size:"64rpx"})}:{},{e:i.r("close-btn",{class:e.classPrefix+"-slot"}),f:i.n(e.classPrefix+"__close"),g:i.o(((...o)=>e.handleClose&&e.handleClose(...o))),h:i.n(e.classPrefix+"__content "+e.tClassContent),i:i.o(((...o)=>e.noop&&e.noop(...o)))}):i.e({j:e.closeBtn},e.closeBtn?{k:i.p({name:"close",size:"64rpx"})}:{},{l:i.r("close-btn",{class:e.classPrefix+"-slot"}),m:i.n(e.classPrefix+"__close"),n:i.o(((...o)=>e.handleClose&&e.handleClose(...o))),o:i.n(e.classPrefix+"__content "+e.tClassContent)}),{p:i.s(e.tools._style([e.popup.getPopupStyles({zIndex:e.zIndex,distanceTop:e.distanceTop,placement:e.placement,duration:e.duration}),e.customStyle])),q:i.n(e.tools.cls(e.classPrefix,[e.placement])+" "+e.transitionClass+" "+e.tClass),r:i.o(((...o)=>e.onTransitionEnd&&e.onTransitionEnd(...o)))}):{},{s:e.showOverlay},e.showOverlay?{t:i.o((o=>e.handleOverlayClick(o,{tagId:"popup-overlay"}))),v:i.p({id:"popup-overlay",visible:e.visible,"using-custom-navbar":e.usingCustomNavbar,"custom-navbar-height":e.customNavbarHeight,"z-index":e.overlayProps&&e.overlayProps.zIndex||11e3,duration:e.overlayProps&&e.overlayProps.duration||300,"background-color":e.overlayProps&&e.overlayProps.backgroundColor||"","prevent-scroll-through":e.preventScrollThrough||!!e.overlayProps&&!!e.overlayProps.preventScrollThrough,"custom-style":e.overlayProps&&e.overlayProps.style||""})}:{})}],["__scopeId","data-v-cc2f844d"]]);wx.createComponent(p);
|
||||
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/popup.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/popup.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-overlay": "../overlay/overlay",
|
||||
"t-icon": "../icon/icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/popup.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/popup.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="data-v-cc2f844d"><view wx:if="{{a}}" style="{{p}}" class="{{['data-v-cc2f844d', q]}}" bindtransitionend="{{r}}"><view wx:if="{{b}}" class="{{['data-v-cc2f844d', h]}}" catchtouchmove="{{i}}"><slot name="content"/><slot/><view class="{{['data-v-cc2f844d', f]}}" bindtap="{{g}}"><t-icon wx:if="{{c}}" class="data-v-cc2f844d" u-i="cc2f844d-0" bind:__l="__l" u-p="{{d}}"/><slot name="close-btn"/></view></view><view wx:else class="{{['data-v-cc2f844d', o]}}"><slot name="content"/><slot/><view class="{{['data-v-cc2f844d', m]}}" bindtap="{{n}}"><t-icon wx:if="{{j}}" class="data-v-cc2f844d" u-i="cc2f844d-1" bind:__l="__l" u-p="{{k}}"/><slot name="close-btn"/></view></view></view><t-overlay wx:if="{{s}}" class="data-v-cc2f844d" id="popup-overlay" bindclick="{{t}}" u-i="cc2f844d-2" bind:__l="__l" u-p="{{v}}"/></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/popup.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/popup.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.t-popup.data-v-cc2f844d{position:fixed;z-index:11500;max-height:calc(100vh - var(--td-popup-distance-top, 0));transition:var(--td-popup-transition, all .3s ease);background-color:var(--td-popup-bg-color, var(--td-bg-color-container, var(--td-font-white-1, #ffffff)))}.t-popup__content.data-v-cc2f844d{position:relative;height:100%;z-index:1}.t-popup__close.data-v-cc2f844d{position:absolute;top:0;right:0;padding:20rpx;line-height:1;color:var(--td-popup-close-btn-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, .9))))}.t-popup--top.data-v-cc2f844d{top:0;left:0;width:100%;border-bottom-left-radius:var(--td-popup-border-radius, var(--td-radius-extraLarge, 24rpx));border-bottom-right-radius:var(--td-popup-border-radius, var(--td-radius-extraLarge, 24rpx))}.t-popup--bottom.data-v-cc2f844d{bottom:0;left:0;width:100%;border-top-left-radius:var(--td-popup-border-radius, var(--td-radius-extraLarge, 24rpx));border-top-right-radius:var(--td-popup-border-radius, var(--td-radius-extraLarge, 24rpx));padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.t-popup--left.data-v-cc2f844d{top:0;left:0;height:100%}.t-popup--right.data-v-cc2f844d{top:0;right:0;height:100%}.t-popup--center.data-v-cc2f844d{top:50%;left:50%;transform:scale(1) translate3d(-50%,-50%,0);transform-origin:0% 0%;border-radius:var(--td-popup-border-radius, var(--td-radius-extraLarge, 24rpx))}.t-popup.t-fade-enter.t-popup--top.data-v-cc2f844d,.t-popup.t-fade-leave-to.t-popup--top.data-v-cc2f844d{transform:translateY(-100%);transform-origin:0% 0%}.t-popup.t-fade-enter.t-popup--bottom.data-v-cc2f844d,.t-popup.t-fade-leave-to.t-popup--bottom.data-v-cc2f844d{transform:translateY(100%)}.t-popup.t-fade-enter.t-popup--left.data-v-cc2f844d,.t-popup.t-fade-leave-to.t-popup--left.data-v-cc2f844d{transform:translate(-100%)}.t-popup.t-fade-enter.t-popup--right.data-v-cc2f844d,.t-popup.t-fade-leave-to.t-popup--right.data-v-cc2f844d{transform:translate(100%)}.t-popup.t-fade-enter.t-popup--center.data-v-cc2f844d,.t-popup.t-fade-leave-to.t-popup--center.data-v-cc2f844d,.t-popup.t-dialog-enter.t-popup--center.data-v-cc2f844d,.t-popup.t-dialog-leave-to.t-popup--center.data-v-cc2f844d{transform:scale(.6) translate3d(-50%,-50%,0);opacity:0}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/popup/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e={closeBtn:{type:Boolean},closeOnOverlayClick:{type:Boolean,default:!0},content:{type:String},duration:{type:Number,default:240},overlayProps:{type:Object,default:()=>({})},placement:{type:String,default:"top",validator:e=>!e||["top","left","right","bottom","center"].includes(e)},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},usingCustomNavbar:Boolean,visible:Boolean,defaultVisible:Boolean,zIndex:{type:Number,default:11500},onVisibleChange:{type:Function,default:()=>({})}};exports.props=e;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e={disableInput:Boolean,disabled:{type:Boolean,default:void 0},inputWidth:{type:Number},integer:{type:Boolean,default:!0},max:{type:Number,default:100},min:{type:Number,default:0},size:{type:String,default:"medium",validator:e=>!e||["small","medium","large"].includes(e)},step:{type:Number,default:1},theme:{type:String,default:"normal",validator:e=>!e||["normal","filled","outline"].includes(e)},value:{type:[String,Number],default:0},defaultValue:{type:[String,Number],default:0},onBlur:{type:Function,default:()=>({})},onChange:{type:Function,default:()=>({})},onFocus:{type:Function,default:()=>({})},onOverlimit:{type:Function,default:()=>({})}};exports.props=e;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/stepper.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/stepper.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../common/src/instantiationDecorator.js"),s=require("../common/config.js"),t=require("../common/utils.js"),i=require("./props.js"),a=require("../common/utils.wxs.js"),l=require("../../../../common/vendor.js"),n=`${s.prefix}-stepper`,r=e.uniComponent({name:n,options:{styleIsolation:"shared"},controlledProps:[{key:"value",event:"change"}],externalClasses:[`${s.prefix}-class`,`${s.prefix}-class-input`,`${s.prefix}-class-minus`,`${s.prefix}-class-plus`],components:{TIcon:()=>"../icon/icon.js"},props:{...i.props},data:()=>({currentValue:0,classPrefix:n,prefix:s.prefix,tools:a.tools,disablePlus:!1,disableMinus:!1}),watch:{value(e){this.preValue=Number(e),this.updateCurrentValue(this.format(this.preValue))}},mounted(){const{value:e,defaultValue:s,min:i}=this,a=t.coalesce(e,s);this.updateCurrentValue(a?Number(a):i)},methods:{isDisabled(e){const{min:s,max:t,disabled:i}=this,{currentValue:a}=this;return!!i||("minus"===e&&a<=s||"plus"===e&&a>=t)},getLen(e){const s=e.toString();return-1===s.indexOf(".")?0:s.split(".")[1].length},add(e,s){const t=10**Math.max(this.getLen(e),this.getLen(s));return Math.round(e*t+s*t)/t},format(e){const{min:s,max:t,step:i}=this,a=Math.max(this.getLen(i),this.getLen(e));return Math.max(Math.min(t,e,Number.MAX_SAFE_INTEGER),s,Number.MIN_SAFE_INTEGER).toFixed(a)},setValue(e){const s=Number(this.format(e));this.updateCurrentValue(s),this.preValue!==s&&(this.preValue=s,this._trigger("change",{value:s}))},minusValue(){if(this.isDisabled("minus"))return this.$emit("overlimit",{type:"minus"}),!1;const{currentValue:e,step:s}=this;this.setValue(this.add(e,-s))},plusValue(){if(this.isDisabled("plus"))return this.$emit("overlimit",{type:"plus"}),!1;const{currentValue:e,step:s}=this;this.setValue(this.add(e,s))},filterIllegalChar(e){const s=String(e).replace(/[^0-9.]/g,""),t=s.indexOf(".");return this.integer&&-1!==t?s.split(".")[0]:this.integer||-1===t||t===s.lastIndexOf(".")?s:s.split(".",2).join(".")},updateCurrentValue(e){this.currentValue=e},handleFocus(e){const{value:s}=e.detail;this.$emit("focus",{value:s})},handleInput(e){const{value:s}=e.detail;if(""===s)return;const t=this.filterIllegalChar(s),i=this.format(t);this.updateCurrentValue(this.integer?i:t),(this.integer||/\.\d+/.test(t))&&this.setValue(t)},handleBlur(e){const{value:s}=e.detail,t=this.format(s);this.setValue(t),this.$emit("blur",{value:t})}}});if(!Array){l.resolveComponent("t-icon")()}Math;const u=l._export_sfc(r,[["render",function(e,s,t,i,a,n){return{a:l.p({name:"remove"}),b:l.n(e.classPrefix+"__minus "+e.classPrefix+"__minus--"+e.theme+" "+e.classPrefix+"__icon--"+e.size+" "+(e.disabled||e.disableMinus||e.currentValue<=e.min?e.classPrefix+"--"+e.theme+"-disabled":"")+" "+e.tClassMinus),c:"减少"+e.step,d:e.disabled||e.disableMinus||e.currentValue<=e.min,e:l.o(((...s)=>e.minusValue&&e.minusValue(...s))),f:l.s(e.inputWidth?"width:"+e.inputWidth+"px;":""),g:l.n(e.classPrefix+"__input "+e.classPrefix+"__input--"+e.size+" "+e.tClassInput),h:e.disabled||e.disableInput,i:e.integer?"number":"digit",j:e.currentValue,k:l.o(((...s)=>e.handleInput&&e.handleInput(...s))),l:l.o(((...s)=>e.handleFocus&&e.handleFocus(...s))),m:l.o(((...s)=>e.handleBlur&&e.handleBlur(...s))),n:l.n(e.classPrefix+"__input--"+e.theme+" "+(e.disabled||e.disableInput?e.classPrefix+"--"+e.theme+"-disabled":"")),o:l.p({name:"add"}),p:l.n(e.classPrefix+"__plus "+e.classPrefix+"__plus--"+e.theme+" "+e.classPrefix+"__icon--"+e.size+" "+(e.disabled||e.disablePlus||e.currentValue>=e.max?e.classPrefix+"--"+e.theme+"-disabled":"")+" "+e.tClassPlus),q:"增加"+e.step,r:e.disabled||e.disablePlus||e.currentValue>=e.max,s:l.o(((...s)=>e.plusValue&&e.plusValue(...s))),t:l.s(e.tools._style([e.customStyle])),v:l.n(e.classPrefix+" "+e.classPrefix+"--"+e.size+" "+e.tClass)}}],["__scopeId","data-v-843d0139"]]);wx.createComponent(u);
|
||||
6
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/stepper.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/stepper.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-icon": "../icon/icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/stepper.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/stepper.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{t}}" class="{{['data-v-843d0139', v]}}"><view class="{{['data-v-843d0139', b]}}" aria-label="{{c}}" aria-role="button" aria-disabled="{{d}}" catchtap="{{e}}"><t-icon wx:if="{{a}}" class="data-v-843d0139" u-i="843d0139-0" bind:__l="__l" u-p="{{a}}"/></view><view class="{{['data-v-843d0139', n]}}"><block wx:if="{{r0}}"><input style="{{f}}" class="{{['data-v-843d0139', g]}}" disabled="{{h}}" type="{{i}}" value="{{j}}" bindinput="{{k}}" bindfocus="{{l}}" bindblur="{{m}}"></input></block></view><view class="{{['data-v-843d0139', p]}}" aria-label="{{q}}" aria-role="button" aria-disabled="{{r}}" catchtap="{{s}}"><t-icon wx:if="{{o}}" class="data-v-843d0139" u-i="843d0139-1" bind:__l="__l" u-p="{{o}}"/></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/stepper.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/stepper/stepper.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.t-stepper.data-v-843d0139{display:flex;align-items:center;color:var(--td-stepper-input-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, .9))))}.t-stepper__input.data-v-843d0139{margin:0 8rpx;text-align:center;vertical-align:top;height:inherit;min-height:inherit}.t-stepper__minus.data-v-843d0139,.t-stepper__plus.data-v-843d0139{padding:8rpx;box-sizing:border-box}.t-stepper__input.data-v-843d0139,.t-stepper__minus-icon.data-v-843d0139,.t-stepper__plus-icon.data-v-843d0139{color:inherit}.t-stepper__input--normal.data-v-843d0139,.t-stepper__input--filled.data-v-843d0139,.t-stepper__input--outline.data-v-843d0139{height:inherit;box-sizing:border-box}.t-stepper--small.data-v-843d0139{height:40rpx;font-size:20rpx}.t-stepper--medium.data-v-843d0139{height:48rpx;font-size:24rpx}.t-stepper--large.data-v-843d0139{height:56rpx;font-size:32rpx}.t-stepper__input--small.data-v-843d0139{width:68rpx}.t-stepper__input--medium.data-v-843d0139{height:48rpx;width:76rpx}.t-stepper__input--large.data-v-843d0139{width:90rpx}.t-stepper__icon--small.data-v-843d0139{width:40rpx;height:40rpx;font-size:24rpx}.t-stepper__icon--medium.data-v-843d0139{width:48rpx;height:48rpx;font-size:32rpx}.t-stepper__icon--large.data-v-843d0139{width:56rpx;height:56rpx;font-size:40rpx}.t-stepper__minus--outline.data-v-843d0139,.t-stepper__plus--outline.data-v-843d0139{border:2rpx solid var(--td-stepper-border-color, var(--td-component-border, var(--td-gray-color-4, #dcdcdc)))}.t-stepper__input--outline.data-v-843d0139{border:none;border-top:2rpx solid var(--td-stepper-border-color, var(--td-component-border, var(--td-gray-color-4, #dcdcdc)));border-bottom:2rpx solid var(--td-stepper-border-color, var(--td-component-border, var(--td-gray-color-4, #dcdcdc)))}.t-stepper__minus--outline.data-v-843d0139,.t-stepper__minus--filled.data-v-843d0139{border-radius:0;border-top-left-radius:var(--td-stepper-border-radius, var(--td-radius-small, 6rpx));border-bottom-left-radius:var(--td-stepper-border-radius, var(--td-radius-small, 6rpx))}.t-stepper__plus--outline.data-v-843d0139,.t-stepper__plus--filled.data-v-843d0139{border-radius:0;border-top-right-radius:var(--td-stepper-border-radius, var(--td-radius-small, 6rpx));border-bottom-right-radius:var(--td-stepper-border-radius, var(--td-radius-small, 6rpx))}.t-stepper__minus--filled.data-v-843d0139,.t-stepper__plus--filled.data-v-843d0139{background-color:var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3))}.t-stepper__input--filled.data-v-843d0139{background-color:var(--td-bg-color-secondarycontainer, var(--td-gray-color-1, #f3f3f3));margin:0 8rpx}.t-stepper__input--filled .t-stepper__input.data-v-843d0139{margin:0}.t-stepper--normal-disabled.data-v-843d0139{color:var(--td-stepper-input-disabled-color, var(--td-text-color-disabled, var(--td-font-gray-4, rgba(0, 0, 0, .26))))}.t-stepper--filled-disabled.data-v-843d0139,.t-stepper--outline-disabled.data-v-843d0139{color:var(--td-stepper-input-disabled-color, var(--td-text-color-disabled, var(--td-font-gray-4, rgba(0, 0, 0, .26))));background-color:var(--td-stepper-input-disabled-bg, var(--td-bg-color-component-disabled, var(--td-gray-color-2, #eeeeee)))}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e={container:{type:Function},disabled:Boolean,offsetTop:{type:[String,Number],default:0},zIndex:{type:Number,default:99},onScroll:{type:Function,default:()=>({})}};exports.props=e;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/sticky.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/sticky.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("../common/src/instantiationDecorator.js"),e=require("./props.js"),s=require("../common/config.js"),i=require("../mixins/page-scroll.js"),o=require("../common/utils.js"),n=require("../common/utils.wxs.js"),r=require("../../../../common/vendor.js"),c=`${s.prefix}-sticky`,l=`.${c}`,a=t.uniComponent({name:c,options:{styleIsolation:"shared"},externalClasses:[`${s.prefix}-class`,`${s.prefix}-class-content`],mixins:[i.pageScrollMixin()],props:{...e.props},data:()=>({prefix:s.prefix,classPrefix:c,containerStyle:"",contentStyle:"",tools:n.tools}),watch:{offsetTop:"onScroll",disabled:"onScroll",container:"onScroll"},mounted(){this.onScroll()},methods:{onScroll(t){const{scrollTop:e}=t||{},{container:s,offsetTop:i,disabled:n}=this;n?this.setDataAfterDiff({isFixed:!1,transform:0}):(this.scrollTop=e||this.scrollTop,"function"!=typeof s?o.getRect(this,l).then((t=>{t&&(i>=t.top?(this.setDataAfterDiff({isFixed:!0,height:t.height}),this.transform=0):this.setDataAfterDiff({isFixed:!1}))})):Promise.all([o.getRect(this,l),this.getContainerRect()]).then((([t,e])=>{t&&e&&(i+t.height>e.height+e.top?this.setDataAfterDiff({isFixed:!1,transform:e.height-t.height}):i>=t.top?this.setDataAfterDiff({isFixed:!0,height:t.height,transform:0}):this.setDataAfterDiff({isFixed:!1,transform:0}))})))},setDataAfterDiff(t){const{offsetTop:e}=this,{containerStyle:s,contentStyle:i}=this,{isFixed:n,height:r,transform:c}=t;o.nextTick().then((()=>{let t="",o="";if(n&&(t+=`height:${r}px;`,o+=`position:fixed;top:${e}px;left:0;right:0;`),c){const t=`translate3d(0, ${c}px, 0)`;o+=`-webkit-transform:${t};transform:${t};`}s===t&&i===o||(this.containerStyle=t,this.contentStyle=o),this.$emit("scroll",{scrollTop:this.scrollTop,isFixed:n})}))},getContainerRect(){const t=this.container();return new Promise((e=>t.boundingClientRect(e).exec()))}}});const f=r._export_sfc(a,[["render",function(t,e,s,i,o,n){return{a:r.n(t.classPrefix+"__content "+t.tClassContent),b:r.s(t.tools._style(["z-index:"+t.zIndex,t.contentStyle])),c:r.n(t.classPrefix+" "+t.tClass),d:r.s(t.tools._style(["z-index:"+t.zIndex,t.containerStyle,t.customStyle]))}}],["__scopeId","data-v-ed32c77d"]]);wx.createComponent(f);
|
||||
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/sticky.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/sticky.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/sticky.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/sticky.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['data-v-ed32c77d', c]}}" style="{{d}}"><view class="{{['data-v-ed32c77d', a]}}" style="{{b}}"><slot/></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/sticky.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/sticky/sticky.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.t-sticky.data-v-ed32c77d{position:relative}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/tab-panel/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/tab-panel/props.js
vendored
Normal 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;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/tab-panel/tab-panel.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/tdesign-uniapp/components/tab-panel/tab-panel.js
vendored
Normal 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);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user