first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:09:02 +08:00
commit dac42e3b0c
3512 changed files with 181637 additions and 0 deletions

View 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;

View 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);

View File

@@ -0,0 +1,7 @@
{
"component": true,
"usingComponents": {
"u-icon": "../u-icon/u-icon",
"u-line": "../u-line/u-line"
}
}

View 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>

View 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}