Dock prop class fix
parent
431d904e0b
commit
c023a2cc6e
|
@ -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 }) => [
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue