1 Star 0 Fork 0

阿炸克斯/approval-data-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
836.async.js 31.42 KB
一键复制 编辑 原始数据 按行查看 历史
GitHub Action 提交于 2024-11-04 03:32 . update
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[836],{72082:function(xn,je,s){s.d(je,{Z:function(){return Pe}});var h=s(87366),g=s(93236),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},$=y,c=s(12174),T=function(ce,Ie){return g.createElement(c.Z,(0,h.Z)({},ce,{ref:Ie,icon:$}))},Pe=g.forwardRef(T)},52922:function(xn,je,s){s.d(je,{Qt:function(){return c},Uw:function(){return $},fJ:function(){return y},ly:function(){return T},oN:function(){return r}});var h=s(11804),g=s(93996);const y=new h.E4("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$=new h.E4("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),c=new h.E4("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),T=new h.E4("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Pe=new h.E4("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Q=new h.E4("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),ce=new h.E4("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ie=new h.E4("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),fe={"slide-up":{inKeyframes:y,outKeyframes:$},"slide-down":{inKeyframes:c,outKeyframes:T},"slide-left":{inKeyframes:Pe,outKeyframes:Q},"slide-right":{inKeyframes:ce,outKeyframes:Ie}},r=(Ne,Se)=>{const{antCls:lt}=Ne,be=`${lt}-${Se}`,{inKeyframes:st,outKeyframes:Zt}=fe[Se];return[(0,g.R)(be,st,Zt,Ne.motionDurationMid),{[`
${be}-enter,
${be}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:Ne.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${be}-leave`]:{animationTimingFunction:Ne.motionEaseInQuint}}]}},71005:function(xn,je,s){s.d(je,{iz:function(){return Tt},ck:function(){return Ve},BW:function(){return Lt},sN:function(){return Ve},Wd:function(){return $e},ZP:function(){return zt},Xl:function(){return ze}});var h=s(87366),g=s(58216),y=s(49919),$=s(74758),c=s(47028),T=s(17576),Pe=s(84875),Q=s.n(Pe),ce=s(84026),Ie=s(23533),fe=s(55549),r=s(93236),Ne=s(19103),Se=s(64221),lt=r.createContext(null);function be(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function st(e){var t=r.useContext(lt);return be(t,e)}var Zt=s(93190),Pn=["children","locked"],U=r.createContext(null);function ut(e,t){var a=(0,y.Z)({},e);return Object.keys(t).forEach(function(i){var n=t[i];n!==void 0&&(a[i]=n)}),a}function He(e){var t=e.children,a=e.locked,i=(0,T.Z)(e,Pn),n=r.useContext(U),l=(0,Zt.Z)(function(){return ut(n,i)},[n,i],function(o,f){return!a&&(o[0]!==f[0]||!(0,Se.Z)(o[1],f[1],!0))});return r.createElement(U.Provider,{value:l},t)}var Nn=[],jt=r.createContext(null);function ct(){return r.useContext(jt)}var xt=r.createContext(Nn);function ze(e){var t=r.useContext(xt);return r.useMemo(function(){return e!==void 0?[].concat((0,$.Z)(t),[e]):t},[t,e])}var Ht=r.createContext(null),Jt=r.createContext({}),ft=Jt,de=s(74884),Je=s(77550),Qe=s(6180);function Qt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,Qe.Z)(e)){var a=e.nodeName.toLowerCase(),i=["input","select","textarea","button"].includes(a)||e.isContentEditable||a==="a"&&!!e.getAttribute("href"),n=e.getAttribute("tabindex"),l=Number(n),o=null;return n&&!Number.isNaN(l)?o=l:i&&o===null&&(o=0),i&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function qt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=(0,$.Z)(e.querySelectorAll("*")).filter(function(i){return Qt(i,t)});return Qt(e,t)&&a.unshift(e),a}var u=null;function W(){u=document.activeElement}function ve(){u=null}function X(){if(u)try{u.focus()}catch(e){}}function q(e,t){if(t.keyCode===9){var a=qt(e),i=a[t.shiftKey?0:a.length-1],n=i===document.activeElement||e===document.activeElement;if(n){var l=a[t.shiftKey?a.length-1:0];l.focus(),t.preventDefault()}}}var N=de.Z.LEFT,G=de.Z.RIGHT,re=de.Z.UP,j=de.Z.DOWN,me=de.Z.ENTER,Ke=de.Z.ESC,Oe=de.Z.HOME,we=de.Z.END,dt=[re,j,N,G];function pe(e,t,a,i){var n,l,o,f,v="prev",d="next",m="children",w="parent";if(e==="inline"&&i===me)return{inlineTrigger:!0};var Z=(n={},(0,g.Z)(n,re,v),(0,g.Z)(n,j,d),n),x=(l={},(0,g.Z)(l,N,a?d:v),(0,g.Z)(l,G,a?v:d),(0,g.Z)(l,j,m),(0,g.Z)(l,me,m),l),I=(o={},(0,g.Z)(o,re,v),(0,g.Z)(o,j,d),(0,g.Z)(o,me,m),(0,g.Z)(o,Ke,w),(0,g.Z)(o,N,a?m:w),(0,g.Z)(o,G,a?w:m),o),S={inline:Z,horizontal:x,vertical:I,inlineSub:Z,horizontalSub:I,verticalSub:I},D=(f=S["".concat(e).concat(t?"":"Sub")])===null||f===void 0?void 0:f[i];switch(D){case v:return{offset:-1,sibling:!0};case d:return{offset:1,sibling:!0};case w:return{offset:-1,sibling:!1};case m:return{offset:1,sibling:!1};default:return null}}function vt(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function qe(e,t){for(var a=e||document.activeElement;a;){if(t.has(a))return a;a=a.parentElement}return null}function Ue(e,t){var a=qt(e,!0);return a.filter(function(i){return t.has(i)})}function ae(e,t,a){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var n=Ue(e,t),l=n.length,o=n.findIndex(function(f){return a===f});return i<0?o===-1?o=l-1:o-=1:i>0&&(o+=1),o=(o+l)%l,n[o]}function mt(e,t,a,i,n,l,o,f,v,d){var m=r.useRef(),w=r.useRef();w.current=t;var Z=function(){Je.Z.cancel(m.current)};return r.useEffect(function(){return function(){Z()}},[]),function(x){var I=x.which;if([].concat(dt,[me,Ke,Oe,we]).includes(I)){var S,D,A,E=function(){S=new Set,D=new Map,A=new Map;var k=l();return k.forEach(function(Y){var V=document.querySelector("[data-menu-id='".concat(be(i,Y),"']"));V&&(S.add(V),A.set(V,Y),D.set(Y,V))}),S};E();var b=D.get(t),p=qe(b,S),M=A.get(p),C=pe(e,o(M,!0).length===1,a,I);if(!C&&I!==Oe&&I!==we)return;(dt.includes(I)||[Oe,we].includes(I))&&x.preventDefault();var K=function(k){if(k){var Y=k,V=k.querySelector("a");V!=null&&V.getAttribute("href")&&(Y=V);var Me=A.get(k);f(Me),Z(),m.current=(0,Je.Z)(function(){w.current===Me&&Y.focus()})}};if([Oe,we].includes(I)||C.sibling||!p){var oe;!p||e==="inline"?oe=n.current:oe=vt(p);var O,he=Ue(oe,S);I===Oe?O=he[0]:I===we?O=he[he.length-1]:O=ae(oe,S,p,C.offset),K(O)}else if(C.inlineTrigger)v(M);else if(C.offset>0)v(M,!0),Z(),m.current=(0,Je.Z)(function(){E();var _=p.getAttribute("aria-controls"),k=document.getElementById(_),Y=ae(k,S);K(Y)},5);else if(C.offset<0){var le=o(M,!0),z=le[le.length-2],ye=D.get(z);v(z,!1),K(ye)}}d==null||d(x)}}function Pt(e){Promise.resolve().then(e)}var Re="__RC_UTIL_PATH_SPLIT__",_e=function(t){return t.join(Re)},De=function(t){return t.split(Re)},ie="rc-menu-more";function Nt(){var e=r.useState({}),t=(0,c.Z)(e,2),a=t[1],i=(0,r.useRef)(new Map),n=(0,r.useRef)(new Map),l=r.useState([]),o=(0,c.Z)(l,2),f=o[0],v=o[1],d=(0,r.useRef)(0),m=(0,r.useRef)(!1),w=function(){m.current||a({})},Z=(0,r.useCallback)(function(b,p){var M=_e(p);n.current.set(M,b),i.current.set(b,M),d.current+=1;var C=d.current;Pt(function(){C===d.current&&w()})},[]),x=(0,r.useCallback)(function(b,p){var M=_e(p);n.current.delete(M),i.current.delete(b)},[]),I=(0,r.useCallback)(function(b){v(b)},[]),S=(0,r.useCallback)(function(b,p){var M=i.current.get(b)||"",C=De(M);return p&&f.includes(C[0])&&C.unshift(ie),C},[f]),D=(0,r.useCallback)(function(b,p){return b.some(function(M){var C=S(M,!0);return C.includes(p)})},[S]),A=function(){var p=(0,$.Z)(i.current.keys());return f.length&&p.push(ie),p},E=(0,r.useCallback)(function(b){var p="".concat(i.current.get(b)).concat(Re),M=new Set;return(0,$.Z)(n.current.keys()).forEach(function(C){C.startsWith(p)&&M.add(n.current.get(C))}),M},[]);return r.useEffect(function(){return function(){m.current=!0}},[]),{registerPath:Z,unregisterPath:x,refreshOverflowKeys:I,isSubPathKey:D,getKeyPath:S,getKeys:A,getSubPathKeys:E}}function Ee(e){var t=r.useRef(e);t.current=e;var a=r.useCallback(function(){for(var i,n=arguments.length,l=new Array(n),o=0;o<n;o++)l[o]=arguments[o];return(i=t.current)===null||i===void 0?void 0:i.call.apply(i,[t].concat(l))},[]);return e?a:void 0}var pt=Math.random().toFixed(5).toString().slice(2),_t=0;function Ae(e){var t=(0,Ie.Z)(e,{value:e}),a=(0,c.Z)(t,2),i=a[0],n=a[1];return r.useEffect(function(){_t+=1;var l="".concat(pt,"-").concat(_t);n("rc-menu-uuid-".concat(l))},[]),i}var Kn=s(87989),en=s(51852),tn=s(96214),On=s(56099),nn=s(35564),rn=s(48119);function an(e,t,a,i){var n=r.useContext(U),l=n.activeKey,o=n.onActive,f=n.onInactive,v={active:l===e};return t||(v.onMouseEnter=function(d){a==null||a({key:e,domEvent:d}),o(e)},v.onMouseLeave=function(d){i==null||i({key:e,domEvent:d}),f(e)}),v}function on(e){var t=r.useContext(U),a=t.mode,i=t.rtl,n=t.inlineIndent;if(a!=="inline")return null;var l=e;return i?{paddingRight:l*n}:{paddingLeft:l*n}}function ln(e){var t=e.icon,a=e.props,i=e.children,n;return typeof t=="function"?n=r.createElement(t,(0,y.Z)({},a)):n=t,n||i||null}var sn=["item"];function Le(e){var t=e.item,a=(0,T.Z)(e,sn);return Object.defineProperty(a,"item",{get:function(){return(0,fe.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),a}var wn=["title","attribute","elementRef"],Dn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],un=["active"],gt=function(e){(0,tn.Z)(a,e);var t=(0,On.Z)(a);function a(){return(0,Kn.Z)(this,a),t.apply(this,arguments)}return(0,en.Z)(a,[{key:"render",value:function(){var n=this.props,l=n.title,o=n.attribute,f=n.elementRef,v=(0,T.Z)(n,wn),d=(0,nn.Z)(v,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,fe.ZP)(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(ce.Z.Item,(0,h.Z)({},o,{title:typeof l=="string"?l:void 0},d,{ref:f}))}}]),a}(r.Component),An=r.forwardRef(function(e,t){var a,i=e.style,n=e.className,l=e.eventKey,o=e.warnKey,f=e.disabled,v=e.itemIcon,d=e.children,m=e.role,w=e.onMouseEnter,Z=e.onMouseLeave,x=e.onClick,I=e.onKeyDown,S=e.onFocus,D=(0,T.Z)(e,Dn),A=st(l),E=r.useContext(U),b=E.prefixCls,p=E.onItemClick,M=E.disabled,C=E.overflowDisabled,K=E.itemIcon,oe=E.selectedKeys,O=E.onActive,he=r.useContext(ft),le=he._internalRenderMenuItem,z="".concat(b,"-item"),ye=r.useRef(),_=r.useRef(),k=M||f,Y=(0,rn.x1)(t,_),V=ze(l),Me=function(B){return{key:l,keyPath:(0,$.Z)(V).reverse(),item:ye.current,domEvent:B}},Ut=v||K,Xe=an(l,k,w,Z),Ye=Xe.active,St=(0,T.Z)(Xe,un),Ze=oe.includes(l),tt=on(V.length),ee=function(B){if(!k){var H=Me(B);x==null||x(Le(H)),p(H)}},te=function(B){if(I==null||I(B),B.which===de.Z.ENTER){var H=Me(B);x==null||x(Le(H)),p(H)}},Vt=function(B){O(l),S==null||S(B)},bt={};e.role==="option"&&(bt["aria-selected"]=Ze);var nt=r.createElement(gt,(0,h.Z)({ref:ye,elementRef:Y,role:m===null?"none":m||"menuitem",tabIndex:f?null:-1,"data-menu-id":C&&A?null:A},D,St,bt,{component:"li","aria-disabled":f,style:(0,y.Z)((0,y.Z)({},tt),i),className:Q()(z,(a={},(0,g.Z)(a,"".concat(z,"-active"),Ye),(0,g.Z)(a,"".concat(z,"-selected"),Ze),(0,g.Z)(a,"".concat(z,"-disabled"),k),a),n),onClick:ee,onKeyDown:te,onFocus:Vt}),d,r.createElement(ln,{props:(0,y.Z)((0,y.Z)({},e),{},{isSelected:Ze}),icon:Ut}));return le&&(nt=le(nt,e,{selected:Ze})),nt});function Ln(e,t){var a=e.eventKey,i=ct(),n=ze(a);return r.useEffect(function(){if(i)return i.registerPath(a,n),function(){i.unregisterPath(a,n)}},[n]),i?null:r.createElement(An,(0,h.Z)({},e,{ref:t}))}var Ve=r.forwardRef(Ln),Kt=["className","children"],cn=function(t,a){var i=t.className,n=t.children,l=(0,T.Z)(t,Kt),o=r.useContext(U),f=o.prefixCls,v=o.mode,d=o.rtl;return r.createElement("ul",(0,h.Z)({className:Q()(f,d&&"".concat(f,"-rtl"),"".concat(f,"-sub"),"".concat(f,"-").concat(v==="inline"?"inline":"vertical"),i),role:"menu"},l,{"data-menu-list":!0,ref:a}),n)},fn=r.forwardRef(cn);fn.displayName="SubMenuList";var Ot=fn,ht=s(54025);function wt(e,t){return(0,ht.Z)(e).map(function(a,i){if(r.isValidElement(a)){var n,l,o=a.key,f=(n=(l=a.props)===null||l===void 0?void 0:l.eventKey)!==null&&n!==void 0?n:o,v=f==null;v&&(f="tmp_key-".concat([].concat((0,$.Z)(t),[i]).join("-")));var d={key:f,eventKey:f};return r.cloneElement(a,d)}return a})}var We=s(25771),F={adjustX:1,adjustY:1},dn={topLeft:{points:["bl","tl"],overflow:F},topRight:{points:["br","tr"],overflow:F},bottomLeft:{points:["tl","bl"],overflow:F},bottomRight:{points:["tr","br"],overflow:F},leftTop:{points:["tr","tl"],overflow:F},leftBottom:{points:["br","bl"],overflow:F},rightTop:{points:["tl","tr"],overflow:F},rightBottom:{points:["bl","br"],overflow:F}},Tn={topLeft:{points:["bl","tl"],overflow:F},topRight:{points:["br","tr"],overflow:F},bottomLeft:{points:["tl","bl"],overflow:F},bottomRight:{points:["tr","br"],overflow:F},rightTop:{points:["tr","tl"],overflow:F},rightBottom:{points:["br","bl"],overflow:F},leftTop:{points:["tl","tr"],overflow:F},leftBottom:{points:["bl","br"],overflow:F}},Hn=null;function yt(e,t,a){if(t)return t;if(a)return a[e]||a.other}var vn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Dt(e){var t=e.prefixCls,a=e.visible,i=e.children,n=e.popup,l=e.popupClassName,o=e.popupOffset,f=e.disabled,v=e.mode,d=e.onVisibleChange,m=r.useContext(U),w=m.getPopupContainer,Z=m.rtl,x=m.subMenuOpenDelay,I=m.subMenuCloseDelay,S=m.builtinPlacements,D=m.triggerSubMenuAction,A=m.forceSubMenuRender,E=m.rootClassName,b=m.motion,p=m.defaultMotions,M=r.useState(!1),C=(0,c.Z)(M,2),K=C[0],oe=C[1],O=Z?(0,y.Z)((0,y.Z)({},Tn),S):(0,y.Z)((0,y.Z)({},dn),S),he=vn[v],le=yt(v,b,p),z=r.useRef(le);v!=="inline"&&(z.current=le);var ye=(0,y.Z)((0,y.Z)({},z.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=r.useRef();return r.useEffect(function(){return _.current=(0,Je.Z)(function(){oe(a)}),function(){Je.Z.cancel(_.current)}},[a]),r.createElement(We.Z,{prefixCls:t,popupClassName:Q()("".concat(t,"-popup"),(0,g.Z)({},"".concat(t,"-rtl"),Z),l,E),stretch:v==="horizontal"?"minWidth":null,getPopupContainer:w,builtinPlacements:O,popupPlacement:he,popupVisible:K,popup:n,popupAlign:o&&{offset:o},action:f?[]:[D],mouseEnterDelay:x,mouseLeaveDelay:I,onPopupVisibleChange:d,forceRender:A,popupMotion:ye},i)}var ge=s(32127);function mn(e){var t=e.id,a=e.open,i=e.keyPath,n=e.children,l="inline",o=r.useContext(U),f=o.prefixCls,v=o.forceSubMenuRender,d=o.motion,m=o.defaultMotions,w=o.mode,Z=r.useRef(!1);Z.current=w===l;var x=r.useState(!Z.current),I=(0,c.Z)(x,2),S=I[0],D=I[1],A=Z.current?a:!1;r.useEffect(function(){Z.current&&D(!1)},[w]);var E=(0,y.Z)({},yt(l,d,m));i.length>1&&(E.motionAppear=!1);var b=E.onVisibleChanged;return E.onVisibleChanged=function(p){return!Z.current&&!p&&D(!0),b==null?void 0:b(p)},S?null:r.createElement(He,{mode:l,locked:!Z.current},r.createElement(ge.ZP,(0,h.Z)({visible:A},E,{forceRender:v,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),function(p){var M=p.className,C=p.style;return r.createElement(Ot,{id:t,className:M,style:C},n)}))}var $n=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Te=["active"],At=function(t){var a,i=t.style,n=t.className,l=t.title,o=t.eventKey,f=t.warnKey,v=t.disabled,d=t.internalPopupClose,m=t.children,w=t.itemIcon,Z=t.expandIcon,x=t.popupClassName,I=t.popupOffset,S=t.onClick,D=t.onMouseEnter,A=t.onMouseLeave,E=t.onTitleClick,b=t.onTitleMouseEnter,p=t.onTitleMouseLeave,M=(0,T.Z)(t,$n),C=st(o),K=r.useContext(U),oe=K.prefixCls,O=K.mode,he=K.openKeys,le=K.disabled,z=K.overflowDisabled,ye=K.activeKey,_=K.selectedKeys,k=K.itemIcon,Y=K.expandIcon,V=K.onItemClick,Me=K.onOpenChange,Ut=K.onActive,Xe=r.useContext(ft),Ye=Xe._internalRenderSubMenuItem,St=r.useContext(Ht),Ze=St.isSubPathKey,tt=ze(),ee="".concat(oe,"-submenu"),te=le||v,Vt=r.useRef(),bt=r.useRef(),nt=w||k,Be=Z||Y,B=he.includes(o),H=!z&&B,yn=Ze(_,o),Cn=an(o,te,b,p),rt=Cn.active,Wt=(0,T.Z)(Cn,Te),Un=r.useState(!1),Vn=(0,c.Z)(Un,2),Wn=Vn[0],In=Vn[1],kt=function(Ce){te||In(Ce)},kn=function(Ce){kt(!0),D==null||D({key:o,domEvent:Ce})},xe=function(Ce){kt(!1),A==null||A({key:o,domEvent:Ce})},Sn=r.useMemo(function(){return rt||(O!=="inline"?Wn||Ze([ye],o):!1)},[O,rt,ye,Wn,o,Ze]),bn=on(tt.length),Rn=function(Ce){te||(E==null||E({key:o,domEvent:Ce}),O==="inline"&&Me(o,!B))},Xn=Ee(function(ue){S==null||S(Le(ue)),V(ue)}),Rt=function(Ce){O!=="inline"&&Me(o,Ce)},Xt=function(){Ut(o)},at=C&&"".concat(C,"-popup"),Yt=r.createElement("div",(0,h.Z)({role:"menuitem",style:bn,className:"".concat(ee,"-title"),tabIndex:te?null:-1,ref:Vt,title:typeof l=="string"?l:null,"data-menu-id":z&&C?null:C,"aria-expanded":H,"aria-haspopup":!0,"aria-controls":at,"aria-disabled":te,onClick:Rn,onFocus:Xt},Wt),l,r.createElement(ln,{icon:O!=="horizontal"?Be:null,props:(0,y.Z)((0,y.Z)({},t),{},{isOpen:H,isSubMenu:!0})},r.createElement("i",{className:"".concat(ee,"-arrow")}))),Et=r.useRef(O);if(O!=="inline"&&tt.length>1?Et.current="vertical":Et.current=O,!z){var se=Et.current;Yt=r.createElement(Dt,{mode:se,prefixCls:ee,visible:!d&&H&&O!=="inline",popupClassName:x,popupOffset:I,popup:r.createElement(He,{mode:se==="horizontal"?"vertical":se},r.createElement(Ot,{id:at,ref:bt},m)),disabled:te,onVisibleChange:Rt},Yt)}var Mt=r.createElement(ce.Z.Item,(0,h.Z)({role:"none"},M,{component:"li",style:i,className:Q()(ee,"".concat(ee,"-").concat(O),n,(a={},(0,g.Z)(a,"".concat(ee,"-open"),H),(0,g.Z)(a,"".concat(ee,"-active"),Sn),(0,g.Z)(a,"".concat(ee,"-selected"),yn),(0,g.Z)(a,"".concat(ee,"-disabled"),te),a)),onMouseEnter:kn,onMouseLeave:xe}),Yt,!z&&r.createElement(mn,{id:at,open:H,keyPath:tt},m));return Ye&&(Mt=Ye(Mt,t,{selected:yn,active:Sn,open:H,disabled:te})),r.createElement(He,{onItemClick:Xn,mode:O==="horizontal"?"vertical":O,itemIcon:nt,expandIcon:Be},Mt)};function $e(e){var t=e.eventKey,a=e.children,i=ze(t),n=wt(a,i),l=ct();r.useEffect(function(){if(l)return l.registerPath(t,i),function(){l.unregisterPath(t,i)}},[i]);var o;return l?o=n:o=r.createElement(At,e,n),r.createElement(xt.Provider,{value:i},o)}var Fn=s(88143),Ct=["className","title","eventKey","children"],zn=["children"],pn=function(t){var a=t.className,i=t.title,n=t.eventKey,l=t.children,o=(0,T.Z)(t,Ct),f=r.useContext(U),v=f.prefixCls,d="".concat(v,"-item-group");return r.createElement("li",(0,h.Z)({role:"presentation"},o,{onClick:function(w){return w.stopPropagation()},className:Q()(d,a)}),r.createElement("div",{role:"presentation",className:"".concat(d,"-title"),title:typeof i=="string"?i:void 0},i),r.createElement("ul",{role:"group",className:"".concat(d,"-list")},l))};function Lt(e){var t=e.children,a=(0,T.Z)(e,zn),i=ze(a.eventKey),n=wt(t,i),l=ct();return l?n:r.createElement(pn,(0,nn.Z)(a,["warnKey"]),n)}function Tt(e){var t=e.className,a=e.style,i=r.useContext(U),n=i.prefixCls,l=ct();return l?null:r.createElement("li",{className:Q()("".concat(n,"-item-divider"),t),style:a})}var $t=["label","children","key","type"];function It(e){return(e||[]).map(function(t,a){if(t&&(0,Fn.Z)(t)==="object"){var i=t,n=i.label,l=i.children,o=i.key,f=i.type,v=(0,T.Z)(i,$t),d=o!=null?o:"tmp-".concat(a);return l||f==="group"?f==="group"?r.createElement(Lt,(0,h.Z)({key:d},v,{title:n}),It(l)):r.createElement($e,(0,h.Z)({key:d},v,{title:n}),It(l)):f==="divider"?r.createElement(Tt,(0,h.Z)({key:d},v)):r.createElement(Ve,(0,h.Z)({key:d},v),n)}return null}).filter(function(t){return t})}function gn(e,t,a){var i=e;return t&&(i=It(t)),wt(i,a)}var et=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],ke=[],Ft=r.forwardRef(function(e,t){var a,i,n=e,l=n.prefixCls,o=l===void 0?"rc-menu":l,f=n.rootClassName,v=n.style,d=n.className,m=n.tabIndex,w=m===void 0?0:m,Z=n.items,x=n.children,I=n.direction,S=n.id,D=n.mode,A=D===void 0?"vertical":D,E=n.inlineCollapsed,b=n.disabled,p=n.disabledOverflow,M=n.subMenuOpenDelay,C=M===void 0?.1:M,K=n.subMenuCloseDelay,oe=K===void 0?.1:K,O=n.forceSubMenuRender,he=n.defaultOpenKeys,le=n.openKeys,z=n.activeKey,ye=n.defaultActiveFirst,_=n.selectable,k=_===void 0?!0:_,Y=n.multiple,V=Y===void 0?!1:Y,Me=n.defaultSelectedKeys,Ut=n.selectedKeys,Xe=n.onSelect,Ye=n.onDeselect,St=n.inlineIndent,Ze=St===void 0?24:St,tt=n.motion,ee=n.defaultMotions,te=n.triggerSubMenuAction,Vt=te===void 0?"hover":te,bt=n.builtinPlacements,nt=n.itemIcon,Be=n.expandIcon,B=n.overflowedIndicator,H=B===void 0?"...":B,yn=n.overflowedIndicatorPopupClassName,Cn=n.getPopupContainer,rt=n.onClick,Wt=n.onOpenChange,Un=n.onKeyDown,Vn=n.openAnimation,Wn=n.openTransitionName,In=n._internalRenderMenuItem,kt=n._internalRenderSubMenuItem,kn=(0,T.Z)(n,et),xe=r.useMemo(function(){return gn(x,Z,ke)},[x,Z]),Sn=r.useState(!1),bn=(0,c.Z)(Sn,2),Rn=bn[0],Xn=bn[1],Rt=r.useRef(),Xt=Ae(S),at=I==="rtl",Yt=(0,Ie.Z)(he,{value:le,postState:function(R){return R||ke}}),Et=(0,c.Z)(Yt,2),se=Et[0],Mt=Et[1],ue=function(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function J(){Mt(R),Wt==null||Wt(R)}P?(0,Ne.flushSync)(J):J()},Ce=r.useState(se),Jn=(0,c.Z)(Ce,2),sr=Jn[0],ur=Jn[1],Yn=r.useRef(!1),cr=r.useMemo(function(){return(A==="inline"||A==="vertical")&&E?["vertical",E]:[A,!1]},[A,E]),Qn=(0,c.Z)(cr,2),En=Qn[0],Bn=Qn[1],qn=En==="inline",fr=r.useState(En),_n=(0,c.Z)(fr,2),Ge=_n[0],dr=_n[1],vr=r.useState(Bn),er=(0,c.Z)(vr,2),mr=er[0],pr=er[1];r.useEffect(function(){dr(En),pr(Bn),Yn.current&&(qn?Mt(sr):ue(ke))},[En,Bn]);var gr=r.useState(0),tr=(0,c.Z)(gr,2),Mn=tr[0],hr=tr[1],Gn=Mn>=xe.length-1||Ge!=="horizontal"||p;r.useEffect(function(){qn&&ur(se)},[se]),r.useEffect(function(){return Yn.current=!0,function(){Yn.current=!1}},[]);var it=Nt(),nr=it.registerPath,rr=it.unregisterPath,yr=it.refreshOverflowKeys,ar=it.isSubPathKey,Cr=it.getKeyPath,Ir=it.getKeys,Sr=it.getSubPathKeys,br=r.useMemo(function(){return{registerPath:nr,unregisterPath:rr}},[nr,rr]),Rr=r.useMemo(function(){return{isSubPathKey:ar}},[ar]);r.useEffect(function(){yr(Gn?ke:xe.slice(Mn+1).map(function(L){return L.key}))},[Mn,Gn]);var Er=(0,Ie.Z)(z||ye&&((a=xe[0])===null||a===void 0?void 0:a.key),{value:z}),ir=(0,c.Z)(Er,2),Bt=ir[0],jn=ir[1],Mr=Ee(function(L){jn(L)}),Zr=Ee(function(){jn(void 0)});(0,r.useImperativeHandle)(t,function(){return{list:Rt.current,focus:function(R){var P,J=Bt!=null?Bt:(P=xe.find(function(Tr){return!Tr.props.disabled}))===null||P===void 0?void 0:P.key;if(J){var ne,ot,Gt;(ne=Rt.current)===null||ne===void 0||(ot=ne.querySelector("li[data-menu-id='".concat(be(Xt,J),"']")))===null||ot===void 0||(Gt=ot.focus)===null||Gt===void 0||Gt.call(ot,R)}}}});var xr=(0,Ie.Z)(Me||[],{value:Ut,postState:function(R){return Array.isArray(R)?R:R==null?ke:[R]}}),or=(0,c.Z)(xr,2),Zn=or[0],Pr=or[1],Nr=function(R){if(k){var P=R.key,J=Zn.includes(P),ne;V?J?ne=Zn.filter(function(Gt){return Gt!==P}):ne=[].concat((0,$.Z)(Zn),[P]):ne=[P],Pr(ne);var ot=(0,y.Z)((0,y.Z)({},R),{},{selectedKeys:ne});J?Ye==null||Ye(ot):Xe==null||Xe(ot)}!V&&se.length&&Ge!=="inline"&&ue(ke)},Kr=Ee(function(L){rt==null||rt(Le(L)),Nr(L)}),lr=Ee(function(L,R){var P=se.filter(function(ne){return ne!==L});if(R)P.push(L);else if(Ge!=="inline"){var J=Sr(L);P=P.filter(function(ne){return!J.has(ne)})}(0,Se.Z)(se,P,!0)||ue(P,!0)}),Or=function(R,P){var J=P!=null?P:!se.includes(R);lr(R,J)},wr=mt(Ge,Bt,at,Xt,Rt,Ir,Cr,jn,Or,Un);r.useEffect(function(){Xn(!0)},[]);var Dr=r.useMemo(function(){return{_internalRenderMenuItem:In,_internalRenderSubMenuItem:kt}},[In,kt]),Ar=Ge!=="horizontal"||p?xe:xe.map(function(L,R){return r.createElement(He,{key:L.key,overflowDisabled:R>Mn},L)}),Lr=r.createElement(ce.Z,(0,h.Z)({id:S,ref:Rt,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:Ve,className:Q()(o,"".concat(o,"-root"),"".concat(o,"-").concat(Ge),d,(i={},(0,g.Z)(i,"".concat(o,"-inline-collapsed"),mr),(0,g.Z)(i,"".concat(o,"-rtl"),at),i),f),dir:I,style:v,role:"menu",tabIndex:w,data:Ar,renderRawItem:function(R){return R},renderRawRest:function(R){var P=R.length,J=P?xe.slice(-P):null;return r.createElement($e,{eventKey:ie,title:H,disabled:Gn,internalPopupClose:P===0,popupClassName:yn},J)},maxCount:Ge!=="horizontal"||p?ce.Z.INVALIDATE:ce.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(R){hr(R)},onKeyDown:wr},kn));return r.createElement(ft.Provider,{value:Dr},r.createElement(lt.Provider,{value:Xt},r.createElement(He,{prefixCls:o,rootClassName:f,mode:Ge,openKeys:se,rtl:at,disabled:b,motion:Rn?tt:null,defaultMotions:Rn?ee:null,activeKey:Bt,onActive:Mr,onInactive:Zr,selectedKeys:Zn,inlineIndent:Ze,subMenuOpenDelay:C,subMenuCloseDelay:oe,forceSubMenuRender:O,builtinPlacements:bt,triggerSubMenuAction:Vt,getPopupContainer:Cn,itemIcon:nt,expandIcon:Be,onItemClick:Kr,onOpenChange:lr},r.createElement(Ht.Provider,{value:Rr},Lr),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(jt.Provider,{value:br},xe)))))}),hn=Ft,Fe=hn;Fe.Item=Ve,Fe.SubMenu=$e,Fe.ItemGroup=Lt,Fe.Divider=Tt;var zt=Fe},84026:function(xn,je,s){s.d(je,{Z:function(){return qt}});var h=s(87366),g=s(49919),y=s(47028),$=s(17576),c=s(93236),T=s(84875),Pe=s.n(T),Q=s(20537),ce=s(26420),Ie=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],fe=void 0;function r(u,W){var ve=u.prefixCls,X=u.invalidate,q=u.item,N=u.renderItem,G=u.responsive,re=u.responsiveDisabled,j=u.registerSize,me=u.itemKey,Ke=u.className,Oe=u.style,we=u.children,dt=u.display,pe=u.order,vt=u.component,qe=vt===void 0?"div":vt,Ue=(0,$.Z)(u,Ie),ae=G&&!dt;function mt(ie){j(me,ie)}c.useEffect(function(){return function(){mt(null)}},[]);var Pt=N&&q!==fe?N(q):we,Re;X||(Re={opacity:ae?0:1,height:ae?0:fe,overflowY:ae?"hidden":fe,order:G?pe:fe,pointerEvents:ae?"none":fe,position:ae?"absolute":fe});var _e={};ae&&(_e["aria-hidden"]=!0);var De=c.createElement(qe,(0,h.Z)({className:Pe()(!X&&ve,Ke),style:(0,g.Z)((0,g.Z)({},Re),Oe)},_e,Ue,{ref:W}),Pt);return G&&(De=c.createElement(Q.Z,{onResize:function(Nt){var Ee=Nt.offsetWidth;mt(Ee)},disabled:re},De)),De}var Ne=c.forwardRef(r);Ne.displayName="Item";var Se=Ne,lt=s(23755),be=s(19103),st=s(77550);function Zt(u){if(typeof MessageChannel=="undefined")(0,st.Z)(u);else{var W=new MessageChannel;W.port1.onmessage=function(){return u()},W.port2.postMessage(void 0)}}function Pn(){var u=c.useRef(null),W=function(X){u.current||(u.current=[],Zt(function(){(0,be.unstable_batchedUpdates)(function(){u.current.forEach(function(q){q()}),u.current=null})})),u.current.push(X)};return W}function U(u,W){var ve=c.useState(W),X=(0,y.Z)(ve,2),q=X[0],N=X[1],G=(0,lt.Z)(function(re){u(function(){N(re)})});return[q,G]}var ut=c.createContext(null),He=["component"],Nn=["className"],jt=["className"],ct=function(W,ve){var X=c.useContext(ut);if(!X){var q=W.component,N=q===void 0?"div":q,G=(0,$.Z)(W,He);return c.createElement(N,(0,h.Z)({},G,{ref:ve}))}var re=X.className,j=(0,$.Z)(X,Nn),me=W.className,Ke=(0,$.Z)(W,jt);return c.createElement(ut.Provider,{value:null},c.createElement(Se,(0,h.Z)({ref:ve,className:Pe()(re,me)},j,Ke)))},xt=c.forwardRef(ct);xt.displayName="RawItem";var ze=xt,Ht=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Jt="responsive",ft="invalidate";function de(u){return"+ ".concat(u.length," ...")}function Je(u,W){var ve=u.prefixCls,X=ve===void 0?"rc-overflow":ve,q=u.data,N=q===void 0?[]:q,G=u.renderItem,re=u.renderRawItem,j=u.itemKey,me=u.itemWidth,Ke=me===void 0?10:me,Oe=u.ssr,we=u.style,dt=u.className,pe=u.maxCount,vt=u.renderRest,qe=u.renderRawRest,Ue=u.suffix,ae=u.component,mt=ae===void 0?"div":ae,Pt=u.itemComponent,Re=u.onVisibleChange,_e=(0,$.Z)(u,Ht),De=Oe==="full",ie=Pn(),Nt=U(ie,null),Ee=(0,y.Z)(Nt,2),pt=Ee[0],_t=Ee[1],Ae=pt||0,Kn=U(ie,new Map),en=(0,y.Z)(Kn,2),tn=en[0],On=en[1],nn=U(ie,0),rn=(0,y.Z)(nn,2),an=rn[0],on=rn[1],ln=U(ie,0),sn=(0,y.Z)(ln,2),Le=sn[0],wn=sn[1],Dn=U(ie,0),un=(0,y.Z)(Dn,2),gt=un[0],An=un[1],Ln=(0,c.useState)(null),Ve=(0,y.Z)(Ln,2),Kt=Ve[0],cn=Ve[1],fn=(0,c.useState)(null),Ot=(0,y.Z)(fn,2),ht=Ot[0],wt=Ot[1],We=c.useMemo(function(){return ht===null&&De?Number.MAX_SAFE_INTEGER:ht||0},[ht,pt]),F=(0,c.useState)(!1),dn=(0,y.Z)(F,2),Tn=dn[0],Hn=dn[1],yt="".concat(X,"-item"),vn=Math.max(an,Le),Dt=pe===Jt,ge=N.length&&Dt,mn=pe===ft,$n=ge||typeof pe=="number"&&N.length>pe,Te=(0,c.useMemo)(function(){var e=N;return ge?pt===null&&De?e=N:e=N.slice(0,Math.min(N.length,Ae/Ke)):typeof pe=="number"&&(e=N.slice(0,pe)),e},[N,Ke,pt,pe,ge]),At=(0,c.useMemo)(function(){return ge?N.slice(We+1):N.slice(Te.length)},[N,Te,ge,We]),$e=(0,c.useCallback)(function(e,t){var a;return typeof j=="function"?j(e):(a=j&&(e==null?void 0:e[j]))!==null&&a!==void 0?a:t},[j]),Fn=(0,c.useCallback)(G||function(e){return e},[G]);function Ct(e,t,a){ht===e&&(t===void 0||t===Kt)||(wt(e),a||(Hn(e<N.length-1),Re==null||Re(e)),t!==void 0&&cn(t))}function zn(e,t){_t(t.clientWidth)}function pn(e,t){On(function(a){var i=new Map(a);return t===null?i.delete(e):i.set(e,t),i})}function Lt(e,t){wn(t),on(Le)}function Tt(e,t){An(t)}function $t(e){return tn.get($e(Te[e],e))}(0,ce.Z)(function(){if(Ae&&typeof vn=="number"&&Te){var e=gt,t=Te.length,a=t-1;if(!t){Ct(0,null);return}for(var i=0;i<t;i+=1){var n=$t(i);if(De&&(n=n||0),n===void 0){Ct(i-1,void 0,!0);break}if(e+=n,a===0&&e<=Ae||i===a-1&&e+$t(a)<=Ae){Ct(a,null);break}else if(e+vn>Ae){Ct(i-1,e-n-gt+Le);break}}Ue&&$t(0)+gt>Ae&&cn(null)}},[Ae,tn,Le,gt,$e,Te]);var It=Tn&&!!At.length,gn={};Kt!==null&&ge&&(gn={position:"absolute",left:Kt,top:0});var et={prefixCls:yt,responsive:ge,component:Pt,invalidate:mn},ke=re?function(e,t){var a=$e(e,t);return c.createElement(ut.Provider,{key:a,value:(0,g.Z)((0,g.Z)({},et),{},{order:t,item:e,itemKey:a,registerSize:pn,display:t<=We})},re(e,t))}:function(e,t){var a=$e(e,t);return c.createElement(Se,(0,h.Z)({},et,{order:t,key:a,item:e,renderItem:Fn,itemKey:a,registerSize:pn,display:t<=We}))},Ft,hn={order:It?We:Number.MAX_SAFE_INTEGER,className:"".concat(yt,"-rest"),registerSize:Lt,display:It};if(qe)qe&&(Ft=c.createElement(ut.Provider,{value:(0,g.Z)((0,g.Z)({},et),hn)},qe(At)));else{var Fe=vt||de;Ft=c.createElement(Se,(0,h.Z)({},et,hn),typeof Fe=="function"?Fe(At):Fe)}var zt=c.createElement(mt,(0,h.Z)({className:Pe()(!mn&&X,dt),style:we,ref:W},_e),Te.map(ke),$n?Ft:null,Ue&&c.createElement(Se,(0,h.Z)({},et,{responsive:Dt,responsiveDisabled:!ge,order:We,className:"".concat(yt,"-suffix"),registerSize:Tt,display:!0,style:gn}),Ue));return Dt&&(zt=c.createElement(Q.Z,{onResize:zn,disabled:!ge},zt)),zt}var Qe=c.forwardRef(Je);Qe.displayName="Overflow",Qe.Item=ze,Qe.RESPONSIVE=Jt,Qe.INVALIDATE=ft;var Qt=Qe,qt=Qt}}]);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/ajax_lv/approval-data-admin.git
git@gitee.com:ajax_lv/approval-data-admin.git
ajax_lv
approval-data-admin
approval-data-admin
gh-pages

搜索帮助