Skip to content

Commit

Permalink
docs: carousel add dotsClass and other doc update (#1732)
Browse files Browse the repository at this point in the history
  • Loading branch information
PanStar authored and tangjinzhou committed Jan 16, 2020
1 parent e63f9ea commit 2501ac3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions components/carousel/index.en-US.md
Expand Up @@ -6,6 +6,7 @@
| autoplay | Whether to scroll automatically | boolean | `false` |
| beforeChange | Callback function called before the current index changes | function(from, to) | - |
| dots | Whether to show the dots at the bottom of the gallery | boolean | `true` |
| dotsClass | Class name of the dots | string | `slick-dots` |
| easing | Transition interpolation function name | string | `linear` |
| effect | Transition effect | `scrollx` \| `fade` | `scrollx` |
| vertical | Whether to use a vertical display | boolean | `false` |
Expand Down
19 changes: 10 additions & 9 deletions components/carousel/index.zh-CN.md
@@ -1,14 +1,15 @@
## API

| 参数 | 说明 | 类型 | 默认值 |
| ------------ | -------------------------------- | ------------------ | ------- |
| afterChange | 切换面板的回调 | function(current) ||
| autoplay | 是否自动切换 | boolean | false |
| beforeChange | 切换面板的回调 | function(from, to) ||
| dots | 是否显示面板指示点 | boolean | true |
| easing | 动画效果 | string | linear |
| effect | 动画效果函数,可取 scrollx, fade | string | scrollx |
| vertical | 垂直显示 | boolean | false |
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | -------------------------------- | ------------------ | ------------ |
| afterChange | 切换面板的回调 | function(current) ||
| autoplay | 是否自动切换 | boolean | false |
| beforeChange | 切换面板的回调 | function(from, to) ||
| dots | 是否显示面板指示点 | boolean | true |
| dotsClass | 面板指示点类名 | string | `slick-dots` |
| easing | 动画效果 | string | linear |
| effect | 动画效果函数,可取 scrollx, fade | string | scrollx |
| vertical | 垂直显示 | boolean | false |

## 方法

Expand Down
2 changes: 1 addition & 1 deletion components/table/index.en-US.md
Expand Up @@ -6,7 +6,7 @@
| --- | --- | --- | --- |
| bordered | Whether to show all table borders | boolean | `false` |
| childrenColumnName | The column contains children to display | string\[] | children |
| columns | Columns of table | array | - |
| columns | Columns of table [config](#Column) | array | - |
| components | Override default table elements | object | - |
| dataSource | Data record array to be displayed | any\[] | - |
| defaultExpandAllRows | Expand all rows initially | boolean | `false` |
Expand Down
2 changes: 1 addition & 1 deletion components/table/index.zh-CN.md
Expand Up @@ -6,7 +6,7 @@
| --- | --- | --- | --- |
| bordered | 是否展示外边框和列边框 | boolean | false |
| childrenColumnName | 指定树形结构的列名 | string\[] | children |
| columns | 表格列的配置描述,具体项见下表 | array | - |
| columns | 表格列的配置描述,具体项见[下表](#Column) | array | - |
| components | 覆盖默认的 table 元素 | object | - |
| dataSource | 数据数组 | any\[] | |
| defaultExpandAllRows | 初始时,是否展开所有行 | boolean | false |
Expand Down

0 comments on commit 2501ac3

Please sign in to comment.