diff --git a/examples/docs/en-US/table.md b/examples/docs/en-US/table.md
index aa63ffd1a..6f9f1f200 100644
--- a/examples/docs/en-US/table.md
+++ b/examples/docs/en-US/table.md
@@ -110,6 +110,17 @@
},
methods: {
+ handleClick() {
+ console.log('click');
+ },
+
+ handleEdit(index, row) {
+ console.log(index, row);
+ },
+
+ handleDelete(index, row) {
+ console.log(index, row);
+ },
handleSelectionChange(val) {
this.multipleSelection = val;
},
@@ -504,11 +515,12 @@ When there are too many columns, you can fix some of them.
- Detail
+ Detail
Edit
@@ -517,6 +529,11 @@ When there are too many columns, you can fix some of them.
+```
+:::
+
### Table Attributes
| Attribute | Description | Type | Accepted Values | Default |
|---------- |-------------- |---------- |-------------------------------- |-------- |
@@ -969,7 +1074,8 @@ Filter the table to find desired data.
| fit | whether width of column automatically fits its container | boolean | — | true |
| highlight-current-row | whether current row is highlighted | boolean | — | false |
| row-class-name | function that returns custom class names for a row | Function(row, index) | — | — |
-| row-key | Key of row data, used for optimizing rendering. Required if `reserve-selection` is on | Function(row)/String | — | — |
+| row-key | key of row data, used for optimizing rendering. Required if `reserve-selection` is on | Function(row)/String | — | — |
+| context | context of Table, e.g. `_self` refers to the current context, `$parent` parent context, `$root` root context, can be overridden by `context` in `el-table-column` | Object | - | current context where Table lies |
### Table Events
| Event Name | Description | Parameters |
@@ -1005,7 +1111,8 @@ Filter the table to find desired data.
| resizable | whether column width can be resized, works when `border` of `el-table` is `true` | boolean | — | false |
| formatter | function that formats content | Function(row, column) | — | — |
| show-overflow-tooltip | whether to hide extra content and show them in a tooltip when hovering on the cell | boolean | — | false |
-| inline-template | by using this attribute, you can customize column template. Row data can be accessed by `row` object, and current context can be accessed by `_self` in JSX. In this case you don't need to set `prop`. In your template, you have access to the following: `{ row (current row), column (current column), $index (row index), _self( context), store (table store) }` | — | — |
+| context | context of Table-column, e.g. `_self` refers to the current context, `$parent` parent context, `$root` root context | Object | - | current context where Table lies |
+| inline-template | by using this attribute, you can customize column template. Row data can be accessed by `row` object. In your template, you have access to the following: `{ row (current row), column (current column), $index (row index), store (table store) }` | — | — |
| align | alignment | string | left/center/right | left |
| class-name | class name of cells in the column | string | — | — |
| selectable | function that determines if a certain row can be selected, works when `type` is 'selection' | Function(row, index) | — | — |