forked from Gitlink/build
1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
(this.webpackJsonp=this.webpackJsonp||[]).push([[29],{"3wW7":function(t,n,e){var i=e("UG7M");"string"==typeof i&&(i=[[t.i,i,""]]);e("aET+")(i,{hmr:!0,transform:void 0}),i.locals&&(t.exports=i.locals)},Mwp2:function(t,n,e){"use strict";e.r(n),e("cIOH"),e("3wW7"),e("R9oj"),e("T2oS"),e("DjyN"),e("1GLa")},UG7M:function(t,n,e){(n=e("JPst")(!1)).push([t.i,"/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */\n/* stylelint-disable no-duplicate-selectors */\n/* stylelint-disable */\n/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */\n.ant-list {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5;\n list-style: none;\n font-feature-settings: 'tnum';\n position: relative;\n}\n.ant-list * {\n outline: none;\n}\n.ant-list-pagination {\n margin-top: 24px;\n text-align: right;\n}\n.ant-list-pagination .ant-pagination-options {\n text-align: left;\n}\n.ant-list-more {\n margin-top: 12px;\n text-align: center;\n}\n.ant-list-more button {\n padding-right: 32px;\n padding-left: 32px;\n}\n.ant-list-spin {\n min-height: 40px;\n text-align: center;\n}\n.ant-list-empty-text {\n padding: 16px;\n color: rgba(0, 0, 0, 0.25);\n font-size: 14px;\n text-align: center;\n}\n.ant-list-items {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n.ant-list-item {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 0;\n}\n.ant-list-item-content {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-list-item-meta {\n display: flex;\n flex: 1;\n align-items: flex-start;\n font-size: 0;\n}\n.ant-list-item-meta-avatar {\n margin-right: 16px;\n}\n.ant-list-item-meta-content {\n flex: 1 0;\n}\n.ant-list-item-meta-title {\n margin-bottom: 4px;\n color: rgba(0, 0, 0, 0.65);\n font-size: 14px;\n line-height: 22px;\n}\n.ant-list-item-meta-title > a {\n color: rgba(0, 0, 0, 0.65);\n transition: all 0.3s;\n}\n.ant-list-item-meta-title > a:hover {\n color: #466aff;\n}\n.ant-list-item-meta-description {\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 22px;\n}\n.ant-list-item-action {\n flex: 0 0 auto;\n margin-left: 48px;\n padding: 0;\n font-size: 0;\n list-style: none;\n}\n.ant-list-item-action > li {\n position: relative;\n display: inline-block;\n padding: 0 8px;\n color: rgba(0, 0, 0, 0.45);\n font-size: 14px;\n line-height: 22px;\n text-align: center;\n cursor: pointer;\n}\n.ant-list-item-action > li:first-child {\n padding-left: 0;\n}\n.ant-list-item-action-split {\n position: absolute;\n top: 50%;\n right: 0;\n width: 1px;\n height: 14px;\n margin-top: -7px;\n background-color: #e8e8e8;\n}\n.ant-list-header {\n background: transparent;\n}\n.ant-list-footer {\n background: transparent;\n}\n.ant-list-header,\n.ant-list-footer {\n padding-top: 12px;\n padding-bottom: 12px;\n}\n.ant-list-empty {\n padding: 16px 0;\n color: rgba(0, 0, 0, 0.45);\n font-size: 12px;\n text-align: center;\n}\n.ant-list-split .ant-list-item {\n border-bottom: 1px solid #e8e8e8;\n}\n.ant-list-split .ant-list-item:last-child {\n border-bottom: none;\n}\n.ant-list-split .ant-list-header {\n border-bottom: 1px solid #e8e8e8;\n}\n.ant-list-loading .ant-list-spin-nested-loading {\n min-height: 32px;\n}\n.ant-list-something-after-last-item .ant-spin-container > .ant-list-items > .ant-list-item:last-child {\n border-bottom: 1px solid #e8e8e8;\n}\n.ant-list-lg .ant-list-item {\n padding-top: 16px;\n padding-bottom: 16px;\n}\n.ant-list-sm .ant-list-item {\n padding-top: 8px;\n padding-bottom: 8px;\n}\n.ant-list-vertical .ant-list-item {\n align-items: initial;\n}\n.ant-list-vertical .ant-list-item-main {\n display: block;\n flex: 1;\n}\n.ant-list-vertical .ant-list-item-extra {\n margin-left: 40px;\n}\n.ant-list-vertical .ant-list-item-meta {\n margin-bottom: 16px;\n}\n.ant-list-vertical .ant-list-item-meta-title {\n margin-bottom: 12px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 16px;\n line-height: 24px;\n}\n.ant-list-vertical .ant-list-item-action {\n margin-top: 16px;\n margin-left: auto;\n}\n.ant-list-vertical .ant-list-item-action > li {\n padding: 0 16px;\n}\n.ant-list-vertical .ant-list-item-action > li:first-child {\n padding-left: 0;\n}\n.ant-list-grid .ant-col > .ant-list-item {\n display: block;\n max-width: 100%;\n margin-bottom: 16px;\n padding-top: 0;\n padding-bottom: 0;\n border-bottom: none;\n}\n.ant-list-item-no-flex {\n display: block;\n}\n.ant-list:not(.ant-list-vertical) .ant-list-item-no-flex .ant-list-item-action {\n float: right;\n}\n.ant-list-bordered {\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.ant-list-bordered .ant-list-header {\n padding-right: 24px;\n padding-left: 24px;\n}\n.ant-list-bordered .ant-list-footer {\n padding-right: 24px;\n padding-left: 24px;\n}\n.ant-list-bordered .ant-list-item {\n padding-right: 24px;\n padding-left: 24px;\n border-bottom: 1px solid #e8e8e8;\n}\n.ant-list-bordered .ant-list-pagination {\n margin: 16px 24px;\n}\n.ant-list-bordered.ant-list-sm .ant-list-item {\n padding-right: 16px;\n padding-left: 16px;\n}\n.ant-list-bordered.ant-list-sm .ant-list-header,\n.ant-list-bordered.ant-list-sm .ant-list-footer {\n padding: 8px 16px;\n}\n.ant-list-bordered.ant-list-lg .ant-list-header,\n.ant-list-bordered.ant-list-lg .ant-list-footer {\n padding: 16px 24px;\n}\n@media screen and (max-width: 768px) {\n .ant-list-item-action {\n margin-left: 24px;\n }\n .ant-list-vertical .ant-list-item-extra {\n margin-left: 24px;\n }\n}\n@media screen and (max-width: 576px) {\n .ant-list-item {\n flex-wrap: wrap;\n }\n .ant-list-item-action {\n margin-left: 12px;\n }\n .ant-list-vertical .ant-list-item {\n flex-wrap: wrap-reverse;\n }\n .ant-list-vertical .ant-list-item-main {\n min-width: 220px;\n }\n .ant-list-vertical .ant-list-item-extra {\n margin: auto auto 16px;\n }\n}\n",""]),t.exports=n},VXEj:function(t,n,e){"use strict";e.r(n),e.d(n,"default",(function(){return R}));var i=e("cDcd"),r=e("17x9"),a=e("eHJ2"),o=e.n(a),l=e("BGR+"),c=e("W9HT"),s=e("H84U"),p=e("NUBc"),u=e("qrJ5"),f=e("/kpp");function m(t){if(!i.isValidElement(t))return t;for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return i.cloneElement.apply(i,[t].concat(e))}function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function y(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function b(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,n){return(h=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function x(t,n){return!n||"object"!==d(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function w(){return(w=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}var O=function(t,n){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(e[i[r]]=t[i[r]])}return e};function S(t,n){return t[n]&&Math.floor(24/t[n])}var E=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&h(t,n)}(a,t);var n,e,r=function(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,i=v(t);if(n){var r=v(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return x(this,e)}}(a);function a(){var t;return y(this,a),(t=r.apply(this,arguments)).renderItem=function(n){var e=n.getPrefixCls,r=t.context,a=r.grid,l=r.itemLayout,c=t.props,s=c.prefixCls,p=c.children,u=c.actions,d=c.extra,y=c.className,b=O(c,["prefixCls","children","actions","extra","className"]),h=e("list",s),x=u&&u.length>0&&i.createElement("ul",{className:"".concat(h,"-item-action"),key:"actions"},u.map((function(t,n){return i.createElement("li",{key:"".concat(h,"-item-action-").concat(n)},t,n!==u.length-1&&i.createElement("em",{className:"".concat(h,"-item-action-split")}))}))),v=a?"div":"li",E=i.createElement(v,w({},b,{className:o()("".concat(h,"-item"),y,g({},"".concat(h,"-item-no-flex"),!t.isFlexMode()))}),"vertical"===l&&d?[i.createElement("div",{className:"".concat(h,"-item-main"),key:"content"},p,x),i.createElement("div",{className:"".concat(h,"-item-extra"),key:"extra"},d)]:[p,x,m(d,{key:"extra"})]);return a?i.createElement(f.a,{span:S(a,"column"),xs:S(a,"xs"),sm:S(a,"sm"),md:S(a,"md"),lg:S(a,"lg"),xl:S(a,"xl"),xxl:S(a,"xxl")},E):E},t}return n=a,(e=[{key:"isItemContainsTextNodeAndNotSingular",value:function(){var t,n=this.props.children;return i.Children.forEach(n,(function(n){"string"==typeof n&&(t=!0)})),t&&i.Children.count(n)>1}},{key:"isFlexMode",value:function(){var t=this.props.extra;return"vertical"===this.context.itemLayout?!!t:!this.isItemContainsTextNodeAndNotSingular()}},{key:"render",value:function(){return i.createElement(s.a,null,this.renderItem)}}])&&b(n.prototype,e),a}(i.Component);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function j(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return C(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?C(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,i=new Array(n);e<n;e++)i[e]=t[e];return i}function k(){return(k=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}function N(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function z(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function I(t,n){return(I=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function _(t,n){return!n||"object"!==P(n)&&"function"!=typeof n?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):n}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}E.Meta=function(t){return i.createElement(s.a,null,(function(n){var e=n.getPrefixCls,r=t.prefixCls,a=t.className,l=t.avatar,c=t.title,s=t.description,p=O(t,["prefixCls","className","avatar","title","description"]),u=e("list",r),f=o()("".concat(u,"-item-meta"),a),m=i.createElement("div",{className:"".concat(u,"-item-meta-content")},c&&i.createElement("h4",{className:"".concat(u,"-item-meta-title")},c),s&&i.createElement("div",{className:"".concat(u,"-item-meta-description")},s));return i.createElement("div",w({},p,{className:f}),l&&i.createElement("div",{className:"".concat(u,"-item-meta-avatar")},l),(c||s)&&m)}))},E.contextTypes={grid:r.any,itemLayout:r.string};var R=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&I(t,n)}(a,t);var n,e,r=function(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,i=L(t);if(n){var r=L(this).constructor;e=Reflect.construct(i,arguments,r)}else e=i.apply(this,arguments);return _(this,e)}}(a);function a(t){var n;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),(n=r.call(this,t)).defaultPaginationProps={current:1,total:0},n.keys={},n.onPaginationChange=n.triggerPaginationEvent("onChange"),n.onPaginationShowSizeChange=n.triggerPaginationEvent("onShowSizeChange"),n.renderItem=function(t,e){var i,r=n.props,a=r.renderItem,o=r.rowKey;return a?((i="function"==typeof o?o(t):"string"==typeof o?t[o]:t.key)||(i="list-item-".concat(e)),n.keys[e]=i,a(t,e)):null},n.renderEmpty=function(t,e){var r=n.props.locale;return i.createElement("div",{className:"".concat(t,"-empty-text")},r&&r.emptyText||e("List"))},n.renderList=function(t){var e,r=t.getPrefixCls,a=t.renderEmpty,s=n.state,f=s.paginationCurrent,m=s.paginationSize,d=n.props,g=d.prefixCls,y=d.bordered,b=d.split,h=d.className,x=d.children,v=d.itemLayout,w=d.loadMore,O=d.pagination,S=d.grid,E=d.dataSource,P=void 0===E?[]:E,C=d.size,z=d.header,I=d.footer,_=d.loading,L=function(t,n){var e={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(e[i[r]]=t[i[r]])}return e}(d,["prefixCls","bordered","split","className","children","itemLayout","loadMore","pagination","grid","dataSource","size","header","footer","loading"]),R=r("list",g),T=_;"boolean"==typeof T&&(T={spinning:T});var A=T&&T.spinning,M="";switch(C){case"large":M="lg";break;case"small":M="sm"}var D=o()(R,h,(N(e={},"".concat(R,"-vertical"),"vertical"===v),N(e,"".concat(R,"-").concat(M),M),N(e,"".concat(R,"-split"),b),N(e,"".concat(R,"-bordered"),y),N(e,"".concat(R,"-loading"),A),N(e,"".concat(R,"-grid"),S),N(e,"".concat(R,"-something-after-last-item"),n.isSomethingAfterLastItem()),e)),H=k(k(k({},n.defaultPaginationProps),{total:P.length,current:f,pageSize:m}),O||{}),J=Math.ceil(H.total/H.pageSize);H.current>J&&(H.current=J);var U,G=O?i.createElement("div",{className:"".concat(R,"-pagination")},i.createElement(p.default,k({},H,{onChange:n.onPaginationChange,onShowSizeChange:n.onPaginationShowSizeChange}))):null,W=j(P);if(O&&P.length>(H.current-1)*H.pageSize&&(W=j(P).splice((H.current-1)*H.pageSize,H.pageSize)),U=A&&i.createElement("div",{style:{minHeight:53}}),W.length>0){var B=W.map((function(t,e){return n.renderItem(t,e)})),F=[];i.Children.forEach(B,(function(t,e){F.push(i.cloneElement(t,{key:n.keys[e]}))})),U=S?i.createElement(u.a,{gutter:S.gutter},F):i.createElement("ul",{className:"".concat(R,"-items")},F)}else x||A||(U=n.renderEmpty(R,a));var K=H.position||"bottom";return i.createElement("div",k({className:D},Object(l.default)(L,["rowKey","renderItem","locale"])),("top"===K||"both"===K)&&G,z&&i.createElement("div",{className:"".concat(R,"-header")},z),i.createElement(c.default,T,U,x),I&&i.createElement("div",{className:"".concat(R,"-footer")},I),w||("bottom"===K||"both"===K)&&G)};var e=t.pagination,s=e&&"object"===P(e)?e:{};return n.state={paginationCurrent:s.defaultCurrent||1,paginationSize:s.defaultPageSize||10},n}return n=a,(e=[{key:"getChildContext",value:function(){return{grid:this.props.grid,itemLayout:this.props.itemLayout}}},{key:"triggerPaginationEvent",value:function(t){var n=this;return function(e,i){var r=n.props.pagination;n.setState({paginationCurrent:e,paginationSize:i}),r&&r[t]&&r[t](e,i)}}},{key:"isSomethingAfterLastItem",value:function(){var t=this.props,n=t.loadMore,e=t.pagination,i=t.footer;return!!(n||e||i)}},{key:"render",value:function(){return i.createElement(s.a,null,this.renderList)}}])&&z(n.prototype,e),a}(i.Component);R.Item=E,R.childContextTypes={grid:r.any,itemLayout:r.string},R.defaultProps={dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}}}]); |