Skip to content

Commit

Permalink
修改README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zcZhang123 committed Jan 26, 2019
1 parent cb30ac3 commit f763aeb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,31 @@
```shell
npm install jcc_kline
```
## Start

### 目录结构
```
├── demo // demo目录
├── src // 组件目录
├── test // 测试
├── package.json
└── README
```

## 快速上手

引入jcc_kline

``` javascript
// 引入jcc_kline
import kline from 'jcc_kline'

Vue.use(kline)

```
## 组件

### K线图

```vue
<jKline v-on:listenToChildEvent='changeCycle' :kline-data-obj='klineDataObj' :kline-config='klineConfig' :cycle='cycle'></jKline>
```
5 changes: 2 additions & 3 deletions demo/src/components/KLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div>
<el-col :span='24'>
<div style='position:relative'>
<jKline ref='vkline' v-on:listenToChildEvent='changeCycle' :kline-data-obj='klineDataObj' :show-indicators='showIndicators' :kline-config='klineConfig' :cycle='cycle'></jKline>
<jKline ref='vkline' v-on:listenToChildEvent='changeCycle' :kline-data-obj='klineDataObj' :kline-config='klineConfig' :cycle='cycle'></jKline>
</div>
</el-col>
</div>
Expand All @@ -21,8 +21,7 @@ export default {
klineConfig: {
backgroundColor: '#161b21',
platform: 'pc'
},
showIndicators: ['Candlestick', 'MA', 'Volume', 'MarketDepth']
}
}
},
created () {
Expand Down

0 comments on commit f763aeb

Please sign in to comment.