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
15 KiB
1 lines
15 KiB
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[471],{70347:function(){},79667:function(z,A,e){"use strict";var c=e(3182),P=e(57337),L=e(94043),d=e.n(L),p=e(96006),Z=e(67294),b=e(9265),M=e(85893),O=function(v){var y=Z.useState(),_=(0,P.Z)(y,2),o=_[0],i=_[1];return Z.useEffect(function(){if(!!v.value){var s=function(){var t=(0,c.Z)(d().mark(function r(){var h,g,E,j,m;return d().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,(0,p.l)({id:v.value});case 2:j=C.sent,m={key:(h=j.data)===null||h===void 0?void 0:h.id,label:(g=j.data)===null||g===void 0?void 0:g.name,value:(E=j.data)===null||E===void 0?void 0:E.id},i(m);case 5:case"end":return C.stop()}},r)}));return function(){return t.apply(this,arguments)}}();s()}},[v.value]),v.value&&!o?null:(0,M.jsx)(b.Z,{initOption:o,fetchOptions:function(){var s=(0,c.Z)(d().mark(function t(r){var h,g,E;return d().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,(0,p.tc)({name:r});case 2:if(g=m.sent,!((h=g.data)!==null&&h!==void 0&&h.list)){m.next=5;break}return m.abrupt("return",(E=g.data.list)===null||E===void 0?void 0:E.map(function(U){var C={label:U.name,value:U.id,key:U.id};return C}));case 5:return m.abrupt("return",void 0);case 6:case"end":return m.stop()}},t)}));return function(t){return s.apply(this,arguments)}}(),onChange:v.onChange,style:{width:"100%"}})};A.Z=O},9265:function(z,A,e){"use strict";var c=e(11849),P=e(43358),L=e(34041),d=e(20228),p=e(11382),Z=e(57337),b=e(93224),M=e(23279),O=e.n(M),R=e(67294),v=e(85893);function y(_){var o=_.fetchOptions,i=_.debounceTimeout,s=i===void 0?800:i,t=_.initOption,r=(0,b.Z)(_,["fetchOptions","debounceTimeout","initOption"]),h=R.useState(!1),g=(0,Z.Z)(h,2),E=g[0],j=g[1],m=[],U=null;t&&(m.push(t),U=t.value);var C=R.useState(m),k=(0,Z.Z)(C,2),ae=k[0],F=k[1],V=R.useRef(0),K=R.useMemo(function(){var ne=function(re){V.current+=1;var Y=V.current;F([]),j(!0),o(re).then(function(se){Y===V.current&&(F(se),j(!1))})};return O()(ne,s)},[o,s]);return(0,v.jsx)(L.Z,(0,c.Z)((0,c.Z)({showSearch:!0,filterOption:!1,defaultValue:U,onSearch:K,notFoundContent:E?(0,v.jsx)(p.Z,{size:"small"}):null},r),{},{options:ae}))}A.Z=y},97830:function(z,A,e){"use strict";var c=e(3182),P=e(57337),L=e(94043),d=e.n(L),p=e(42588),Z=e(67294),b=e(9265),M=e(85893),O=function(v){var y=Z.useState(),_=(0,P.Z)(y,2),o=_[0],i=_[1];return Z.useEffect(function(){if(!!v.value){var s=function(){var t=(0,c.Z)(d().mark(function r(){var h,g,E,j,m;return d().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,(0,p.Cn)({id:v.value});case 2:j=C.sent,m={key:(h=j.data)===null||h===void 0?void 0:h.id,label:(g=j.data)===null||g===void 0?void 0:g.title,value:(E=j.data)===null||E===void 0?void 0:E.id},i(m);case 5:case"end":return C.stop()}},r)}));return function(){return t.apply(this,arguments)}}();s()}},[v.value]),v.value&&!o?null:(0,M.jsx)(b.Z,{initOption:o,fetchOptions:function(){var s=(0,c.Z)(d().mark(function t(r){var h,g,E;return d().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,(0,p.qR)({title:r});case 2:if(g=m.sent,!((h=g.data)!==null&&h!==void 0&&h.list)){m.next=5;break}return m.abrupt("return",(E=g.data.list)===null||E===void 0?void 0:E.map(function(U){var C={label:U.title,value:U.id,key:U.id};return C}));case 5:return m.abrupt("return",void 0);case 6:case"end":return m.stop()}},t)}));return function(t){return s.apply(this,arguments)}}(),onChange:v.onChange,style:{width:"100%"}})};A.Z=O},579:function(z,A,e){"use strict";e.d(A,{Z:function(){return Me}});var c=e(9715),P=e(22712),L=e(34792),d=e(48086),p=e(11849),Z=e(3182),b=e(94043),M=e.n(b),O=e(97830),R=e(38663),v=e(70347),y=e(18106),_=e(13062),o=e(89032),i=e(96156),s=e(22122),t=e(67294),r=e(94184),h=e.n(r),g=e(98423),E=e(65632),j=function(n,u){var f={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&u.indexOf(a)<0&&(f[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(n);l<a.length;l++)u.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(n,a[l])&&(f[a[l]]=n[a[l]]);return f},m=function(u){var f=u.prefixCls,a=u.className,l=u.hoverable,B=l===void 0?!0:l,I=j(u,["prefixCls","className","hoverable"]);return t.createElement(E.C,null,function(W){var T=W.getPrefixCls,D=T("card",f),$=h()("".concat(D,"-grid"),a,(0,i.Z)({},"".concat(D,"-grid-hoverable"),B));return t.createElement("div",(0,s.Z)({},I,{className:$}))})},U=m,C=function(n,u){var f={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&u.indexOf(a)<0&&(f[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(n);l<a.length;l++)u.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(n,a[l])&&(f[a[l]]=n[a[l]]);return f},k=function(u){return t.createElement(E.C,null,function(f){var a=f.getPrefixCls,l=u.prefixCls,B=u.className,I=u.avatar,W=u.title,T=u.description,D=C(u,["prefixCls","className","avatar","title","description"]),$=a("card",l),N=h()("".concat($,"-meta"),B),H=I?t.createElement("div",{className:"".concat($,"-meta-avatar")},I):null,J=W?t.createElement("div",{className:"".concat($,"-meta-title")},W):null,q=T?t.createElement("div",{className:"".concat($,"-meta-description")},T):null,ee=J||q?t.createElement("div",{className:"".concat($,"-meta-detail")},J,q):null;return t.createElement("div",(0,s.Z)({},D,{className:N}),H,ee)})},ae=k,F=e(16004),V=e(71230),K=e(15746),ne=e(97647),ue=function(n,u){var f={};for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&u.indexOf(a)<0&&(f[a]=n[a]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(n);l<a.length;l++)u.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(n,a[l])&&(f[a[l]]=n[a[l]]);return f};function re(n){var u=n.map(function(f,a){return t.createElement("li",{style:{width:"".concat(100/n.length,"%")},key:"action-".concat(a)},t.createElement("span",null,f))});return u}var Y=t.forwardRef(function(n,u){var f,a,l=t.useContext(E.E_),B=l.getPrefixCls,I=l.direction,W=t.useContext(ne.Z),T=function(te){var w;(w=n.onTabChange)===null||w===void 0||w.call(n,te)},D=function(){var te;return t.Children.forEach(n.children,function(w){w&&w.type&&w.type===U&&(te=!0)}),te},$=n.prefixCls,N=n.className,H=n.extra,J=n.headStyle,q=J===void 0?{}:J,ee=n.bodyStyle,ie=ee===void 0?{}:ee,le=n.title,ce=n.loading,_e=n.bordered,je=_e===void 0?!0:_e,Ue=n.size,me=n.type,ve=n.cover,oe=n.actions,Q=n.tabList,Ie=n.children,fe=n.activeTabKey,Ae=n.defaultActiveTabKey,Re=n.tabBarExtraContent,Be=n.hoverable,pe=n.tabProps,We=pe===void 0?{}:pe,Le=ue(n,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),S=B("card",$),Ke=ie.padding===0||ie.padding==="0px"?{padding:24}:void 0,x=t.createElement("div",{className:"".concat(S,"-loading-block")}),$e=t.createElement("div",{className:"".concat(S,"-loading-content"),style:Ke},t.createElement(V.Z,{gutter:8},t.createElement(K.Z,{span:22},x)),t.createElement(V.Z,{gutter:8},t.createElement(K.Z,{span:8},x),t.createElement(K.Z,{span:15},x)),t.createElement(V.Z,{gutter:8},t.createElement(K.Z,{span:6},x),t.createElement(K.Z,{span:18},x)),t.createElement(V.Z,{gutter:8},t.createElement(K.Z,{span:13},x),t.createElement(K.Z,{span:9},x)),t.createElement(V.Z,{gutter:8},t.createElement(K.Z,{span:4},x),t.createElement(K.Z,{span:3},x),t.createElement(K.Z,{span:16},x))),he=fe!==void 0,xe=(0,s.Z)((0,s.Z)({},We),(f={},(0,i.Z)(f,he?"activeKey":"defaultActiveKey",he?fe:Ae),(0,i.Z)(f,"tabBarExtraContent",Re),f)),Ee,Pe=Q&&Q.length?t.createElement(F.Z,(0,s.Z)({size:"large"},xe,{className:"".concat(S,"-head-tabs"),onChange:T}),Q.map(function(X){return t.createElement(F.Z.TabPane,{tab:X.tab,disabled:X.disabled,key:X.key})})):null;(le||H||Pe)&&(Ee=t.createElement("div",{className:"".concat(S,"-head"),style:q},t.createElement("div",{className:"".concat(S,"-head-wrapper")},le&&t.createElement("div",{className:"".concat(S,"-head-title")},le),H&&t.createElement("div",{className:"".concat(S,"-extra")},H)),Pe));var Ve=ve?t.createElement("div",{className:"".concat(S,"-cover")},ve):null,Ge=t.createElement("div",{className:"".concat(S,"-body"),style:ie},ce?$e:Ie),Ne=oe&&oe.length?t.createElement("ul",{className:"".concat(S,"-actions")},re(oe)):null,we=(0,g.Z)(Le,["onTabChange"]),ge=Ue||W,ze=h()(S,(a={},(0,i.Z)(a,"".concat(S,"-loading"),ce),(0,i.Z)(a,"".concat(S,"-bordered"),je),(0,i.Z)(a,"".concat(S,"-hoverable"),Be),(0,i.Z)(a,"".concat(S,"-contain-grid"),D()),(0,i.Z)(a,"".concat(S,"-contain-tabs"),Q&&Q.length),(0,i.Z)(a,"".concat(S,"-").concat(ge),ge),(0,i.Z)(a,"".concat(S,"-type-").concat(me),!!me),(0,i.Z)(a,"".concat(S,"-rtl"),I==="rtl"),a),N);return t.createElement("div",(0,s.Z)({ref:u},we,{className:ze}),Ee,Ve,Ge,Ne)});Y.Grid=U,Y.Meta=ae;var se=Y,be=e(57337),Oe=e(42588),G=e(85893),ye=function(u){var f=t.useState(),a=(0,be.Z)(f,2),l=a[0],B=a[1];return t.useEffect(function(){if(!!u.poemId){var I=function(){var W=(0,Z.Z)(M().mark(function T(){var D;return M().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,(0,Oe.Cn)({id:u.poemId});case 2:D=N.sent,B(D.data);case 4:case"end":return N.stop()}},T)}));return function(){return W.apply(this,arguments)}}();I()}},[u.poemId]),!u.poemId||!l?null:(0,G.jsx)(se,{size:"small",title:l==null?void 0:l.title,style:{margin:"0 auto 20px",width:"50%",textAlign:"center"},extra:l.authorName,children:(0,G.jsx)("p",{style:{whiteSpace:"break-spaces"},children:l==null?void 0:l.content})})},Ce=ye,de=e(26697),Te=e(71975),De=e(97462),Se=e(90672),Ze=function(u){var f=(0,t.useRef)();return(0,G.jsx)("div",{children:(0,G.jsxs)(Te.a,{title:u.formTitle,formRef:f,layout:"horizontal",trigger:u.trigger,autoFocusFirstInput:!0,drawerProps:{destroyOnClose:!0},onVisibleChange:function(){var a=(0,Z.Z)(M().mark(function l(B){var I,W;return M().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(B){D.next=2;break}return D.abrupt("return");case 2:if(u.verseId){D.next=4;break}return D.abrupt("return");case 4:return D.next=6,(0,de.Wj)({id:u.verseId});case 6:I=D.sent,I.data&&((W=f.current)===null||W===void 0||W.setFieldsValue(I.data));case 8:case"end":return D.stop()}},l)}));return function(l){return a.apply(this,arguments)}}(),onFinish:function(){var a=(0,Z.Z)(M().mark(function l(B){var I;return M().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,(0,de.px)((0,p.Z)((0,p.Z)({},B),{},{id:u.verseId}));case 2:if(I=T.sent,!I.code){T.next=7;break}return d.default.success("\u63D0\u4EA4\u6210\u529F"),u.refresh&&u.refresh(),T.abrupt("return",!0);case 7:return T.abrupt("return",!1);case 8:case"end":return T.stop()}},l)}));return function(l){return a.apply(this,arguments)}}(),children:[(0,G.jsx)(De.Z,{name:["originId"],children:function(l){var B=l.originId;return(0,G.jsx)(Ce,{poemId:u.originId||B})}}),(0,G.jsx)(P.Z.Item,{initialValue:u.originId,style:{width:"40%"},label:"\u8BD7\u8BCD",name:"originId",shouldUpdate:!0,children:(0,G.jsx)(O.Z,{})}),(0,G.jsx)(Se.Z,{width:"md",name:"content",label:"\u91D1\u53E5",placeholder:"\u8BF7\u8F93\u5165"})]})})},Me=Ze},96006:function(z,A,e){"use strict";e.d(A,{l:function(){return Z},DU:function(){return M},xB:function(){return R},tc:function(){return y}});var c=e(11849),P=e(3182),L=e(94043),d=e.n(L),p=e(4614);function Z(o,i){return b.apply(this,arguments)}function b(){return b=(0,P.Z)(d().mark(function o(i,s){return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.WY)("/api/luigi/author/get",(0,c.Z)({method:"GET",params:(0,c.Z)({},i)},s||{})));case 1:case"end":return r.stop()}},o)})),b.apply(this,arguments)}function M(o,i){return O.apply(this,arguments)}function O(){return O=(0,P.Z)(d().mark(function o(i,s){return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.WY)("/api/luigi/author/list",(0,c.Z)({method:"POST",headers:{"Content-Type":"application/json"},data:i},s||{})));case 1:case"end":return r.stop()}},o)})),O.apply(this,arguments)}function R(o,i){return v.apply(this,arguments)}function v(){return v=(0,P.Z)(d().mark(function o(i,s){return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.WY)("/api/luigi/author/save",(0,c.Z)({method:"POST",headers:{"Content-Type":"application/json"},data:i},s||{})));case 1:case"end":return r.stop()}},o)})),v.apply(this,arguments)}function y(o,i){return _.apply(this,arguments)}function _(){return _=(0,P.Z)(d().mark(function o(i,s){return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.WY)("/api/luigi/author/seek",(0,c.Z)({method:"GET",params:(0,c.Z)({},i)},s||{})));case 1:case"end":return r.stop()}},o)})),_.apply(this,arguments)}},42588:function(z,A,e){"use strict";e.d(A,{Cn:function(){return Z},Tg:function(){return M},Z6:function(){return R},qR:function(){return y}});var c=e(11849),P=e(3182),L=e(94043),d=e.n(L),p=e(4614);function Z(o,i){return b.apply(this,arguments)}function b(){return b=(0,P.Z)(d().mark(function o(i,s){return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.WY)("/api/luigi/poem/detail",(0,c.Z)({method:"GET",params:(0,c.Z)({},i)},s||{})));case 1:case"end":return r.stop()}},o)})),b.apply(this,arguments)}function M(o,i){return O.apply(this,arguments)}function O(){return O=(0,P.Z)(d().mark(function o(i,s){return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.WY)("/api/luigi/poem/list",(0,c.Z)({method:"POST",headers:{"Content-Type":"application/json"},data:i},s||{})));case 1:case"end":return r.stop()}},o)})),O.apply(this,arguments)}function R(o,i){return v.apply(this,arguments)}function v(){return v=(0,P.Z)(d().mark(function o(i,s){return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.WY)("/api/luigi/poem/save",(0,c.Z)({method:"POST",headers:{"Content-Type":"application/json"},data:i},s||{})));case 1:case"end":return r.stop()}},o)})),v.apply(this,arguments)}function y(o,i){return _.apply(this,arguments)}function _(){return _=(0,P.Z)(d().mark(function o(i,s){return d().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,p.WY)("/api/luigi/poem/seek",(0,c.Z)({method:"GET",params:(0,c.Z)({},i)},s||{})));case 1:case"end":return r.stop()}},o)})),_.apply(this,arguments)}},26697:function(z,A,e){"use strict";e.d(A,{Wj:function(){return Z},c:function(){return M},px:function(){return R}});var c=e(11849),P=e(3182),L=e(94043),d=e.n(L),p=e(4614);function Z(y,_){return b.apply(this,arguments)}function b(){return b=(0,P.Z)(d().mark(function y(_,o){return d().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,p.WY)("/api/luigi/verse/get",(0,c.Z)({method:"GET",params:(0,c.Z)({},_)},o||{})));case 1:case"end":return s.stop()}},y)})),b.apply(this,arguments)}function M(y,_){return O.apply(this,arguments)}function O(){return O=(0,P.Z)(d().mark(function y(_,o){return d().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,p.WY)("/api/luigi/verse/list",(0,c.Z)({method:"POST",headers:{"Content-Type":"application/json"},data:_},o||{})));case 1:case"end":return s.stop()}},y)})),O.apply(this,arguments)}function R(y,_){return v.apply(this,arguments)}function v(){return v=(0,P.Z)(d().mark(function y(_,o){return d().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",(0,p.WY)("/api/luigi/verse/save",(0,c.Z)({method:"POST",headers:{"Content-Type":"application/json"},data:_},o||{})));case 1:case"end":return s.stop()}},y)})),v.apply(this,arguments)}}}]);
|
|
|