Skip to content

Commit 8190057

Browse files
committed
update demo
1 parent 33b52a2 commit 8190057

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

examples/src/docs/en/ve-table/cell-edit/edit-control.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
:::anchor 可控编辑
1+
:::anchor Controllable editing
22

3-
:::demo 1、通过实例方法`startEditingCell({ rowKey, colKey, defaultValue })`开启编辑的单元格<br>2、通过实例方法`stopEditingCell({ rowKey, colKey })`停止编辑的单元格
3+
:::demo 1、Open the edited cell through instance method `startEditingCell({ rowKey, colKey, defaultValue })`<br>2、Stop editing cells by instance method `stopEditingCell({ rowKey, colKey })`
44

55
```html
66
<template>
77
<div>
8-
<button class="button-demo" @click="startEditingCell(0,'name')">编辑单元格0-0</button>
8+
<button class="button-demo" @click="startEditingCell(0,'name')">Edit Cell 0-0</button>
99
<button class="button-demo" @click="startEditingCell(2,'hobby','')">
10-
编辑并清空单元格2-2
10+
Edit And Clear Cell 2-2
1111
</button>
1212
&nbsp;&nbsp;
13-
<button class="button-demo" @click="stopEditingCell(0,'name')">停止编辑单元格1-1</button>
14-
<button class="button-demo" @click="stopEditingCell(2,'hobby')">停止编辑单元格2-2</button>
13+
<button class="button-demo" @click="stopEditingCell(0,'name')">Stop Edit Cell 1-1</button>
14+
<button class="button-demo" @click="stopEditingCell(2,'hobby')">Stop Edit Cell 2-2</button>
1515
<br />
1616
<br />
1717
<ve-table

examples/src/docs/en/ve-table/cell-edit/full-row-edit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
:::anchor 整行编辑
1+
:::anchor Full row edit
22

3-
:::demo 1、通过 `fullRowEdit=true`开启整行编辑<br>2、通过 `columns`对象的 `edit`属性控制当前列是否可编辑<br>3、单元格停止编辑后将触发`rowValueChange`方法,参数`row`为更新后的行数据信息
3+
:::demo 1、Enable full row editing through `fullRowEdit=true`<br>2、Use the `Edit` attribute of the `columns` object to control whether the current row can be edited<br>3、After the cell stops editing, the `rowValueChange` method will be triggered,The parameter `row` is the updated row data
44

55
```html
66
<template>

examples/src/docs/en/ve-table/cell-edit/single-click-edit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
:::anchor 单击编辑
1+
:::anchor Single click edit
22

3-
:::demo 可以通过 `doubleClickEdit=false`关闭双击编辑,开启单击编辑单元格
3+
:::demo `doubleClickEdit=false` to turn off double click editing and turn on single click editing of cells
44

55
```html
66
<template>

examples/src/docs/zh/ve-table/cell-edit/single-click-edit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:::anchor 单击编辑
22

3-
:::demo 可以通过 `doubleClickEdit=false`关闭双击编辑,开启单击编辑单元格
3+
:::demo 通过 `doubleClickEdit=false`关闭双击编辑,开启单击编辑单元格
44

55
```html
66
<template>

0 commit comments

Comments
 (0)