---
title: BasicTools - 通用工具库
nav:
  title: 基础组件
  path: /components
group:
  path: /
---

# BasicTools 通用工具库

## 代码演示

<code src="./demos/Basic.tsx">

## 使用说明

```javascript
import { getTimeRange, getRange } from 'packages/base-components/BasicTools/lib/index';

let result1 = getTimeRange('lastYear');
let result2 = getTimeRange('nextWeek');

let result3 = getRange(new Date(), 'day');
let result4 = getRange('', 'month');
```
