diff --git a/api-generator/components/dataview.js b/api-generator/components/dataview.js index c11fa356a..99c5e0ad2 100644 --- a/api-generator/components/dataview.js +++ b/api-generator/components/dataview.js @@ -88,6 +88,12 @@ const DataViewProps = [ type: "boolean", default: "false", description: "Defines if data is loaded and interacted with in lazy manner." + }, + { + name: "dataKey", + type: "string", + default: "null", + description: "Name of the data that uniquely identifies the a record in the data." } ]; diff --git a/src/components/dataview/DataView.d.ts b/src/components/dataview/DataView.d.ts index 5f18e67f8..4e60fd555 100755 --- a/src/components/dataview/DataView.d.ts +++ b/src/components/dataview/DataView.d.ts @@ -113,6 +113,10 @@ export interface DataViewProps { * Defines if data is loaded and interacted with in lazy manner. */ lazy?: boolean | undefined; + /** + * Name of the data that uniquely identifies the a record in the data. + */ + dataKey: string | undefined; } export interface DataViewSlots { diff --git a/src/components/dataview/DataView.vue b/src/components/dataview/DataView.vue index 4d8f6811a..73f47a37f 100755 --- a/src/components/dataview/DataView.vue +++ b/src/components/dataview/DataView.vue @@ -107,7 +107,10 @@ export default { type: Boolean, default: false }, - dataKey: null + dataKey: { + type: String, + default: null + } }, data() { return { diff --git a/src/views/dataview/DataViewDoc.vue b/src/views/dataview/DataViewDoc.vue index d5941c061..b23cc7995 100755 --- a/src/views/dataview/DataViewDoc.vue +++ b/src/views/dataview/DataViewDoc.vue @@ -334,6 +334,12 @@ export default {