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
503 KiB
1 line
503 KiB
5 years ago
|
webpackJsonp([116],{1017:function(e,n,a){"use strict";a(27),a(1020)},1018:function(e,n,a){"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"!==h(e)&&"function"!=typeof e)return{default:e};var n=f();if(n&&n.has(e))return n.get(e);var a={},t=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=t?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(a,r,o):a[r]=e[r]}a.default=e,n&&n.set(e,a);return a}(a(0)),s=u(a(3)),d=u(a(43)),t=a(7),r=u(a(26)),o=u(a(1023)),l=a(10),c=a(992),p=u(a(39)),A=u(a(306));function u(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function h(e){return(h="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 m(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function b(){return(b=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e}).apply(this,arguments)}function C(e,n){for(var a=0;a<n.length;a++){var t=n[a];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function g(e,n){return!n||"object"!==h(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 B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,n){return(v=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}var y=function(e,n){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(t=Object.getOwnPropertySymbols(e);r<t.length;r++)n.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(a[t[r]]=e[t[r]])}return a},x=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=g(this,B(n).call(this,e))).state={visible:!0},l.handleIconClick=function(e){l.setVisible(!1,e)},l.renderTag=function(e){var n=l.props,a=n.children,t=y(n,["children"]),r="onClick"in t||a&&"a"===a.type,o=(0,d.default)(t,["onClose","afterClose","color","visible","closable","prefixCls"]);return r?i.createElement(A.default,null,i.createElement("span",b({},o,{className:l.getTagClassName(e),style:l.getTagStyle()}),a,l.renderCloseIcon())):i.createElement("span",b({},o,{className:l.getTagClassName(e),style:l.getTagStyle()}),a,l.renderCloseIcon())},(0,p.default)(!("afterClose"in e),"Tag","'afterClose' will be deprecated, please use 'onClose', we will remove this in the next version."),l}var e,a,t;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&&v(e,n)}(n,i.Component),e=n,t=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:null}}],(a=[{key:"getTagStyle",value:function(){var e=this.props,n=e.color,a=e.style,t=this.isPresetColor();return b({backgroundColor:n&&!t?n:void 0},a)}},{key:"getTagClassName",value:function(e){var n,a=e.getPrefixCls,t=this.props,r=t.prefixCls,o=t.className,l=t.color,i=this.state.visible,d=this.isPresetColor(),c=a("tag",r);return(0,s.default)(c,(m(n={},"".concat(c,"-").concat(l),d),m(n,"".concat(c,"-has-color"),l&&!d),m(n,"".concat(c,"-hidden"),!i),n),o)}},{key:"setVisible",value:function(e,n){var a=this.props,
|