Paginator wrapper and root pt update

pull/4030/head
Tuğçe Küçükoğlu 2023-06-05 14:04:02 +03:00
parent 671b3d3a20
commit 7c885411ba
2 changed files with 6 additions and 2 deletions

View File

@ -28,6 +28,10 @@ export interface PaginatorPassThroughMethodOptions {
* @see {@link PaginatorProps.pt}
*/
export interface PaginatorPassThroughOptions {
/**
* Uses to pass attributes to the paginator wrapper's DOM element.
*/
paginatorWrapper?: PaginatorPassThroughOptionType;
/**
* Uses to pass attributes to the root's DOM element.
*/

View File

@ -1,6 +1,6 @@
<template>
<nav v-if="alwaysShow ? true : pageLinks && pageLinks.length > 1" v-bind="ptm('root')">
<div v-for="(value, key) in templateItems" :key="key" ref="paginator" :class="cx('paginator', { key })" v-bind="ptm('paginator')" data-pc-name="paginator">
<nav v-if="alwaysShow ? true : pageLinks && pageLinks.length > 1" v-bind="ptm('paginatorWrapper')">
<div v-for="(value, key) in templateItems" :key="key" ref="paginator" :class="cx('paginator', { key })" v-bind="ptm('root')" data-pc-name="paginator">
<div v-if="$slots.start" :class="cx('start')" v-bind="ptm('start')">
<slot name="start" :state="currentState"></slot>
</div>