bindbox-game/build/resources/admin/assets/el-alert-BBo7e8Ze.js
邹方成 6ee627139c
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 40s
feat: 新增支付测试小程序与微信支付集成
feat(pay): 添加支付API基础结构
feat(miniapp): 创建支付测试小程序页面与配置
feat(wechatpay): 配置微信支付参数与证书
fix(guild): 修复成员列表查询条件
docs: 更新代码规范文档与需求文档
style: 统一前后端枚举显示与注释格式
refactor(admin): 重构用户奖励发放接口参数处理
test(title): 添加称号效果参数验证测试
2025-11-17 00:42:08 +08:00

2 lines
2.5 KiB
JavaScript

var e=Object.defineProperty,s=Object.defineProperties,t=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,i=(s,t,a)=>t in s?e(s,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):s[t]=a,r=(e,s)=>{for(var t in s||(s={}))o.call(s,t)&&i(e,t,s[t]);if(a)for(var t of a(s))l.call(s,t)&&i(e,t,s[t]);return e},c=(e,a)=>s(e,t(a));import{a6 as n,a2 as p,c_ as f,cF as d,_ as u,d as y,bs as b,X as v,a as m,c as h,ao as g,bG as k,y as w,f as O,z as j,J as C,h as A,i as _,u as x,k as S,ab as P,j as $,au as E,e as B,l as I,m as T,F,p as z,cC as D,ac as G,Z as J,ap as N}from"./index-DBHnxsy6.js";import{c as X,d as Z}from"./index-B99ckkYy.js";const q=p(c(r({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:f(d),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:["light","dark"],default:"light"}},X),{showAfter:Number})),H={open:()=>!0,close:e=>n(e)||e instanceof Event},K=y({name:"ElAlert"});const L=N(u(y(c(r({},K),{props:q,emits:H,setup(e,{emit:s}){const t=e,{Close:a}=D,o=b(),l=v("alert"),i=m(n(t.showAfter)),r=h(()=>d[t.type]),c=h(()=>!(!t.description&&!o.default)),p=e=>{i.value=!1,s("close",e)},{onOpen:f,onClose:u}=Z({showAfter:g(t,"showAfter",0),hideAfter:g(t,"hideAfter"),autoClose:g(t,"autoClose"),open:()=>{i.value=!0,s("open")},close:p});return k&&f(),(e,s)=>(O(),w(J,{name:x(l).b("fade"),persisted:""},{default:j(()=>[C(A("div",{class:_([x(l).b(),x(l).m(e.type),x(l).is("center",e.center),x(l).is(e.effect)]),role:"alert"},[e.showIcon&&(e.$slots.icon||x(r))?(O(),w(x(P),{key:0,class:_([x(l).e("icon"),{[x(l).is("big")]:x(c)}])},{default:j(()=>[$(e.$slots,"icon",{},()=>[(O(),w(E(x(r))))])]),_:3},8,["class"])):S("v-if",!0),A("div",{class:_(x(l).e("content"))},[e.title||e.$slots.title?(O(),B("span",{key:0,class:_([x(l).e("title"),{"with-description":x(c)}])},[$(e.$slots,"title",{},()=>[I(T(e.title),1)])],2)):S("v-if",!0),x(c)?(O(),B("p",{key:1,class:_(x(l).e("description"))},[$(e.$slots,"default",{},()=>[I(T(e.description),1)])],2)):S("v-if",!0),e.closable?(O(),B(F,{key:2},[e.closeText?(O(),B("div",{key:0,class:_([x(l).e("close-btn"),x(l).is("customed")]),onClick:p},T(e.closeText),3)):(O(),w(x(P),{key:1,class:_(x(l).e("close-btn")),onClick:x(u)},{default:j(()=>[z(x(a))]),_:1},8,["class","onClick"]))],64)):S("v-if",!0)],2)],2),[[G,i.value]])]),_:3},8,["name"]))}})),[["__file","alert.vue"]]));export{L as E};