no message
This commit is contained in:
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const t=require("../../libs/config/props.js"),a=require("../../libs/function/test.js"),e={props:{src:{type:String,default:()=>t.defProps.avatar.src},shape:{type:String,default:()=>t.defProps.avatar.shape},size:{type:[String,Number],default:()=>t.defProps.avatar.size},mode:{type:String,default:()=>t.defProps.avatar.mode},text:{type:String,default:()=>t.defProps.avatar.text},bgColor:{type:String,default:()=>t.defProps.avatar.bgColor},color:{type:String,default:()=>t.defProps.avatar.color},fontSize:{type:[String,Number],default:()=>t.defProps.avatar.fontSize},icon:{type:String,default:()=>t.defProps.avatar.icon},mpAvatar:{type:Boolean,default:()=>t.defProps.avatar.mpAvatar},randomBgColor:{type:Boolean,default:()=>t.defProps.avatar.randomBgColor},defaultUrl:{type:String,default:()=>t.defProps.avatar.defaultUrl},colorIndex:{type:[String,Number],validator:t=>a.test.range(t,[0,19])||""===t,default:()=>t.defProps.avatar.colorIndex},name:{type:String,default:()=>t.defProps.avatar.name}}};exports.props=e;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/u-avatar.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/u-avatar.js
vendored
Normal file
File diff suppressed because one or more lines are too long
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/u-avatar.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/u-avatar.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon",
|
||||
"up-text": "../u-text/u-text"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/u-avatar.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/u-avatar.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['u-avatar', 'data-v-4bd1a93d', m]}}" style="{{n + ';' + o}}" bindtap="{{p}}"><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else><open-data wx:if="{{a}}" class="data-v-4bd1a93d" type="userAvatarUrl" style="{{b}}"/><block wx:if="{{c}}"></block><u-icon wx:elif="{{d}}" class="data-v-4bd1a93d" u-i="4bd1a93d-0" bind:__l="__l" u-p="{{e}}"></u-icon><up-text wx:elif="{{f}}" class="data-v-4bd1a93d" u-i="4bd1a93d-1" bind:__l="__l" u-p="{{g}}"></up-text><image wx:else class="{{['u-avatar__image', 'data-v-4bd1a93d', h]}}" src="{{i}}" mode="{{j}}" binderror="{{k}}" style="{{l}}"></image></block></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/u-avatar.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-avatar/u-avatar.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-4bd1a93d,.u-empty__wrap.data-v-4bd1a93d,.u-tabs.data-v-4bd1a93d,.u-tabs__wrapper.data-v-4bd1a93d,.u-tabs__wrapper__scroll-view-wrapper.data-v-4bd1a93d,.u-tabs__wrapper__scroll-view.data-v-4bd1a93d,.u-tabs__wrapper__nav.data-v-4bd1a93d,.u-tabs__wrapper__nav__line.data-v-4bd1a93d{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-avatar.data-v-4bd1a93d{display:flex;flex-direction:row;align-items:center;justify-content:center}.u-avatar--circle.data-v-4bd1a93d{border-radius:100px}.u-avatar--square.data-v-4bd1a93d{border-radius:4px}.u-avatar__image--circle.data-v-4bd1a93d{border-radius:100px;overflow:hidden}.u-avatar__image--square.data-v-4bd1a93d{border-radius:4px}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),t={props:{hairline:{type:Boolean,default:()=>e.defProps.button.hairline},type:{type:String,default:()=>e.defProps.button.type},size:{type:String,default:()=>e.defProps.button.size},shape:{type:String,default:()=>e.defProps.button.shape},plain:{type:Boolean,default:()=>e.defProps.button.plain},disabled:{type:Boolean,default:()=>e.defProps.button.disabled},loading:{type:Boolean,default:()=>e.defProps.button.loading},loadingText:{type:[String,Number],default:()=>e.defProps.button.loadingText},loadingMode:{type:String,default:()=>e.defProps.button.loadingMode},loadingSize:{type:[String,Number],default:()=>e.defProps.button.loadingSize},openType:{type:String,default:()=>e.defProps.button.openType},formType:{type:String,default:()=>e.defProps.button.formType},appParameter:{type:String,default:()=>e.defProps.button.appParameter},hoverStopPropagation:{type:Boolean,default:()=>e.defProps.button.hoverStopPropagation},lang:{type:String,default:()=>e.defProps.button.lang},sessionFrom:{type:String,default:()=>e.defProps.button.sessionFrom},sendMessageTitle:{type:String,default:()=>e.defProps.button.sendMessageTitle},sendMessagePath:{type:String,default:()=>e.defProps.button.sendMessagePath},sendMessageImg:{type:String,default:()=>e.defProps.button.sendMessageImg},showMessageCard:{type:Boolean,default:()=>e.defProps.button.showMessageCard},dataName:{type:String,default:()=>e.defProps.button.dataName},throttleTime:{type:[String,Number],default:()=>e.defProps.button.throttleTime},hoverStartTime:{type:[String,Number],default:()=>e.defProps.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:()=>e.defProps.button.hoverStayTime},text:{type:[String,Number],default:()=>e.defProps.button.text},icon:{type:String,default:()=>e.defProps.button.icon},iconColor:{type:String,default:()=>e.defProps.button.icon},color:{type:String,default:()=>e.defProps.button.color}}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/u-button.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/u-button.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/mixin/button.js"),i=require("../../libs/mixin/openType.js"),o=require("../../libs/mixin/mpMixin.js"),t=require("../../libs/mixin/mixin.js"),r=require("./props.js"),n=require("../../libs/function/index.js"),s=require("../../libs/function/throttle.js"),a=require("../../libs/config/color.js"),l=require("../../../../common/vendor.js"),h={name:"u-button",mixins:[o.mpMixin,t.mixin,e.button,i.openType,r.props],data:()=>({}),computed:{bemClass(){return this.color?this.bem("button",["shape","size"],["disabled","plain","hairline"]):this.bem("button",["type","shape","size"],["disabled","plain","hairline"])},loadingColor(){return this.plain?this.color?this.color:a.color[`u-${this.type}`]:"info"===this.type?"#c9c9c9":"rgb(200, 200, 200)"},iconColorCom(){return this.iconColor?this.iconColor:this.plain?this.color?this.color:this.type:"info"===this.type?"#000000":"#ffffff"},baseColor(){let e={};return this.color&&(e.color=this.plain?this.color:"white",this.plain||(e["background-color"]=this.color),-1!==this.color.indexOf("gradient")?(e.borderTopWidth=0,e.borderRightWidth=0,e.borderBottomWidth=0,e.borderLeftWidth=0,this.plain||(e.backgroundImage=this.color)):(e.borderColor=this.color,e.borderWidth="1px",e.borderStyle="solid")),e},nvueTextStyle(){let e={};return"info"===this.type&&(e.color="#323233"),this.color&&(e.color=this.plain?this.color:"white"),e.fontSize=this.textSize+"px",e},textSize(){let e=14,{size:i}=this;return"large"===i&&(e=16),"normal"===i&&(e=14),"small"===i&&(e=12),"mini"===i&&(e=10),e}},emits:["click","getphonenumber","getuserinfo","error","opensetting","launchapp","agreeprivacyauthorization"],methods:{addStyle:n.addStyle,clickHandler(){this.disabled||this.loading||s.throttle((()=>{this.$emit("click")}),this.throttleTime)},getphonenumber(e){this.$emit("getphonenumber",e)},getuserinfo(e){this.$emit("getuserinfo",e)},error(e){this.$emit("error",e)},opensetting(e){this.$emit("opensetting",e)},launchapp(e){this.$emit("launchapp",e)},agreeprivacyauthorization(e){this.$emit("agreeprivacyauthorization",e)}}};if(!Array){(l.resolveComponent("u-loading-icon")+l.resolveComponent("u-icon"))()}Math||((()=>"../u-loading-icon/u-loading-icon.js")+(()=>"../u-icon/u-icon.js"))();const c=l._export_sfc(h,[["render",function(e,i,o,t,r,n){return l.e({a:e.loading},e.loading?{b:l.p({mode:e.loadingMode,size:1.15*e.loadingSize,color:n.loadingColor}),c:l.t(e.loadingText||e.text),d:l.s({fontSize:n.textSize+"px"})}:l.e({e:e.icon},e.icon?{f:l.p({name:e.icon,color:n.iconColorCom,size:1.35*n.textSize,customStyle:{marginRight:"2px"}})}:{},{g:l.t(e.text),h:l.s({fontSize:n.textSize+"px"})}),{i:Number(e.hoverStartTime),j:Number(e.hoverStayTime),k:e.formType,l:e.openType,m:e.appParameter,n:e.hoverStopPropagation,o:e.sendMessageTitle,p:e.sendMessagePath,q:e.lang,r:e.dataName,s:e.sessionFrom,t:e.sendMessageImg,v:e.showMessageCard,w:l.o(((...e)=>n.getphonenumber&&n.getphonenumber(...e))),x:l.o(((...e)=>n.getuserinfo&&n.getuserinfo(...e))),y:l.o(((...e)=>n.error&&n.error(...e))),z:l.o(((...e)=>n.opensetting&&n.opensetting(...e))),A:l.o(((...e)=>n.launchapp&&n.launchapp(...e))),B:l.o(((...e)=>n.agreeprivacyauthorization&&n.agreeprivacyauthorization(...e))),C:e.disabled||e.loading?"":"u-button--active",D:l.s(n.baseColor),E:l.s(n.addStyle(e.customStyle)),F:l.o(((...e)=>n.clickHandler&&n.clickHandler(...e))),G:l.n(n.bemClass)})}],["__scopeId","data-v-5b9d6e9a"]]);wx.createComponent(c);
|
||||
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/u-button.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/u-button.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-loading-icon": "../u-loading-icon/u-loading-icon",
|
||||
"u-icon": "../u-icon/u-icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/u-button.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/u-button.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<button hover-start-time="{{i}}" hover-stay-time="{{j}}" form-type="{{k}}" open-type="{{l}}" app-parameter="{{m}}" hover-stop-propagation="{{n}}" send-message-title="{{o}}" send-message-path="{{p}}" lang="{{q}}" data-name="{{r}}" session-from="{{s}}" send-message-img="{{t}}" show-message-card="{{v}}" bindgetphonenumber="{{w}}" bindgetuserinfo="{{x}}" binderror="{{y}}" bindopensetting="{{z}}" bindlaunchapp="{{A}}" bindagreeprivacyauthorization="{{B}}" hover-class="{{C}}" style="{{D + ';' + E}}" bindtap="{{F}}" class="{{['u-button', 'u-reset-button', 'data-v-5b9d6e9a', G]}}"><block wx:if="{{a}}"><u-loading-icon wx:if="{{b}}" class="data-v-5b9d6e9a" u-i="5b9d6e9a-0" bind:__l="__l" u-p="{{b}}"></u-loading-icon><text class="u-button__loading-text data-v-5b9d6e9a" style="{{d}}">{{c}}</text></block><block wx:else><u-icon wx:if="{{e}}" class="data-v-5b9d6e9a" u-i="5b9d6e9a-1" bind:__l="__l" u-p="{{f}}"></u-icon><block wx:if="{{$slots.d}}"><slot></slot></block><block wx:else><text class="u-button__text data-v-5b9d6e9a" style="{{h}}">{{g}}</text></block></block></button>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/u-button.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-button/u-button.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-5b9d6e9a,.u-empty__wrap.data-v-5b9d6e9a,.u-tabs.data-v-5b9d6e9a,.u-tabs__wrapper.data-v-5b9d6e9a,.u-tabs__wrapper__scroll-view-wrapper.data-v-5b9d6e9a,.u-tabs__wrapper__scroll-view.data-v-5b9d6e9a,.u-tabs__wrapper__nav.data-v-5b9d6e9a,.u-tabs__wrapper__nav__line.data-v-5b9d6e9a{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-button.data-v-5b9d6e9a{width:100%;white-space:nowrap}.u-button__text.data-v-5b9d6e9a{white-space:nowrap;line-height:1}.u-button.data-v-5b9d6e9a:before{position:absolute;top:50%;left:50%;width:100%;height:100%;border:inherit;border-radius:inherit;transform:translate(-50%,-50%);opacity:0;content:" ";background-color:#000;border-color:#000}.u-button--active.data-v-5b9d6e9a:before{opacity:.15}.u-button__icon+.u-button__text.data-v-5b9d6e9a:not(:empty),.u-button__loading-text.data-v-5b9d6e9a{margin-left:4px}.u-button--plain.u-button--primary.data-v-5b9d6e9a{color:#3c9cff}.u-button--plain.u-button--info.data-v-5b9d6e9a{color:#909399}.u-button--plain.u-button--success.data-v-5b9d6e9a{color:#5ac725}.u-button--plain.u-button--error.data-v-5b9d6e9a,.u-button--plain.u-button--warning.data-v-5b9d6e9a{color:#f56c6c}.u-button.data-v-5b9d6e9a{height:38px;position:relative;align-items:center;justify-content:center;display:flex;box-sizing:border-box;flex-direction:row}.u-button__text.data-v-5b9d6e9a{font-size:15px}.u-button__loading-text.data-v-5b9d6e9a{font-size:15px;margin-left:4px}.u-button--large.data-v-5b9d6e9a{width:100%;height:50px;padding:0 15px}.u-button--normal.data-v-5b9d6e9a{padding:0 12px;font-size:14px}.u-button--small.data-v-5b9d6e9a{min-width:60px;height:30px;padding:0 8px;font-size:12px}.u-button--mini.data-v-5b9d6e9a{height:22px;font-size:10px;min-width:50px;padding:0 8px}.u-button--disabled.data-v-5b9d6e9a{opacity:.5}.u-button--info.data-v-5b9d6e9a{color:#323233;background-color:#fff;border-color:#ebedf0;border-width:1px;border-style:solid}.u-button--success.data-v-5b9d6e9a{color:#fff;background-color:#5ac725;border-color:#5ac725;border-width:1px;border-style:solid}.u-button--primary.data-v-5b9d6e9a{color:#fff;background-color:#3c9cff;border-color:#3c9cff;border-width:1px;border-style:solid}.u-button--error.data-v-5b9d6e9a{color:#fff;background-color:#f56c6c;border-color:#f56c6c;border-width:1px;border-style:solid}.u-button--warning.data-v-5b9d6e9a{color:#fff;background-color:#f9ae3d;border-color:#f9ae3d;border-width:1px;border-style:solid}.u-button--block.data-v-5b9d6e9a{display:flex;flex-direction:row;width:100%}.u-button--circle.data-v-5b9d6e9a{border-radius:100px}.u-button--square.data-v-5b9d6e9a{border-radius:3px}.u-button__icon.data-v-5b9d6e9a{min-width:1em;line-height:inherit!important;vertical-align:top}.u-button--plain.data-v-5b9d6e9a{background-color:#fff}.u-button--hairline.data-v-5b9d6e9a{border-width:.5px!important}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell-group/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell-group/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),r={props:{title:{type:String,default:()=>e.defProps.cellGroup.title},border:{type:Boolean,default:()=>e.defProps.cellGroup.border}}};exports.props=r;
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),r=require("../../libs/mixin/mixin.js"),t=require("../../libs/function/index.js"),n=require("../../../../common/vendor.js"),s={name:"u-cell-group",mixins:[i.mpMixin,r.mixin,e.props],methods:{addStyle:t.addStyle}};if(!Array){n.resolveComponent("u-line")()}Math;const o=n._export_sfc(s,[["render",function(e,i,r,t,s,o){return n.e({a:e.title},e.title?{b:n.t(e.title)}:{},{c:e.border},(e.border,{}),{d:n.s(o.addStyle(e.customStyle)),e:n.n(e.customClass)})}],["__scopeId","data-v-9f0ec262"]]);wx.createComponent(o);
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-line": "../u-line/u-line"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view style="{{d}}" class="{{[e, 'u-cell-group', 'data-v-9f0ec262']}}"><view wx:if="{{a}}" class="u-cell-group__title data-v-9f0ec262"><block wx:if="{{$slots.title}}"><slot name="title"></slot></block><block wx:else><text class="u-cell-group__title__text data-v-9f0ec262">{{b}}</text></block></view><view class="u-cell-group__wrapper data-v-9f0ec262"><u-line wx:if="{{c}}" class="data-v-9f0ec262" u-i="9f0ec262-0" bind:__l="__l"></u-line><slot/></view></view>
|
||||
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-9f0ec262,.u-empty__wrap.data-v-9f0ec262,.u-tabs.data-v-9f0ec262,.u-tabs__wrapper.data-v-9f0ec262,.u-tabs__wrapper__scroll-view-wrapper.data-v-9f0ec262,.u-tabs__wrapper__scroll-view.data-v-9f0ec262,.u-tabs__wrapper__nav.data-v-9f0ec262,.u-tabs__wrapper__nav__line.data-v-9f0ec262{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-cell-group.data-v-9f0ec262{flex:1}.u-cell-group__title.data-v-9f0ec262{padding:16px 16px 8px}.u-cell-group__title__text.data-v-9f0ec262{font-size:15px;line-height:16px;color:#303133}.u-cell-group__wrapper.data-v-9f0ec262{position:relative}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),l={props:{title:{type:[String,Number],default:()=>e.defProps.cell.title},label:{type:[String,Number],default:()=>e.defProps.cell.label},value:{type:[String,Number],default:()=>e.defProps.cell.value},icon:{type:String,default:()=>e.defProps.cell.icon},disabled:{type:Boolean,default:()=>e.defProps.cell.disabled},border:{type:Boolean,default:()=>e.defProps.cell.border},center:{type:Boolean,default:()=>e.defProps.cell.center},url:{type:String,default:()=>e.defProps.cell.url},linkType:{type:String,default:()=>e.defProps.cell.linkType},clickable:{type:Boolean,default:()=>e.defProps.cell.clickable},isLink:{type:Boolean,default:()=>e.defProps.cell.isLink},required:{type:Boolean,default:()=>e.defProps.cell.required},rightIcon:{type:String,default:()=>e.defProps.cell.rightIcon},arrowDirection:{type:String,default:()=>e.defProps.cell.arrowDirection},iconStyle:{type:[Object,String],default:()=>e.defProps.cell.iconStyle},rightIconStyle:{type:[Object,String],default:()=>e.defProps.cell.rightIconStyle},titleStyle:{type:[Object,String],default:()=>e.defProps.cell.titleStyle},size:{type:String,default:()=>e.defProps.cell.size},stop:{type:Boolean,default:()=>e.defProps.cell.stop},name:{type:[Number,String],default:()=>e.defProps.cell.name}}};exports.props=l;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/u-cell.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/u-cell.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),t=require("../../libs/mixin/mixin.js"),l=require("../../libs/function/index.js"),s=require("../../libs/function/test.js"),n=require("../../../../common/vendor.js"),c={name:"u-cell",data:()=>({}),mixins:[i.mpMixin,t.mixin,e.props],computed:{titleTextStyle(){return l.addStyle(this.titleStyle)}},emits:["click"],methods:{addStyle:l.addStyle,testEmpty:s.test.empty,clickHandler(e){this.disabled||(this.$emit("click",{name:this.name}),this.openPage(),this.stop&&this.preventEvent(e))}}};if(!Array){(n.resolveComponent("u-icon")+n.resolveComponent("u-line"))()}Math||((()=>"../u-icon/u-icon.js")+(()=>"../u-line/u-line.js"))();const o=n._export_sfc(c,[["render",function(e,i,t,l,s,c){return n.e({a:e.$slots.icon||e.icon},e.$slots.icon||e.icon?n.e({b:e.$slots.icon},e.$slots.icon?{}:{c:n.p({name:e.icon,"custom-style":e.iconStyle,size:"large"===e.size?22:18})}):{},{d:e.$slots.title||!e.title},e.$slots.title||!e.title?{}:{e:n.t(e.title),f:n.s(c.titleTextStyle),g:n.n(e.disabled&&"u-cell--disabled"),h:n.n("large"===e.size&&"u-cell__title-text--large")},{i:e.label},e.label?{j:n.t(e.label),k:n.n(e.disabled&&"u-cell--disabled"),l:n.n("large"===e.size&&"u-cell__label--large")}:{},{m:!c.testEmpty(e.value)},c.testEmpty(e.value)?{}:{n:n.t(e.value),o:n.n(e.disabled&&"u-cell--disabled"),p:n.n("large"===e.size&&"u-cell__value--large")},{q:e.$slots["right-icon"]||e.isLink},e.$slots["right-icon"]||e.isLink?n.e({r:e.rightIcon&&!e.$slots["right-icon"]},e.rightIcon&&!e.$slots["right-icon"]?{s:n.p({name:e.rightIcon,"custom-style":e.rightIconStyle,color:e.disabled?"#c8c9cc":"info",size:"large"===e.size?18:16})}:{},{t:n.n(`u-cell__right-icon-wrap--${e.arrowDirection}`)}):{},{v:e.$slots.righticon},e.$slots.righticon?{w:n.n(`u-cell__right-icon-wrap--${e.arrowDirection}`)}:{},{x:n.n(e.center&&"u-cell--center"),y:n.n("large"===e.size&&"u-cell__body--large"),z:e.border},(e.border,{}),{A:n.n(e.customClass),B:n.s(c.addStyle(e.customStyle)),C:e.disabled||!e.clickable&&!e.isLink?"":"u-cell--clickable",D:n.o(((...e)=>c.clickHandler&&c.clickHandler(...e)))})}],["__scopeId","data-v-2934fecb"]]);wx.createComponent(o);
|
||||
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/u-cell.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/u-cell.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon",
|
||||
"u-line": "../u-line/u-line"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/u-cell.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/u-cell.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['u-cell', 'data-v-2934fecb', A]}}" style="{{B}}" hover-class="{{C}}" hover-stay-time="{{250}}" bindtap="{{D}}"><view class="{{['u-cell__body', 'data-v-2934fecb', x, y]}}"><view class="u-cell__body__content data-v-2934fecb"><view wx:if="{{a}}" class="u-cell__left-icon-wrap data-v-2934fecb"><slot wx:if="{{b}}" name="icon"></slot><u-icon wx:else class="data-v-2934fecb" u-i="2934fecb-0" bind:__l="__l" u-p="{{c||''}}"></u-icon></view><view class="u-cell__title data-v-2934fecb"><slot wx:if="{{d}}" name="title"></slot><text wx:else style="{{f}}" class="{{['u-cell__title-text', 'data-v-2934fecb', g, h]}}">{{e}}</text><block wx:if="{{$slots.label}}"><slot name="label"></slot></block><block wx:else><text wx:if="{{i}}" class="{{['u-cell__label', 'data-v-2934fecb', k, l]}}">{{j}}</text></block></view></view><block wx:if="{{$slots.value}}"><slot name="value"></slot></block><block wx:else><text wx:if="{{m}}" class="{{['u-cell__value', 'data-v-2934fecb', o, p]}}">{{n}}</text></block><view wx:if="{{q}}" class="{{['u-cell__right-icon-wrap', 'data-v-2934fecb', t]}}"><u-icon wx:if="{{r}}" class="data-v-2934fecb" u-i="2934fecb-1" bind:__l="__l" u-p="{{s}}"></u-icon><slot wx:else name="right-icon"></slot></view><view wx:if="{{v}}" class="{{['u-cell__right-icon-wrap', 'data-v-2934fecb', w]}}"><slot name="righticon"></slot></view></view><u-line wx:if="{{z}}" class="data-v-2934fecb" u-i="2934fecb-2" bind:__l="__l"></u-line></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/u-cell.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-cell/u-cell.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-2934fecb,.u-empty__wrap.data-v-2934fecb,.u-tabs.data-v-2934fecb,.u-tabs__wrapper.data-v-2934fecb,.u-tabs__wrapper__scroll-view-wrapper.data-v-2934fecb,.u-tabs__wrapper__scroll-view.data-v-2934fecb,.u-tabs__wrapper__nav.data-v-2934fecb,.u-tabs__wrapper__nav__line.data-v-2934fecb{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-cell__body.data-v-2934fecb{display:flex;flex-direction:row;box-sizing:border-box;padding:13px 15px;font-size:15px;color:#303133;align-items:center}.u-cell__body__content.data-v-2934fecb{display:flex;flex-direction:row;align-items:center;flex:1}.u-cell__body--large.data-v-2934fecb{padding-top:13px;padding-bottom:13px}.u-cell__left-icon-wrap.data-v-2934fecb,.u-cell__right-icon-wrap.data-v-2934fecb{display:flex;flex-direction:row;align-items:center;font-size:16px}.u-cell__left-icon-wrap.data-v-2934fecb{margin-right:4px}.u-cell__right-icon-wrap.data-v-2934fecb{margin-left:4px;transition:transform .3s}.u-cell__right-icon-wrap--up.data-v-2934fecb{transform:rotate(-90deg)}.u-cell__right-icon-wrap--down.data-v-2934fecb{transform:rotate(90deg)}.u-cell__title.data-v-2934fecb{flex:1}.u-cell__title-text.data-v-2934fecb{font-size:15px;line-height:22px;color:#303133}.u-cell__title-text--large.data-v-2934fecb{font-size:16px}.u-cell__label.data-v-2934fecb{margin-top:5px;font-size:12px;color:#909193;line-height:18px}.u-cell__label--large.data-v-2934fecb{font-size:14px}.u-cell__value.data-v-2934fecb{text-align:right;margin-left:auto;font-size:14px;line-height:24px;color:#606266}.u-cell__value--large.data-v-2934fecb{font-size:15px}.u-cell--clickable.data-v-2934fecb{background-color:#f3f4f6}.u-cell--disabled.data-v-2934fecb{color:#c8c9cc;cursor:not-allowed}.u-cell--center.data-v-2934fecb{align-items:center}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox-group/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox-group/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),o={props:{name:{type:String,default:()=>e.defProps.checkboxGroup.name},modelValue:{type:Array,default:()=>e.defProps.checkboxGroup.value},shape:{type:String,default:()=>e.defProps.checkboxGroup.shape},disabled:{type:Boolean,default:()=>e.defProps.checkboxGroup.disabled},activeColor:{type:String,default:()=>e.defProps.checkboxGroup.activeColor},inactiveColor:{type:String,default:()=>e.defProps.checkboxGroup.inactiveColor},size:{type:[String,Number],default:()=>e.defProps.checkboxGroup.size},placement:{type:String,default:()=>e.defProps.checkboxGroup.placement},labelSize:{type:[String,Number],default:()=>e.defProps.checkboxGroup.labelSize},labelColor:{type:[String],default:()=>e.defProps.checkboxGroup.labelColor},labelDisabled:{type:Boolean,default:()=>e.defProps.checkboxGroup.labelDisabled},iconColor:{type:String,default:()=>e.defProps.checkboxGroup.iconColor},iconSize:{type:[String,Number],default:()=>e.defProps.checkboxGroup.iconSize},iconPlacement:{type:String,default:()=>e.defProps.checkboxGroup.iconPlacement},borderBottom:{type:Boolean,default:()=>e.defProps.checkboxGroup.borderBottom}}};exports.props=o;
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),t=require("../../libs/mixin/mixin.js"),s=require("../../../../common/vendor.js"),n={name:"u-checkbox-group",mixins:[i.mpMixin,t.mixin,e.props],computed:{parentData(){return[this.modelValue,this.disabled,this.inactiveColor,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.borderBottom,this.placement]},bemClass(){return this.bem("checkbox-group",["placement"])}},watch:{parentData:{handler(){this.children.length&&this.children.map((e=>{"function"==typeof e.init&&e.init()}))},deep:!0}},data:()=>({}),created(){this.children=[]},emits:["update:modelValue","change"],methods:{unCheckedOther(e){const i=[];this.children.map((e=>{e.isChecked&&i.push(e.name)})),this.$emit("change",i),this.$emit("update:modelValue",i)}}};const a=s._export_sfc(n,[["render",function(e,i,t,n,a,r){return{a:s.n(r.bemClass)}}],["__scopeId","data-v-b3496b3a"]]);wx.createComponent(a);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="{{['u-checkbox-group', 'data-v-b3496b3a', a]}}"><slot></slot></view>
|
||||
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-b3496b3a,.u-empty__wrap.data-v-b3496b3a,.u-tabs.data-v-b3496b3a,.u-tabs__wrapper.data-v-b3496b3a,.u-tabs__wrapper__scroll-view-wrapper.data-v-b3496b3a,.u-tabs__wrapper__scroll-view.data-v-b3496b3a,.u-tabs__wrapper__nav.data-v-b3496b3a,.u-tabs__wrapper__nav__line.data-v-b3496b3a{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-checkbox-group--row.data-v-b3496b3a{display:flex;flex-flow:row wrap}.u-checkbox-group--column.data-v-b3496b3a{display:flex;flex-direction:column}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),o={props:{name:{type:[String,Number,Boolean],default:()=>e.defProps.checkbox.name},shape:{type:String,default:()=>e.defProps.checkbox.shape},size:{type:[String,Number],default:()=>e.defProps.checkbox.size},checked:{type:Boolean,default:()=>e.defProps.checkbox.checked},disabled:{type:[String,Boolean],default:()=>e.defProps.checkbox.disabled},activeColor:{type:String,default:()=>e.defProps.checkbox.activeColor},inactiveColor:{type:String,default:()=>e.defProps.checkbox.inactiveColor},iconSize:{type:[String,Number],default:()=>e.defProps.checkbox.iconSize},iconColor:{type:String,default:()=>e.defProps.checkbox.iconColor},label:{type:[String,Number],default:()=>e.defProps.checkbox.label},labelSize:{type:[String,Number],default:()=>e.defProps.checkbox.labelSize},labelColor:{type:String,default:()=>e.defProps.checkbox.labelColor},labelDisabled:{type:[String,Boolean],default:()=>e.defProps.checkbox.labelDisabled},usedAlone:{type:[Boolean],default:()=>!1}}};exports.props=o;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),t=require("../../libs/mixin/mpMixin.js"),i=require("../../libs/mixin/mixin.js"),a=require("../../libs/function/index.js"),l=require("../../libs/function/test.js"),s=require("../../../../common/vendor.js"),n={name:"u-checkbox",mixins:[t.mpMixin,i.mixin,e.props],data:()=>({isChecked:!1,parentData:{iconSize:12,labelDisabled:null,disabled:null,shape:"square",activeColor:null,inactiveColor:null,size:18,modelValue:null,iconColor:null,placement:"row",borderBottom:!1,iconPlacement:"left"}}),computed:{elDisabled(){return""!==this.disabled?this.disabled:null!==this.parentData.disabled&&this.parentData.disabled},elLabelDisabled(){return""!==this.labelDisabled?this.labelDisabled:null!==this.parentData.labelDisabled&&this.parentData.labelDisabled},elSize(){return this.size?this.size:this.parentData.size?this.parentData.size:21},elIconSize(){return this.iconSize?this.iconSize:this.parentData.iconSize?this.parentData.iconSize:12},elActiveColor(){return this.activeColor?this.activeColor:this.parentData.activeColor?this.parentData.activeColor:"#2979ff"},elInactiveColor(){return this.inactiveColor?this.inactiveColor:this.parentData.inactiveColor?this.parentData.inactiveColor:"#c8c9cc"},elLabelColor(){return this.labelColor?this.labelColor:this.parentData.labelColor?this.parentData.labelColor:"#606266"},elShape(){return this.shape?this.shape:this.parentData.shape?this.parentData.shape:"circle"},elLabelSize(){return a.addUnit(this.labelSize?this.labelSize:this.parentData.labelSize?this.parentData.labelSize:"15")},elIconColor(){const e=this.iconColor?this.iconColor:this.parentData.iconColor?this.parentData.iconColor:"#ffffff";return this.elDisabled?this.isChecked?this.elInactiveColor:"transparent":this.isChecked?e:"transparent"},iconClasses(){let e=[];return e.push("u-checkbox__icon-wrap--"+this.elShape),this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled"),this.isChecked&&this.elDisabled&&e.push("u-checkbox__icon-wrap--disabled--checked"),e},iconWrapStyle(){const e={};return e.backgroundColor=this.isChecked&&!this.elDisabled?this.elActiveColor:"#ffffff",e.borderColor=this.isChecked&&!this.elDisabled?this.elActiveColor:this.elInactiveColor,e.width=a.addUnit(this.elSize),e.height=a.addUnit(this.elSize),this.usedAlone||"right"===this.parentData.iconPlacement&&(e.marginRight=0),e},checkboxStyle(){const e={};return this.usedAlone||(this.parentData.borderBottom&&this.parentData.placement,this.parentData.borderBottom&&"column"===this.parentData.placement&&(e.paddingBottom="8px")),a.deepMerge(e,a.addStyle(this.customStyle))}},mounted(){this.init()},emits:["change"],methods:{init(){this.usedAlone||(this.updateParentData(),this.parent);const e=this.parentData.modelValue;this.checked?this.isChecked=!0:!this.usedAlone&&l.test.array(e)&&(this.isChecked=e.some((e=>e===this.name)))},updateParentData(){this.getParentData("u-checkbox-group")},wrapperClickHandler(e){(this.usedAlone||"right"===this.parentData.iconPlacement)&&this.iconClickHandler(e)},iconClickHandler(e){this.preventEvent(e),this.elDisabled||this.setRadioCheckedStatus()},labelClickHandler(e){this.preventEvent(e),this.elLabelDisabled||this.elDisabled||this.setRadioCheckedStatus()},emitEvent(){this.$emit("change",this.isChecked),this.$nextTick((()=>{a.formValidate(this,"change")}))},setRadioCheckedStatus(){this.isChecked=!this.isChecked,this.emitEvent(),this.usedAlone||"function"==typeof this.parent.unCheckedOther&&this.parent.unCheckedOther(this)}},watch:{checked(){this.isChecked=this.checked}}};if(!Array){s.resolveComponent("u-icon")()}Math;const r=s._export_sfc(n,[["render",function(e,t,i,a,l,n){return{a:s.p({name:"checkbox-mark",size:n.elIconSize,color:n.elIconColor}),b:s.o(((...e)=>n.iconClickHandler&&n.iconClickHandler(...e))),c:s.n(n.iconClasses),d:s.s(n.iconWrapStyle),e:s.t(e.label),f:s.o(((...e)=>n.labelClickHandler&&n.labelClickHandler(...e))),g:n.elDisabled?n.elInactiveColor:n.elLabelColor,h:n.elLabelSize,i:n.elLabelSize,j:s.s(n.checkboxStyle),k:s.o(((...e)=>n.wrapperClickHandler&&n.wrapperClickHandler(...e))),l:s.n(`u-checkbox-label--${l.parentData.iconPlacement}`),m:s.n(l.parentData.borderBottom&&"column"===l.parentData.placement&&"u-border-bottom")}}],["__scopeId","data-v-6a8c0b20"]]);wx.createComponent(r);
|
||||
6
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view style="{{j}}" catchtap="{{k}}" class="{{['u-checkbox', 'cursor-pointer', 'data-v-6a8c0b20', l, m]}}"><view catchtap="{{b}}" class="{{['u-checkbox__icon-wrap', 'cursor-pointer', 'data-v-6a8c0b20', c]}}" style="{{d}}"><block wx:if="{{$slots.icon}}"><slot name="icon"></slot></block><block wx:else><u-icon wx:if="{{a}}" class="u-checkbox__icon-wrap__icon data-v-6a8c0b20" u-i="6a8c0b20-0" bind:__l="__l" u-p="{{a}}"/></block></view><text class="data-v-6a8c0b20" catchtap="{{f}}" style="{{'color:' + g + ';' + ('font-size:' + h) + ';' + ('line-height:' + i)}}">{{e}}</text></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-checkbox/u-checkbox.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-6a8c0b20,.u-empty__wrap.data-v-6a8c0b20,.u-tabs.data-v-6a8c0b20,.u-tabs__wrapper.data-v-6a8c0b20,.u-tabs__wrapper__scroll-view-wrapper.data-v-6a8c0b20,.u-tabs__wrapper__scroll-view.data-v-6a8c0b20,.u-tabs__wrapper__nav.data-v-6a8c0b20,.u-tabs__wrapper__nav__line.data-v-6a8c0b20{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-checkbox.data-v-6a8c0b20{display:flex;overflow:hidden;flex-direction:row;align-items:center;margin-bottom:5px;margin-top:5px}.u-checkbox-label--left.data-v-6a8c0b20{flex-direction:row}.u-checkbox-label--right.data-v-6a8c0b20{flex-direction:row-reverse;justify-content:space-between}.u-checkbox__icon-wrap.data-v-6a8c0b20{box-sizing:border-box;transition-property:border-color,background-color,color;transition-duration:.2s;color:#606266;display:flex;flex-direction:row;align-items:center;justify-content:center;color:transparent;text-align:center;margin-right:6px;font-size:6px;border-width:1px;border-color:#c8c9cc;border-style:solid}.u-checkbox__icon-wrap--circle.data-v-6a8c0b20{border-radius:100%}.u-checkbox__icon-wrap--square.data-v-6a8c0b20{border-radius:3px}.u-checkbox__icon-wrap--checked.data-v-6a8c0b20{color:#fff;background-color:red;border-color:#2979ff}.u-checkbox__icon-wrap--disabled.data-v-6a8c0b20{background-color:#ebedf0!important}.u-checkbox__icon-wrap--disabled--checked.data-v-6a8c0b20{color:#c8c9cc!important}.u-checkbox__label.data-v-6a8c0b20{word-wrap:break-word;margin-left:5px;margin-right:12px;color:#606266;font-size:15px}.u-checkbox__label--disabled.data-v-6a8c0b20{color:#c8c9cc}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/icons.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/icons.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),o={props:{name:{type:String,default:()=>e.defProps.icon.name},color:{type:String,default:()=>e.defProps.icon.color},size:{type:[String,Number],default:()=>e.defProps.icon.size},bold:{type:Boolean,default:()=>e.defProps.icon.bold},index:{type:[String,Number],default:()=>e.defProps.icon.index},hoverClass:{type:String,default:()=>e.defProps.icon.hoverClass},customPrefix:{type:String,default:()=>e.defProps.icon.customPrefix},label:{type:[String,Number],default:()=>e.defProps.icon.label},labelPos:{type:String,default:()=>e.defProps.icon.labelPos},labelSize:{type:[String,Number],default:()=>e.defProps.icon.labelSize},labelColor:{type:String,default:()=>e.defProps.icon.labelColor},space:{type:[String,Number],default:()=>e.defProps.icon.space},imgMode:{type:String,default:()=>e.defProps.icon.imgMode},width:{type:[String,Number],default:()=>e.defProps.icon.width},height:{type:[String,Number],default:()=>e.defProps.icon.height},top:{type:[String,Number],default:()=>e.defProps.icon.top},stop:{type:Boolean,default:()=>e.defProps.icon.stop}}};exports.props=o;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const i=require("./icons.js"),t=require("./props.js"),e=require("../../libs/mixin/mpMixin.js"),s=require("../../libs/mixin/mixin.js"),n=require("../../libs/function/index.js"),o=require("../../libs/config/config.js"),l=require("../../../../common/vendor.js"),c={name:"u-icon",data:()=>({}),emits:["click"],mixins:[e.mpMixin,s.mixin,t.props],computed:{uClasses(){let i=[];return i.push(this.customPrefix+"-"+this.name),"uicon"==this.customPrefix?i.push("u-iconfont"):i.push(this.customPrefix),this.color&&o.config.type.includes(this.color)&&i.push("u-icon__icon--"+this.color),i},iconStyle(){let i={};return i={fontSize:n.addUnit(this.size),lineHeight:n.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:n.addUnit(this.top)},this.color&&!o.config.type.includes(this.color)&&(i.color=this.color),i},isImg(){return-1!==this.name.indexOf("/")},imgStyle(){let i={};return i.width=this.width?n.addUnit(this.width):n.addUnit(this.size),i.height=this.height?n.addUnit(this.height):n.addUnit(this.size),i},icon(){return"uicon"!==this.customPrefix?"":i.icons["uicon-"+this.name]||this.name}},methods:{addStyle:n.addStyle,addUnit:n.addUnit,clickHandler(i){this.$emit("click",this.index),this.stop&&this.preventEvent(i)}}};const d=l._export_sfc(c,[["render",function(i,t,e,s,n,o){return l.e({a:o.isImg},o.isImg?{b:i.name,c:i.imgMode,d:l.s(o.imgStyle),e:l.s(o.addStyle(i.customStyle))}:{f:l.t(o.icon),g:l.n(o.uClasses),h:l.s(o.iconStyle),i:l.s(o.addStyle(i.customStyle)),j:i.hoverClass},{k:""!==i.label},""!==i.label?{l:l.t(i.label),m:i.labelColor,n:o.addUnit(i.labelSize),o:"right"==i.labelPos?o.addUnit(i.space):0,p:"bottom"==i.labelPos?o.addUnit(i.space):0,q:"left"==i.labelPos?o.addUnit(i.space):0,r:"top"==i.labelPos?o.addUnit(i.space):0}:{},{s:l.o(((...i)=>o.clickHandler&&o.clickHandler(...i))),t:l.n("u-icon--"+i.labelPos)})}],["__scopeId","data-v-ab905711"]]);wx.createComponent(d);
|
||||
4
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view bindtap="{{s}}" class="{{['u-icon', 'data-v-ab905711', t]}}"><image wx:if="{{a}}" class="u-icon__img data-v-ab905711" src="{{b}}" mode="{{c}}" style="{{d + ';' + e}}"></image><text wx:else class="{{['u-icon__icon', 'data-v-ab905711', g]}}" style="{{h + ';' + i}}" hover-class="{{j}}">{{f}}</text><text wx:if="{{k}}" class="u-icon__label data-v-ab905711" style="{{'color:' + m + ';' + ('font-size:' + n) + ';' + ('margin-left:' + o) + ';' + ('margin-top:' + p) + ';' + ('margin-right:' + q) + ';' + ('margin-bottom:' + r)}}">{{l}}</text></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-icon/u-icon.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-ab905711,.u-empty__wrap.data-v-ab905711,.u-tabs.data-v-ab905711,.u-tabs__wrapper.data-v-ab905711,.u-tabs__wrapper__scroll-view-wrapper.data-v-ab905711,.u-tabs__wrapper__scroll-view.data-v-ab905711,.u-tabs__wrapper__nav.data-v-ab905711,.u-tabs__wrapper__nav__line.data-v-ab905711{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}@font-face{font-family:uicon-iconfont;src:url(https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf) format("truetype")}.u-icon.data-v-ab905711{display:flex;align-items:center}.u-icon--left.data-v-ab905711{flex-direction:row-reverse;align-items:center}.u-icon--right.data-v-ab905711{flex-direction:row;align-items:center}.u-icon--top.data-v-ab905711{flex-direction:column-reverse;justify-content:center}.u-icon--bottom.data-v-ab905711{flex-direction:column;justify-content:center}.u-icon__icon.data-v-ab905711{font-family:uicon-iconfont;position:relative;display:flex;flex-direction:row;align-items:center}.u-icon__icon--primary.data-v-ab905711{color:#3c9cff}.u-icon__icon--success.data-v-ab905711{color:#5ac725}.u-icon__icon--error.data-v-ab905711{color:#f56c6c}.u-icon__icon--warning.data-v-ab905711{color:#f9ae3d}.u-icon__icon--info.data-v-ab905711{color:#909399}.u-icon__img.data-v-ab905711{height:auto;will-change:transform}.u-icon__label.data-v-ab905711{line-height:1}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),t={props:{modelValue:{type:[String,Number],default:()=>e.defProps.input.value},type:{type:String,default:()=>e.defProps.input.type},fixed:{type:Boolean,default:()=>e.defProps.input.fixed},disabled:{type:Boolean,default:()=>e.defProps.input.disabled},disabledColor:{type:String,default:()=>e.defProps.input.disabledColor},clearable:{type:Boolean,default:()=>e.defProps.input.clearable},password:{type:Boolean,default:()=>e.defProps.input.password},maxlength:{type:[String,Number],default:()=>e.defProps.input.maxlength},placeholder:{type:String,default:()=>e.defProps.input.placeholder},placeholderClass:{type:String,default:()=>e.defProps.input.placeholderClass},placeholderStyle:{type:[String,Object],default:()=>e.defProps.input.placeholderStyle},showWordLimit:{type:Boolean,default:()=>e.defProps.input.showWordLimit},confirmType:{type:String,default:()=>e.defProps.input.confirmType},confirmHold:{type:Boolean,default:()=>e.defProps.input.confirmHold},holdKeyboard:{type:Boolean,default:()=>e.defProps.input.holdKeyboard},focus:{type:Boolean,default:()=>e.defProps.input.focus},autoBlur:{type:Boolean,default:()=>e.defProps.input.autoBlur},disableDefaultPadding:{type:Boolean,default:()=>e.defProps.input.disableDefaultPadding},cursor:{type:[String,Number],default:()=>e.defProps.input.cursor},cursorSpacing:{type:[String,Number],default:()=>e.defProps.input.cursorSpacing},selectionStart:{type:[String,Number],default:()=>e.defProps.input.selectionStart},selectionEnd:{type:[String,Number],default:()=>e.defProps.input.selectionEnd},adjustPosition:{type:Boolean,default:()=>e.defProps.input.adjustPosition},inputAlign:{type:String,default:()=>e.defProps.input.inputAlign},fontSize:{type:[String,Number],default:()=>e.defProps.input.fontSize},color:{type:String,default:()=>e.defProps.input.color},prefixIcon:{type:String,default:()=>e.defProps.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:()=>e.defProps.input.prefixIconStyle},suffixIcon:{type:String,default:()=>e.defProps.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:()=>e.defProps.input.suffixIconStyle},border:{type:String,default:()=>e.defProps.input.border},readonly:{type:Boolean,default:()=>e.defProps.input.readonly},shape:{type:String,default:()=>e.defProps.input.shape},formatter:{type:[Function,null],default:()=>e.defProps.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),n=require("../../libs/mixin/mixin.js"),t=require("../../libs/function/index.js"),o=require("../../../../common/vendor.js"),r={name:"u-input",mixins:[i.mpMixin,n.mixin,e.props],data:()=>({clearInput:!1,innerValue:"",focused:!1,firstChange:!0,changeFromInner:!1,innerFormatter:e=>e}),watch:{modelValue:{immediate:!0,handler(e,i){this.innerValue=e,this.firstChange=!1,this.changeFromInner=!1}}},computed:{isShowClear(){const{clearable:e,readonly:i,focused:n,innerValue:t}=this;return!!e&&!i&&!!n&&""!==t},inputClass(){let e=[],{border:i,disabled:n,shape:t}=this;return"surround"===i&&(e=e.concat(["u-border","u-input--radius"])),e.push(`u-input--${t}`),"bottom"===i&&(e=e.concat(["u-border-bottom","u-input--no-radius"])),e.join(" ")},wrapperStyle(){const e={};return this.disabled&&(e.backgroundColor=this.disabledColor),"none"===this.border?e.padding="0":(e.paddingTop="6px",e.paddingBottom="6px",e.paddingLeft="9px",e.paddingRight="9px"),t.deepMerge(e,t.addStyle(this.customStyle))},inputStyle(){return{color:this.color,fontSize:t.addUnit(this.fontSize),textAlign:this.inputAlign}}},emits:["update:modelValue","focus","blur","change","confirm","clear","keyboardheightchange"],methods:{setFormatter(e){this.innerFormatter=e},onInput(e){let{value:i=""}=e.detail||{};const n=(this.formatter||this.innerFormatter)(i);this.innerValue=i,this.$nextTick((()=>{this.innerValue=n,this.valueChange()}))},onBlur(e){this.$emit("blur",e.detail.value),t.sleep(150).then((()=>{this.focused=!1})),t.formValidate(this,"blur")},onFocus(e){this.focused=!0,this.$emit("focus")},onConfirm(e){this.$emit("confirm",this.innerValue)},onkeyboardheightchange(e){this.$emit("keyboardheightchange",e)},valueChange(){this.clearInput&&(this.innerValue="",this.clearInput=!1);const e=this.innerValue;this.$nextTick((()=>{this.$emit("update:modelValue",e),this.changeFromInner=!0,this.$emit("change",e),t.formValidate(this,"change")}))},onClear(){this.clearInput=!0,this.innerValue="",this.$nextTick((()=>{this.valueChange(),this.$emit("clear")}))},clickHandler(){}}};if(!Array){o.resolveComponent("u-icon")()}Math;const s=o._export_sfc(r,[["render",function(e,i,n,t,r,s){return o.e({a:e.prefixIcon||e.$slots.prefix},e.prefixIcon||e.$slots.prefix?{b:o.p({name:e.prefixIcon,size:"18",customStyle:e.prefixIconStyle})}:{},{c:o.s(s.inputStyle),d:e.type,e:e.focus,f:e.cursor,g:r.innerValue,h:e.autoBlur,i:e.disabled||e.readonly,j:e.maxlength,k:e.placeholder,l:e.placeholderStyle,m:e.placeholderClass,n:e.confirmType,o:e.confirmHold,p:e.holdKeyboard,q:e.cursorSpacing,r:e.adjustPosition,s:e.selectionEnd,t:e.selectionStart,v:e.password||"password"===e.type||!1,w:e.ignoreCompositionEvent,x:o.o(((...e)=>s.onInput&&s.onInput(...e))),y:o.o(((...e)=>s.onBlur&&s.onBlur(...e))),z:o.o(((...e)=>s.onFocus&&s.onFocus(...e))),A:o.o(((...e)=>s.onConfirm&&s.onConfirm(...e))),B:o.o(((...e)=>s.onkeyboardheightchange&&s.onkeyboardheightchange(...e))),C:o.o(((...e)=>s.clickHandler&&s.clickHandler(...e))),D:s.isShowClear},s.isShowClear?{E:o.p({name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"}),F:o.o(((...e)=>s.onClear&&s.onClear(...e)))}:{},{G:e.suffixIcon||e.$slots.suffix},e.suffixIcon||e.$slots.suffix?{H:o.p({name:e.suffixIcon,size:"18",customStyle:e.suffixIconStyle,imgMode:"widthFix"})}:{},{I:o.n(s.inputClass),J:o.s(s.wrapperStyle)})}],["__scopeId","data-v-bd44b066"]]);wx.createComponent(s);
|
||||
6
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="{{['u-input', 'data-v-bd44b066', I]}}" style="{{J}}"><view class="u-input__content data-v-bd44b066"><view wx:if="{{a}}" class="u-input__content__prefix-icon data-v-bd44b066"><block wx:if="{{$slots.prefix}}"><slot name="prefix"></slot></block><block wx:else><u-icon wx:if="{{b}}" class="data-v-bd44b066" u-i="bd44b066-0" bind:__l="__l" u-p="{{b}}"></u-icon></block></view><view class="u-input__content__field-wrapper data-v-bd44b066" bindtap="{{C}}"><block wx:if="{{r0}}"><input class="u-input__content__field-wrapper__field data-v-bd44b066" style="{{c}}" type="{{d}}" focus="{{e}}" cursor="{{f}}" value="{{g}}" auto-blur="{{h}}" disabled="{{i}}" maxlength="{{j}}" placeholder="{{k}}" placeholder-style="{{l}}" placeholder-class="{{m}}" confirm-type="{{n}}" confirm-hold="{{o}}" hold-keyboard="{{p}}" cursor-spacing="{{q}}" adjust-position="{{r}}" selection-end="{{s}}" selection-start="{{t}}" password="{{v}}" ignoreCompositionEvent="{{w}}" bindinput="{{x}}" bindblur="{{y}}" bindfocus="{{z}}" bindconfirm="{{A}}" bindkeyboardheightchange="{{B}}"/></block></view><view wx:if="{{D}}" class="u-input__content__clear data-v-bd44b066" bindtap="{{F}}"><u-icon wx:if="{{E}}" class="data-v-bd44b066" u-i="bd44b066-1" bind:__l="__l" u-p="{{E}}"></u-icon></view><view wx:if="{{G}}" class="u-input__content__subfix-icon data-v-bd44b066"><block wx:if="{{$slots.suffix}}"><slot name="suffix"></slot></block><block wx:else><u-icon wx:if="{{H}}" class="data-v-bd44b066" u-i="bd44b066-2" bind:__l="__l" u-p="{{H}}"></u-icon></block></view></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-input/u-input.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-bd44b066,.u-empty__wrap.data-v-bd44b066,.u-tabs.data-v-bd44b066,.u-tabs__wrapper.data-v-bd44b066,.u-tabs__wrapper__scroll-view-wrapper.data-v-bd44b066,.u-tabs__wrapper__scroll-view.data-v-bd44b066,.u-tabs__wrapper__nav.data-v-bd44b066,.u-tabs__wrapper__nav__line.data-v-bd44b066{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-input.data-v-bd44b066{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex:1}.u-input--radius.data-v-bd44b066,.u-input--square.data-v-bd44b066{border-radius:4px}.u-input--no-radius.data-v-bd44b066{border-radius:0}.u-input--circle.data-v-bd44b066{border-radius:100px}.u-input__content.data-v-bd44b066{flex:1;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.u-input__content__field-wrapper.data-v-bd44b066{position:relative;display:flex;flex-direction:row;margin:0;flex:1}.u-input__content__field-wrapper__field.data-v-bd44b066{line-height:26px;text-align:left;color:#303133;height:24px;font-size:15px;flex:1}.u-input__content__clear.data-v-bd44b066{width:20px;height:20px;border-radius:100px;background-color:#c6c7cb;display:flex;flex-direction:row;align-items:center;justify-content:center;transform:scale(.82);margin-left:4px}.u-input__content__subfix-icon.data-v-bd44b066{margin-left:4px}.u-input__content__prefix-icon.data-v-bd44b066{margin-right:4px}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),r={props:{color:{type:String,default:()=>e.defProps.line.color},length:{type:[String,Number],default:()=>e.defProps.line.length},direction:{type:String,default:()=>e.defProps.line.direction},hairline:{type:Boolean,default:()=>e.defProps.line.hairline},margin:{type:[String,Number],default:()=>e.defProps.line.margin},dashed:{type:Boolean,default:()=>e.defProps.line.dashed}}};exports.props=r;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/u-line.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/u-line.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),t=require("../../libs/mixin/mixin.js"),r=require("../../libs/function/index.js"),s=require("../../../../common/vendor.js"),n={name:"u-line",mixins:[i.mpMixin,t.mixin,e.props],computed:{lineStyle(){const e={};return e.margin=this.margin,"row"===this.direction?(e.borderBottomWidth="1px",e.borderBottomStyle=this.dashed?"dashed":"solid",e.width=r.addUnit(this.length),this.hairline&&(e.transform="scaleY(0.5)")):(e.borderLeftWidth="1px",e.borderLeftStyle=this.dashed?"dashed":"solid",e.height=r.addUnit(this.length),this.hairline&&(e.transform="scaleX(0.5)")),e.borderColor=this.color,r.deepMerge(e,r.addStyle(this.customStyle))}}};const o=s._export_sfc(n,[["render",function(e,i,t,r,n,o){return{a:s.s(o.lineStyle)}}],["__scopeId","data-v-7063e61b"]]);wx.createComponent(o);
|
||||
4
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/u-line.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/u-line.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/u-line.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/u-line.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="u-line data-v-7063e61b" style="{{a}}"></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/u-line.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-line/u-line.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-7063e61b,.u-empty__wrap.data-v-7063e61b,.u-tabs.data-v-7063e61b,.u-tabs__wrapper.data-v-7063e61b,.u-tabs__wrapper__scroll-view-wrapper.data-v-7063e61b,.u-tabs__wrapper__scroll-view.data-v-7063e61b,.u-tabs__wrapper__nav.data-v-7063e61b,.u-tabs__wrapper__nav__line.data-v-7063e61b{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-line.data-v-7063e61b{vertical-align:middle}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),t={props:{color:{type:String,default:()=>e.defProps.link.color},fontSize:{type:[String,Number],default:()=>e.defProps.link.fontSize},underLine:{type:Boolean,default:()=>e.defProps.link.underLine},href:{type:String,default:()=>e.defProps.link.href},mpTips:{type:String,default:()=>e.defProps.link.mpTips},lineColor:{type:String,default:()=>e.defProps.link.lineColor},text:{type:String,default:()=>e.defProps.link.text}}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/u-link.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/u-link.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const i=require("../../../../common/vendor.js"),e=require("./props.js"),t=require("../../libs/mixin/mpMixin.js"),n=require("../../libs/mixin/mixin.js"),s=require("../../libs/function/index.js"),o={name:"u-link",mixins:[t.mpMixin,n.mixin,e.props],computed:{linkStyle(){return{color:this.color,fontSize:s.addUnit(this.fontSize),lineHeight:s.addUnit(s.getPx(this.fontSize)+2),textDecoration:this.underLine?"underline":"none"}}},emits:["click"],methods:{addStyle:s.addStyle,openLink(){i.index.setClipboardData({data:this.href,success:()=>{i.index.hideToast(),this.$nextTick((()=>{s.toast(this.mpTips)}))}}),this.$emit("click")}}};const r=i._export_sfc(o,[["render",function(e,t,n,s,o,r){return{a:i.t(e.text),b:i.o(((...i)=>r.openLink&&r.openLink(...i))),c:i.s(r.linkStyle),d:i.s(r.addStyle(e.customStyle))}}],["__scopeId","data-v-a95516f8"]]);wx.createComponent(r);
|
||||
4
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/u-link.json
vendored
Normal file
4
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/u-link.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/u-link.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/u-link.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<text class="u-link data-v-a95516f8" catchtap="{{b}}" style="{{c + ';' + d}}">{{a}}</text>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/u-link.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-link/u-link.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-a95516f8,.u-empty__wrap.data-v-a95516f8,.u-tabs.data-v-a95516f8,.u-tabs__wrapper.data-v-a95516f8,.u-tabs__wrapper__scroll-view-wrapper.data-v-a95516f8,.u-tabs__wrapper__scroll-view.data-v-a95516f8,.u-tabs__wrapper__nav.data-v-a95516f8,.u-tabs__wrapper__nav__line.data-v-a95516f8{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-link.data-v-a95516f8{line-height:1;display:flex;flex-direction:row;flex-wrap:wrap;flex:1}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-loading-icon/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-loading-icon/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const o=require("../../libs/config/props.js"),e={props:{show:{type:Boolean,default:()=>o.defProps.loadingIcon.show},color:{type:String,default:()=>o.defProps.loadingIcon.color},textColor:{type:String,default:()=>o.defProps.loadingIcon.textColor},vertical:{type:Boolean,default:()=>o.defProps.loadingIcon.vertical},mode:{type:String,default:()=>o.defProps.loadingIcon.mode},size:{type:[String,Number],default:()=>o.defProps.loadingIcon.size},textSize:{type:[String,Number],default:()=>o.defProps.loadingIcon.textSize},text:{type:[String,Number],default:()=>o.defProps.loadingIcon.text},timingFunction:{type:String,default:()=>o.defProps.loadingIcon.timingFunction},duration:{type:[String,Number],default:()=>o.defProps.loadingIcon.duration},inactiveColor:{type:String,default:()=>o.defProps.loadingIcon.inactiveColor}}};exports.props=e;
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),t=require("../../libs/mixin/mixin.js"),o=require("../../libs/function/index.js"),r=require("../../libs/function/colorGradient.js"),n=require("../../../../common/vendor.js"),d={name:"u-loading-icon",mixins:[i.mpMixin,t.mixin,e.props],data:()=>({array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}),computed:{otherBorderColor(){const e=r.colorGradient$1(this.color,"#ffffff",100)[80];return"circle"===this.mode?this.inactiveColor?this.inactiveColor:e:"transparent"}},watch:{show(e){}},mounted(){this.init()},methods:{addUnit:o.addUnit,addStyle:o.addStyle,init(){setTimeout((()=>{}),20)},addEventListenerToWebview(){const e=getCurrentPages(),i=e[e.length-1].$getAppWebview();i.addEventListener("hide",(()=>{this.webviewHide=!0})),i.addEventListener("show",(()=>{this.webviewHide=!1}))}}};const s=n._export_sfc(d,[["render",function(e,i,t,o,r,d){return n.e({a:e.show},e.show?n.e({b:!r.webviewHide},r.webviewHide?{}:n.e({c:"spinner"===e.mode},"spinner"===e.mode?{d:n.f(r.array12,((e,i,t)=>({a:i})))}:{},{e:n.n(`u-loading-icon__spinner--${e.mode}`),f:e.color,g:d.addUnit(e.size),h:d.addUnit(e.size),i:e.color,j:d.otherBorderColor,k:d.otherBorderColor,l:d.otherBorderColor,m:`${e.duration}ms`,n:"semicircle"===e.mode||"circle"===e.mode?e.timingFunction:""}),{o:e.text},e.text?{p:n.t(e.text),q:d.addUnit(e.textSize),r:e.textColor}:{},{s:n.s(d.addStyle(e.customStyle)),t:n.n(e.vertical&&"u-loading-icon--vertical")}):{})}],["__scopeId","data-v-40fecea9"]]);wx.createComponent(s);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view wx:if="{{a}}" style="{{s}}" class="{{['u-loading-icon', 'data-v-40fecea9', t]}}"><view wx:if="{{b}}" class="{{['u-loading-icon__spinner', 'data-v-40fecea9', e]}}" ref="ani" style="{{'color:' + f + ';' + ('width:' + g) + ';' + ('height:' + h) + ';' + ('border-top-color:' + i) + ';' + ('border-bottom-color:' + j) + ';' + ('border-left-color:' + k) + ';' + ('border-right-color:' + l) + ';' + ('animation-duration:' + m) + ';' + ('animation-timing-function:' + n)}}"><block wx:if="{{c}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="a" class="u-loading-icon__dot data-v-40fecea9"></view></block></view><text wx:if="{{o}}" class="u-loading-icon__text data-v-40fecea9" style="{{'font-size:' + q + ';' + ('color:' + r)}}">{{p}}</text></view>
|
||||
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-40fecea9,.u-empty__wrap.data-v-40fecea9,.u-tabs.data-v-40fecea9,.u-tabs__wrapper.data-v-40fecea9,.u-tabs__wrapper__scroll-view-wrapper.data-v-40fecea9,.u-tabs__wrapper__scroll-view.data-v-40fecea9,.u-tabs__wrapper__nav.data-v-40fecea9,.u-tabs__wrapper__nav__line.data-v-40fecea9{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-loading-icon.data-v-40fecea9{display:flex;flex-direction:row;align-items:center;justify-content:center;color:#c8c9cc}.u-loading-icon__text.data-v-40fecea9{margin-left:4px;color:#606266;font-size:14px;line-height:20px}.u-loading-icon__spinner.data-v-40fecea9{width:30px;height:30px;position:relative;box-sizing:border-box;max-width:100%;max-height:100%;animation:u-rotate-40fecea9 1s linear infinite}.u-loading-icon__spinner--semicircle.data-v-40fecea9{border-width:2px;border-color:transparent;border-radius:100px;border-style:solid}.u-loading-icon__spinner--circle.data-v-40fecea9{border-radius:100px;border-width:2px;border-top-color:#e5e5e5;border-right-color:#e5e5e5;border-bottom-color:#e5e5e5;border-left-color:#e5e5e5;border-style:solid}.u-loading-icon--vertical.data-v-40fecea9{flex-direction:column}.data-v-40fecea9:host{font-size:0px;line-height:1}.u-loading-icon__spinner--spinner.data-v-40fecea9{animation-timing-function:steps(12)}.u-loading-icon__text.data-v-40fecea9:empty{display:none}.u-loading-icon--vertical .u-loading-icon__text.data-v-40fecea9{margin:6px 0 0;color:#606266}.u-loading-icon__dot.data-v-40fecea9{position:absolute;top:0;left:0;width:100%;height:100%}.u-loading-icon__dot.data-v-40fecea9:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(1){transform:rotate(30deg);opacity:1}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(2){transform:rotate(60deg);opacity:.9375}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(3){transform:rotate(90deg);opacity:.875}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(4){transform:rotate(120deg);opacity:.8125}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(5){transform:rotate(150deg);opacity:.75}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(6){transform:rotate(180deg);opacity:.6875}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(7){transform:rotate(210deg);opacity:.625}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(8){transform:rotate(240deg);opacity:.5625}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(9){transform:rotate(270deg);opacity:.5}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(10){transform:rotate(300deg);opacity:.4375}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(11){transform:rotate(330deg);opacity:.375}.u-loading-icon__dot.data-v-40fecea9:nth-of-type(12){transform:rotate(360deg);opacity:.3125}@keyframes u-rotate-40fecea9{0%{transform:rotate(0)}to{transform:rotate(1turn)}}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),r={props:{show:{type:Boolean,default:()=>e.defProps.overlay.show},zIndex:{type:[String,Number],default:()=>e.defProps.overlay.zIndex},duration:{type:[String,Number],default:()=>e.defProps.overlay.duration},opacity:{type:[String,Number],default:()=>e.defProps.overlay.opacity}}};exports.props=r;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/u-overlay.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/u-overlay.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),t=require("../../libs/mixin/mixin.js"),o=require("../../libs/function/index.js"),r=require("../../../../common/vendor.js"),n={name:"u-overlay",mixins:[i.mpMixin,t.mixin,e.props],computed:{overlayStyle(){const e={position:"fixed",top:0,left:0,right:0,zIndex:this.zIndex,bottom:0,"background-color":`rgba(0, 0, 0, ${this.opacity})`};return o.deepMerge(e,o.addStyle(this.customStyle))}},emits:["click"],methods:{clickHandler(){this.$emit("click")}}};if(!Array){r.resolveComponent("u-transition")()}Math;const s=r._export_sfc(n,[["render",function(e,i,t,o,n,s){return{a:r.o(s.clickHandler),b:r.p({show:e.show,"custom-class":"u-overlay",duration:e.duration,"custom-style":s.overlayStyle})}}],["__scopeId","data-v-f7274be9"]]);wx.createComponent(s);
|
||||
6
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/u-overlay.json
vendored
Normal file
6
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/u-overlay.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-transition": "../u-transition/u-transition"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/u-overlay.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/u-overlay.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<u-transition wx:if="{{b}}" class="data-v-f7274be9" u-s="{{['d']}}" bindclick="{{a}}" u-i="f7274be9-0" bind:__l="__l" u-p="{{b}}"><slot/></u-transition>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/u-overlay.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-overlay/u-overlay.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-f7274be9,.u-empty__wrap.data-v-f7274be9,.u-tabs.data-v-f7274be9,.u-tabs__wrapper.data-v-f7274be9,.u-tabs__wrapper__scroll-view-wrapper.data-v-f7274be9,.u-tabs__wrapper__scroll-view.data-v-f7274be9,.u-tabs__wrapper__nav.data-v-f7274be9,.u-tabs__wrapper__nav__line.data-v-f7274be9{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-overlay.data-v-f7274be9{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.7)}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),r={props:{show:{type:Boolean,default:()=>e.defProps.picker.show},popupMode:{type:String,default:()=>e.defProps.picker.popupMode},showToolbar:{type:Boolean,default:()=>e.defProps.picker.showToolbar},title:{type:String,default:()=>e.defProps.picker.title},columns:{type:Array,default:()=>e.defProps.picker.columns},loading:{type:Boolean,default:()=>e.defProps.picker.loading},itemHeight:{type:[String,Number],default:()=>e.defProps.picker.itemHeight},cancelText:{type:String,default:()=>e.defProps.picker.cancelText},confirmText:{type:String,default:()=>e.defProps.picker.confirmText},cancelColor:{type:String,default:()=>e.defProps.picker.cancelColor},confirmColor:{type:String,default:()=>e.defProps.picker.confirmColor},visibleItemCount:{type:[String,Number],default:()=>e.defProps.picker.visibleItemCount},keyName:{type:String,default:()=>e.defProps.picker.keyName},closeOnClickOverlay:{type:Boolean,default:()=>e.defProps.picker.closeOnClickOverlay},defaultIndex:{type:Array,default:()=>e.defProps.picker.defaultIndex},immediateChange:{type:Boolean,default:()=>e.defProps.picker.immediateChange}}};exports.props=r;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/u-picker.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/u-picker.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),n=require("../../libs/mixin/mpMixin.js"),t=require("../../libs/mixin/mixin.js"),i=require("../../libs/function/index.js"),s=require("../../libs/function/test.js"),o=require("../../../../common/vendor.js"),l={name:"u-picker",mixins:[n.mpMixin,t.mixin,e.props],data:()=>({lastIndex:[],innerIndex:[],innerColumns:[],columnIndex:0}),watch:{defaultIndex:{immediate:!0,handler(e){this.setIndexs(e,!0)}},columns:{immediate:!0,deep:!0,handler(e){this.setColumns(e)}}},emits:["close","cancel","confirm","change"],methods:{addUnit:i.addUnit,testArray:s.test.array,getItemText(e){return s.test.object(e)?e[this.keyName]:e},closeHandler(){this.closeOnClickOverlay&&this.$emit("close")},cancel(){this.$emit("cancel")},confirm(){this.$emit("confirm",{indexs:this.innerIndex,value:this.innerColumns.map(((e,n)=>e[this.innerIndex[n]])),values:this.innerColumns})},changeHandler(e){const{value:n}=e.detail;let t=0,i=0;for(let o=0;o<n.length;o++){let e=n[o];if(e!==(this.lastIndex[o]||0)){i=o,t=e;break}}this.columnIndex=i;const s=this.innerColumns;this.setLastIndex(n),this.setIndexs(n),this.$emit("change",{value:this.innerColumns.map(((e,t)=>e[n[t]])),index:t,indexs:n,values:s,columnIndex:i})},setIndexs(e,n){this.innerIndex=i.deepClone(e),n&&this.setLastIndex(e)},setLastIndex(e){this.lastIndex=i.deepClone(e)},setColumnValues(e,n){this.innerColumns.splice(e,1,n),this.setLastIndex(this.innerIndex.slice(0,e));let t=i.deepClone(this.innerIndex);for(let i=0;i<this.innerColumns.length;i++)i>this.columnIndex&&(t[i]=0);this.setIndexs(t)},getColumnValues(e){return(async()=>{await i.sleep()})(),this.innerColumns[e]},setColumns(e){this.innerColumns=i.deepClone(e),0===this.innerIndex.length&&(this.innerIndex=new Array(e.length).fill(0))},getIndexs(){return this.innerIndex},getValues(){return(async()=>{await i.sleep()})(),this.innerColumns.map(((e,n)=>e[this.innerIndex[n]]))}}};if(!Array){(o.resolveComponent("u-toolbar")+o.resolveComponent("u-loading-icon")+o.resolveComponent("u-popup"))()}Math||((()=>"../u-toolbar/u-toolbar.js")+(()=>"../u-loading-icon/u-loading-icon.js")+(()=>"../u-popup/u-popup.js"))();const r=o._export_sfc(l,[["render",function(e,n,t,i,s,l){return o.e({a:e.showToolbar},e.showToolbar?{b:o.o(l.cancel),c:o.o(l.confirm),d:o.p({cancelColor:e.cancelColor,confirmColor:e.confirmColor,cancelText:e.cancelText,confirmText:e.confirmText,title:e.title})}:{},{e:o.f(s.innerColumns,((n,t,i)=>o.e({a:l.testArray(n)},l.testArray(n)?{b:o.f(n,((e,n,i)=>({a:o.t(l.getItemText(e)),b:n,c:n===s.innerIndex[t]?"bold":"normal"}))),c:l.addUnit(e.itemHeight),d:l.addUnit(e.itemHeight)}:{},{e:t}))),f:`height: ${l.addUnit(e.itemHeight)}`,g:s.innerIndex,h:e.immediateChange,i:`${l.addUnit(e.visibleItemCount*e.itemHeight)}`,j:o.o(((...e)=>l.changeHandler&&l.changeHandler(...e))),k:e.loading},e.loading?{l:o.p({mode:"circle"})}:{},{m:o.o(l.closeHandler),n:o.p({show:e.show,mode:e.popupMode})})}],["__scopeId","data-v-299ac2e6"]]);wx.createComponent(r);
|
||||
8
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/u-picker.json
vendored
Normal file
8
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/u-picker.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-toolbar": "../u-toolbar/u-toolbar",
|
||||
"u-loading-icon": "../u-loading-icon/u-loading-icon",
|
||||
"u-popup": "../u-popup/u-popup"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/u-picker.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/u-picker.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<u-popup wx:if="{{n}}" class="data-v-299ac2e6" u-s="{{['d']}}" bindclose="{{m}}" u-i="299ac2e6-0" bind:__l="__l" u-p="{{n}}"><view class="u-picker data-v-299ac2e6"><u-toolbar wx:if="{{a}}" class="data-v-299ac2e6" bindcancel="{{b}}" bindconfirm="{{c}}" u-i="299ac2e6-1,299ac2e6-0" bind:__l="__l" u-p="{{d}}"></u-toolbar><picker-view class="u-picker__view data-v-299ac2e6" indicatorStyle="{{f}}" value="{{g}}" immediateChange="{{h}}" style="{{'height:' + i}}" bindchange="{{j}}"><picker-view-column wx:for="{{e}}" wx:for-item="item" wx:key="e" class="u-picker__view__column data-v-299ac2e6"><block wx:if="{{item.a}}"><view wx:for="{{item.b}}" wx:for-item="item1" wx:key="b" class="u-picker__view__column__item u-line-1 data-v-299ac2e6" style="{{'height:' + item.c + ';' + ('line-height:' + item.d) + ';' + ('font-weight:' + item1.c) + ';' + ('display:' + 'block')}}">{{item1.a}}</view></block></picker-view-column></picker-view><view wx:if="{{k}}" class="u-picker--loading data-v-299ac2e6"><u-loading-icon wx:if="{{l}}" class="data-v-299ac2e6" u-i="299ac2e6-2,299ac2e6-0" bind:__l="__l" u-p="{{l}}"></u-loading-icon></view></view></u-popup>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/u-picker.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-picker/u-picker.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-299ac2e6,.u-empty__wrap.data-v-299ac2e6,.u-tabs.data-v-299ac2e6,.u-tabs__wrapper.data-v-299ac2e6,.u-tabs__wrapper__scroll-view-wrapper.data-v-299ac2e6,.u-tabs__wrapper__scroll-view.data-v-299ac2e6,.u-tabs__wrapper__nav.data-v-299ac2e6,.u-tabs__wrapper__nav__line.data-v-299ac2e6{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-picker.data-v-299ac2e6{position:relative}.u-picker__view__column.data-v-299ac2e6{display:flex;flex-direction:row;flex:1;justify-content:center}.u-picker__view__column__item.data-v-299ac2e6{display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:16px;text-align:center;display:block;color:#303133}.u-picker__view__column__item--disabled.data-v-299ac2e6{cursor:not-allowed;opacity:.35}.u-picker--loading.data-v-299ac2e6{position:absolute;top:0;right:0;left:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:rgba(255,255,255,.87);z-index:1000}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),o={props:{show:{type:Boolean,default:()=>e.defProps.popup.show},overlay:{type:Boolean,default:()=>e.defProps.popup.overlay},mode:{type:String,default:()=>e.defProps.popup.mode},duration:{type:[String,Number],default:()=>e.defProps.popup.duration},closeable:{type:Boolean,default:()=>e.defProps.popup.closeable},overlayStyle:{type:[Object,String],default:()=>e.defProps.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:()=>e.defProps.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:()=>e.defProps.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:()=>e.defProps.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:()=>e.defProps.popup.safeAreaInsetTop},closeIconPos:{type:String,default:()=>e.defProps.popup.closeIconPos},round:{type:[Boolean,String,Number],default:()=>e.defProps.popup.round},zoom:{type:Boolean,default:()=>e.defProps.popup.zoom},bgColor:{type:String,default:()=>e.defProps.popup.bgColor},overlayOpacity:{type:[Number,String],default:()=>e.defProps.popup.overlayOpacity}}};exports.props=o;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/u-popup.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/u-popup.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),t=require("../../libs/mixin/mpMixin.js"),o=require("../../libs/mixin/mixin.js"),i=require("../../libs/function/index.js"),s=require("../../../../common/vendor.js"),n={name:"u-popup",mixins:[t.mpMixin,o.mixin,e.props],data(){return{overlayDuration:this.duration+50}},watch:{show(e,t){if(!0===e){const e=this.$children;this.retryComputedComponentRect(e)}}},computed:{transitionStyle(){const e={zIndex:this.zIndex,position:"fixed",display:"flex"};return e[this.mode]=0,"left"===this.mode||"right"===this.mode?i.deepMerge(e,{bottom:0,top:0}):"top"===this.mode||"bottom"===this.mode?i.deepMerge(e,{left:0,right:0}):"center"===this.mode?i.deepMerge(e,{alignItems:"center","justify-content":"center",top:0,left:0,right:0,bottom:0}):void 0},contentStyle(){const e={};if(i.sys(),"center"!==this.mode&&(e.flex=1),this.bgColor&&(e.backgroundColor=this.bgColor),this.round){const t=i.addUnit(this.round);"top"===this.mode?(e.borderBottomLeftRadius=t,e.borderBottomRightRadius=t):"bottom"===this.mode?(e.borderTopLeftRadius=t,e.borderTopRightRadius=t):"center"===this.mode&&(e.borderRadius=t)}return i.deepMerge(e,i.addStyle(this.customStyle))},position(){return"center"===this.mode?this.zoom?"fade-zoom":"fade":"left"===this.mode?"slide-left":"right"===this.mode?"slide-right":"bottom"===this.mode?"slide-up":"top"===this.mode?"slide-down":void 0}},emits:["open","close","click"],methods:{overlayClick(){this.closeOnClickOverlay&&this.$emit("close")},close(e){this.$emit("close")},afterEnter(){this.$emit("open")},clickHandler(){"center"===this.mode&&this.overlayClick(),this.$emit("click")},retryComputedComponentRect(e){const t=["u-calendar-month","u-album","u-collapse-item","u-dropdown","u-index-item","u-index-list","u-line-progress","u-list-item","u-rate","u-read-more","u-row","u-row-notice","u-scroll-list","u-skeleton","u-slider","u-steps-item","u-sticky","u-subsection","u-swipe-action-item","u-tabbar","u-tabs","u-tooltip"];for(let o=0;o<e.length;o++){const s=e[o],n=s.$children;t.includes(s.$options.name)&&"function"==typeof(null==s?void 0:s.init)&&i.sleep(50).then((()=>{s.init()})),n.length&&this.retryComputedComponentRect(n)}}}};if(!Array){(s.resolveComponent("u-overlay")+s.resolveComponent("u-status-bar")+s.resolveComponent("u-icon")+s.resolveComponent("u-safe-bottom")+s.resolveComponent("u-transition"))()}Math||((()=>"../u-overlay/u-overlay.js")+(()=>"../u-status-bar/u-status-bar.js")+(()=>"../u-icon/u-icon.js")+(()=>"../u-safe-bottom/u-safe-bottom.js")+(()=>"../u-transition/u-transition.js"))();const r=s._export_sfc(n,[["render",function(e,t,o,i,n,r){return s.e({a:e.overlay},e.overlay?{b:s.o(r.overlayClick),c:s.p({show:e.show,zIndex:e.zIndex,duration:n.overlayDuration,customStyle:e.overlayStyle,opacity:e.overlayOpacity})}:{},{d:e.safeAreaInsetTop},(e.safeAreaInsetTop,{}),{e:e.closeable},e.closeable?{f:s.p({name:"close",color:"#909399",size:"18",bold:!0}),g:s.o(((...e)=>r.close&&r.close(...e))),h:s.n("u-popup__content__close--"+e.closeIconPos)}:{},{i:e.safeAreaInsetBottom},(e.safeAreaInsetBottom,{}),{j:s.s(r.contentStyle),k:s.o(((...t)=>e.noop&&e.noop(...t))),l:s.o(r.afterEnter),m:s.o(r.clickHandler),n:s.p({show:e.show,customStyle:r.transitionStyle,mode:r.position,duration:e.duration})})}],["__scopeId","data-v-17be791b"]]);wx.createComponent(r);
|
||||
10
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/u-popup.json
vendored
Normal file
10
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/u-popup.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-overlay": "../u-overlay/u-overlay",
|
||||
"u-status-bar": "../u-status-bar/u-status-bar",
|
||||
"u-icon": "../u-icon/u-icon",
|
||||
"u-safe-bottom": "../u-safe-bottom/u-safe-bottom",
|
||||
"u-transition": "../u-transition/u-transition"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/u-popup.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/u-popup.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="u-popup data-v-17be791b"><u-overlay wx:if="{{a}}" class="data-v-17be791b" bindclick="{{b}}" u-i="17be791b-0" bind:__l="__l" u-p="{{c}}"></u-overlay><u-transition wx:if="{{n}}" class="data-v-17be791b" u-s="{{['d']}}" bindafterEnter="{{l}}" bindclick="{{m}}" u-i="17be791b-1" bind:__l="__l" u-p="{{n}}"><view class="u-popup__content data-v-17be791b" style="{{j}}" catchtap="{{k}}"><u-status-bar wx:if="{{d}}" class="data-v-17be791b" u-i="17be791b-2,17be791b-1" bind:__l="__l"></u-status-bar><slot></slot><view wx:if="{{e}}" catchtap="{{g}}" class="{{['u-popup__content__close', 'data-v-17be791b', h]}}" hover-class="u-popup__content__close--hover" hover-stay-time="150"><u-icon wx:if="{{f}}" class="data-v-17be791b" u-i="17be791b-3,17be791b-1" bind:__l="__l" u-p="{{f}}"></u-icon></view><u-safe-bottom wx:if="{{i}}" class="data-v-17be791b" u-i="17be791b-4,17be791b-1" bind:__l="__l"></u-safe-bottom></view></u-transition></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/u-popup.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-popup/u-popup.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-17be791b,.u-empty__wrap.data-v-17be791b,.u-tabs.data-v-17be791b,.u-tabs__wrapper.data-v-17be791b,.u-tabs__wrapper__scroll-view-wrapper.data-v-17be791b,.u-tabs__wrapper__scroll-view.data-v-17be791b,.u-tabs__wrapper__nav.data-v-17be791b,.u-tabs__wrapper__nav__line.data-v-17be791b{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-popup.data-v-17be791b{flex:1}.u-popup__content.data-v-17be791b{background-color:#fff;position:relative}.u-popup__content--round-top.data-v-17be791b{border-radius:0 0 10px 10px}.u-popup__content--round-left.data-v-17be791b{border-radius:0 10px 10px 0}.u-popup__content--round-right.data-v-17be791b{border-radius:10px 0 0 10px}.u-popup__content--round-bottom.data-v-17be791b{border-radius:10px 10px 0 0}.u-popup__content--round-center.data-v-17be791b{border-radius:10px}.u-popup__content__close.data-v-17be791b{position:absolute}.u-popup__content__close--hover.data-v-17be791b{opacity:.4}.u-popup__content__close--top-left.data-v-17be791b{top:15px;left:15px}.u-popup__content__close--top-right.data-v-17be791b{top:15px;right:15px}.u-popup__content__close--bottom-left.data-v-17be791b{bottom:15px;left:15px}.u-popup__content__close--bottom-right.data-v-17be791b{right:15px;bottom:15px}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-safe-bottom/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-safe-bottom/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";exports.props={props:{}};
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),t=require("../../libs/mixin/mixin.js"),s=require("../../libs/function/index.js"),n=require("../../../../common/vendor.js"),r={name:"u-safe-bottom",mixins:[i.mpMixin,t.mixin,e.props],data:()=>({safeAreaBottomHeight:0,isNvue:!1}),computed:{style(){return s.deepMerge({},s.addStyle(this.customStyle))}},mounted(){}};const o=n._export_sfc(r,[["render",function(e,i,t,s,r,o){return{a:n.s(o.style),b:n.n(!r.isNvue&&"u-safe-area-inset-bottom")}}],["__scopeId","data-v-c4161810"]]);wx.createComponent(o);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view style="{{a}}" class="{{['u-safe-bottom', 'data-v-c4161810', b]}}"></view>
|
||||
@@ -0,0 +1 @@
|
||||
.u-safe-bottom.data-v-c4161810{width:100%}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-status-bar/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-status-bar/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const r=require("../../libs/config/props.js"),s={props:{bgColor:{type:String,default:()=>r.defProps.statusBar.bgColor}}};exports.props=s;
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),s=require("../../libs/mixin/mixin.js"),t=require("../../libs/function/index.js"),r=require("../../../../common/vendor.js"),n={name:"u-status-bar",mixins:[i.mpMixin,s.mixin,e.props],data:()=>({}),computed:{style(){const e={};return e.height=t.addUnit(t.sys().statusBarHeight,"px"),e.backgroundColor=this.bgColor,t.deepMerge(e,t.addStyle(this.customStyle))}}};const o=r._export_sfc(n,[["render",function(e,i,s,t,n,o){return{a:r.s(o.style)}}],["__scopeId","data-v-efea9835"]]);wx.createComponent(o);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view style="{{a}}" class="u-status-bar data-v-efea9835"><slot/></view>
|
||||
@@ -0,0 +1 @@
|
||||
.u-status-bar.data-v-efea9835{width:100%}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper-indicator/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper-indicator/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const r=require("../../libs/config/props.js"),t={props:{length:{type:[String,Number],default:()=>r.defProps.swiperIndicator.length},current:{type:[String,Number],default:()=>r.defProps.swiperIndicator.current},indicatorActiveColor:{type:String,default:()=>r.defProps.swiperIndicator.indicatorActiveColor},indicatorInactiveColor:{type:String,default:()=>r.defProps.swiperIndicator.indicatorInactiveColor},indicatorMode:{type:String,default:()=>r.defProps.swiperIndicator.indicatorMode}}};exports.props=t;
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const i=require("./props.js"),t=require("../../libs/mixin/mpMixin.js"),e=require("../../libs/mixin/mixin.js"),n=require("../../libs/function/index.js"),r=require("../../../../common/vendor.js"),o={name:"u-swiper-indicator",mixins:[t.mpMixin,e.mixin,i.props],data:()=>({lineWidth:22}),computed:{lineStyle(){let i={};return i.width=n.addUnit(this.lineWidth),i.transform=`translateX(${n.addUnit(this.current*this.lineWidth)})`,i.backgroundColor=this.indicatorActiveColor,i},dotStyle(){return i=>{let t={};return t.backgroundColor=i===this.current?this.indicatorActiveColor:this.indicatorInactiveColor,t}}},methods:{addUnit:n.addUnit}};const d=r._export_sfc(o,[["render",function(i,t,e,n,o,d){return r.e({a:"line"===i.indicatorMode},"line"===i.indicatorMode?{b:r.s(d.lineStyle),c:r.n(`u-swiper-indicator__wrapper--${i.indicatorMode}`),d:d.addUnit(o.lineWidth*i.length),e:i.indicatorInactiveColor}:{},{f:"dot"===i.indicatorMode},"dot"===i.indicatorMode?{g:r.f(i.length,((t,e,n)=>({a:e,b:r.n(e===i.current&&"u-swiper-indicator__wrapper__dot--active"),c:r.s(d.dotStyle(e))})))}:{})}],["__scopeId","data-v-f90a097d"]]);wx.createComponent(d);
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="u-swiper-indicator data-v-f90a097d"><view wx:if="{{a}}" class="{{['u-swiper-indicator__wrapper', 'data-v-f90a097d', c]}}" style="{{'width:' + d + ';' + ('background-color:' + e)}}"><view class="u-swiper-indicator__wrapper--line__bar data-v-f90a097d" style="{{b}}"></view></view><view wx:if="{{f}}" class="u-swiper-indicator__wrapper data-v-f90a097d"><view wx:for="{{g}}" wx:for-item="item" wx:key="a" class="{{['u-swiper-indicator__wrapper__dot', 'data-v-f90a097d', item.b]}}" style="{{item.c}}"></view></view></view>
|
||||
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-f90a097d,.u-empty__wrap.data-v-f90a097d,.u-tabs.data-v-f90a097d,.u-tabs__wrapper.data-v-f90a097d,.u-tabs__wrapper__scroll-view-wrapper.data-v-f90a097d,.u-tabs__wrapper__scroll-view.data-v-f90a097d,.u-tabs__wrapper__nav.data-v-f90a097d,.u-tabs__wrapper__nav__line.data-v-f90a097d{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-swiper-indicator__wrapper.data-v-f90a097d{display:flex;flex-direction:row}.u-swiper-indicator__wrapper--line.data-v-f90a097d{border-radius:100px;height:4px}.u-swiper-indicator__wrapper--line__bar.data-v-f90a097d{width:22px;height:4px;border-radius:100px;background-color:#fff;transition:transform .3s}.u-swiper-indicator__wrapper__dot.data-v-f90a097d{width:5px;height:5px;border-radius:100px;margin:0 4px}.u-swiper-indicator__wrapper__dot--active.data-v-f90a097d{width:12px}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),r={props:{list:{type:Array,default:()=>e.defProps.swiper.list},indicator:{type:Boolean,default:()=>e.defProps.swiper.indicator},indicatorActiveColor:{type:String,default:()=>e.defProps.swiper.indicatorActiveColor},indicatorInactiveColor:{type:String,default:()=>e.defProps.swiper.indicatorInactiveColor},indicatorStyle:{type:[String,Object],default:()=>e.defProps.swiper.indicatorStyle},indicatorMode:{type:String,default:()=>e.defProps.swiper.indicatorMode},autoplay:{type:Boolean,default:()=>e.defProps.swiper.autoplay},current:{type:[String,Number],default:()=>e.defProps.swiper.current},currentItemId:{type:String,default:()=>e.defProps.swiper.currentItemId},interval:{type:[String,Number],default:()=>e.defProps.swiper.interval},duration:{type:[String,Number],default:()=>e.defProps.swiper.duration},circular:{type:Boolean,default:()=>e.defProps.swiper.circular},previousMargin:{type:[String,Number],default:()=>e.defProps.swiper.previousMargin},nextMargin:{type:[String,Number],default:()=>e.defProps.swiper.nextMargin},acceleration:{type:Boolean,default:()=>e.defProps.swiper.acceleration},displayMultipleItems:{type:Number,default:()=>e.defProps.swiper.displayMultipleItems},easingFunction:{type:String,default:()=>e.defProps.swiper.easingFunction},keyName:{type:String,default:()=>e.defProps.swiper.keyName},imgMode:{type:String,default:()=>e.defProps.swiper.imgMode},height:{type:[String,Number],default:()=>e.defProps.swiper.height},bgColor:{type:String,default:()=>e.defProps.swiper.bgColor},radius:{type:[String,Number],default:()=>e.defProps.swiper.radius},loading:{type:Boolean,default:()=>e.defProps.swiper.loading},showTitle:{type:Boolean,default:()=>e.defProps.swiper.showTitle}}};exports.props=r;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/u-swiper.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/u-swiper.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js"),t=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),o=require("../../libs/mixin/mixin.js"),n=require("../../libs/function/index.js"),r=require("../../libs/function/test.js"),d={name:"u-swiper",mixins:[i.mpMixin,o.mixin,t.props],data:()=>({currentIndex:0}),watch:{current(e,t){e!==t&&(this.currentIndex=e)}},emits:["click","change"],computed:{itemStyle(){return e=>{const t={};return this.nextMargin&&this.previousMargin&&(t.borderRadius=n.addUnit(this.radius),e!==this.currentIndex&&(t.transform="scale(0.92)")),t}}},methods:{addStyle:n.addStyle,addUnit:n.addUnit,testObject:r.test.object,testImage:r.test.image,getItemType(e){return"string"==typeof e?r.test.video(this.getSource(e))?"video":"image":"object"==typeof e&&this.keyName?e.type?"image"===e.type?"image":"video"===e.type?"video":"image":r.test.video(this.getSource(e))?"video":"image":void 0},getSource(e){return"string"==typeof e?e:"object"==typeof e&&this.keyName?e[this.keyName]:""},change(e){const{current:t}=e.detail;this.pauseVideo(this.currentIndex),this.currentIndex=t,this.$emit("change",e.detail)},pauseVideo(t){const i=this.getSource(this.list[t]);if(r.test.video(i)){e.index.createVideoContext(`video-${t}`,this).pause()}},getPoster:e=>"object"==typeof e&&e.poster?e.poster:"",clickHandler(e){this.$emit("click",e)}}};if(!Array){(e.resolveComponent("u-loading-icon")+e.resolveComponent("u-swiper-indicator"))()}Math||((()=>"../u-loading-icon/u-loading-icon.js")+(()=>"../u-swiper-indicator/u-swiper-indicator.js"))();const a=e._export_sfc(d,[["render",function(t,i,o,n,r,d){return e.e({a:t.loading},t.loading?{b:e.p({mode:"circle"})}:{c:e.f(t.list,((i,o,n)=>e.e({a:"image"===d.getItemType(i)},"image"===d.getItemType(i)?{b:d.getSource(i),c:t.imgMode,d:e.o((e=>d.clickHandler(o)),o),e:d.addUnit(t.height),f:d.addUnit(t.radius)}:{},{g:"video"===d.getItemType(i)},"video"===d.getItemType(i)?{h:`video-${o}`,i:d.getSource(i),j:d.getPoster(i),k:t.showTitle&&d.testObject(i)&&i.title?i.title:"",l:d.addUnit(t.height),m:e.o((e=>d.clickHandler(o)),o)}:{},{n:t.showTitle&&d.testObject(i)&&i.title&&d.testImage(d.getSource(i))},t.showTitle&&d.testObject(i)&&i.title&&d.testImage(d.getSource(i))?{o:e.t(i.title)}:{},{p:e.s(d.itemStyle(o)),q:o}))),d:d.addUnit(t.height),e:e.o(((...e)=>d.change&&d.change(...e))),f:t.circular,g:t.interval,h:t.duration,i:t.autoplay,j:t.current,k:t.currentItemId,l:d.addUnit(t.previousMargin),m:d.addUnit(t.nextMargin),n:t.acceleration,o:t.displayMultipleItems,p:t.easingFunction},{q:!t.loading&&t.indicator&&!t.showTitle},t.loading||!t.indicator||t.showTitle?{}:{r:e.p({indicatorActiveColor:t.indicatorActiveColor,indicatorInactiveColor:t.indicatorInactiveColor,length:t.list.length,current:r.currentIndex,indicatorMode:t.indicatorMode})},{s:e.s(d.addStyle(t.indicatorStyle)),t:t.bgColor,v:d.addUnit(t.height),w:d.addUnit(t.radius)})}],["__scopeId","data-v-2aae6507"]]);wx.createComponent(a);
|
||||
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/u-swiper.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/u-swiper.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-loading-icon": "../u-loading-icon/u-loading-icon",
|
||||
"u-swiper-indicator": "../u-swiper-indicator/u-swiper-indicator"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/u-swiper.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/u-swiper.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="u-swiper data-v-2aae6507" style="{{'background-color:' + t + ';' + ('height:' + v) + ';' + ('border-radius:' + w)}}"><view wx:if="{{a}}" class="u-swiper__loading data-v-2aae6507"><u-loading-icon wx:if="{{b}}" class="data-v-2aae6507" u-i="2aae6507-0" bind:__l="__l" u-p="{{b}}"></u-loading-icon></view><swiper wx:else class="u-swiper__wrapper data-v-2aae6507" style="{{'flex:' + '1' + ';' + ('height:' + d)}}" bindchange="{{e}}" circular="{{f}}" interval="{{g}}" duration="{{h}}" autoplay="{{i}}" current="{{j}}" currentItemId="{{k}}" previousMargin="{{l}}" nextMargin="{{m}}" acceleration="{{n}}" displayMultipleItems="{{o}}" easingFunction="{{p}}"><swiper-item wx:for="{{c}}" wx:for-item="item" wx:key="q" class="u-swiper__wrapper__item data-v-2aae6507"><view class="u-swiper__wrapper__item__wrapper data-v-2aae6507" style="{{item.p}}"><image wx:if="{{item.a}}" class="u-swiper__wrapper__item__wrapper__image data-v-2aae6507" src="{{item.b}}" mode="{{item.c}}" bindtap="{{item.d}}" style="{{'height:' + item.e + ';' + ('border-radius:' + item.f)}}"></image><video wx:if="{{item.g}}" class="u-swiper__wrapper__item__wrapper__video data-v-2aae6507" id="{{item.h}}" enable-progress-gesture="{{false}}" src="{{item.i}}" poster="{{item.j}}" title="{{item.k}}" style="{{'height:' + item.l}}" controls bindtap="{{item.m}}"></video><text wx:if="{{item.n}}" class="u-swiper__wrapper__item__wrapper__title u-line-1 data-v-2aae6507">{{item.o}}</text></view></swiper-item></swiper><view class="u-swiper__indicator data-v-2aae6507" style="{{s}}"><block wx:if="{{$slots.indicator}}"><slot name="indicator"></slot></block><block wx:else><u-swiper-indicator wx:if="{{q}}" class="data-v-2aae6507" u-i="2aae6507-1" bind:__l="__l" u-p="{{r}}"></u-swiper-indicator></block></view></view>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/u-swiper.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-swiper/u-swiper.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-2aae6507,.u-empty__wrap.data-v-2aae6507,.u-tabs.data-v-2aae6507,.u-tabs__wrapper.data-v-2aae6507,.u-tabs__wrapper__scroll-view-wrapper.data-v-2aae6507,.u-tabs__wrapper__scroll-view.data-v-2aae6507,.u-tabs__wrapper__nav.data-v-2aae6507,.u-tabs__wrapper__nav__line.data-v-2aae6507{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-swiper__wrapper.data-v-2aae6507{flex:1}.u-swiper.data-v-2aae6507{display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative;overflow:hidden}.u-swiper__wrapper.data-v-2aae6507,.u-swiper__wrapper__item.data-v-2aae6507{flex:1}.u-swiper__wrapper__item__wrapper.data-v-2aae6507{display:flex;flex-direction:row;position:relative;overflow:hidden;transition:transform .3s;flex:1}.u-swiper__wrapper__item__wrapper__image.data-v-2aae6507,.u-swiper__wrapper__item__wrapper__video.data-v-2aae6507{flex:1}.u-swiper__wrapper__item__wrapper__title.data-v-2aae6507{position:absolute;background-color:rgba(0,0,0,.3);bottom:0;left:0;right:0;font-size:28rpx;padding:12rpx 24rpx;color:#fff;flex:1}.u-swiper__indicator.data-v-2aae6507{position:absolute;bottom:10px}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),t={props:{type:{type:String,default:()=>e.defProps.tag.type},disabled:{type:[Boolean,String],default:()=>e.defProps.tag.disabled},size:{type:String,default:()=>e.defProps.tag.size},shape:{type:String,default:()=>e.defProps.tag.shape},text:{type:[String,Number],default:()=>e.defProps.tag.text},bgColor:{type:String,default:()=>e.defProps.tag.bgColor},color:{type:String,default:()=>e.defProps.tag.color},borderColor:{type:String,default:()=>e.defProps.tag.borderColor},closeColor:{type:String,default:()=>e.defProps.tag.closeColor},name:{type:[String,Number],default:()=>e.defProps.tag.name},plainFill:{type:Boolean,default:()=>e.defProps.tag.plainFill},plain:{type:Boolean,default:()=>e.defProps.tag.plain},closable:{type:Boolean,default:()=>e.defProps.tag.closable},show:{type:Boolean,default:()=>e.defProps.tag.show},icon:{type:String,default:()=>e.defProps.tag.icon},iconColor:{type:String,default:()=>e.defProps.tag.iconColor}}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/u-tag.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/u-tag.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),o=require("../../libs/mixin/mixin.js"),t=require("../../libs/function/test.js"),s=require("../../../../common/vendor.js"),n={name:"u-tag",mixins:[i.mpMixin,o.mixin,e.props],data:()=>({}),computed:{style(){const e={};return this.bgColor&&(e.backgroundColor=this.bgColor),this.color&&(e.color=this.color),this.borderColor&&(e.borderColor=this.borderColor),e},textColor(){const e={};return this.color&&(e.color=this.color),e},imgStyle(){const e="large"===this.size?"17px":"medium"===this.size?"15px":"13px";return{width:e,height:e}},closeSize(){return"large"===this.size?15:"medium"===this.size?13:12},iconSize(){return"large"===this.size?21:"medium"===this.size?19:16},elIconColor(){return this.iconColor?this.iconColor:this.plain?this.type:"#ffffff"}},emits:["click","close"],methods:{testImage:t.test.image,closeHandler(){this.$emit("close",this.name)},clickHandler(){this.$emit("click",this.name)}}};if(!Array){(s.resolveComponent("u-icon")+s.resolveComponent("u-transition"))()}Math||((()=>"../u-icon/u-icon.js")+(()=>"../u-transition/u-transition.js"))();const r=s._export_sfc(n,[["render",function(e,i,o,t,n,r){return s.e({a:e.icon},e.icon?s.e({b:r.testImage(e.icon)},r.testImage(e.icon)?{c:e.icon,d:s.s(r.imgStyle)}:{e:s.p({color:r.elIconColor,name:e.icon,size:r.iconSize})}):{},{f:s.t(e.text),g:s.s(r.textColor),h:s.n(`u-tag__text--${e.type}`),i:s.n(e.plain&&`u-tag__text--${e.type}--plain`),j:s.n(`u-tag__text--${e.size}`),k:s.n(`u-tag--${e.shape}`),l:s.n(!e.plain&&`u-tag--${e.type}`),m:s.n(e.plain&&`u-tag--${e.type}--plain`),n:s.n(`u-tag--${e.size}`),o:s.n(e.plain&&e.plainFill&&`u-tag--${e.type}--plain--fill`),p:s.o(((...e)=>r.clickHandler&&r.clickHandler(...e))),q:s.s({marginRight:e.closable?"10px":0,marginTop:e.closable?"10px":0}),r:s.s(r.style),s:e.closable},e.closable?{t:s.p({name:"close",size:r.closeSize,color:"#ffffff"}),v:s.n(`u-tag__close--${e.size}`),w:s.o(((...e)=>r.closeHandler&&r.closeHandler(...e))),x:e.closeColor}:{},{y:s.p({mode:"fade",show:e.show})})}],["__scopeId","data-v-6108dc0d"]]);wx.createComponent(r);
|
||||
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/u-tag.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/u-tag.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon",
|
||||
"u-transition": "../u-transition/u-transition"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/u-tag.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/u-tag.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<u-transition wx:if="{{y}}" class="data-v-6108dc0d" u-s="{{['d']}}" style="display:inline-flex" u-i="6108dc0d-0" bind:__l="__l" u-p="{{y}}"><view class="u-tag-wrapper cursor-pointer data-v-6108dc0d"><view class="{{['u-tag', 'data-v-6108dc0d', k, l, m, n, o]}}" catchtap="{{p}}" style="{{q + ';' + r}}"><block wx:if="{{$slots.icon}}"><slot name="icon"></slot></block><block wx:else><view wx:if="{{a}}" class="u-tag__icon data-v-6108dc0d"><image wx:if="{{b}}" class="data-v-6108dc0d" src="{{c}}" style="{{d}}"></image><u-icon wx:else class="data-v-6108dc0d" u-i="6108dc0d-1,6108dc0d-0" bind:__l="__l" u-p="{{e||''}}"></u-icon></view></block><text style="{{g}}" class="{{['u-tag__text', 'data-v-6108dc0d', h, i, j]}}">{{f}}</text></view><view wx:if="{{s}}" class="{{['u-tag__close', 'data-v-6108dc0d', v]}}" catchtap="{{w}}" style="{{'background-color:' + x}}"><u-icon wx:if="{{t}}" class="data-v-6108dc0d" u-i="6108dc0d-2,6108dc0d-0" bind:__l="__l" u-p="{{t}}"></u-icon></view></view></u-transition>
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/u-tag.wxss
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-tag/u-tag.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-6108dc0d,.u-empty__wrap.data-v-6108dc0d,.u-tabs.data-v-6108dc0d,.u-tabs__wrapper.data-v-6108dc0d,.u-tabs__wrapper__scroll-view-wrapper.data-v-6108dc0d,.u-tabs__wrapper__scroll-view.data-v-6108dc0d,.u-tabs__wrapper__nav.data-v-6108dc0d,.u-tabs__wrapper__nav__line.data-v-6108dc0d{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-tag-wrapper.data-v-6108dc0d{position:relative}.u-tag.data-v-6108dc0d{display:flex;flex-direction:row;align-items:center;border-style:solid}.u-tag--circle.data-v-6108dc0d{border-radius:100px}.u-tag--square.data-v-6108dc0d{border-radius:3px}.u-tag__icon.data-v-6108dc0d{margin-right:4px}.u-tag__text--mini.data-v-6108dc0d{font-size:12px;line-height:12px}.u-tag__text--medium.data-v-6108dc0d{font-size:13px;line-height:13px}.u-tag__text--large.data-v-6108dc0d{font-size:15px;line-height:15px}.u-tag--mini.data-v-6108dc0d{height:22px;line-height:22px;padding:0 5px}.u-tag--medium.data-v-6108dc0d{height:26px;line-height:22px;padding:0 10px}.u-tag--large.data-v-6108dc0d{height:32px;line-height:32px;padding:0 15px}.u-tag--primary.data-v-6108dc0d{background-color:#3c9cff;border-width:1px;border-color:#3c9cff}.u-tag--primary--plain.data-v-6108dc0d{border-width:1px;border-color:#3c9cff}.u-tag--primary--plain--fill.data-v-6108dc0d{background-color:#ecf5ff}.u-tag__text--primary.data-v-6108dc0d{color:#fff}.u-tag__text--primary--plain.data-v-6108dc0d{color:#3c9cff}.u-tag--error.data-v-6108dc0d{background-color:#f56c6c;border-width:1px;border-color:#f56c6c}.u-tag--error--plain.data-v-6108dc0d{border-width:1px;border-color:#f56c6c}.u-tag--error--plain--fill.data-v-6108dc0d{background-color:#fef0f0}.u-tag__text--error.data-v-6108dc0d{color:#fff}.u-tag__text--error--plain.data-v-6108dc0d{color:#f56c6c}.u-tag--warning.data-v-6108dc0d{background-color:#f9ae3d;border-width:1px;border-color:#f9ae3d}.u-tag--warning--plain.data-v-6108dc0d{border-width:1px;border-color:#f9ae3d}.u-tag--warning--plain--fill.data-v-6108dc0d{background-color:#fdf6ec}.u-tag__text--warning.data-v-6108dc0d{color:#fff}.u-tag__text--warning--plain.data-v-6108dc0d{color:#f9ae3d}.u-tag--success.data-v-6108dc0d{background-color:#5ac725;border-width:1px;border-color:#5ac725}.u-tag--success--plain.data-v-6108dc0d{border-width:1px;border-color:#5ac725}.u-tag--success--plain--fill.data-v-6108dc0d{background-color:#f5fff0}.u-tag__text--success.data-v-6108dc0d{color:#fff}.u-tag__text--success--plain.data-v-6108dc0d{color:#5ac725}.u-tag--info.data-v-6108dc0d{background-color:#909399;border-width:1px;border-color:#909399}.u-tag--info--plain.data-v-6108dc0d{border-width:1px;border-color:#909399}.u-tag--info--plain--fill.data-v-6108dc0d{background-color:#f4f4f5}.u-tag__text--info.data-v-6108dc0d{color:#fff}.u-tag__text--info--plain.data-v-6108dc0d{color:#909399}.u-tag__close.data-v-6108dc0d{position:absolute;z-index:999;top:10px;right:10px;border-radius:100px;background-color:#c6c7cb;display:flex;flex-direction:row;align-items:center;justify-content:center;transform:scale(.6) translate(80%,-80%)}.u-tag__close--mini.data-v-6108dc0d{width:18px;height:18px}.u-tag__close--medium.data-v-6108dc0d{width:22px;height:22px}.u-tag__close--large.data-v-6108dc0d{width:25px;height:25px}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-text/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-text/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../libs/config/props.js"),t={props:{type:{type:String,default:()=>e.defProps.text.type},show:{type:Boolean,default:()=>e.defProps.text.show},text:{type:[String,Number],default:()=>e.defProps.text.text},prefixIcon:{type:String,default:()=>e.defProps.text.prefixIcon},suffixIcon:{type:String,default:()=>e.defProps.text.suffixIcon},mode:{type:String,default:()=>e.defProps.text.mode},href:{type:String,default:()=>e.defProps.text.href},format:{type:[String,Function],default:()=>e.defProps.text.format},call:{type:Boolean,default:()=>e.defProps.text.call},openType:{type:String,default:()=>e.defProps.text.openType},bold:{type:Boolean,default:()=>e.defProps.text.bold},block:{type:Boolean,default:()=>e.defProps.text.block},lines:{type:[String,Number],default:()=>e.defProps.text.lines},color:{type:String,default:()=>e.defProps.text.color},size:{type:[String,Number],default:()=>e.defProps.text.size},iconStyle:{type:[Object,String],default:()=>e.defProps.text.iconStyle},decoration:{tepe:String,default:()=>e.defProps.text.decoration},margin:{type:[Object,String,Number],default:()=>e.defProps.text.margin},lineHeight:{type:[String,Number],default:()=>e.defProps.text.lineHeight},align:{type:String,default:()=>e.defProps.text.align},wordWrap:{type:String,default:()=>e.defProps.text.wordWrap}}};exports.props=t;
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-text/u-text.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-text/u-text.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js"),n=require("./props.js"),t=require("./value.js"),i=require("../../libs/mixin/mpMixin.js"),o=require("../../libs/mixin/mixin.js"),s=require("../../libs/mixin/button.js"),l=require("../../libs/mixin/openType.js"),r=require("../../libs/function/index.js"),a={name:"u--text",mixins:[i.mpMixin,o.mixin,t.value,s.button,l.openType,n.props],emits:["click"],computed:{valueStyle(){const e={textDecoration:this.decoration,fontWeight:this.bold?"bold":"normal",wordWrap:this.wordWrap,fontSize:r.addUnit(this.size)};return!this.type&&(e.color=this.color),this.isNvue&&this.lines&&(e.lines=this.lines),this.lineHeight&&(e.lineHeight=r.addUnit(this.lineHeight)),!this.isNvue&&this.block&&(e.display="block"),r.deepMerge(e,r.addStyle(this.customStyle))},isNvue:()=>!1,isMp(){let e=!1;return e=!0,true}},data:()=>({}),methods:{addStyle:r.addStyle,clickHandler(){this.call&&"phone"===this.mode&&e.index.makePhoneCall({phoneNumber:this.text}),this.$emit("click")}}};if(!Array){(e.resolveComponent("u-icon")+e.resolveComponent("u-link"))()}Math||((()=>"../u-icon/u-icon.js")+(()=>"../u-link/u-link.js"))();const u=e._export_sfc(a,[["render",function(n,t,i,o,s,l){return e.e({a:n.show},n.show?e.e({b:"price"===n.mode},"price"===n.mode?{c:e.n(n.type&&`u-text__value--${n.type}`),d:e.s(l.valueStyle)}:{},{e:n.prefixIcon},n.prefixIcon?{f:e.p({name:n.prefixIcon,customStyle:l.addStyle(n.iconStyle)})}:{},{g:"link"===n.mode},"link"===n.mode?{h:l.valueStyle.fontWeight,i:l.valueStyle.wordWrap,j:l.valueStyle.fontSize,k:e.n(n.type&&`u-text__value--${n.type}`),l:e.n(n.lines&&`u-line-${n.lines}`),m:e.p({text:n.value,href:n.href,underLine:!0})}:n.openType&&l.isMp?{o:e.t(n.value),p:e.s(l.valueStyle),q:n.index,r:n.openType,s:e.o(((...e)=>n.onGetUserInfo&&n.onGetUserInfo(...e))),t:e.o(((...e)=>n.onContact&&n.onContact(...e))),v:e.o(((...e)=>n.onGetPhoneNumber&&n.onGetPhoneNumber(...e))),w:e.o(((...e)=>n.onError&&n.onError(...e))),x:e.o(((...e)=>n.onLaunchApp&&n.onLaunchApp(...e))),y:e.o(((...e)=>n.onOpenSetting&&n.onOpenSetting(...e))),z:n.lang,A:n.sessionFrom,B:n.sendMessageTitle,C:n.sendMessagePath,D:n.sendMessageImg,E:n.showMessageCard,F:n.appParameter}:{G:e.t(n.value),H:e.s(l.valueStyle),I:e.n(n.type&&`u-text__value--${n.type}`),J:e.n(n.lines&&`u-line-${n.lines}`)},{n:n.openType&&l.isMp,K:n.suffixIcon},n.suffixIcon?{L:e.p({name:n.suffixIcon,customStyle:l.addStyle(n.iconStyle)})}:{},{M:n.margin,N:"left"===n.align?"flex-start":"center"===n.align?"center":"flex-end",O:e.o(((...e)=>l.clickHandler&&l.clickHandler(...e)))}):{})}],["__scopeId","data-v-50bdf3dd"]]);wx.createComponent(u);
|
||||
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-text/u-text.json
vendored
Normal file
7
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-text/u-text.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"u-icon": "../u-icon/u-icon",
|
||||
"u-link": "../u-link/u-link"
|
||||
}
|
||||
}
|
||||
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-text/u-text.wxml
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-text/u-text.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view wx:if="{{a}}" class="{{['u-text', 'data-v-50bdf3dd']}}" style="{{'margin:' + M + ';' + ('justify-content:' + N)}}" bindtap="{{O}}"><text wx:if="{{b}}" class="{{['data-v-50bdf3dd', 'u-text__price', c]}}" style="{{d}}">¥</text><view wx:if="{{e}}" class="u-text__prefix-icon data-v-50bdf3dd"><u-icon wx:if="{{f}}" class="data-v-50bdf3dd" u-i="50bdf3dd-0" bind:__l="__l" u-p="{{f}}"></u-icon></view><u-link wx:if="{{g}}" style="{{'font-weight:' + h + ';' + ('word-wrap:' + i) + ';' + ('font-size:' + j)}}" class="{{['u-text__value', 'data-v-50bdf3dd', k, l]}}" u-i="50bdf3dd-1" bind:__l="__l" u-p="{{m}}"></u-link><block wx:elif="{{n}}"><button class="u-reset-button u-text__value data-v-50bdf3dd" style="{{p}}" data-index="{{q}}" openType="{{r}}" bindgetuserinfo="{{s}}" bindcontact="{{t}}" bindgetphonenumber="{{v}}" binderror="{{w}}" bindlaunchapp="{{x}}" bindopensetting="{{y}}" lang="{{z}}" session-from="{{A}}" send-message-title="{{B}}" send-message-path="{{C}}" send-message-img="{{D}}" show-message-card="{{E}}" app-parameter="{{F}}">{{o}}</button></block><text wx:else style="{{H}}" class="{{['u-text__value', 'data-v-50bdf3dd', I, J]}}">{{G}}</text><view wx:if="{{K}}" class="u-text__suffix-icon data-v-50bdf3dd"><u-icon wx:if="{{L}}" class="data-v-50bdf3dd" u-i="50bdf3dd-2" bind:__l="__l" u-p="{{L}}"></u-icon></view></view>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user