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
11 KiB
JavaScript
2 lines
11 KiB
JavaScript
var e=Object.defineProperty,a=Object.defineProperties,l=Object.getOwnPropertyDescriptors,t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,s=(a,l,t)=>l in a?e(a,l,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[l]=t,n=(e,a)=>{for(var l in a||(a={}))o.call(a,l)&&s(e,l,a[l]);if(t)for(var l of t(a))r.call(a,l)&&s(e,l,a[l]);return e},i=(e,t)=>a(e,l(t)),p=(e,a,l)=>s(e,"symbol"!=typeof a?a+"":a,l);import{_ as u,d as c,X as d,e as f,f as g,h as m,u as v,a2 as h,bG as y,c as b,bz as k,k as w,j as x,p as B,g as S,i as H,m as T,ap as _,cO as $,a as E,s as j,aQ as N,cP as z,T as O,U as A,n as C,J as R,aV as I,y as P,c6 as G,z as V,F,G as L,Y as D,au as U,l as M}from"./index-CZ0Lvzl5.js";import{E as Z}from"./el-pagination-CqMqz367.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{a as K,E as q}from"./el-table-column-CioBjwcM.js";/* empty css */import"./el-tooltip-l0sNRNKZ.js";import{u as J}from"./use-form-item-BsnpemL_.js";import{_ as Q}from"./_plugin-vue_export-helper-BCo6x5W8.js";const W=c({name:"ImgEmpty"});var X=u(c(i(n({},W),{setup(e){const a=d("empty"),l=J();return(e,t)=>(g(),f("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[m("defs",null,[m("linearGradient",{id:`linearGradient-1-${v(l)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[m("stop",{"stop-color":`var(${v(a).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),m("stop",{"stop-color":`var(${v(a).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),m("linearGradient",{id:`linearGradient-2-${v(l)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[m("stop",{"stop-color":`var(${v(a).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),m("stop",{"stop-color":`var(${v(a).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),m("rect",{id:`path-3-${v(l)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[m("g",{transform:"translate(-1268.000000, -535.000000)"},[m("g",{transform:"translate(1268.000000, 535.000000)"},[m("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${v(a).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),m("polygon",{fill:`var(${v(a).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),m("g",{transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[m("polygon",{fill:`var(${v(a).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),m("polygon",{fill:`var(${v(a).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),m("rect",{fill:`url(#linearGradient-1-${v(l)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),m("polygon",{fill:`var(${v(a).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),m("rect",{fill:`url(#linearGradient-2-${v(l)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),m("g",{transform:"translate(53.000000, 45.000000)"},[m("use",{fill:`var(${v(a).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${v(l)}`},null,8,["fill","xlink:href"]),m("polygon",{fill:`var(${v(a).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${v(l)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),m("polygon",{fill:`var(${v(a).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}})),[["__file","img-empty.vue"]]);const Y=h({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),ee=c({name:"ElEmpty"});const ae=_(u(c(i(n({},ee),{props:Y,setup(e){const a=e,{t:l}=y(),t=d("empty"),o=b(()=>a.description||l("el.table.emptyText")),r=b(()=>({width:k(a.imageSize)}));return(e,a)=>(g(),f("div",{class:H(v(t).b())},[m("div",{class:H(v(t).e("image")),style:S(v(r))},[e.image?(g(),f("img",{key:0,src:e.image,ondragstart:"return false"},null,8,["src"])):x(e.$slots,"image",{key:1},()=>[B(X)])],6),m("div",{class:H(v(t).e("description"))},[e.$slots.description?x(e.$slots,"description",{key:0}):(g(),f("p",{key:1},T(v(o)),1))],2),e.$slots.default?(g(),f("div",{key:0,class:H(v(t).e("bottom"))},[x(e.$slots,"default")],2)):w("v-if",!0)],2))}})),[["__file","empty.vue"]]));var le=(e=>(e.DEFAULT="default",e.SMALL="small",e.LARGE="large",e))(le||{});const te=$("tableStore",()=>{const e=E(le.DEFAULT),a=E(!1),l=E(!1),t=E(!1),o=E(!1);return{tableSize:e,isZebra:a,isBorder:l,isHeaderBackground:t,setTableSize:a=>e.value=a,setIsZebra:e=>a.value=e,setIsBorder:e=>l.value=e,setIsHeaderBackground:e=>t.value=e,isFullScreen:o,setIsFullScreen:e=>o.value=e}},{persist:{key:"table",storage:localStorage}}),oe=class e{constructor(e){this.options=e}calculate(){const e=this.calculateOffset();return{height:0===e?"100%":`calc(100% - ${e}px)`}}calculateOffset(){if(!this.options.showTableHeader.value)return this.calculatePaginationOffset();return this.getHeaderHeight()+this.calculatePaginationOffset()+e.TABLE_HEADER_SPACING}getHeaderHeight(){return this.options.tableHeaderHeight.value||e.DEFAULT_TABLE_HEADER_HEIGHT}calculatePaginationOffset(){const{paginationHeight:e,paginationSpacing:a}=this.options;return 0===e.value?0:e.value+a.value}};p(oe,"DEFAULT_TABLE_HEADER_HEIGHT",44),p(oe,"TABLE_HEADER_SPACING",12);let re=oe;const se={key:0},ne=Q(c(i(n({},{name:"ArtTable",inheritAttrs:!1}),{__name:"index",props:{loading:{type:Boolean},columns:{default:()=>[]},pagination:{},paginationOptions:{},emptyHeight:{default:"100%"},emptyText:{default:"暂无数据"},showTableHeader:{type:Boolean,default:!0},data:{},size:{default:void 0},width:{},height:{},maxHeight:{},fit:{type:Boolean,default:!0},stripe:{type:Boolean,default:void 0},border:{type:Boolean,default:void 0},rowKey:{},context:{},showHeader:{type:Boolean,default:!0},showSummary:{type:Boolean},sumText:{},summaryMethod:{},rowClassName:{},rowStyle:{},cellClassName:{},cellStyle:{},headerRowClassName:{},headerRowStyle:{},headerCellClassName:{},headerCellStyle:{},highlightCurrentRow:{type:Boolean},currentRowKey:{},expandRowKeys:{},defaultExpandAll:{type:Boolean},defaultSort:{},tooltipEffect:{},tooltipOptions:{},spanMethod:{},selectOnIndeterminate:{type:Boolean},indent:{},treeProps:{},lazy:{type:Boolean},load:{},className:{},style:{},tableLayout:{},scrollbarAlwaysOn:{type:Boolean},flexible:{type:Boolean},showOverflowTooltip:{type:[Boolean,Object]},tooltipFormatter:{},appendFilterPanelTo:{},scrollbarTabindex:{},nativeScrollbar:{type:Boolean}},emits:["pagination:size-change","pagination:current-change"],setup(e,{expose:a,emit:l}){const{width:t}=N(),o=E(null),r=E(),s=E(),p=te(),{isBorder:u,isZebra:c,tableSize:d,isFullScreen:h,isHeaderBackground:y}=j(p),k=e,_="prev, pager, next, sizes, jumper, total",$="prev, pager, next, jumper, total",J="total, prev, pager, next, sizes, jumper",Q={pageSizes:[10,20,30,50,100],align:"center",background:!0,layout:b(()=>t.value<768?_:t.value<1024?$:J).value,hideOnSinglePage:!1,size:"default",pagerCount:t.value>1200?7:5},W=b(()=>n(n({},Q),k.paginationOptions)),X=b(()=>{var e;return null!=(e=k.border)?e:u.value}),Y=b(()=>{var e;return null!=(e=k.stripe)?e:c.value}),ee=b(()=>{var e;return null!=(e=k.size)?e:d.value}),le=b(()=>{var e;return 0===(null==(e=k.data)?void 0:e.length)}),oe=E(0),ne=E(0);z(r,e=>{const a=e[0];a&&requestAnimationFrame(()=>{oe.value=a.contentRect.height})}),z(s,e=>{const a=e[0];a&&requestAnimationFrame(()=>{ne.value=a.contentRect.height})});const ie=b(()=>k.showTableHeader?6:15),{containerHeight:pe}=(ue={showTableHeader:b(()=>k.showTableHeader),paginationHeight:oe,tableHeaderHeight:ne,paginationSpacing:ie},{containerHeight:b(()=>new re(ue).calculate())});var ue;const ce=b(()=>h.value?"100%":le.value&&!k.loading?k.emptyHeight:k.height?k.height:"100%"),de=b(()=>n({background:y.value?"var(--el-fill-color-lighter)":"var(--default-box-color)"},k.headerCellStyle||{})),fe=b(()=>k.pagination&&!le.value),ge=e=>{const a=n({},e);return delete a.useHeaderSlot,delete a.headerSlotName,delete a.useSlot,delete a.slotName,a},me=e=>{ke("pagination:size-change",e)},ve=e=>{ke("pagination:current-change",e),ye()},{scrollToTop:he}=O(),ye=()=>{C(()=>{var e;null==(e=o.value)||e.setScrollTop(0),he()})},be=e=>{if(!k.pagination)return e+1;const{current:a,size:l}=k.pagination;return(a-1)*l+e+1},ke=l;return A(()=>{var e;null==(e=k.data)||e.length;k.showTableHeader?C(()=>{(()=>{if(!k.showTableHeader)return void(s.value=void 0);const e=document.getElementById("art-table-header");s.value=e||void 0})()}):s.value=void 0},{flush:"post"}),a({scrollToTop:ye,elTableRef:o}),(a,l)=>{var t,s,p,u;const c=K,d=ae,h=q,y=Z,b=I;return g(),f("div",{class:H(["art-table",{"is-empty":le.value}]),style:S(v(pe))},[R((g(),P(h,D({ref_key:"elTableRef",ref:o},i(n(n({},a.$attrs),k),{height:ce.value,stripe:Y.value,border:X.value,size:ee.value,headerCellStyle:de.value})),G({empty:V(()=>[e.loading?(g(),f("div",se)):(g(),P(d,{key:1,description:e.emptyText,"image-size":120},null,8,["description"]))]),default:V(()=>[(g(!0),f(F,null,L(e.columns,e=>(g(),f(F,{key:e.prop||e.type},["globalIndex"===e.type?(g(),P(c,D({key:0,ref_for:!0},n({},e)),{default:V(({$index:e})=>[m("span",null,T(be(e)),1)]),_:1},16)):"expand"===e.type?(g(),P(c,D({key:1,ref_for:!0},ge(e)),{default:V(({row:a})=>[(g(),P(U(e.formatter?e.formatter(a):null)))]),_:2},1040)):(g(),P(c,D({key:2,ref_for:!0},ge(e)),G({_:2},[e.useHeaderSlot&&e.prop?{name:"header",fn:V(l=>[x(a.$slots,e.headerSlotName||`${e.prop}-header`,D({ref_for:!0},i(n({},l),{prop:e.prop,label:e.label})),()=>[M(T(e.label),1)],!0)]),key:"0"}:void 0,e.useSlot&&e.prop?{name:"default",fn:V(l=>[x(a.$slots,e.slotName||e.prop,D({ref_for:!0},i(n({},l),{prop:e.prop,value:e.prop?l.row[e.prop]:void 0})),void 0,!0)]),key:"1"}:void 0]),1040))],64))),128))]),_:2},[a.$slots.default?{name:"default",fn:V(()=>[x(a.$slots,"default",{},void 0,!0)]),key:"0"}:void 0]),1040)),[[b,!!e.loading]]),fe.value?(g(),f("div",{key:0,class:H(["pagination custom-pagination",null==(t=W.value)?void 0:t.align]),ref_key:"paginationRef",ref:r},[B(y,D(W.value,{total:null==(s=e.pagination)?void 0:s.total,disabled:e.loading,"page-size":null==(p=e.pagination)?void 0:p.size,"current-page":null==(u=e.pagination)?void 0:u.current,onSizeChange:me,onCurrentChange:ve}),null,16,["total","disabled","page-size","current-page"])],2)):w("",!0)],6)}}})),[["__scopeId","data-v-5c0998ff"]]);export{le as T,ne as _,te as u};
|