Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 40s
feat(pay): 添加支付API基础结构 feat(miniapp): 创建支付测试小程序页面与配置 feat(wechatpay): 配置微信支付参数与证书 fix(guild): 修复成员列表查询条件 docs: 更新代码规范文档与需求文档 style: 统一前后端枚举显示与注释格式 refactor(admin): 重构用户奖励发放接口参数处理 test(title): 添加称号效果参数验证测试
2 lines
6.1 KiB
JavaScript
2 lines
6.1 KiB
JavaScript
var e=Object.defineProperty,a=Object.defineProperties,t=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,o=(a,t,s)=>t in a?e(a,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[t]=s,i=(e,a)=>{for(var t in a||(a={}))r.call(a,t)&&o(e,t,a[t]);if(s)for(var t of s(a))l.call(a,t)&&o(e,t,a[t]);return e};import{d as n,cL as p,v as d,c as u,aQ as m,d4 as c,cM as f,a as b,t as h,E as y,e as j,f as x,p as v,z as g,u as k,F as E,G as _,y as w,j as B,au as O,Y as V,c1 as P,k as S,h as L,g as C,J as M,l as R,m as W,ab as $,d5 as F,d6 as I,i as U}from"./index-DBHnxsy6.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{c as Y,E as q,a as z,b as A,d as D,e as G}from"./tree-select-DNitEO0k.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{E as J}from"./slider-CFh6w1Nh.js";import{E as Q}from"./index-BIIDnOvF.js";import{E as T}from"./index-B5f0OwDI.js";import{a as H,E as K}from"./index-zIv9y_XZ.js";import{a as N,E as X}from"./index-CHZ9Ls9_.js";import{E as Z,a as ee}from"./index-DKaQAdbW.js";import{b as ae,a as te}from"./index-Ceepcot3.js";import{E as se}from"./index-r0EsCkBw.js";import{E as re}from"./index-cuvv_mxy.js";import{E as le}from"./index-CS6jHv1e.js";import{E as oe}from"./index-CxsIPycV.js";import{E as ie}from"./index-B4jq9Ja2.js";import{E as ne}from"./index-qSQlj0RO.js";import{_ as pe}from"./_plugin-vue_export-helper-BCo6x5W8.js";const de={class:"form-buttons"},ue={class:"icon-wrapper"};var me,ce;const fe=pe(n((me=i({},{name:"ArtSearchBar"}),ce={__name:"index",props:p({items:{default:()=>[]},span:{default:6},gutter:{default:12},isExpand:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!1},labelPosition:{default:"right"},labelWidth:{default:"70px"},showExpand:{type:Boolean,default:!0},buttonLeftLimit:{default:2},showReset:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},disabledSearch:{type:Boolean,default:!1}},{modelValue:{default:{}},modelModifiers:{}}),emits:p(["reset","search"],["update:modelValue"]),setup(e,{expose:a,emit:t}){const s={input:ne,inputTag:G,number:ie,select:X,switch:oe,checkbox:Z,checkboxgroup:ee,radiogroup:te,date:le,daterange:le,datetime:le,datetimerange:le,rate:D,slider:J,cascader:re,timepicker:A,timeselect:z,treeselect:q},{width:r}=m(),{t:l}=d(),o=u(()=>r.value<500),n=c("formRef"),p=e,pe=t,me=f(e,"modelValue"),ce=b(p.defaultExpanded),fe=["label","labelWidth","key","type","hidden","span","slots"],be=e=>{if(e.props)return e.props;const a=i({},e);return fe.forEach(e=>delete a[e]),a},he=e=>{if(!e.slots)return{};const a={};return Object.entries(e.slots).forEach(([e,t])=>{t&&(a[e]=t)}),a},ye=(e,a)=>Y(e,Be.value,a),je=e=>{if(e.render)return e.render;const{type:a}=e;return s[a]||s.input},xe=u(()=>{const e=p.items.filter(e=>!e.hidden);if(!p.isExpand&&!ce.value){const a=Math.floor(24/p.span)-1;return e.slice(0,a)}return e}),ve=u(()=>{const e=p.items.filter(e=>!e.hidden);return!p.isExpand&&p.showExpand&&e.length>Math.floor(24/p.span)-1}),ge=u(()=>ce.value?l("table.searchBar.collapse"):l("table.searchBar.expand")),ke=u(()=>({"justify-content":o.value?"flex-end":p.items.filter(e=>!e.hidden).length<=p.buttonLeftLimit?"flex-start":"flex-end"})),Ee=()=>{ce.value=!ce.value},_e=()=>{var e;null==(e=n.value)||e.resetFields(),Object.assign(me.value,Object.fromEntries(p.items.map(({key:e})=>[e,void 0]))),pe("reset")},we=()=>{pe("search")};a({ref:n,validate:(...e)=>{var a;return null==(a=n.value)?void 0:a.validate(...e)},reset:_e});const{span:Be,gutter:Oe,labelPosition:Ve,labelWidth:Pe}=h(p);return(a,t)=>{const s=N,r=ae,o=H,n=T,p=se,d=$,u=Q,m=K,c=y("ripple");return x(),j("section",{class:U(["art-search-bar art-card-sm",{"is-expanded":k(ce)}])},[v(m,V({ref:"formRef",model:me.value,"label-position":k(Ve)},i({},a.$attrs)),{default:g(()=>[v(u,{gutter:k(Oe)},{default:g(()=>[(x(!0),j(E,null,_(k(xe),e=>(x(),w(n,{key:e.key,xs:ye(e.span,"xs"),sm:ye(e.span,"sm"),md:ye(e.span,"md"),lg:ye(e.span,"lg"),xl:ye(e.span,"xl")},{default:g(()=>[v(o,{label:e.label,prop:e.key,"label-width":e.label?e.labelWidth||k(Pe):void 0},{default:g(()=>[B(a.$slots,e.key,{item:e,modelValue:me.value},()=>[(x(),w(O(je(e)),V({modelValue:me.value[e.key],"onUpdate:modelValue":a=>me.value[e.key]=a},{ref_for:!0},be(e)),P({default:g(()=>{var a,t,l;return["select"===e.type&&(null==(a=be(e))?void 0:a.options)?(x(!0),j(E,{key:0},_(be(e).options,e=>(x(),w(s,V({ref_for:!0},e,{key:e.value}),null,16))),128)):S("",!0),"checkboxgroup"===e.type&&(null==(t=be(e))?void 0:t.options)?(x(!0),j(E,{key:1},_(be(e).options,e=>(x(),w(k(Z),V({ref_for:!0},e,{key:e.value}),null,16))),128)):S("",!0),"radiogroup"===e.type&&(null==(l=be(e))?void 0:l.options)?(x(!0),j(E,{key:2},_(be(e).options,e=>(x(),w(r,V({ref_for:!0},e,{key:e.value}),null,16))),128)):S("",!0)]}),_:2},[_(he(e),(e,a)=>({name:a,fn:g(()=>[(x(),w(O(e)))])}))]),1040,["modelValue","onUpdate:modelValue"]))],!0)]),_:2},1032,["label","prop","label-width"])]),_:2},1032,["xs","sm","md","lg","xl"]))),128)),v(n,{xs:24,sm:24,md:k(Be),lg:k(Be),xl:k(Be),class:"action-column"},{default:g(()=>[L("div",{class:"action-buttons-wrapper",style:C(k(ke))},[L("div",de,[e.showReset?M((x(),w(p,{key:0,class:"reset-button",onClick:_e},{default:g(()=>[R(W(k(l)("table.searchBar.reset")),1)]),_:1})),[[c]]):S("",!0),e.showSearch?M((x(),w(p,{key:1,type:"primary",class:"search-button",onClick:we,disabled:e.disabledSearch},{default:g(()=>[R(W(k(l)("table.searchBar.search")),1)]),_:1},8,["disabled"])),[[c]]):S("",!0)]),k(ve)?(x(),j("div",{key:0,class:"filter-toggle",onClick:Ee},[L("span",null,W(k(ge)),1),L("div",ue,[v(d,null,{default:g(()=>[k(ce)?(x(),w(k(F),{key:0})):(x(),w(k(I),{key:1}))]),_:1})])])):S("",!0)],4)]),_:1},8,["md","lg","xl"])]),_:3},8,["gutter"])]),_:3},16,["model","label-position"])],2)}}},a(me,t(ce)))),[["__scopeId","data-v-3e63e0e5"]]);export{fe as _};
|