From 6141c8972923760ddccadfa7e102ed0561c9ad97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cjonyshi=E2=80=9D?= Date: Thu, 3 Jan 2019 11:20:25 +0800 Subject: [PATCH] =?UTF-8?q?=20=E5=BF=AB=E6=8D=B7=E9=94=AE=E9=83=A8?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 12 ++++++++++++ docs/api.md | 13 ++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b39109d..d37c36a 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,18 @@ titleClass|名称类名|String|- titleStyle|名称样式|Object|- switcherClass|switcher类名|String|- switcherStyle|switcher样式|Object|- + + +## 快捷键API + +| 快捷键 | 类型 |快捷键说明 | +| --- | :---: | --- | +| focusable | function | 是否开启快捷键 | +| tab | - | tab 进入焦点,且选中第一行。| +| ↑、↓ | - | ↑(上箭)、↓(下箭) 选中上一行、选中下一行。 | +| ←、→ | - | ←(左箭)、→(右箭) 收起、展开。 | + + #### 开发调试 ```sh diff --git a/docs/api.md b/docs/api.md index 025362d..bbd7589 100644 --- a/docs/api.md +++ b/docs/api.md @@ -49,4 +49,15 @@ |titleClass|名称类名|String|- |titleStyle|名称样式|Object|- |switcherClass|switcher类名|String|- -|switcherStyle|switcher样式|Object|- \ No newline at end of file +|switcherStyle|switcher样式|Object|- + + + +## 快捷键API + +| 快捷键 | 类型 |快捷键说明 | +| --- | :---: | --- | +| focusable | function | 是否开启快捷键 | +| tab | - | tab 进入焦点,且选中第一行。| +| ↑、↓ | - | ↑(上箭)、↓(下箭) 选中上一行、选中下一行。 | +| ←、→ | - | ←(左箭)、→(右箭) 收起、展开。 | \ No newline at end of file