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
649 KiB

5 years ago
webpackJsonp([87,124],{1017:function(e,n,t){"use strict";t(27),t(1020)},1018:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==C(e)&&"function"!=typeof e)return{default:e};var n=u();if(n&&n.has(e))return n.get(e);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=a?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(t,r,o):t[r]=e[r]}t.default=e,n&&n.set(e,t);return t}(t(0)),d=f(t(3)),A=f(t(43)),a=t(7),r=f(t(26)),o=f(t(1023)),l=t(10),c=t(992),s=f(t(39)),p=f(t(306));function f(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function m(){return(m=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function h(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function B(e,n){return!n||"object"!==C(n)&&"function"!=typeof n?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):n}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e,n){return(x=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var y=function(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]])}return t},v=new RegExp("^(".concat(c.PresetColorTypes.join("|"),")(-inverse)?$")),k=function(){function n(e){var l;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),(l=B(this,g(n).call(this,e))).state={visible:!0},l.handleIconClick=function(e){l.setVisible(!1,e)},l.renderTag=function(e){var n=l.props,t=n.children,a=y(n,["children"]),r="onClick"in a||t&&"a"===t.type,o=(0,A.default)(a,["onClose","afterClose","color","visible","closable","prefixCls"]);return r?i.createElement(p.default,null,i.createElement("span",m({},o,{className:l.getTagClassName(e),style:l.getTagStyle()}),t,l.renderCloseIcon())):i.createElement("span",m({},o,{className:l.getTagClassName(e),style:l.getTagStyle()}),t,l.renderCloseIcon())},(0,s.default)(!("afterClose"in e),"Tag","'afterClose' will be deprecated, please use 'onClose', we will remove this in the next version."),l}var e,t,a;return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&x(e,n)}(n,i.Component),e=n,a=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:null}}],(t=[{key:"getTagStyle",value:function(){var e=this.props,n=e.color,t=e.style,a=this.isPresetColor();return m({backgroundColor:n&&!a?n:void 0},t)}},{key:"getTagClassName",value:function(e){var n,t=e.getPrefixCls,a=this.props,r=a.prefixCls,o=a.className,l=a.color,i=this.state.visible,A=this.isPresetColor(),c=t("tag",r);return(0,d.default)(c,(b(n={},"".concat(c,"-").concat(l),A),b(n,"".concat(c,"-has-color"),l&&!A),b(n,"".concat(c,"-hidden"),!i),n),o)}},{key:"setVisible",value:function(e,n){var t=this.pro