fix
parent
6b7b035a84
commit
bd0e0b4653
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
export default {
|
||||
name: 'Divider',
|
||||
name: 'MenuDivider',
|
||||
props: {
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
|
|
|
@ -135,7 +135,7 @@ export default {
|
|||
|
||||
renderCommonMenuItem (child, i, subIndex, extraProps) {
|
||||
if (child.tag === undefined) { return child }
|
||||
warning(['MenuItem', 'MenuItemGroup', 'SubMenu'].includes(getComponentName(child.componentOptions)),
|
||||
warning(['MenuItem', 'MenuItemGroup', 'SubMenu', 'MenuDivider'].includes(getComponentName(child.componentOptions)),
|
||||
`Menu children not support ${getComponentName(child.componentOptions)}`,
|
||||
)
|
||||
const state = this.$data
|
||||
|
|
|
@ -22,5 +22,5 @@ export default {
|
|||
openTransitionName: PropTypes.string,
|
||||
forceSubMenuRender: PropTypes.bool,
|
||||
selectable: PropTypes.bool,
|
||||
isRootMenu: PropTypes.bool,
|
||||
isRootMenu: PropTypes.bool.def(true),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue