合入主线登录和营业时段策略,对齐旧界面与 React 访问流程
This commit is contained in:
commit
42395de23a
113 files changed
+1915
-558
No files matched your search
+12
@@ -0,0 +1,12 @@
|
||||
import{n as e}from"./rolldown-runtime-Dl_DZoUm.js";import{$n as t,$t as n,An as r,At as i,Ct as a,Dn as o,Gt as s,Hn as c,Ht as l,It as u,Jn as d,Jt as f,Qn as p,St as m,Tn as h,V as g,Yt as _,Zn as v,Zt as y,an as b,er as x,jn as S,kn as C,kt as w,ln as T,nn as E,nr as D,qn as O,qt as k,rn as A,vt as j,wn as M,zt as N}from"./index-BvkDlq1y.js";import{c as P,i as F,p as I,r as L,u as R}from"./input-CIXLdGWW.js";import{C as z,T as B,y as V}from"./TextArea-r6omQeC2.js";var H=e(D()),U=e(x()),W={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z`}},{tag:`path`,attrs:{d:`M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z`}}]},name:`plus`,theme:`outlined`},G=H.forwardRef(function(e,n){return H.createElement(N,t({},e,{ref:n,icon:W}))}),K=(0,H.createContext)(null),q=function(e){var t=e.activeTabOffset,n=e.horizontal,i=e.rtl,a=e.indicator,o=a===void 0?{}:a,s=o.size,c=o.align,l=c===void 0?`center`:c,u=(0,H.useState)(),d=C(u,2),f=d[0],p=d[1],m=(0,H.useRef)(),h=H.useCallback(function(e){return typeof s==`function`?s(e):typeof s==`number`?s:e},[s]);function g(){r.cancel(m.current)}return(0,H.useEffect)(function(){var e={};if(t){if(n){e.width=h(t.width);var a=i?`right`:`left`;l===`start`&&(e[a]=t[a]),l===`center`&&(e[a]=t[a]+t.width/2,e.transform=i?`translateX(50%)`:`translateX(-50%)`),l===`end`&&(e[a]=t[a]+t.width,e.transform=`translateX(-100%)`)}else e.height=h(t.height),l===`start`&&(e.top=t.top),l===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),l===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`)}return g(),m.current=r(function(){f&&e&&Object.keys(e).every(function(t){var n=e[t],r=f[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||p(e)}),g},[JSON.stringify(t),n,i,l,h]),{style:f}},J={width:0,height:0,left:0,top:0};function ee(e,t,n){return(0,H.useMemo)(function(){for(var n=new Map,r=t.get(e[0]?.key)||J,i=r.left+r.width,a=0;a<e.length;a+=1){var o=e[a].key,s=t.get(o);s||=t.get(e[a-1]?.key)||J;var c=n.get(o)||O({},s);c.right=i-c.left-c.width,n.set(o,c)}return n},[e.map(function(e){return e.key}).join(`_`),t,n])}function Y(e,t){var n=H.useRef(e),r=H.useState({}),i=C(r,2)[1];function a(e){var r=typeof e==`function`?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}return[n.current,a]}var te=.1,ne=.01,re=20,ie=.995**re;function ae(e,t){var n=(0,H.useState)(),r=C(n,2),i=r[0],a=r[1],o=(0,H.useState)(0),s=C(o,2),c=s[0],l=s[1],u=(0,H.useState)(0),d=C(u,2),f=d[0],p=d[1],m=(0,H.useState)(),h=C(m,2),g=h[0],_=h[1],v=(0,H.useRef)();function y(e){var t=e.touches[0];a({x:t.screenX,y:t.screenY}),window.clearInterval(v.current)}function b(e){if(i){var n=e.touches[0],r=n.screenX,o=n.screenY;a({x:r,y:o});var s=r-i.x,u=o-i.y;t(s,u);var d=Date.now();l(d),p(d-c),_({x:s,y:u})}}function x(){if(i&&(a(null),_(null),g)){var e=g.x/f,n=g.y/f;if(Math.max(Math.abs(e),Math.abs(n))<te)return;var r=e,o=n;v.current=window.setInterval(function(){Math.abs(r)<ne&&Math.abs(o)<ne?window.clearInterval(v.current):(r*=ie,o*=ie,t(r*re,o*re))},re)}}var S=(0,H.useRef)();function w(e){var n=e.deltaX,r=e.deltaY,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=S.current===`x`?n:r:a>o?(i=n,S.current=`x`):(i=r,S.current=`y`),t(-i,-i)&&e.preventDefault()}var T=(0,H.useRef)(null);T.current={onTouchStart:y,onTouchMove:b,onTouchEnd:x,onWheel:w},H.useEffect(function(){function t(e){T.current.onTouchStart(e)}function n(e){T.current.onTouchMove(e)}function r(e){T.current.onTouchEnd(e)}function i(e){T.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),function(){document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function oe(e){var t=(0,H.useState)(0),n=C(t,2),r=n[0],i=n[1],a=(0,H.useRef)(0),o=(0,H.useRef)();return o.current=e,M(function(){var e;(e=o.current)==null||e.call(o)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}function se(e){var t=(0,H.useRef)([]),n=(0,H.useState)({}),r=C(n,2)[1],i=(0,H.useRef)(typeof e==`function`?e():e),a=oe(function(){var e=i.current;t.current.forEach(function(t){e=t(e)}),t.current=[],i.current=e,r({})});function o(e){t.current.push(e),a()}return[i.current,o]}var ce={width:0,height:0,left:0,top:0,right:0};function le(e,t,n,r,i,a,o){var s=o.tabs,c=o.tabPosition,l=o.rtl,u,d,f;return[`top`,`bottom`].includes(c)?(u=`width`,d=l?`right`:`left`,f=Math.abs(n)):(u=`height`,d=`top`,f=-n),(0,H.useMemo)(function(){if(!s.length)return[0,0];for(var n=s.length,r=n,i=0;i<n;i+=1){var a=e.get(s[i].key)||ce;if(Math.floor(a[d]+a[u])>Math.floor(f+t)){r=i-1;break}}for(var o=0,c=n-1;c>=0;--c)if((e.get(s[c].key)||ce)[d]<f){o=c+1;break}return o>r?[0,-1]:[o,r]},[e,t,r,i,a,f,c,s.map(function(e){return e.key}).join(`_`),l])}function ue(e){var t;retuLine truncated
|
||||
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
||||
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:h(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Z=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${h(e.borderRadius)} ${h(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${h(e.borderRadius)} ${h(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${h(e.borderRadius)} ${h(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${h(e.borderRadius)} 0 0 ${h(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},Ve=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},_(e)),"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${l}-focus ${l}-btn:focus-visible`]:f(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},He=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:h(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:h(e.marginXS)},marginLeft:{_skip_check_:!0,value:h(a(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:
Line truncated
|
||||
> ${r}-typography,
|
||||
> ${r}-typography-edit-content
|
||||
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:`both`,marginBottom:o,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${h(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Ze=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
|
||||
${h(i)} 0 0 0 ${n},
|
||||
0 ${h(i)} 0 0 ${n},
|
||||
${h(i)} ${h(i)} 0 0 ${n},
|
||||
${h(i)} 0 0 0 ${n} inset,
|
||||
0 ${h(i)} 0 0 ${n} inset;
|
||||
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},Qe=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${h(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)}`},k()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:`center`,"> span":{position:`relative`,display:`block`,minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:`pointer`,"&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:`inline-block`,width:`100%`,color:e.colorIcon,lineHeight:h(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:h(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${h(e.lineWidth)} ${e.lineType} ${a}`}}})},$e=e=>Object.assign(Object.assign({margin:`${h(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`},k()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:`hidden`,flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},n),"&-description":{color:e.colorTextDescription}}),et=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${h(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${h(e.padding)} ${h(i)}`}}},tt=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},nt=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},y(e)),{position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:Xe(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)}`},[`${t}-grid`]:Ze(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:Qe(e),[`${t}-meta`]:$e(e)}),[`${t}-bordered`]:{border:`${h(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${h(e.borderRadiusLG)} ${h(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:`flex`,flexWrap:`wrap`},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:et(e),[`${t}-loading`]:tt(e),[`${t}-rtl`]:{direction:`rtl`}}},rt=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${h(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},it=s(`Card`,e=>{let t=E(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[nt(t),rt(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),at=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},ot=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return H.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return H.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},H.createElement(`span`,null,e))}))},st=H.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,vari
Line truncated
|
||||
Reference in new issue
Block a user