diff --git a/src/data-table/demos/enUS/index.demo-entry.md b/src/data-table/demos/enUS/index.demo-entry.md index dda85fc36..002e5c4ae 100644 --- a/src/data-table/demos/enUS/index.demo-entry.md +++ b/src/data-table/demos/enUS/index.demo-entry.md @@ -7,7 +7,7 @@ DataTable is used to displays rows of structured data. ## Demos - Every row data needs a unique key property, otherwise you should specify row-key + Each item of the array passing in the data attribute represents a row of rendered data, and each row of data must have a unique key, otherwise the row key attribute must be declared on the table; The key attribute of DataTableColumn is used to ensure the uniqueness of data in each column. Both can ensure the accuracy of data rendering and interaction. ```demo diff --git a/src/data-table/demos/zhCN/index.demo-entry.md b/src/data-table/demos/zhCN/index.demo-entry.md index 6e5c6b189..f3eaa00d8 100644 --- a/src/data-table/demos/zhCN/index.demo-entry.md +++ b/src/data-table/demos/zhCN/index.demo-entry.md @@ -7,7 +7,7 @@ ## 演示 - 每一行数据都要有唯一的 key,否则要在 table 上声明 row-key 属性 + 传入 data 属性的数组的每一项都代表渲染的一行数据,每一行数据都要有唯一的 key,否则要在 table 上声明 row-key 属性;DataTableColumnkey 属性用于保证每一列数据的唯一性。两者均能确保数据渲染及交互时的准确 ```demo