diff --git a/src/components/dataview/DataView.vue b/src/components/dataview/DataView.vue
index b38850b84..4d8f6811a 100755
--- a/src/components/dataview/DataView.vue
+++ b/src/components/dataview/DataView.vue
@@ -14,7 +14,7 @@
-
+
@@ -106,7 +106,8 @@ export default {
lazy: {
type: Boolean,
default: false
- }
+ },
+ dataKey: null
},
data() {
return {
@@ -129,6 +130,9 @@ export default {
}
},
methods: {
+ getKey(item, index) {
+ return this.dataKey ? ObjectUtils.resolveFieldData(item, this.dataKey) : index;
+ },
onPage(event) {
this.d_first = event.first;
this.d_rows = event.rows;