Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jan 14, 2021
1 parent 465026f commit 59a16c7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ toDateString(Date.now(), 'yyyy-MM-dd HH:mm:ss')
```

```javascript
import { XEUtils } from 'xe-utils/ctor'
import XEUtils from 'xe-utils/ctor'
import each from 'xe-utils/each'
import toDateString from 'xe-utils/toDateString'
import toFixedNumber from 'xe-utils/toFixedNumber'
Expand All @@ -85,7 +85,7 @@ XEUtils.toDateString(Date.now(), 'yyyy-MM-dd HH:mm:ss')
按功能导入所有方法

```javascript
import { XEUtils } from 'xe-utils/ctor'
import XEUtils from 'xe-utils/ctor'
import objectMethods from 'xe-utils/object'
import arrayMethods from 'xe-utils/array'
import baseMethods from 'xe-utils/base'
Expand Down
2 changes: 1 addition & 1 deletion func/ctor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export interface XEUtilsMethods {
/**
* JavaScript 函数库、工具类
*/
export declare var XEUtils: XEUtilsMethods
declare var XEUtils: XEUtilsMethods

export default XEUtils
2 changes: 0 additions & 2 deletions func/ctor.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ function setup (options) {
return assign(setupDefaults, options)
}

XEUtils.XEUtils = XEUtils

XEUtils.VERSION = '@VERSION'
XEUtils.mixin = mixin
XEUtils.setup = setup
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xe-utils",
"version": "3.1.0",
"version": "3.1.1",
"description": "JavaScript 函数库、工具类",
"main": "index.js",
"unpkg": "dist/xe-utils.umd.min.js",
Expand Down

0 comments on commit 59a16c7

Please sign in to comment.