Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 39s
refactor(service): 修改banner和guild删除逻辑为软删除 fix(service): 修复删除操作使用软删除而非物理删除 build: 添加SQLite测试仓库实现 docs: 新增奖励管理字段拆分和批量抽奖UI改造文档 ci: 更新CI忽略文件 style: 清理无用资源文件
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,cQ as p,v as d,c as u,aQ as m,d8 as c,cR as f,a as b,t as h,E as j,e as y,f as x,p as v,z as g,u as k,F as E,G as _,y as w,j as O,au as B,Y as V,c6 as P,k as S,h as R,g as L,J as W,l as C,m as F,ab as M,d9 as $,da as z,i as A}from"./index-CZ0Lvzl5.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{c as I,E as Q,a as U,b as q,d as D,e as G}from"./tree-select-_Xz6f9er.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-C0BHCDqQ.js";import{E as T}from"./index-D11sKPUb.js";import{E as X}from"./index-DR7AB6IM.js";import{a as Y,E as H}from"./index-DhBIlDpg.js";import{a as K,E as N}from"./index-pVAXVlCV.js";import{E as Z,a as ee}from"./index-BZS0BBj4.js";import{b as ae,a as te}from"./index-_aFOeltJ.js";import{E as se}from"./index-CWBrZtwn.js";import{E as re}from"./index-CUiyhpsI.js";import{E as le}from"./index-R-jt7LR_.js";import{E as oe}from"./index-o8DV6baU.js";import{E as ie}from"./index-BiRLqYIK.js";import{E as ne}from"./index-6-f3xsy2.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:N,switch:oe,checkbox:Z,checkboxgroup:ee,radiogroup:te,date:le,daterange:le,datetime:le,datetimerange:le,rate:D,slider:J,cascader:re,timepicker:q,timeselect:U,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},je=(e,a)=>I(e,Oe.value,a),ye=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:Oe,gutter:Be,labelPosition:Ve,labelWidth:Pe}=h(p);return(a,t)=>{const s=K,r=ae,o=Y,n=X,p=se,d=M,u=T,m=H,c=j("ripple");return x(),y("section",{class:A(["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(Be)},{default:g(()=>[(x(!0),y(E,null,_(k(xe),e=>(x(),w(n,{key:e.key,xs:je(e.span,"xs"),sm:je(e.span,"sm"),md:je(e.span,"md"),lg:je(e.span,"lg"),xl:je(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(()=>[O(a.$slots,e.key,{item:e,modelValue:me.value},()=>[(x(),w(B(ye(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),y(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),y(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),y(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(B(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(Oe),lg:k(Oe),xl:k(Oe),class:"action-column"},{default:g(()=>[R("div",{class:"action-buttons-wrapper",style:L(k(ke))},[R("div",de,[e.showReset?W((x(),w(p,{key:0,class:"reset-button",onClick:_e},{default:g(()=>[C(F(k(l)("table.searchBar.reset")),1)]),_:1})),[[c]]):S("",!0),e.showSearch?W((x(),w(p,{key:1,type:"primary",class:"search-button",onClick:we,disabled:e.disabledSearch},{default:g(()=>[C(F(k(l)("table.searchBar.search")),1)]),_:1},8,["disabled"])),[[c]]):S("",!0)]),k(ve)?(x(),y("div",{key:0,class:"filter-toggle",onClick:Ee},[R("span",null,F(k(ge)),1),R("div",ue,[v(d,null,{default:g(()=>[k(ce)?(x(),w(k($),{key:0})):(x(),w(k(z),{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 _};
|