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-progress",emits:["activeend"],props:{percent:{type:[Number,String],default:0},height:{type:[Number,String],default:8},radius:{type:[Number,String],default:8},showInfo:{type:Boolean,default:!1},size:{type:[Number,String],default:28},color:{type:String,default:"#333"},percentWidth:{type:[Number,String],default:96},background:{type:String,default:"#CCCCCC"},activeColor:{type:String,default:""},duration:{type:[Number,String],default:15}},watch:{percent(e){this.darwProgress()}},mounted(){this.$nextTick((()=>{this.darwProgress()}))},computed:{getActiveColor(){return this.activeColor}},data:()=>({percentage:0,translateX:"-100%",time:0}),methods:{darwProgress(){let e=Number(this.percent);e=e>100?100:e,this.time=Number(this.duration)*Math.abs(e-this.percentage)/1e3,e<this.percentage&&this.percentage-e>30&&(this.time=this.time/2),this.percentage=e,this.translateX=100-e+"%",setTimeout((()=>{this.$emit("activeend",{})}),this.time)}}};const r=e._export_sfc(t,[["render",function(t,r,i,a,n,s){return e.e({a:i.activeColor?"":1,b:s.getActiveColor,c:`translate3d(-${n.translateX},0,0)`,d:`${n.time}s`,e:i.height+"rpx",f:i.radius+"rpx",g:i.background,h:i.showInfo},i.showInfo?{i:e.t(n.percentage),j:i.percentWidth+"rpx",k:i.size+"rpx",l:i.color}:{})}],["__scopeId","data-v-6f0bbc93"]]);wx.createComponent(r);
@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}
@@ -0,0 +1 @@
<view class="{{['fui-progress__wrap', 'data-v-6f0bbc93', virtualHostClass]}}" style="{{virtualHostStyle}}"><view class="fui-progress__bar-bg data-v-6f0bbc93" style="{{'height:' + e + ';' + ('border-radius:' + f) + ';' + ('background:' + g)}}"><view class="{{['fui-progress__bar', 'data-v-6f0bbc93', a && 'fui-progress__active-color']}}" style="{{'background:' + b + ';' + ('transform:' + c) + ';' + ('transition-duration:' + d)}}"></view></view><text wx:if="{{h}}" class="fui-progress__percent data-v-6f0bbc93" style="{{'width:' + j + ';' + ('font-size:' + k) + ';' + ('color:' + l)}}">{{i}}% </text></view>
@@ -0,0 +1 @@
.fui-progress__wrap.data-v-6f0bbc93{width:100%;display:flex;flex-direction:row;align-items:center}.fui-progress__bar-bg.data-v-6f0bbc93{width:100%;transform:translateZ(0);flex:1;position:relative;overflow:hidden}.fui-progress__bar.data-v-6f0bbc93{width:100%;z-index:2;position:absolute;left:0;right:0;top:0;bottom:0;transform:translate3d(-100%,0,0);transition-delay:0s;transition-property:transform;transition-timing-function:linear;transition-duration:0s}.fui-progress__percent.data-v-6f0bbc93{text-align:center;display:block;flex-shrink:0}.fui-progress__active-color.data-v-6f0bbc93{background:var(--fui-color-primary, #465CFF)!important}