feat(Calendar): add scrollToDate method (#7847)

This commit is contained in:
neverland
2021-01-02 17:02:10 +08:00
committed by GitHub
parent 9582cd2fae
commit 5ac6996e56
4 changed files with 23 additions and 16 deletions
+4 -3
View File
@@ -320,9 +320,10 @@ export default {
通过 ref 可以获取到 Calendar 实例并调用实例方法,详见[组件实例方法](#/zh-CN/advanced-usage#zu-jian-shi-li-fang-fa)。
| 方法名 | 说明 | 参数 | 返回值 |
| ------ | ---------------------- | ---- | ------ |
| reset | 重置选中的日期到默认值 | - | - |
| 方法名 | 说明 | 参数 | 返回值 |
| ---------------------- | ---------------------- | ------------ | ------ |
| reset | 重置选中的日期到默认值 | - | - |
| scrollToDate `v2.12.2` | 滚动到某个日期 | _date: Date_ | - |
### 样式变量