You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
11 KiB
1 lines
11 KiB
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8033],{58491:function(Z,N,e){"use strict";e.d(N,{Z:function(){return l}});var m=e(28991),O=e(67294),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},L=P,f=e(27029),U=function(n,s){return O.createElement(f.Z,(0,m.Z)((0,m.Z)({},n),{},{ref:s,icon:L}))};U.displayName="UpOutlined";var l=O.forwardRef(U)},64698:function(Z){Z.exports={avatarList:"avatarList___1Twgv",avatarItem:"avatarItem___16EyN",avatarItemLarge:"avatarItemLarge___5VUZ6",avatarItemSmall:"avatarItemSmall___rCe9R",avatarItemMini:"avatarItemMini___2fmPX"}},39783:function(Z){Z.exports={standardFormRow:"standardFormRow___rVZMU",label:"label___2UOXv",content:"content___pJkbN",standardFormRowLast:"standardFormRowLast___1apgA",standardFormRowBlock:"standardFormRowBlock___eVu8k",standardFormRowGrid:"standardFormRowGrid___3aiHp"}},49590:function(Z){Z.exports={tagSelect:"tagSelect___1aaMH",expanded:"expanded___3hv8W",trigger:"trigger___3t1ed",anticon:"anticon___12aY1",hasExpandTag:"hasExpandTag___1WI1K"}},22190:function(Z){Z.exports={coverCardList:"coverCardList___2LrlR",card:"card___1WgqT",cardItemContent:"cardItemContent___Un4wM",avatarList:"avatarList___2kgtw",cardList:"cardList___2OFVD"}},18053:function(Z,N,e){"use strict";e.r(N),e.d(N,{default:function(){return ze}});var m=e(13062),O=e(71230),P=e(89032),L=e(15746),f=e(11849),U=e(54421),l=e(38272),a=e(58024),n=e(91894),s=e(402),o=e(97272),v=e(9715),d=e(86835),u=e(43358),h=e(34041),D=e(30381),C=e.n(D),T=e(25377),M=e(93224),w=e(22385),k=e(61580),q=e(94233),W=e(51890),j=e(32059),$=e(67294),je=e(94184),_=e.n(je),Ee=e(64698),X=e.n(Ee),t=e(85893),re=function(r){var i;return _()(X().avatarItem,(i={},(0,j.Z)(i,X().avatarItemLarge,r==="large"),(0,j.Z)(i,X().avatarItemSmall,r==="small"),(0,j.Z)(i,X().avatarItemMini,r==="mini"),i))},pe=function(r){var i=r.src,c=r.size,y=r.tips,g=r.onClick,R=g===void 0?function(){}:g,S=re(c);return(0,t.jsx)("li",{className:S,onClick:R,children:y?(0,t.jsx)(k.Z,{title:y,children:(0,t.jsx)(W.C,{src:i,size:c,style:{cursor:"pointer"}})}):(0,t.jsx)(W.C,{src:i,size:c})})},le=function(r){var i=r.children,c=r.size,y=r.maxLength,g=y===void 0?5:y,R=r.excessItemsStyle,S=(0,M.Z)(r,["children","size","maxLength","excessItemsStyle"]),p=$.Children.count(i),x=g>=p?p:g,F=$.Children.toArray(i),G=F.slice(0,x).map(function(Q){return $.cloneElement(Q,{size:c})});if(x<p){var J=re(c);G.push((0,t.jsx)("li",{className:J,children:(0,t.jsx)(W.C,{size:c,style:R,children:"+".concat(p-g)})},"exceed"))}return(0,t.jsx)("div",(0,f.Z)((0,f.Z)({},S),{},{className:X().avatarList,children:(0,t.jsxs)("ul",{children:[" ",G," "]})}))};le.Item=pe;var se=le,Ze=e(39783),V=e.n(Ze),Te=function(r){var i,c=r.title,y=r.children,g=r.last,R=r.block,S=r.grid,p=(0,M.Z)(r,["title","children","last","block","grid"]),x=_()(V().standardFormRow,(i={},(0,j.Z)(i,V().standardFormRowBlock,R),(0,j.Z)(i,V().standardFormRowLast,g),(0,j.Z)(i,V().standardFormRowGrid,S),i));return(0,t.jsxs)("div",(0,f.Z)((0,f.Z)({className:x},p),{},{children:[c&&(0,t.jsx)("div",{className:V().label,children:(0,t.jsx)("span",{children:c})}),(0,t.jsx)("div",{className:V().content,children:y})]}))},oe=Te,Se=e(86582),ie=e(2824),Qe=e(71153),Oe=e(60331),Le=e(58491),Ie=e(57254),Be=e(59819),Ne=e(74081),Ae=e(49590),Y=e.n(Ae),de=Oe.Z.CheckableTag,ce=function(r){var i=r.children,c=r.checked,y=r.onChange,g=r.value;return(0,t.jsx)(de,{checked:!!c,onChange:function(S){return y&&y(g,S)},children:i},g)};ce.isTagSelectOption=!0;var ue=function(r){var i,c=r.children,y=r.hideCheckAll,g=y===void 0?!1:y,R=r.className,S=r.style,p=r.expandable,x=r.actionsText,F=x===void 0?{}:x,G=(0,Be.Z)(),J=(0,ie.Z)(G,2),Q=J[0],We=J[1].toggle,$e=(0,Ne.Z)(r),me=(0,ie.Z)($e,2),H=me[0],fe=me[1],he=function(B){return B&&B.type&&(B.type.isTagSelectOption||B.type.displayName==="TagSelectOption")},ge=function(){var B=$.Children.toArray(c),z=B.filter(function(K){return he(K)}).map(function(K){return K.props.value});return z||[]},Ve=function(B){var z=[];B&&(z=ge()),fe(z)},be=function(B,z){var K=(0,Se.Z)(H||[]),ne=K.indexOf(B);z&&ne===-1?K.push(B):!z&&ne>-1&&K.splice(ne,1),fe(K)},Ge=ge().length===(H==null?void 0:H.length),xe=F.expandText,He=xe===void 0?"\u5C55\u5F00":xe,ye=F.collapseText,Xe=ye===void 0?"\u6536\u8D77":ye,Ce=F.selectAllText,Ye=Ce===void 0?"\u5168\u90E8":Ce,Je=_()(Y().tagSelect,R,(i={},(0,j.Z)(i,Y().hasExpandTag,p),(0,j.Z)(i,Y().expanded,Q),i));return(0,t.jsxs)("div",{className:Je,style:S,children:[g?null:(0,t.jsx)(de,{checked:Ge,onChange:Ve,children:Ye},"tag-select-__all__"),c&&$.Children.map(c,function(I){return he(I)?$.cloneElement(I,{key:"tag-select-".concat(I.props.value),value:I.props.value,checked:H&&H.indexOf(I.props.value)>-1,onChange:be}):I}),p&&(0,t.jsx)("a",{className:Y().trigger,onClick:function(){We()},children:Q?(0,t.jsxs)(t.Fragment,{children:[Xe," ",(0,t.jsx)(Le.Z,{})]}):(0,t.jsxs)(t.Fragment,{children:[He,(0,t.jsx)(Ie.Z,{})]})})]})};ue.Option=ce;var E=ue,Re=e(3182),Fe=e(94043),ve=e.n(Fe);function Pe(A){return ee.apply(this,arguments)}function ee(){return ee=(0,Re.Z)(ve().mark(function A(r){return ve().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,T.WY)("/api/fake_list",{params:r}));case 1:case"end":return c.stop()}},A)})),ee.apply(this,arguments)}var Ue=e(22190),b=e.n(Ue),te=h.Z.Option,ae=d.Z.Item,De=o.Z.Paragraph,Me=function(r,i){return"".concat(r,"-").concat(i)},Ke=function(){var r=(0,T.QT)(function(p){return console.log("form data",p),Pe({count:8})}),i=r.data,c=r.loading,y=r.run,g=(i==null?void 0:i.list)||[],R=g&&(0,t.jsx)(l.ZP,{rowKey:"id",loading:c,grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},dataSource:g,renderItem:function(x){return(0,t.jsx)(l.ZP.Item,{children:(0,t.jsxs)(n.Z,{className:b().card,hoverable:!0,cover:(0,t.jsx)("img",{alt:x.title,src:x.cover}),children:[(0,t.jsx)(n.Z.Meta,{title:(0,t.jsx)("a",{children:x.title}),description:(0,t.jsx)(De,{className:b().item,ellipsis:{rows:2},children:x.subDescription})}),(0,t.jsxs)("div",{className:b().cardItemContent,children:[(0,t.jsx)("span",{children:C()(x.updatedAt).fromNow()}),(0,t.jsx)("div",{className:b().avatarList,children:(0,t.jsx)(se,{size:"small",children:x.members.map(function(F,G){return(0,t.jsx)(se.Item,{src:F.avatar,tips:F.name},Me(x.id,G))})})})]})]})})}}),S={wrapperCol:{xs:{span:24},sm:{span:16}}};return(0,t.jsxs)("div",{className:b().coverCardList,children:[(0,t.jsx)(n.Z,{bordered:!1,children:(0,t.jsxs)(d.Z,{layout:"inline",onValuesChange:function(x,F){y(F)},children:[(0,t.jsx)(oe,{title:"\u6240\u5C5E\u7C7B\u76EE",block:!0,style:{paddingBottom:11},children:(0,t.jsx)(ae,{name:"category",children:(0,t.jsxs)(E,{expandable:!0,children:[(0,t.jsx)(E.Option,{value:"cat1",children:"\u7C7B\u76EE\u4E00"}),(0,t.jsx)(E.Option,{value:"cat2",children:"\u7C7B\u76EE\u4E8C"}),(0,t.jsx)(E.Option,{value:"cat3",children:"\u7C7B\u76EE\u4E09"}),(0,t.jsx)(E.Option,{value:"cat4",children:"\u7C7B\u76EE\u56DB"}),(0,t.jsx)(E.Option,{value:"cat5",children:"\u7C7B\u76EE\u4E94"}),(0,t.jsx)(E.Option,{value:"cat6",children:"\u7C7B\u76EE\u516D"}),(0,t.jsx)(E.Option,{value:"cat7",children:"\u7C7B\u76EE\u4E03"}),(0,t.jsx)(E.Option,{value:"cat8",children:"\u7C7B\u76EE\u516B"}),(0,t.jsx)(E.Option,{value:"cat9",children:"\u7C7B\u76EE\u4E5D"}),(0,t.jsx)(E.Option,{value:"cat10",children:"\u7C7B\u76EE\u5341"}),(0,t.jsx)(E.Option,{value:"cat11",children:"\u7C7B\u76EE\u5341\u4E00"}),(0,t.jsx)(E.Option,{value:"cat12",children:"\u7C7B\u76EE\u5341\u4E8C"})]})})}),(0,t.jsx)(oe,{title:"\u5176\u5B83\u9009\u9879",grid:!0,last:!0,children:(0,t.jsxs)(O.Z,{gutter:16,children:[(0,t.jsx)(L.Z,{lg:8,md:10,sm:10,xs:24,children:(0,t.jsx)(ae,(0,f.Z)((0,f.Z)({},S),{},{label:"\u4F5C\u8005",name:"author",children:(0,t.jsx)(h.Z,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},children:(0,t.jsx)(te,{value:"lisa",children:"\u738B\u662D\u541B"})})}))}),(0,t.jsx)(L.Z,{lg:8,md:10,sm:10,xs:24,children:(0,t.jsx)(ae,(0,f.Z)((0,f.Z)({},S),{},{label:"\u597D\u8BC4\u5EA6",name:"rate",children:(0,t.jsxs)(h.Z,{placeholder:"\u4E0D\u9650",style:{maxWidth:200,width:"100%"},children:[(0,t.jsx)(te,{value:"good",children:"\u4F18\u79C0"}),(0,t.jsx)(te,{value:"normal",children:"\u666E\u901A"})]})}))})]})})]})}),(0,t.jsx)("div",{className:b().cardList,children:R})]})},ze=Ke},59819:function(Z,N,e){"use strict";e.d(N,{Z:function(){return U}});var m=e(67294),O=function(l,a){var n=typeof Symbol=="function"&&l[Symbol.iterator];if(!n)return l;var s=n.call(l),o,v=[],d;try{for(;(a===void 0||a-- >0)&&!(o=s.next()).done;)v.push(o.value)}catch(u){d={error:u}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(d)throw d.error}}return v};function P(l,a){l===void 0&&(l=!1);var n=O((0,m.useState)(l),2),s=n[0],o=n[1],v=(0,m.useMemo)(function(){var d=a===void 0?!l:a,u=function(T){if(T!==void 0){o(T);return}o(function(M){return M===l?d:l})},h=function(){return o(l)},D=function(){return o(d)};return{toggle:u,setLeft:h,setRight:D}},[l,a]);return[s,v]}var L=P,f=function(l,a){var n=typeof Symbol=="function"&&l[Symbol.iterator];if(!n)return l;var s=n.call(l),o,v=[],d;try{for(;(a===void 0||a-- >0)&&!(o=s.next()).done;)v.push(o.value)}catch(u){d={error:u}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(d)throw d.error}}return v};function U(l){l===void 0&&(l=!1);var a=f(L(l),2),n=a[0],s=a[1].toggle,o=(0,m.useMemo)(function(){var v=function(){return s(!0)},d=function(){return s(!1)};return{toggle:s,setTrue:v,setFalse:d}},[s]);return[n,o]}},74081:function(Z,N,e){"use strict";e.d(N,{Z:function(){return l}});var m=e(67294),O=function(n,s){var o=(0,m.useRef)(!1);(0,m.useEffect)(function(){if(!o.current)o.current=!0;else return n()},s)},P=O,L=function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var o=s.call(a),v,d=[],u;try{for(;(n===void 0||n-- >0)&&!(v=o.next()).done;)d.push(v.value)}catch(h){u={error:h}}finally{try{v&&!v.done&&(s=o.return)&&s.call(o)}finally{if(u)throw u.error}}return d},f=function(){for(var a=[],n=0;n<arguments.length;n++)a=a.concat(L(arguments[n]));return a};function U(a,n){a===void 0&&(a={}),n===void 0&&(n={});var s=n.defaultValue,o=n.defaultValuePropName,v=o===void 0?"defaultValue":o,d=n.valuePropName,u=d===void 0?"value":d,h=n.trigger,D=h===void 0?"onChange":h,C=a[u],T=L((0,m.useState)(function(){return u in a?C:v in a?a[v]:s}),2),M=T[0],w=T[1];P(function(){u in a&&w(C)},[C,u]);var k=(0,m.useCallback)(function(q){for(var W=[],j=1;j<arguments.length;j++)W[j-1]=arguments[j];u in a||w(q),a[D]&&a[D].apply(a,f([q],W))},[a,u,D]);return[u in a?C:M,k]}var l=U},34952:function(Z,N,e){"use strict";var m=e(22122),O=e(67294),P=e(15105),L=function(l,a){var n={};for(var s in l)Object.prototype.hasOwnProperty.call(l,s)&&a.indexOf(s)<0&&(n[s]=l[s]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(l);o<s.length;o++)a.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(l,s[o])&&(n[s[o]]=l[s[o]]);return n},f={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},U=O.forwardRef(function(l,a){var n=function(C){var T=C.keyCode;T===P.Z.ENTER&&C.preventDefault()},s=function(C){var T=C.keyCode,M=l.onClick;T===P.Z.ENTER&&M&&M()},o=l.style,v=l.noStyle,d=l.disabled,u=L(l,["style","noStyle","disabled"]),h={};return v||(h=(0,m.Z)({},f)),d&&(h.pointerEvents="none"),h=(0,m.Z)((0,m.Z)({},h),o),O.createElement("div",(0,m.Z)({role:"button",tabIndex:0,ref:a},u,{onKeyDown:n,onKeyUp:s,style:h}))});N.Z=U}}]);
|
|
|