Skip to content

Commit 4a251c9

Browse files
committed
redine doc
1 parent e0b7621 commit 4a251c9

File tree

5 files changed

+18
-100
lines changed

5 files changed

+18
-100
lines changed

examples/src/docs/en/ve-table/api/db.js

Lines changed: 7 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -487,32 +487,27 @@ export const db = {
487487
param: "{rowKey}",
488488
},
489489
{
490-
name: "setHighlightRow <code>v2.9.0</code>",
490+
name: "setHighlightRow",
491491
desc: `Set highlight row <a href='#/en/doc/table/row-style?anchor=row-click-highlight'>Refer To Demo</a>`,
492492
param: "{rowKey}",
493493
},
494494
{
495-
name: "startEditingCell <code>v2.10.0</code>",
495+
name: "startEditingCell",
496496
desc: `Start cell editing <a href='#/en/doc/table/cell-edit?anchor=ke-kong-bian-ji'>Refer To Demo</a>`,
497497
param: "{rowKey,colKey,defaultValue}",
498498
},
499499
{
500-
name: "stopEditingCell <code>v2.10.0</code>",
501-
desc: `Stop cell editing <a href='#/en/doc/table/cell-edit?anchor=ke-kong-bian-ji'>Refer To Demo</a>`,
502-
param: "{rowKey,colKey}",
500+
name: "stopEditingCell",
501+
desc: `Stop cell editing`,
502+
param: "",
503503
},
504504
{
505-
name: "stopAllEditingCell <code>v2.10.0</code>",
506-
desc: `Stop all cell editing <a href='#/en/doc/table/cell-edit?anchor=ke-kong-bian-ji'>Refer To Demo</a>`,
507-
param: "-",
508-
},
509-
{
510-
name: "hideColumnsByKeys <code>v2.11.0</code>",
505+
name: "hideColumnsByKeys",
511506
desc: `Hide columns <a href='#/en/doc/table/column-hidden?anchor=instance-methods'>Refer To Demo</a>`,
512507
param: "keys",
513508
},
514509
{
515-
name: "showColumnsByKeys <code>v2.11.0</code>",
510+
name: "showColumnsByKeys",
516511
desc: `Show columns <a href='#/en/doc/table/column-hidden?anchor=instance-methods'>Refer To Demo</a>`,
517512
param: "keys",
518513
},
@@ -888,48 +883,13 @@ export const db = {
888883
// 单元格编辑配置
889884
editOption: {
890885
data: [
891-
{
892-
param: "doubleClickEdit",
893-
desc: `Enable double click cell editing`,
894-
type: `<code>Boolean</code>`,
895-
optionalVal: "-",
896-
default: "true",
897-
},
898-
{
899-
param: "fullRowEdit",
900-
desc: `Enable full row editing`,
901-
type: `<code>Boolean</code>`,
902-
optionalVal: "-",
903-
default: "false",
904-
},
905-
{
906-
param: "textSelectedWhenCellFocus",
907-
desc: `Enable cell focus text selection`,
908-
type: `<code>Boolean</code>`,
909-
optionalVal: "-",
910-
default: "true",
911-
},
912-
{
913-
param: "stopEditingWhenCellLoseFocus",
914-
desc: `Enable cell to auto stop editing when cell lose focus`,
915-
type: `<code>Boolean</code>`,
916-
optionalVal: "-",
917-
default: "true",
918-
},
919886
{
920887
param: "cellValueChange",
921888
desc: `Cell stop edit callback method. <code>row</code>Current row data,<code>column</code>Current column `,
922889
type: `<code>Function({ row, column })</code>`,
923890
optionalVal: "-",
924891
default: "-",
925892
},
926-
{
927-
param: "rowValueChange",
928-
desc: `Row stop edit callback method. <code>row</code>Current row data`,
929-
type: `<code>Function({ row })</code>`,
930-
optionalVal: "-",
931-
default: "-",
932-
},
933893
],
934894
columns: columnsType1,
935895
},

examples/src/docs/zh/ve-table/api/db.js

Lines changed: 7 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -493,32 +493,27 @@ export const db = {
493493
param: "{rowKey}",
494494
},
495495
{
496-
name: "setHighlightRow <code>v2.9.0</code>",
496+
name: "setHighlightRow",
497497
desc: `设置高亮的行 <a href='#/zh/doc/table/row-style?anchor=row-click-highlight'>参考示例</a>`,
498498
param: "{rowKey}",
499499
},
500500
{
501-
name: "startEditingCell <code>v2.10.0</code>",
501+
name: "startEditingCell",
502502
desc: `开始单元格编辑 <a href='#/zh/doc/table/cell-edit?anchor=ke-kong-bian-ji'>参考示例</a>`,
503503
param: "{rowKey,colKey,defaultValue}",
504504
},
505505
{
506-
name: "stopEditingCell <code>v2.10.0</code>",
507-
desc: `停止单元格编辑 <a href='#/zh/doc/table/cell-edit?anchor=ke-kong-bian-ji'>参考示例</a>`,
508-
param: "{rowKey,colKey}",
506+
name: "stopEditingCell",
507+
desc: `停止单元格编辑`,
508+
param: "{",
509509
},
510510
{
511-
name: "stopAllEditingCell <code>v2.10.0</code>",
512-
desc: `停止所有单元格编辑 <a href='#/zh/doc/table/cell-edit?anchor=ke-kong-bian-ji'>参考示例</a>`,
513-
param: "-",
514-
},
515-
{
516-
name: "hideColumnsByKeys <code>v2.11.0</code>",
511+
name: "hideColumnsByKeys",
517512
desc: `隐藏列 <a href='#/zh/doc/table/column-hidden?anchor=shi-li-fang-fa'>参考示例</a>`,
518513
param: "keys",
519514
},
520515
{
521-
name: "showColumnsByKeys <code>v2.11.0</code>",
516+
name: "showColumnsByKeys",
522517
desc: `显示列 <a href='#/zh/doc/table/column-hidden?anchor=shi-li-fang-fa'>参考示例</a>`,
523518
param: "keys",
524519
},
@@ -894,48 +889,13 @@ export const db = {
894889
// 单元格编辑配置
895890
editOption: {
896891
data: [
897-
{
898-
param: "doubleClickEdit",
899-
desc: `是否开启双击单元格编辑`,
900-
type: `<code>Boolean</code>`,
901-
optionalVal: "-",
902-
default: "true",
903-
},
904-
{
905-
param: "fullRowEdit",
906-
desc: `是否开启行整行编辑`,
907-
type: `<code>Boolean</code>`,
908-
optionalVal: "-",
909-
default: "false",
910-
},
911-
{
912-
param: "textSelectedWhenCellFocus",
913-
desc: `是否开启单元格编辑状态文本选中`,
914-
type: `<code>Boolean</code>`,
915-
optionalVal: "-",
916-
default: "true",
917-
},
918-
{
919-
param: "stopEditingWhenCellLoseFocus",
920-
desc: `是否开启单元格失去焦点自动停止编辑`,
921-
type: `<code>Boolean</code>`,
922-
optionalVal: "-",
923-
default: "true",
924-
},
925892
{
926893
param: "cellValueChange",
927894
desc: `单元格停止编辑回调方法。<code>row</code>当前行数据,<code>column</code>当前列信息`,
928895
type: `<code>Function({ row, column })</code>`,
929896
optionalVal: "-",
930897
default: "-",
931898
},
932-
{
933-
param: "rowValueChange",
934-
desc: `行停止编辑回调方法。<code>row</code>当前行数据`,
935-
type: `<code>Function({ row })</code>`,
936-
optionalVal: "-",
937-
default: "-",
938-
},
939899
],
940900
columns: columnsType1,
941901
},

examples/src/router/locale/en.router.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const config = [
117117
component: () =>
118118
import("@/docs/en/ve-table/column-hidden/main.vue"),
119119
name: "Column Hidden",
120-
meta: { keepAlive: true, version: "v2.11.0" },
120+
meta: { keepAlive: true },
121121
},
122122
{
123123
path: "header-fixed",
@@ -194,7 +194,7 @@ const config = [
194194
component: () =>
195195
import("@/docs/en/ve-table/cell-edit/main.vue"),
196196
name: "Cell Edit",
197-
meta: { keepAlive: true, version: "v2.10.0" },
197+
meta: { keepAlive: true },
198198
},
199199
{
200200
path: "cell-ellipsis",

examples/src/router/locale/zh.router.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const config = [
117117
component: () =>
118118
import("@/docs/zh/ve-table/column-hidden/main.vue"),
119119
name: "列隐藏",
120-
meta: { keepAlive: true, version: "v2.11.0" },
120+
meta: { keepAlive: true },
121121
},
122122
{
123123
path: "header-fixed",
@@ -194,7 +194,7 @@ const config = [
194194
component: () =>
195195
import("@/docs/zh/ve-table/cell-edit/main.vue"),
196196
name: "单元格编辑",
197-
meta: { keepAlive: true, version: "v2.10.0" },
197+
meta: { keepAlive: true },
198198
},
199199
{
200200
path: "cell-ellipsis",

packages/ve-table/src/util/constant.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ export const INSTANCE_METHODS = {
130130
START_EDITING_CELL: "startEditingCell",
131131
// stop editing cell
132132
STOP_EDITING_CELL: "stopEditingCell",
133-
// stop all editing cell
134-
STOP_ALL_EDITING_CELL: "stopAllEditingCell",
135133
// set highlight row
136134
SET_HIGHLIGHT_ROW: "setHighlightRow",
137135
// hide columns by keys

0 commit comments

Comments
 (0)