邹方成 642b3cf7dd
Some checks failed
Build docker and publish / linux (1.24.5) (push) Failing after 50s
build: 更新前端构建产物和资源文件
更新了前端构建产物包括JavaScript、CSS和HTML文件,主要涉及以下变更:

1. 新增了多个组件和工具函数,包括异常页面组件、iframe组件等
2. 更新了活动管理、产品管理、优惠券管理等业务模块
3. 优化了构建配置和依赖管理
4. 修复了一些样式和功能问题
5. 更新了测试相关文件

同时更新了部分后端服务接口和测试用例。这些变更主要是为了支持新功能和改进现有功能的用户体验。
2025-11-21 01:24:13 +08:00

2 lines
2.5 KiB
JavaScript

import{d as e,a8 as l,a1 as a,c as t,ag as s,l as r,r as n,Y as i,an as u,be as c,b as o,dW as p,p as d,bW as f,dX as y,cm as v,dY as h,bx as m,ah as S,at as g,az as x}from"./index-BeZn6wgH.js";const b=e({name:"ElSpaceItem",props:l({prefixCls:{type:String}}),setup(e,{slots:l}){const n=a("space"),i=t(()=>`${e.prefixCls||n.b()}__item`);return()=>s("div",{class:i.value},r(l,"default"))}}),E={small:8,default:12,large:16};const C=x(e({name:"ElSpace",props:l({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:g([String,Object,Array]),default:""},style:{type:g([String,Array,Object]),default:""},alignment:{type:g(String),default:"center"},prefixCls:{type:String},spacer:{type:g([Object,String,Number,Array]),default:null,validator:e=>f(e)||c(e)||S(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:m,validator:e=>c(e)||u(e)&&2===e.length&&e.every(c)}}),setup(e,{slots:l}){const{classes:s,containerStyle:m,itemStyle:S}=function(e){const l=a("space"),s=t(()=>[l.b(),l.m(e.direction),e.class]),r=n(0),o=n(0),p=t(()=>[e.wrap||e.fill?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:`${o.value}px`,columnGap:`${r.value}px`},e.style]),d=t(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return i(()=>{const{size:l="small",wrap:a,direction:t,fill:s}=e;if(u(l)){const[e=0,a=0]=l;r.value=e,o.value=a}else{let e;e=c(l)?l:E[l||"small"]||E.small,(a||s)&&"horizontal"===t?r.value=o.value=e:"horizontal"===t?(r.value=e,o.value=0):(o.value=e,r.value=0)}}),{classes:s,containerStyle:p,itemStyle:d}}(e);function g(l,a="",t=[]){const{prefixCls:s}=e;return l.forEach((e,l)=>{y(e)?u(e.children)&&e.children.forEach((e,l)=>{y(e)&&u(e.children)?g(e.children,`${a+l}-`,t):f(e)&&(null==e?void 0:e.type)===v?t.push(e):t.push(o(b,{style:S.value,prefixCls:s,key:`nested-${a+l}`},{default:()=>[e]},p.PROPS|p.STYLE,["style","prefixCls"]))}):h(e)&&t.push(o(b,{style:S.value,prefixCls:s,key:`LoopKey${a+l}`},{default:()=>[e]},p.PROPS|p.STYLE,["style","prefixCls"]))}),t}return()=>{var a;const{spacer:t,direction:n}=e,i=r(l,"default",{key:0},()=>[]);if(0===(null!=(a=i.children)?a:[]).length)return null;if(u(i.children)){let e=g(i.children);if(t){const l=e.length-1;e=e.reduce((e,a,s)=>{const r=[...e,a];return s!==l&&r.push(o("span",{style:[S.value,"vertical"===n?"width: 100%":null],key:s},[f(t)?t:d(t,p.TEXT)],p.STYLE)),r},[])}return o("div",{class:s.value,style:m.value},e,p.STYLE|p.CLASS)}return i.children}}}));export{C as E};