Skip to content

Commit

Permalink
1. 修改 chart 版本 2. 修改生成器错误
Browse files Browse the repository at this point in the history
  • Loading branch information
yizhiyuyou committed Oct 25, 2019
1 parent 526e936 commit 92f5b86
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# 1.0.7-alpha (2019-10-25)

### Perfect

- **co:** 优化 Generator 异常.
- **export:** 导出 co, useAutoResize.

# 1.0.5-alpha (2019-10-24)

### Perfect

- **Charts:** 优化内存泄漏.
- **DigitalFlop:** 优化内存泄漏.

# 1.0.2-alpha (2019-09-27)

# 1.0.4-alpha (2019-10-24)

### Bug 修复
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
- 提供常用的**图表**如折线图等
- 飞线图/轮播表等其他组件

### 注意事项

**使用了 React Hooks, 简化了许多内部工作。您需要 React 版本 16.8.0 及以上**

### npm 安装

```shell
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jiaminghi/data-view-react",
"version": "1.0.5",
"version": "1.0.7",
"description": "React Large screen data display component library",
"author": "Duan Yu <[email protected]>",
"license": "MIT",
Expand All @@ -20,7 +20,7 @@
"prepare": "yarn run build"
},
"dependencies": {
"@jiaminghi/charts": "*"
"@jiaminghi/charts": "^0.2.8"
},
"peerDependencies": {
"react": "^16.8.0",
Expand Down
3 changes: 1 addition & 2 deletions src/components/digitalFlop/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ const DigitalFlop = ({ config = {}, className, style }) => {
}

const graph = graphRef.current
graph.animationEnd()

const shape = getShape(mergedConfig)

Expand All @@ -121,8 +122,6 @@ const DigitalFlop = ({ config = {}, className, style }) => {

Object.assign(graph, { animationCurve, animationFrame })

graph.animationEnd()

graph.animation('style', getStyle(mergedConfig), true)
graph.animation('shape', shape)
}, [config])
Expand Down
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ export { default as ConicalColumnChart } from './components/conicalColumnChart'
export { default as DigitalFlop } from './components/digitalFlop'
export { default as ScrollBoard } from './components/scrollBoard'
export { default as ScrollRankingBoard } from './components/scrollRankingBoard'

export { default as useAutoResize } from './use/autoResize'

export { co } from './util'
6 changes: 5 additions & 1 deletion src/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ export function co(gen) {
return () => {
destroyed = true

gen.return()
Promise.resolve().then(() => {
gen.return()

gen = null
})
}

function next(ret) {
Expand Down

0 comments on commit 92f5b86

Please sign in to comment.