Skip to content

Commit 881c7fb

Browse files
committed
功能完善
1 parent 8190057 commit 881c7fb

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

examples/src/docs/en/ve-table/cell-edit/combine-element-ui.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
:::anchor 结合 element-ui
1+
:::anchor Combine element-ui
22

3-
:::demo 1、你也可以结合 element-ui 组件做日期、数字、下拉等编辑功能
3+
:::demo 1、You can also edit date, number, dropdown and other functions in combination with the element UI component
44

55
```html
66
<template>
77
<div>
8-
<button class="button-demo" @click="submit()">提交</button>
8+
<button class="button-demo" @click="submit()">Submit</button>
99
<br />
1010
<br />
1111
<ve-table

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

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

3-
:::demo 1、通过属性`stopEditingWhenCellLoseFocus=false`关闭单元格失去焦点自动停止编辑功能
3+
:::demo 1、Turn off the automatic stop editing function when the cell loses focus through `stopEditingWhenCellLoseFocus=false`
44

55
```html
66
<template>
@@ -23,7 +23,7 @@
2323
export default {
2424
data() {
2525
return {
26-
// edit option 可控单元格编辑
26+
// edit option
2727
editOption: {
2828
// full row edit
2929
fullRowEdit: true,
@@ -42,7 +42,7 @@
4242
},
4343
},
4444
eventCustomOption: {
45-
// body 行事件自定义
45+
// body row custom event
4646
bodyRowEvents: ({ row, rowIndex }) => {
4747
return {
4848
dblclick: (event) => {
@@ -58,7 +58,7 @@
5858
// default true
5959
enable: false,
6060
},
61-
// 当前编辑的行key
61+
// current editing keys
6262
editRowKeys: [],
6363
columns: [
6464
{
@@ -95,7 +95,7 @@
9595
{
9696
field: "customField",
9797
key: "customField",
98-
title: "操作",
98+
title: "Actions",
9999
align: "left",
100100
width: "20%",
101101
renderBodyCell: ({ row, column, rowIndex }, h) => {
@@ -193,7 +193,7 @@
193193
194194
// cancel editing cell
195195
cancelEditingCell(rowKey, originalRow) {
196-
if (window.confirm("确定要取消吗?")) {
196+
if (window.confirm("Sure to cancel?")) {
197197
const index = this.editRowKeys.findIndex((x) => x === rowKey);
198198
this.editRowKeys.splice(index, 1);
199199
this.$refs["tableRef"].stopEditingCell({ rowKey });

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
{
9696
field: "customField",
9797
key: "customField",
98-
title: "操作",
98+
title: "Actions",
9999
align: "left",
100100
width: "20%",
101101
renderBodyCell: ({ row, column, rowIndex }, h) => {

0 commit comments

Comments
 (0)