officialAccount/unpackage/dist/build/web/assets/u-modal.BB9A0sdf.js

2 lines
15 KiB
JavaScript
Raw Permalink Normal View History

2025-06-13 13:42:14 +08:00
import{o as e,c as t,n as o,d as l,e as i,i as s,w as a,Y as n,k as r,b as u,x as c,g as d,h,Q as m,a as p,S as y,t as f,F as g}from"./index-DaJpSunw.js";import{_ as b}from"./_plugin-vue_export-helper.BCo6x5W8.js";import{r as S}from"./uni-app.es.ClZiJTbk.js";const k=b({name:"u-loading",props:{mode:{type:String,default:"circle"},color:{type:String,default:"#c7c7c7"},size:{type:[String,Number],default:"34"},show:{type:Boolean,default:!0}},computed:{cricleStyle(){let e={};return e.width=this.size+"rpx",e.height=this.size+"rpx","circle"==this.mode&&(e.borderColor=`#e4e4e4 #e4e4e4 #e4e4e4 ${this.color?this.color:"#c7c7c7"}`),e}}},[["render",function(a,n,r,u,c,d){const h=s;return r.show?(e(),t(h,{key:0,class:o(["u-loading","circle"==r.mode?"u-loading-circle":"u-loading-flower"]),style:l([d.cricleStyle])},null,8,["class","style"])):i("",!0)}],["__scopeId","data-v-ae8dd367"]]);const C=b({name:"u-mask",emits:["click"],props:{show:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:""},customStyle:{type:Object,default:()=>({})},zoom:{type:Boolean,default:!0},duration:{type:[Number,String],default:300},maskClickAble:{type:Boolean,default:!0},blur:{type:[Number,String],default:0}},data:()=>({zoomStyle:{transform:""},scale:"scale(1.2, 1.2)"}),watch:{show(e){e&&this.zoom?this.zoomStyle.transform="scale(1, 1)":!e&&this.zoom&&(this.zoomStyle.transform=this.scale)}},computed:{maskStyle(){let e={backgroundColor:"rgba(0, 0, 0, 0.6)"};return this.show?e.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.mask:e.zIndex=-1,e.transition=`all ${this.duration/1e3}s ease-in-out`,Object.keys(this.customStyle).length&&(e={...e,...this.customStyle}),e},filterStyle(){let{blur:e}=this,t={};return e&&(t.backdropFilter=`blur(${e}rpx)`),t}},methods:{click(){this.maskClickAble&&this.$emit("click")}}},[["render",function(i,u,c,d,h,m){const p=s;return e(),t(p,{class:o(["u-mask",{"u-mask-zoom":c.zoom,"u-mask-show":c.show}]),"hover-stop-propagation":"",style:l([m.maskStyle,h.zoomStyle,m.filterStyle]),onClick:m.click,onTouchmove:r((()=>{}),["stop","prevent"])},{default:a((()=>[n(i.$slots,"default",{},void 0,!0)])),_:3},8,["style","onClick","class"])}],["__scopeId","data-v-005d3602"]]);const _=b({name:"u-icon",emits:["click","touchstart"],props:{name:{type:String,default:""},color:{type:[String,null],default:""},size:{type:[Number,String],default:"inherit"},bold:{type:Boolean,default:!1},index:{type:[Number,String],default:""},hoverClass:{type:String,default:""},customPrefix:{type:String,default:"uicon"},label:{type:[String,Number],default:""},labelPos:{type:String,default:"right"},labelSize:{type:[String,Number],default:"28"},labelColor:{type:String,default:"#606266"},marginLeft:{type:[String,Number],default:"6"},marginTop:{type:[String,Number],default:"6"},marginRight:{type:[String,Number],default:"6"},marginBottom:{type:[String,Number],default:"6"},imgMode:{type:String,default:"widthFix"},customStyle:{type:Object,default:()=>({})},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""},top:{type:[String,Number],default:0},showDecimalIcon:{type:Boolean,default:!1},inactiveColor:{type:String,default:"#ececec"},percent:{type:[Number,String],default:"50"}},computed:{customClass(){let e=[],{customPrefix:t,name:o}=this,l=o.indexOf("-icon-");return l>-1?(t=o.substring(0,l+5),e.push(o)):e.push(`${t}-${o}`),"uicon"===t?e.push("u-iconfont"):e.push(t),this.showDecimalIcon&&this.inactiveColor&&this.$u.config.type.includes(this.inactiveColor)?e.push("u-icon__icon--"+this.inactiveColor):this.color&&this.$u.config.type.includes(this.color)&&e.push("u-icon__icon--"+this.color),e},iconStyle(){let e={};return e={fontSize:"inherit"==this.size?"inherit":this.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:this.$u.addUnit(this.top)},this.showDecimalIcon&&this.inactiveColor&&!this.$u.config.type.includes(this.inactiveColor)?e.color=this.inactiveColor:this.color&&!this.$u.config.type.includes(this.color)&&(e.color=this.color),e},isImg(){return-1!==this.name.indexOf("/")},imgStyle(){let e={};return e.width=this.width?this.$u.addUnit(thi