mirror of
https://github.com/v2board/v2board.git
synced 2024-11-14 07:29:13 +08:00
1 line
703 KiB
JavaScript
1 line
703 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[0],{"+BJd":function(e,c,t){"use strict";t("cIOH"),t("6MrE")},"+L6B":function(e,c,t){"use strict";t("cIOH"),t("qCM6")},"/wGt":function(e,c,t){"use strict";var n=t("q1tI"),r=t("fcSX"),o=t("foW8"),l=t.n(o),a=t("TSYQ"),i=t.n(a),u=t("BGR+"),s=t("6CfX"),h=t("CtXQ"),v=t("wEI+"),f=t("CWQg");function p(e){return p="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},p(e)}function m(){return m=Object.assign||function(e){for(var c=1;c<arguments.length;c++){var t=arguments[c];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},m.apply(this,arguments)}function z(e,c){if(!(e instanceof c))throw new TypeError("Cannot call a class as a function")}function d(e,c){for(var t=0;t<c.length;t++){var n=c[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,c,t){return c&&d(e.prototype,c),t&&d(e,t),e}function b(e,c){return!c||"object"!==p(c)&&"function"!==typeof c?H(e):c}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(c&&c.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),c&&V(e,c)}function V(e,c){return V=Object.setPrototypeOf||function(e,c){return e.__proto__=c,e},V(e,c)}var C=function(e,c){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&c.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)c.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t},O=l()(null),w=(Object(f["a"])("top","right","bottom","left"),function(e){function c(){var e;return z(this,c),e=b(this,M(c).apply(this,arguments)),e.state={push:!1},e.push=function(){e.setState({push:!0})},e.pull=function(){e.setState({push:!1})},e.onDestroyTransitionEnd=function(){var c=e.getDestroyOnClose();c&&(e.props.visible||(e.destroyClose=!0,e.forceUpdate()))},e.getDestroyOnClose=function(){return e.props.destroyOnClose&&!e.props.visible},e.getPushTransform=function(e){return"left"===e||"right"===e?"translateX(".concat("left"===e?180:-180,"px)"):"top"===e||"bottom"===e?"translateY(".concat("top"===e?180:-180,"px)"):void 0},e.getRcDrawerStyle=function(){var c=e.props,t=c.zIndex,n=c.placement,r=c.style,o=e.state.push;return m({zIndex:t,transform:o?e.getPushTransform(n):void 0},r)},e.renderBody=function(){var c=e.props,t=c.bodyStyle,r=c.placement,o=c.prefixCls,l=c.visible;if(e.destroyClose&&!l)return null;e.destroyClose=!1;var a="left"===r||"right"===r?{overflow:"auto",height:"100%"}:{},i=e.getDestroyOnClose();return i&&(a.opacity=0,a.transition="opacity .3s"),n["createElement"]("div",{className:"".concat(o,"-wrapper-body"),style:a,onTransitionEnd:e.onDestroyTransitionEnd},e.renderHeader(),n["createElement"]("div",{className:"".concat(o,"-body"),style:t},e.props.children))},e.renderProvider=function(c){var t=e.props,o=t.prefixCls,l=t.placement,a=t.className,h=t.wrapClassName,v=t.width,f=t.height,p=t.mask,z=C(t,["prefixCls","placement","className","wrapClassName","width","height","mask"]);Object(s["a"])(void 0===h,"Drawer","wrapClassName is deprecated, please use className instead.");var d=p?"":"no-mask";e.parentDrawer=c;var y={};return"left"===l||"right"===l?y.width=v:y.height=f,n["createElement"](O.Provider,{value:H(e)},n["createElement"](r["a"],m({handler:!1},Object(u["a"])(z,["zIndex","style","closable","destroyOnClose","bodyStyle","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton"]),y,{prefixCls:o,o
|