[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

View File

@@ -137,7 +137,7 @@ In swipeable mode, you can switch tabs with swipe gestrue in the content
### Tabs API
| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------|
|------|------|------|------|
| v-model | Index of active tab | `String` `Number` | `0` |
| color | Tab color | `String` | `#f44` |
| type | Can be set to `line` `card` | `String` | `line` |
@@ -151,21 +151,21 @@ In swipeable mode, you can switch tabs with swipe gestrue in the content
### Tab API
| Attribute | Description | Type | Default |
|-----------|-----------|-----------|-------------|
|------|------|------|------|
| title | Title | `String` | - |
| disabled | Whether to disable tab | `Boolean` | `false` |
### Tab Slot
| name | Description |
|-----------|-----------|
|------|------|
| - | Content |
| title | Custom tab |
### Tabs Event
| Event | Description | Arguments |
|-----------|-----------|-----------|
|------|------|------|
| click | Triggered when click tab | indexindex of current tabtitle: tab title |
| change | Triggered when active tab changed | indexindex of current tabtitle: tab title |
| disabled | Triggered when click disabled tab | indexindex of current tab, title: tab title |

View File

@@ -140,63 +140,37 @@ export default {
### Tabs API
| 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------|
| v-model | 当前激活标签的索引 | `String` `Number` | `0` |
| color | 标签颜色 | `String` | `#f44` |
| type | 样式类型,可选值为`card` | `String` | `line` |
| duration | 动画时间 (单位秒) | `Number` | `0.2` |
| line-width | 底部条宽度 (px) | `Number` | 与当前标签等宽 |
| swipe-threshold | 滚动阈值,设置标签数量超过多少个可滚动 | `Number` | `4` |
| sticky | 是否使用粘性定位布局 | `Boolean` | `false` |
| offset-top | 粘性定位布局下与顶部的最小距离 (px) | `Number` | `0` |
| swipeable | 是否可以滑动内容切换 | `Boolean` | `false` |
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| v-model | 当前标签的索引 | `String` `Number` | `0` | 1.0.6 |
| color | 标签颜色 | `String` | `#f44` | 1.2.0 |
| type | 样式类型,可选值为`card` | `String` | `line` | - |
| duration | 动画时间单位秒 | `Number` | `0.2` | - |
| line-width | 底部条宽度,单位 px | `Number` | - | 1.1.1 |
| swipeable | 是否开启手势滑动切换 | `Boolean` | `false` | 1.0.0 |
| sticky | 是否使用粘性定位布局 | `Boolean` | `false` | - |
| offset-top | 粘性定位布局下与顶部的最小距离,单位 px | `Number` | `0` | 1.1.15 |
| swipe-threshold | 滚动阈值,标签数量超过多少个可滚动 | `Number` | `4` | - |
### Tab API
| 参数 | 说明 | 类型 | 默认值 |
|-----------|-----------|-----------|-------------|
| title | 标题 | `String` | - |
| disabled | 是否禁用标签 | `Boolean` | `false` |
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
| title | 标题 | `String` | - | - |
| disabled | 是否禁用标签 | `Boolean` | `false` | - |
### Tab Slot
| 名称 | 说明 |
|-----------|-----------|
|------|------|
| - | 标签页内容 |
| title | 自定义标签 |
### Tabs Event
| 事件名 | 说明 | 参数 |
|-----------|-----------|-----------|
|------|------|------|
| click | 点击标签时触发 | index标签索引title标题 |
| change | 当前激活的标签改变时触发 | index标签索引title标题 |
| disabled | 点击被禁用的标签时触发 | index标签索引title标题 |
| scroll | 滚动时触发 | Object: { scrollTop: 距离顶部位置, isFixed: 是否吸顶 } |
### 更新日志
| 版本 | 类型 | 内容 |
|-----------|-----------|-----------|
| 1.3.1 | bugfix | 修复使用 card 主题时 color 属性不生效的问题
| 1.3.0 | feature | 新增 scroll 事件
| 1.3.0 | bugfix | 修复能通过手势滑动至禁用标签的问题
| 1.2.1 | bugfix | 修复使用 color 属性时下划线样式错误的问题
| 1.2.0 | feature | 新增 color 属性
| 1.1.15 | feature | 新增 offset-top 属性
| 1.1.14 | feature | 新增 change 事件
| 1.1.14 | bugfix | 修复路由切换时标签位置错误的问题
| 1.1.14 | bugfix | 修复 sticky 属性在局部滚动元素下无法生效的问题
| 1.1.12 | bugfix | 修复同时进行插入和删除时顺序错误的问题
| 1.1.11 | bugfix | 修复动态渲染时顺序错误的问题
| 1.1.9 | bugfix | 修复屏幕尺寸变化时未重新渲染的问题
| 1.1.8 | bugfix | 修复标题长度变化时底部条未重新渲染的问题
| 1.1.6 | bugfix | 修复 title 插槽渲染无法更新的问题
| 1.1.2 | bugfix | 修复初始化时的渲染问题
| 1.1.1 | feature | 新增 line-width 属性
| 1.0.6 | feature | 支持 v-model 绑定当前 active 标签
| 1.0.3 | feature | 布局方式由 table 升级为 flex-box
| 1.0.3 | feature | click 事件回调新增 title 参数
| 1.0.2 | bugfix | 修复内容无法点击的问题
| 1.0.0 | feature | 支持通过滑动手势进行切换
| scroll | 滚动时触发 | { scrollTop: 距离顶部位置, isFixed: 是否吸顶 } |