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
764 KiB
1 line
764 KiB
5 years ago
|
webpackJsonp([79,83],{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=f();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)),A=p(t(3)),s=p(t(43)),a=t(7),r=p(t(26)),o=p(t(1023)),l=t(10),c=t(992),d=p(t(39)),u=p(t(306));function p(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 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 m(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(){return(b=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,s.default)(a,["onClose","afterClose","color","visible","closable","prefixCls"]);return r?i.createElement(u.default,null,i.createElement("span",b({},o,{className:l.getTagClassName(e),style:l.getTagStyle()}),t,l.renderCloseIcon())):i.createElement("span",b({},o,{className:l.getTagClassName(e),style:l.getTagStyle()}),t,l.renderCloseIcon())},(0,d.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 b({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,s=this.isPresetColor(),c=t("tag",r);return(0,A.default)(c,(m(n={},"".concat(c,"-").concat(l),s),m(n,"".concat(c,"-has-color"),l&&!s),m(n,"".concat(c,"-hidden"),!i),n),o)}},{key:"setVisible",value:function(e,n){var t=this.prop
|