保存工作区合并前的本地开发现场 ledger-route-sizes-389952f

This commit is contained in:
黄健铭 committed 2026-12-05 18:21:23 -08:00
1 parent 389952f31c
commit 9952128ba4
45 files changed
+356 -321

No files matched your search

@@ -0,0 +1 @@
import{n as e}from"./rolldown-runtime-Dl_DZoUm.js";import{i as t}from"./react-1o5M9n0k.js";import{D as n,Dn as r,E as i,En as a,St as o,Tt as s,Z as c,b as l,mt as u,nt as d,wn as f}from"./skeleton-B4Z0R3jQ.js";var p=e(t()),m=e(r());function h(e){return[`small`,`middle`,`large`].includes(e)}function g(e){return e?typeof e==`number`&&!Number.isNaN(e):!1}var _=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:`solid`,borderColor:i,borderRadius:n,"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:u,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},l(e,{focus:!1})]}},v=d([`Space`,`Addon`],e=>[_(e)]),y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},b=p.forwardRef((e,t)=>{let{className:r,children:i,style:a,prefixCls:s}=e,c=y(e,[`className`,`children`,`style`,`prefixCls`]),{getPrefixCls:l,direction:u}=p.useContext(o),d=l(`space-addon`,s),[f,h,g]=v(d),{compactItemClassnames:_,compactSize:b}=n(d,u),x=(0,m.default)(d,h,_,g,{[`${d}-${b}`]:b},r);return f(p.createElement(`div`,Object.assign({ref:t,className:x,style:a},c),i))}),x=p.createContext({latestIndex:0}),S=x.Provider,C=({className:e,index:t,children:n,split:r,style:i})=>{let{latestIndex:a}=p.useContext(x);return n==null?null:p.createElement(p.Fragment,null,p.createElement(`div`,{className:e,style:i},n),t<a&&r&&p.createElement(`span`,{className:`${e}-split`},r))},w=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},T=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},E=d(`Space`,e=>{let t=u(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[w(t),T(t)]},()=>({}),{resetStyle:!1}),D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},O=p.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:c,styles:l}=s(`space`),{size:u=i??`small`,align:d,className:_,rootClassName:v,children:y,direction:b=`horizontal`,prefixCls:x,split:w,style:T,wrap:O=!1,classNames:k,styles:A}=e,j=D(e,[`size`,`align`,`className`,`rootClassName`,`children`,`direction`,`prefixCls`,`split`,`style`,`wrap`,`classNames`,`styles`]),[M,N]=Array.isArray(u)?u:[u,u],P=h(N),F=h(M),I=g(N),L=g(M),R=f(y,{keepEmpty:!0}),z=d===void 0&&b===`horizontal`?`center`:d,B=n(`space`,x),[V,H,U]=E(B),W=(0,m.default)(B,a,H,`${B}-${b}`,{[`${B}-rtl`]:r===`rtl`,[`${B}-align-${z}`]:z,[`${B}-gap-row-${N}`]:P,[`${B}-gap-col-${M}`]:F},_,v,U),G=(0,m.default)(`${B}-item`,k?.item??c.item),K=Object.assign(Object.assign({},l.item),A?.item),q=R.map((e,t)=>{let n=e?.key||`${G}-${t}`;return p.createElement(C,{className:G,key:n,index:t,split:w,style:K},e)}),J=p.useMemo(()=>({latestIndex:R.reduce((e,t,n)=>t==null?e:n,0)}),[R]);if(R.length===0)return null;let Y={};return O&&(Y.flexWrap=`wrap`),!F&&L&&(Y.columnGap=M),!P&&I&&(Y.rowGap=N),V(p.createElement(`div`,Object.assign({ref:t,className:W,style:Object.assign(Object.assign(Object.assign({},Y),o),T)},j),p.createElement(S,{value:J},q)))});O.Compact=i,O.Addon=b;var k={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 Line truncated