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 line
12 KiB
1 line
12 KiB
1 year ago
|
(this.webpackJsonp=this.webpackJsonp||[]).push([[7],{"7Lfq":function(e,t,n){},XBQK:function(e,t,n){"use strict";n.d(t,"a",(function(){return R}));var r=n("q1tI"),o=n.n(r),i=n("17x9"),a=n.n(i),l=n("i8i4"),c=n.n(l),s=n("uciX"),p=n("TSYQ"),u=n.n(p),f={adjustX:1,adjustY:1},y=[0,0],b={topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:y},topCenter:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:y},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:y},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:y},bottomCenter:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:y},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:y}},g=n("VCL8"),h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var m=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return v.call(r),r.state="visible"in n?{visible:n.visible}:{visible:n.defaultVisible},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e){return"visible"in e?{visible:e.visible}:null},t.prototype.getOverlayElement=function(){var e=this.props.overlay;return"function"==typeof e?e():e},t.prototype.getMenuElementOrLambda=function(){return"function"==typeof this.props.overlay?this.getMenuElement:this.getMenuElement()},t.prototype.getPopupDomNode=function(){return this.trigger.getPopupDomNode()},t.prototype.getOpenClassName=function(){var e=this.props,t=e.openClassName,n=e.prefixCls;return void 0!==t?t:n+"-open"},t.prototype.renderChildren=function(){var e=this.props.children,t=this.state.visible,n=e.props?e.props:{},o=u()(n.className,this.getOpenClassName());return t&&e?Object(r.cloneElement)(e,{className:o}):e},t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.transitionName,r=e.animation,i=e.align,a=e.placement,l=e.getPopupContainer,c=e.showAction,p=e.hideAction,u=e.overlayClassName,f=e.overlayStyle,y=e.trigger,g=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["prefixCls","transitionName","animation","align","placement","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","trigger"]),m=p;return m||-1===y.indexOf("contextMenu")||(m=["click"]),o.a.createElement(s.a,h({},g,{prefixCls:t,ref:this.saveTrigger,popupClassName:u,popupStyle:f,builtinPlacements:b,action:y,showAction:c,hideAction:m||[],popupPlacement:a,popupAlign:i,popupTransitionName:n,popupAnimation:r,popupVisible:this.state.visible,afterPopupVisibleChange:this.afterVisibleChange,popup:this.getMenuElementOrLambda(),onPopupVisibleChange:this.onVisibleChange,getPopupContainer:l}),this.renderChildren())},t}(r.Component);m.propTypes={minOverlayWidthMatchTrigger:a.a.bool,onVisibleChange:a.a.func,onOverlayClick:a.a.func,prefixCls:a.a.string,children:a.a.any,transitionName:a.a.string,overlayClassName:a.a.string,openClassName:a.a.string,animation:a.a.any,align:a.a.object,overlayStyle:a.a.object,placement:a.a.string,overlay:a.a.oneOfType([a.a.node,a.a.func]),trigger:a.a.array,alignPoint:a.a.bool,showAction:a.a.array,hideAction:a.a.array,getPopupContainer:a.a.func,visible:a.a.bool,defaultVisible:a.a.bool},m.defaultProps={prefixCls:"rc-dropdown",trigger:["hover"],showAction:[],overlayClassName:"",overlayStyle:{},defaultVisible:!1,onVisibleChange:function(){},placement:"bottomLeft"};var v=function(){var e=this;this.onClick=function(t){var n=e.props,r=e.getOverlayElement(
|