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 = {
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',
menu: 'p-dock-list',
menuitem: ({ instance, processedItem, index, id }) => [

View File

@ -1,5 +1,5 @@
<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
:model="model"
:templates="$slots"
@ -23,6 +23,11 @@ import DockSub from './DockSub.vue';
export default {
name: 'Dock',
extends: BaseDock,
computed: {
containerClass() {
return [this.class, cx('root')];
}
},
components: {
DockSub
}