Dock prop class fix

pull/4243/head
Tuğçe Küçükoğlu 2023-08-05 15:45:17 +03:00
parent 431d904e0b
commit c023a2cc6e
2 changed files with 7 additions and 2 deletions

View File

@ -111,7 +111,7 @@ const styles = `
`; `;
const classes = { const classes = {
root: ({ props }) => ['p-dock p-component', `p-dock-${props.position}`, props.class], root: ({ props }) => ['p-dock p-component', `p-dock-${props.position}`],
container: 'p-dock-list-container', container: 'p-dock-list-container',
menu: 'p-dock-list', menu: 'p-dock-list',
menuitem: ({ instance, processedItem, index, id }) => [ menuitem: ({ instance, processedItem, index, id }) => [

View File

@ -1,5 +1,5 @@
<template> <template>
<div :class="cx('root')" :style="style" v-bind="ptm('root')" data-pc-name="dock"> <div :class="containerClass" :style="style" v-bind="ptm('root')" data-pc-name="dock">
<DockSub <DockSub
:model="model" :model="model"
:templates="$slots" :templates="$slots"
@ -23,6 +23,11 @@ import DockSub from './DockSub.vue';
export default { export default {
name: 'Dock', name: 'Dock',
extends: BaseDock, extends: BaseDock,
computed: {
containerClass() {
return [this.class, cx('root')];
}
},
components: { components: {
DockSub DockSub
} }