[Doc] update changelog

This commit is contained in:
陈嘉涵
2018-10-18 18:50:23 +08:00
parent 2228e46733
commit 2e8d7e0b4f
107 changed files with 810 additions and 1212 deletions
+3 -3
View File
@@ -40,7 +40,7 @@ Set `columns-num` with 2, you'll have a 2 level picker.
### API
| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------|
|------|------|------|------|
| value | the `code` of selected area | `String` | - |
| title | Toolbar title | `String` | - |
| area-list | Area data | `Object` | - |
@@ -52,7 +52,7 @@ Set `columns-num` with 2, you'll have a 2 level picker.
### Event
| Event | Description | Arguments |
|-----------|-----------|-----------|
|------|------|------|
| confirm | triggers when clicking the confirm button | an array |
| cancel | triggers when clicking the cancel button | - |
| change | Triggered when current option changed | Picker instance, current valuescolumn index |
@@ -62,7 +62,7 @@ Set `columns-num` with 2, you'll have a 2 level picker.
Use ref to get area instance and call instance methods
| Name | Attribute | Return value | Description |
|-----------|-----------|-----------|-------------|
|------|------|------|------|
| reset | - | - | Reset all options |
### Data Structure
+10 -18
View File
@@ -37,15 +37,15 @@ Vue.use(Area);
### API
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| value | 当前选中的省市区`code` | `String` | - |
| title | 顶部栏标题 | `String` | - |
| area-list | 省市区数据,格式见下方 | `Object` | - |
| columns-num | 省市区显示列数,3-省市区,2-省市,1-省 | `String | Number` | `3` |
| loading | 是否显示加载状态 | `Boolean` | `false` |
| item-height | 选项高度 | `Number` | `44` |
| visible-item-count | 可见的选项个数 | `Number` | `5` |
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| value | 当前选中的省市区`code` | `String` | - | - |
| title | 顶部栏标题 | `String` | - | - |
| area-list | 省市区数据,格式见下方 | `Object` | - | - |
| columns-num | 显示列数,3-省市区,2-省市,1-省 | `String | Number` | `3` | - |
| loading | 是否显示加载状态 | `Boolean` | `false` | - |
| item-height | 选项高度 | `Number` | `44` | - |
| visible-item-count | 可见的选项个数 | `Number` | `5` | - |
### Event
@@ -60,7 +60,7 @@ Vue.use(Area);
通过 ref 可以获取到 area 实例并调用实例方法
| 方法名 | 参数 | 返回值 | 介绍 |
|-----------|-----------|-----------|-------------|
|------|------|------|------|
| reset | - | - | 重置所有选项到第一项 |
### 数据格式
@@ -124,11 +124,3 @@ Vue.use(Area);
}
];
```
### 更新日志
| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.1.12 | feature | 新增 reset 方法 |
| 1.1.11 | bugfix | 修复 city_list 为空时报错的问题 |
| 1.1.2 | feature | 新增 change 事件 |