Skip to content

Commit da107c1

Browse files
committed
refine doc
1 parent ac8ecd0 commit da107c1

File tree

6 files changed

+36
-18
lines changed

6 files changed

+36
-18
lines changed

examples/src/docs/en/ve-table/cell-selection/base.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
:::anchor example
2-
3-
You can quickly select cells with the following keys, the selection behavior is like microsoft excel:<br>
4-
1、Pressing the up arrow key <code>ArrowUp</code>, select the upper cell<br>
5-
2、Pressing the down arrow key <code>ArrowDown</code>, Select the lower cell<br>
6-
3、Pressing the left arrow key <code>ArrowLeft</code>,Select the previous cell<br>
7-
4、Pressing the right arrow key <code>ArrowRight</code>,select the next cell<br>
8-
5、Pressing the key <code>ArrowLeft</code>,The function is the same as pressing <code>ArrowRight</code><br>
9-
6、Pressing the key <code>Shift + Tab</code>,The function is the same as pressing <code>ArrowLeft</code>
1+
:::anchor Basic usage
102

113
:::demo
124

examples/src/docs/en/ve-table/cell-selection/main.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22
<div>
33
<h2>Cell Selection</h2>
44
<Explain />
5+
<ShortCuts />
56
<Base />
67
</div>
78
</template>
89
<script>
910
import Explain from "./explain.md";
1011
import Base from "./base.md";
12+
import ShortCuts from "./shortcuts.md";
1113
1214
export default {
1315
name: "cell-selection",
1416
components: {
1517
Explain,
1618
Base,
19+
ShortCuts,
1720
},
1821
};
1922
</script>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:::anchor Shortcuts
2+
3+
Cell selection support the following shortcut keys (refer to excel shortcut keys):
4+
5+
| Feature | Shortcuts |
6+
| :-------------------------------- | :---------------- |
7+
| Move the active cell up | `` |
8+
| Move the active cell to the right | `` |
9+
| Move the active cell down | `` |
10+
| Move the active cell to the left | `` |
11+
| Move the active cell down | `Enter` |
12+
| Move the active cell up | `Shift` + `Enter` |
13+
| Move the active cell to the right | `Tab` |
14+
| Move the active cell to the left | `Shift` + `Tab` |

examples/src/docs/zh/ve-table/cell-selection/base.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
:::anchor 示例
2-
3-
你可以配合以下按键快速选中单元格,选中行为就像微软的 excel:<br>
4-
1、当按下方向上键<code>ArrowUp</code>,选中上边单元格;<br>
5-
2、当按下方向下键<code>ArrowDown</code>,选中下边单元格;<br>
6-
3、当按下方向左键<code>ArrowLeft</code>,选中左边单元格;<br>
7-
4、当按下方向右键<code>ArrowRight</code>,选中右边单元格;<br>
8-
5、当按下键<code>Tab</code>,功能与按下<code>ArrowRight</code>一致;<br>
9-
6、当按下键<code>Shift + Tab</code>,功能与按下<code>ArrowLeft</code>一致;
1+
:::anchor 基本用法
102

113
:::demo
124

examples/src/docs/zh/ve-table/cell-selection/main.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,21 @@
22
<div>
33
<h2>单元格选择</h2>
44
<Explain />
5+
<ShortCuts />
56
<Base />
67
</div>
78
</template>
89
<script>
910
import Explain from "./explain.md";
1011
import Base from "./base.md";
12+
import ShortCuts from "./shortcuts.md";
1113
1214
export default {
1315
name: "cell-selection",
1416
components: {
1517
Explain,
1618
Base,
19+
ShortCuts,
1720
},
1821
};
1922
</script>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:::anchor 快捷键
2+
3+
单元格选择支持以下快捷键(参考 excel 快捷键):
4+
5+
| 功能 | 快捷键 |
6+
| :----------------- | :---------------- |
7+
| 向上移动活动单元格 | `` |
8+
| 向右移动活动单元格 | `` |
9+
| 向下移动活动单元格 | `` |
10+
| 向左移动活动单元格 | `` |
11+
| 向下移动活动单元格 | `Enter` |
12+
| 向上移动活动单元格 | `Shift` + `Enter` |
13+
| 向右移动活动单元格 | `Tab` |
14+
| 向左移动活动单元格 | `Shift` + `Tab` |

0 commit comments

Comments
 (0)