mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #4739 - For Dock
This commit is contained in:
parent
661048609e
commit
97d3b4561b
5 changed files with 3 additions and 54 deletions
|
@ -1,18 +1,6 @@
|
|||
<template>
|
||||
<div :class="containerClass" :style="style" v-bind="ptm('root')" data-pc-name="dock">
|
||||
<DockSub
|
||||
:model="model"
|
||||
:templates="$slots"
|
||||
:exact="exact"
|
||||
:tooltipOptions="tooltipOptions"
|
||||
:position="position"
|
||||
:menuId="menuId"
|
||||
:aria-label="ariaLabel"
|
||||
:aria-labelledby="ariaLabelledby"
|
||||
:tabindex="tabindex"
|
||||
:pt="pt"
|
||||
:unstyled="unstyled"
|
||||
></DockSub>
|
||||
<DockSub :model="model" :templates="$slots" :tooltipOptions="tooltipOptions" :position="position" :menuId="menuId" :aria-label="ariaLabel" :aria-labelledby="ariaLabelledby" :tabindex="tabindex" :pt="pt" :unstyled="unstyled"></DockSub>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -23,11 +11,6 @@ import DockSub from './DockSub.vue';
|
|||
export default {
|
||||
name: 'Dock',
|
||||
extends: BaseDock,
|
||||
beforeMount() {
|
||||
if (!this.$slots.item) {
|
||||
console.warn('In future versions, vue-router support will be removed. Item templating should be used.');
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
containerClass() {
|
||||
return [this.class, this.cx('root')];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue