Skip to content

Commit c90d1bc

Browse files
committed
carousel 新增参数 dotsClass 及文档优化
1 parent c8574d1 commit c90d1bc

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

components/carousel/index.en-US.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
| autoplay | Whether to scroll automatically | boolean | `false` |
77
| beforeChange | Callback function called before the current index changes | function(from, to) | - |
88
| dots | Whether to show the dots at the bottom of the gallery | boolean | `true` |
9+
| dotsClass | Class name of the dots | string | `slick-dots` |
910
| easing | Transition interpolation function name | string | `linear` |
1011
| effect | Transition effect | `scrollx` \| `fade` | `scrollx` |
1112
| vertical | Whether to use a vertical display | boolean | `false` |

components/carousel/index.zh-CN.md

+10-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
## API
22

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

1314
## 方法
1415

components/table/index.en-US.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| --- | --- | --- | --- |
77
| bordered | Whether to show all table borders | boolean | `false` |
88
| childrenColumnName | The column contains children to display | string\[] | children |
9-
| columns | Columns of table | array | - |
9+
| columns | Columns of table [config](#Column) | array | - |
1010
| components | Override default table elements | object | - |
1111
| dataSource | Data record array to be displayed | any\[] | - |
1212
| defaultExpandAllRows | Expand all rows initially | boolean | `false` |

components/table/index.zh-CN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| --- | --- | --- | --- |
77
| bordered | 是否展示外边框和列边框 | boolean | false |
88
| childrenColumnName | 指定树形结构的列名 | string\[] | children |
9-
| columns | 表格列的配置描述,具体项见下表 | array | - |
9+
| columns | 表格列的配置描述,具体项见[下表](#Column) | array | - |
1010
| components | 覆盖默认的 table 元素 | object | - |
1111
| dataSource | 数据数组 | any\[] | |
1212
| defaultExpandAllRows | 初始时,是否展开所有行 | boolean | false |

0 commit comments

Comments
 (0)