2025/2/8第一次更新

This commit is contained in:
爱吃咸鱼小猫咪
2025-02-08 18:50:38 +08:00
commit d7af560866
26519 changed files with 5046029 additions and 0 deletions
@@ -0,0 +1 @@
"use strict";const e=require("../../../common/vendor.js"),t={name:"fui-section",emits:["click"],props:{title:{type:String,default:""},size:{type:[Number,String],default:0},lineHeight:{type:[Number,String],default:0},color:{type:String,default:""},fontWeight:{type:[Number,String],default:0},descr:{type:String,default:""},descrSize:{type:[Number,String],default:0},descrColor:{type:String,default:""},descrTop:{type:[Number,String],default:0},isLine:{type:Boolean,default:!1},lineWidth:{type:String,default:"2px"},lineColor:{type:String,default:""},lineCap:{type:String,default:"circle"},lineRight:{type:[Number,String],default:16},lineGap:{type:[Number,String],default:0},background:{type:String,default:"transparent"},padding:{type:Array,default:()=>["0","32rpx"]},marginTop:{type:[Number,String],default:0},marginBottom:{type:[Number,String],default:0}},computed:{getLineColor(){return this.lineColor},getLeft(){const e=Number(this.lineRight||0);return`${e>0?0:e}rpx`},getTitleStyle(){const t=e.index&&e.index.$fui&&e.index.$fui.fuiSection,i=this.size||t&&t.size||32,r=this.color||t&&t.color||"#181818",n=this.fontWeight||t&&t.fontWeight||600,l=Number(this.lineRight||0);let d=`font-size:${i}rpx;color:${r};font-weight:${n};padding-left:${l<=0||!this.isLine?0:l}rpx;`;return d+=`line-height:${0==this.lineHeight?i:this.lineHeight}rpx`,d},getDescrStyle(){const t=e.index&&e.index.$fui&&e.index.$fui.fuiSection;return`font-size:${this.descrSize||t&&t.descrSize||28}rpx;color:${this.descrColor||t&&t.descrColor||"#B2B2B2"};`},getDescrTop(){const t=e.index&&e.index.$fui&&e.index.$fui.fuiSection;return"padding-top:"+(this.descrTop||t&&t.descrTop||8)+"rpx;"}},methods:{handleClick(){this.$emit("click",{title:this.title})}}};const i=e._export_sfc(t,[["render",function(t,i,r,n,l,d){return e.e({a:r.isLine},r.isLine?{b:d.getLineColor?"":1,c:d.getLineColor,d:r.lineWidth,e:r.lineGap+"rpx",f:r.lineGap+"rpx",g:"circle"===r.lineCap?r.lineWidth:0,h:d.getLeft}:{},{i:r.title},r.title?{j:e.t(r.title),k:e.s(d.getTitleStyle)}:{},{l:e.o(((...e)=>d.handleClick&&d.handleClick(...e))),m:r.descr},r.descr?{n:e.t(r.descr),o:e.s(d.getDescrStyle),p:e.s(d.getDescrTop)}:{},{q:r.marginTop+"rpx",r:r.marginBottom+"rpx",s:r.background,t:r.padding[0]||0,v:r.padding[1]||0,w:r.padding[2]||r.padding[0]||0,x:r.padding[3]||r.padding[1]||0})}],["__scopeId","data-v-f9a596e1"]]);wx.createComponent(i);
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view style="{{'margin-top:' + q + ';' + ('margin-bottom:' + r) + ';' + ('background:' + s) + ';' + ('padding-top:' + t) + ';' + ('padding-right:' + v) + ';' + ('padding-bottom:' + w) + ';' + ('padding-left:' + x) + ';' + virtualHostStyle}}" class="{{['fui-sections__wrap', 'data-v-f9a596e1', virtualHostClass]}}"><view class="fui-sections__title data-v-f9a596e1" bindtap="{{l}}"><view wx:if="{{a}}" class="{{['fui-sections__line', 'data-v-f9a596e1', b && 'fui-sections__line-color']}}" style="{{'background:' + c + ';' + ('width:' + d) + ';' + ('top:' + e) + ';' + ('bottom:' + f) + ';' + ('border-radius:' + g) + ';' + ('left:' + h)}}"></view><slot></slot><text wx:if="{{i}}" class="fui-sections__title-text data-v-f9a596e1" style="{{k}}">{{j}}</text><slot name="right"></slot></view><view wx:if="{{m}}" class="fui-sections__descr data-v-f9a596e1" style="{{p}}"><text class="fui-sections__descr-text data-v-f9a596e1" style="{{o}}">{{n}}</text></view><slot name="descr"></slot></view>
@@ -0,0 +1 @@
.fui-sections__wrap.data-v-f9a596e1{width:100%;box-sizing:border-box}.fui-sections__title.data-v-f9a596e1{position:relative;display:flex;word-break:break-all;flex-shrink:0;flex-direction:row;align-items:center}.fui-sections__title-text.data-v-f9a596e1{word-break:break-all}.fui-sections__line.data-v-f9a596e1{position:absolute;left:0}.fui-sections__descr.data-v-f9a596e1{word-break:break-all}.fui-sections__descr-text.data-v-f9a596e1{word-break:break-all;font-weight:400}.fui-sections__line-color.data-v-f9a596e1{background:var(--fui-color-primary, #465CFF)!important}