Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

2 строки
7.6 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[339,1322,9464,1981,2869,7013,9719,2383],{13277:function(){},77413:function(k,O,t){"use strict";t.r(O),t.d(O,{default:function(){return h}});var c=t(58024),E=t(91894),I=t(71153),u=t(60331),P=t(86582),d=t(39428),T=t(3182),s=t(2824),Z=t(47673),S=t(4107),C=t(67294),M=t(49101),A=t(78009),B=t(48971);function F(e){return j.apply(this,arguments)}function j(){return j=(0,T.Z)((0,d.Z)().mark(function e(i){return(0,d.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,B.WY)("/kitchen/api/goods-taste/goods-taste-list",{method:"get",data:i}));case 1:case"end":return o.stop()}},e)})),j.apply(this,arguments)}function $(e){return D.apply(this,arguments)}function D(){return D=(0,T.Z)((0,d.Z)().mark(function e(i){return(0,d.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,B.WY)("/kitchen/api/goods-taste/edit",{method:"post",data:i}));case 1:case"end":return o.stop()}},e)})),D.apply(this,arguments)}var m=t(85893),z=void 0,v=S.Z.Search,l=function(){var i=(0,C.useState)([]),R=(0,s.Z)(i,2),o=R[0],p=R[1],G=(0,C.useState)([!1]),y=(0,s.Z)(G,2),L=y[0],W=y[1],b=(0,C.useState)(""),K=(0,s.Z)(b,2),x=K[0],U=K[1];(0,C.useEffect)(function(){var g=function(){var a=(0,T.Z)((0,d.Z)().mark(function f(n){return(0,d.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,F().then(function(w){w.data&&p(w.data)});case 2:case"end":return N.stop()}},f)}));return function(n){return a.apply(this,arguments)}}();g()},[]);var Y=function(){var g=(0,T.Z)((0,d.Z)().mark(function a(){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,$(o);case 2:return n.next=4,H();case 4:case"end":return n.stop()}},a)}));return function(){return g.apply(this,arguments)}}(),H=function(){var g=(0,T.Z)((0,d.Z)().mark(function a(){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,F().then(function(r){r.data&&p(r.data)});case 2:case"end":return n.stop()}},a)}));return function(){return g.apply(this,arguments)}}(),J=function(a){U(a.target.value)},V=function(a){var f=(0,P.Z)(o),n=f[a].tasteClassList||[];x&&(!n||(n==null?void 0:n.indexOf(x))===-1)&&n.push(x),f[a].tasteClassList=n,p(f);var r=(0,P.Z)(L);r[a]=!1,W(r),U(""),Y()},Q=function(a,f){var n=(0,P.Z)(o),r=n[f].tasteClassList;r=r.filter(function(N){return N!==a}),n[f].tasteClassList=r,p(n),Y()};return(0,m.jsx)(A.ZP,{children:(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(E.Z,{title:"\u83DC\u54C1\u53E3\u5473",extra:(0,m.jsx)("div",{children:(0,m.jsx)(v,{enterButton:"\u6DFB\u52A0",onSearch:function(a){var f=o;!f.find(function(n){return n.tasteClassName==a})&&a&&p([].concat((0,P.Z)(f),[{tasteClassName:a,tasteClassList:[]}]))}})}),children:o==null?void 0:o.map(function(g,a){var f;return(0,m.jsxs)(E.Z,{title:g.tasteClassName,extra:(0,m.jsx)("a",{onClick:function(){var r=(0,P.Z)(o);r=r.filter(function(N){return N.tasteClassName!==g.tasteClassName}),p(r),$(r),H()},children:"\u5220\u9664"}),style:{width:300,height:300,float:"left"},children:[(f=g.tasteClassList)===null||f===void 0?void 0:f.map(function(n){var r=(0,m.jsx)(u.Z,{className:"edit-tag",style:{marginTop:"3px"},closable:!0,onClose:function(){return Q(n,a)},children:(0,m.jsxs)("span",{children:[" ",n," "]})},n);return r}),L[a]?(0,m.jsx)(S.Z,{style:{marginTop:"3px"},type:"text",size:"small",className:"tag-input",value:x,onChange:J,onBlur:V.bind(z,a),onPressEnter:V.bind(z,a)}):(0,m.jsxs)(u.Z,{className:"site-tag-plus",onClick:function(){var r=(0,P.Z)(L);r[a]=!0,W(r)},children:[(0,m.jsx)(M.Z,{})," \u6DFB\u52A0"]})]},a)})})})})},h=l},9708:function(k,O,t){"use strict";t.d(O,{Z:function(){return d},F:function(){return T}});var c=t(96156),E=t(94184),I=t.n(E),u=t(93355),P=(0,u.b)("warning","error","");function d(s,Z,S){var C;return I()((C={},(0,c.Z)(C,"".concat(s,"-status-success"),Z==="success"),(0,c.Z)(C,"".concat(s,"-status-warning"),Z==="warning"),(0,c.Z)(C,"".concat(s,"-status-error"),Z==="error"),(0,c.Z)(C,"".concat(s,"-status-validating"),Z==="validating"),(0,c.Z)(C,"".concat(s,"-has-feedback"),S),C))}var T=function(Z,S){return S||Z}},65223:function(k,O,t){"use strict";t.d(O,{q3:function(){return P},qI:function(){return d},RV:function(){return T},Rk:function(){return s},aM:function(){return Z},Ux:function(){return S}});var c=t(22122),E=t(48526),I=t(98423),u=t(67294),P=u.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),d=u.createContext(null),T=function(M){var A=(0,I.Z)(M,["prefixCls"]);return u.createElement(E.RV,(0,c.Z)({},A))},s=u.createContext({prefixCls:""}),Z=u.createContext({}),S=function(M){var A=M.children,B=M.status,F=M.override,j=(0,u.useContext)(Z),$=(0,u.useMemo)(function(){var D=(0,c.Z)({},j);return F&&delete D.isFormItemInput,B&&(delete D.status,delete D.hasFeedback,delete D.feedbackIcon),D},[B,F,j]);return u.createElement(Z.Provider,{value:$},A)}},60331:function(k,O,t){"use strict";t.d(O,{Z:function(){return z}});var c=t(96156),E=t(22122),I=t(28481),u=t(54549),P=t(94184),d=t.n(P),T=t(98423),s=t(67294),Z=t(53124),S=t(98787),C=t(21790),M=function(v,l){var h={};for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&l.indexOf(e)<0&&(h[e]=v[e]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,e=Object.getOwnPropertySymbols(v);i<e.length;i++)l.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(v,e[i])&&(h[e[i]]=v[e[i]]);return h},A=function(l){var h,e=l.prefixCls,i=l.className,R=l.checked,o=l.onChange,p=l.onClick,G=M(l,["prefixCls","className","checked","onChange","onClick"]),y=s.useContext(Z.E_),L=y.getPrefixCls,W=function(U){o==null||o(!R),p==null||p(U)},b=L("tag",e),K=d()(b,(h={},(0,c.Z)(h,"".concat(b,"-checkable"),!0),(0,c.Z)(h,"".concat(b,"-checkable-checked"),R),h),i);return s.createElement("span",(0,E.Z)({},G,{className:K,onClick:W}))},B=A,F=function(v,l){var h={};for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&l.indexOf(e)<0&&(h[e]=v[e]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,e=Object.getOwnPropertySymbols(v);i<e.length;i++)l.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(v,e[i])&&(h[e[i]]=v[e[i]]);return h},j=new RegExp("^(".concat(S.Y.join("|"),")(-inverse)?$")),$=new RegExp("^(".concat(S.E.join("|"),")$")),D=function(l,h){var e,i=l.prefixCls,R=l.className,o=l.style,p=l.children,G=l.icon,y=l.color,L=l.onClose,W=l.closeIcon,b=l.closable,K=b===void 0?!1:b,x=F(l,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),U=s.useContext(Z.E_),Y=U.getPrefixCls,H=U.direction,J=s.useState(!0),V=(0,I.Z)(J,2),Q=V[0],g=V[1];s.useEffect(function(){"visible"in x&&g(x.visible)},[x.visible]);var a=function(){return y?j.test(y)||$.test(y):!1},f=(0,E.Z)({backgroundColor:y&&!a()?y:void 0},o),n=a(),r=Y("tag",i),N=d()(r,(e={},(0,c.Z)(e,"".concat(r,"-").concat(y),n),(0,c.Z)(e,"".concat(r,"-has-color"),y&&!n),(0,c.Z)(e,"".concat(r,"-hidden"),!Q),(0,c.Z)(e,"".concat(r,"-rtl"),H==="rtl"),e),R),w=function(X){X.stopPropagation(),L==null||L(X),!X.defaultPrevented&&("visible"in x||g(!1))},et=function(){return K?W?s.createElement("span",{className:"".concat(r,"-close-icon"),onClick:w},W):s.createElement(u.Z,{className:"".concat(r,"-close-icon"),onClick:w}):null},nt="onClick"in x||p&&p.type==="a",at=(0,T.Z)(x,["visible"]),_=G||null,rt=_?s.createElement(s.Fragment,null,_,s.createElement("span",null,p)):p,q=s.createElement("span",(0,E.Z)({},at,{ref:h,className:N,style:f}),rt,et());return nt?s.createElement(C.Z,null,q):q},m=s.forwardRef(D);m.CheckableTag=B;var z=m},71153:function(k,O,t){"use strict";var c=t(38663),E=t.n(c),I=t(13277),u=t.n(I)},97435:function(k,O){"use strict";function t(c,E){for(var I=Object.assign({},c),u=0;u<E.length;u+=1){var P=E[u];delete I[P]}return I}O.Z=t}}]);