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.
2 lines
8.5 KiB
2 lines
8.5 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{"P/tu":function(Y,J,h){"use strict";var ne=h("ozfa"),$=h("MJZm"),F=h("0Owb"),Q=h("9og8"),X=h("tJVT"),q=h("PpiC"),N=h("q1tI"),L=h.n(N),ee=h("WCUW"),te=h("spXi"),G=h.n(te);function k(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */k=function(){return d};var d={},P=Object.prototype,v=P.hasOwnProperty,M=typeof Symbol=="function"?Symbol:{},T=M.iterator||"@@iterator",B=M.asyncIterator||"@@asyncIterator",j=M.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(r,n,o){return r[n]=o}}function W(t,e,r,n){var o=e&&e.prototype instanceof D?e:D,a=Object.create(o.prototype),u=new C(n||[]);return a._invoke=function(m,y,i){var _="suspendedStart";return function(E,H){if(_==="executing")throw new Error("Generator is already running");if(_==="completed"){if(E==="throw")throw H;return z()}for(i.method=E,i.arg=H;;){var Z=i.delegate;if(Z){var V=s(Z,i);if(V){if(V===l)continue;return V}}if(i.method==="next")i.sent=i._sent=i.arg;else if(i.method==="throw"){if(_==="suspendedStart")throw _="completed",i.arg;i.dispatchException(i.arg)}else i.method==="return"&&i.abrupt("return",i.arg);_="executing";var K=I(m,y,i);if(K.type==="normal"){if(_=i.done?"completed":"suspendedYield",K.arg===l)continue;return{value:K.arg,done:i.done}}K.type==="throw"&&(_="completed",i.method="throw",i.arg=K.arg)}}}(t,r,u),a}function I(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}d.wrap=W;var l={};function D(){}function x(){}function g(){}var R={};c(R,T,function(){return this});var S=Object.getPrototypeOf,U=S&&S(S(A([])));U&&U!==P&&v.call(U,T)&&(R=U);var b=g.prototype=D.prototype=Object.create(R);function w(t){["next","throw","return"].forEach(function(e){c(t,e,function(r){return this._invoke(e,r)})})}function f(t,e){function r(o,a,u,m){var y=I(t[o],t,a);if(y.type!=="throw"){var i=y.arg,_=i.value;return _&&typeof _=="object"&&v.call(_,"__await")?e.resolve(_.__await).then(function(E){r("next",E,u,m)},function(E){r("throw",E,u,m)}):e.resolve(_).then(function(E){i.value=E,u(i)},function(E){return r("throw",E,u,m)})}m(y.arg)}var n;this._invoke=function(o,a){function u(){return new e(function(m,y){r(o,a,m,y)})}return n=n?n.then(u,u):u()}}function s(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,s(t,e),e.method==="throw"))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=I(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function A(t){if(t){var e=t[T];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function o(){for(;++r<t.length;)if(v.call(t,r))return o.value=t[r],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:z}}function z(){return{value:void 0,done:!0}}return x.prototype=g,c(b,"constructor",g),c(g,"constructor",x),x.displayName=c(g,j,"GeneratorFunction"),d.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===x||(e.displayName||e.name)==="GeneratorFunction")},d.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,c(t,j,"GeneratorFunction")),t.prototype=Object.create(b),t},d.awrap=function(t){return{__await:t}},w(f.prototype),c(f.prototype,B,function(){return this}),d.AsyncIterator=f,d.async=function(t,e,r,n,o){o===void 0&&(o=Promise);var a=new f(W(t,e,r,n),o);return d.isGeneratorFunction(e)?a:a.next().then(function(u){return u.done?u.value:a.next()})},w(b),c(b,j,"Generator"),c(b,T,function(){return this}),c(b,"toString",function(){return"[object Generator]"}),d.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var o=e.pop();if(o in t)return n.value=o,n.done=!1,n}return n.done=!0,n}},d.values=A,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(p),!e)for(var r in this)r.charAt(0)==="t"&&v.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(i,_){return u.type="throw",u.arg=e,r.next=i,_&&(r.method="next",r.arg=void 0),!!_}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var m=v.call(a,"catchLoc"),y=v.call(a,"finallyLoc");if(m&&y){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(m){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!y)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&v.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=e,u.arg=r,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(u)},complete:function(e,r){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&r&&(this.next=r),l},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),p(n),l}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;p(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),l}},d}var re=function(P){var v=P.value,M=P.onChange,T=P.defaultValue,B=Object(q.a)(P,["value","onChange","defaultValue"]),j=Object(N.useState)([]),c=Object(X.a)(j,2),W=c[0],I=c[1],l=Object(N.useState)("1"),D=Object(X.a)(l,2),x=D[0],g=D[1];Object(N.useEffect)(function(){R()},[]);var R=function(){var b=Object(Q.a)(k().mark(function w(){var f,s;return k().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,Object(ee.x)({});case 2:f=p.sent,(f==null?void 0:f.data)&&(s=[{title:L.a.createElement("div",{title:"\u6839\u76EE\u5F55",className:G.a.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:L.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:S(f.data||[])}],I(s),g("2"));case 4:case"end":return p.stop()}},w)}));return function(){return b.apply(this,arguments)}}(),S=function(w){function f(s){var O=s.children,p=Array.isArray(O)&&O.length>0,C=s==null?void 0:s.group_id;return{title:L.a.createElement("div",{title:s==null?void 0:s.name,className:G.a.name},s==null?void 0:s.name),value:C,key:C,icon:L.a.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:p?O==null?void 0:O.map(function(A){return f(A)}):[]}}return w==null?void 0:w.map(function(s){return f(s)})},U=T?{defaultExpandedKeys:[0]}:{selectedKeys:v,defaultExpandedKeys:v};return L.a.createElement("div",{className:G.a.customTree},L.a.createElement($.a,Object(F.a)({key:x},U,{showIcon:!0,treeData:W,onSelect:M},B)))};J.a=re},spXi:function(Y,J,h){Y.exports={flex_box_center:"flex_box_center___2B_Y7",flex_space_between:"flex_space_between___2olzC",flex_box_vertical_center:"flex_box_vertical_center___2Z4dV",flex_box_center_end:"flex_box_center_end___3FiwX",flex_box_column:"flex_box_column___8kyK-",customTree:"customTree___1KOYx",name:"name___3pqs4"}}}]);
|