(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[11],{H1Ra:function(e,t,n){"use strict";var a=n("q1tI"),r=n.n(a),o=n("3Mpw"),l=n("dEAq");n("qHiR"),n("foS9");function c(){return c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},c.apply(this,arguments)}function i(e,t){return f(e)||d(e,t)||u(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function d(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o=[],l=!0,c=!1;try{for(n=n.call(e);!(l=(a=n.next()).done);l=!0)if(o.push(a.value),t&&o.length===t)break}catch(i){c=!0,r=i}finally{try{l||null==n["return"]||n["return"]()}finally{if(c)throw r}}return o}}function f(e){if(Array.isArray(e))return e}var p={acss:"css",axml:"xml"};t["a"]=function(e){var t=e.code,n=e.lang,a=e.showCopy,s=void 0===a||a,u=Object(l["useCopy"])(),m=i(u,2),d=m[0],f=m[1];return r.a.createElement("div",{className:"__dumi-default-code-block"},r.a.createElement(o["a"],c({},o["b"],{code:t,language:p[n]||n,theme:void 0}),(function(e){var n=e.className,a=e.style,o=e.tokens,l=e.getLineProps,c=e.getTokenProps;return r.a.createElement("pre",{className:n,style:a},s&&r.a.createElement("button",{className:"__dumi-default-icon __dumi-default-code-block-copy-btn","data-status":f,onClick:function(){return d(t)}}),o.map((function(e,t){return r.a.createElement("div",l({line:e,key:t}),e.map((function(e,t){return r.a.createElement("span",c({token:e,key:t}))})))})))})))}},MZF8:function(e,t,n){"use strict";n.d(t,"a",(function(){return a["b"]}));var a=n("ogwx");n("VCU9"),n("vpkV")},foS9:function(e,t,n){},jSav:function(e,t,n){"use strict";n.r(t);n("T2oS");var a=n("W9HT"),r=n("q1tI"),o=n.n(r),l=n("0zqC"),c=n("HMs9"),i=n.n(c),s=n("JH2I");t["default"]=({children:e,...t})=>o.a.createElement(i.a,{height:`calc(${t.length} + 128px)`||500,offset:500,placeholder:parseInt(t.length)>300?o.a.createElement("div",{className:"__dumi-default-previewer",style:{padding:24,background:"rgb(245, 245, 245)"}},o.a.createElement(s["a"],{type:"descriptions"})):o.a.createElement("div",{style:{paddingTop:100,textAlign:"center"}},o.a.createElement(a["default"],{size:"large"})),once:!0},o.a.createElement(l["a"],t,o.a.createElement("div",{style:{minHeight:t.height}},e)))},vv4z:function(e,t,n){"use strict";n.r(t);var a=n("q1tI"),r=n.n(a),o=n("dEAq"),l=n("jSav"),c=n("H1Ra");const i=r.a.memo((({demos:e})=>{const t=e["basictools-basic"].component;return r.a.createElement(r.a.Fragment,null,r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{className:"markdown"},r.a.createElement("h1",{id:"basictools-\u901a\u7528\u5de5\u5177\u5e93"},r.a.createElement(o["AnchorLink"],{to:"#basictools-\u901a\u7528\u5de5\u5177\u5e93","aria-hidden":"true",tabIndex:-1},r.a.createElement("span",{className:"icon icon-link"})),"BasicTools \u901a\u7528\u5de5\u5177\u5e93"),r.a.createElement("h2",{id:"\u4ee3\u7801\u6f14\u793a"},r.a.createElement(o["AnchorLink"],{to:"#\u4ee3\u7801\u6f14\u793a","aria-hidden":"true",tabIndex:-1},r.a.createElement("span",{className:"icon icon-link"})),"\u4ee3\u7801\u6f14\u793a")),r.a.createElement(l["default"],e["basictools-basic"].previewerProps,r.a.createElement(t,null)),r.a.createElement("div",{className:"markdown"},r.a.createElement("h2",{id:"\u4f7f\u7528\u8bf4\u660e"},r.a.createElement(o["AnchorLink"],{to:"#\u4f7f\u7528\u8bf4\u660e","aria-hidden":"true",tabIndex:-1},r.a.createElement("span",{className:"icon icon-link"})),"\u4f7f\u7528\u8bf4\u660e"),r.a.createElement(c["a"],{code:"import { getTimeRange, getRange } from 'packages/base-components/BasicTools/lib/index';\n\nlet result1 = getTimeRange('lastYear');\nlet result2 = getTimeRange('nextWeek');\n\nlet result3 = getRange(new Date(), 'day');\nlet result4 = getRange('', 'month');",lang:"javascript"}))))}));t["default"]=e=>{const t=r.a.useContext(o["context"]),n=t.demos;return r.a.useEffect((()=>{var t;null!==e&&void 0!==e&&null!==(t=e.location)&&void 0!==t&&t.hash&&o["AnchorLink"].scrollToAnchor(decodeURIComponent(e.location.hash.slice(1)))}),[]),r.a.createElement(i,{demos:n})}}}]);