pull/9/head
tangjinzhou 2018-01-30 17:17:40 +08:00
parent 6b7b035a84
commit bd0e0b4653
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
<script>
export default {
name: 'Divider',
name: 'MenuDivider',
props: {
disabled: {
type: Boolean,

View File

@ -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

View File

@ -22,5 +22,5 @@ export default {
openTransitionName: PropTypes.string,
forceSubMenuRender: PropTypes.bool,
selectable: PropTypes.bool,
isRootMenu: PropTypes.bool,
isRootMenu: PropTypes.bool.def(true),
}