mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-08 16:37:15 +00:00
Refactor #5257
This commit is contained in:
parent
0c6a35d280
commit
d77e66415b
8 changed files with 18 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<transition name="p-scrolltop" appear @enter="onEnter" @after-leave="onAfterLeave" v-bind="ptm('transition')">
|
||||
<button v-if="visible" :ref="containerRef" :class="cx('root')" @click="onClick" type="button" :aria-label="scrollTopAriaLabel" v-bind="ptm('root')">
|
||||
<button v-if="visible" :ref="containerRef" :class="cx('root')" @click="onClick" type="button" :aria-label="scrollTopAriaLabel" v-bind="ptmi('root')">
|
||||
<slot name="icon" :class="cx('icon')">
|
||||
<component :is="icon ? 'span' : 'ChevronUpIcon'" :class="[cx('icon'), icon]" v-bind="ptm('icon')" />
|
||||
</slot>
|
||||
|
@ -16,6 +16,7 @@ import BaseScrollTop from './BaseScrollTop.vue';
|
|||
export default {
|
||||
name: 'ScrollTop',
|
||||
extends: BaseScrollTop,
|
||||
inheritAttrs: false,
|
||||
scrollListener: null,
|
||||
container: null,
|
||||
data() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue