Paginator wrapper and root pt update
parent
671b3d3a20
commit
7c885411ba
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue