pull/165/head
tangjinzhou 2018-01-30 17:17:40 +08:00
parent e1d70187d8
commit ee9ba987a6
3 changed files with 3 additions and 3 deletions

View File

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

View File

@ -135,7 +135,7 @@ export default {
renderCommonMenuItem (child, i, subIndex, extraProps) { renderCommonMenuItem (child, i, subIndex, extraProps) {
if (child.tag === undefined) { return child } 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)}`, `Menu children not support ${getComponentName(child.componentOptions)}`,
) )
const state = this.$data const state = this.$data

View File

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