diff --git a/components/lib/dataview/DataView.d.ts b/components/lib/dataview/DataView.d.ts index 1b79e4474..64afb3291 100755 --- a/components/lib/dataview/DataView.d.ts +++ b/components/lib/dataview/DataView.d.ts @@ -81,14 +81,6 @@ export interface DataViewPassThroughOptions { * Used to pass attributes to the content's DOM element. */ content?: DataViewPassThroughOptionType; - /** - * Used to pass attributes to the grid's DOM element. - */ - grid?: DataViewPassThroughOptionType; - /** - * Used to pass attributes to the column's DOM element. - */ - column?: DataViewPassThroughOptionType; /** * Used to pass attributes to the empty message's DOM element. */ @@ -253,8 +245,14 @@ export interface DataViewSlots { footer(): VNode[]; /** * Custom empty template. + * @param {Object} scope - empty slot's params. */ - empty(): VNode[]; + empty(scope: { + /** + * Layout of the items. + */ + layout?: string | undefined; + }): VNode[]; /** * Custom paginator start template. */ @@ -271,11 +269,7 @@ export interface DataViewSlots { /** * Value of the component */ - data: any; - /** - * Index of the grid - */ - index: number; + items: any; }): VNode[]; /** * Custom list template. @@ -285,11 +279,7 @@ export interface DataViewSlots { /** * Value of the component */ - data: any; - /** - * Index of the grid - */ - index: number; + items: any; }): VNode[]; } diff --git a/components/lib/dataview/DataView.vue b/components/lib/dataview/DataView.vue index b1e14fc3e..3d61d5b2f 100755 --- a/components/lib/dataview/DataView.vue +++ b/components/lib/dataview/DataView.vue @@ -26,16 +26,14 @@
-
- -
-
- -
-
+ +
+ + {{ emptyMessageText }} +
(instance.paginatorTop ? 'p-paginator-top' : instance.paginatorBottom ? 'p-paginator-bottom' : ''), content: 'p-dataview-content', - grid: 'p-grid p-nogutter grid grid-nogutter', - column: 'p-col col', emptyMessage: 'p-dataview-emptymessage', footer: 'p-dataview-footer' }; diff --git a/doc/dataview/BasicDoc.vue b/doc/dataview/BasicDoc.vue index 3e4450fd1..c1e9efd1d 100644 --- a/doc/dataview/BasicDoc.vue +++ b/doc/dataview/BasicDoc.vue @@ -1,30 +1,30 @@