parent
b985efc438
commit
8341fe44fc
@ -0,0 +1,19 @@
|
||||
<script>
|
||||
import { cloneElement } from './vnode'
|
||||
import PropTypes from './vue-types'
|
||||
export default {
|
||||
props: {
|
||||
childProps: PropTypes.object.def({}),
|
||||
},
|
||||
render () {
|
||||
const { $attrs, $listeners, childProps } = this
|
||||
let children = this.$slots.default[0]
|
||||
children = cloneElement(children, {
|
||||
attr: $attrs,
|
||||
on: $listeners,
|
||||
props: childProps,
|
||||
})
|
||||
return children
|
||||
},
|
||||
}
|
||||
</script>
|
@ -1,18 +1,21 @@
|
||||
import PropTypes from '../../_util/vue-types'
|
||||
export default {
|
||||
prefixCls: PropTypes.string.def('rc-menu'),
|
||||
inlineIndent: PropTypes.number.def(24),
|
||||
focusable: PropTypes.bool.def(true),
|
||||
multiple: PropTypes.bool,
|
||||
defaultActiveFirst: PropTypes.bool,
|
||||
visible: PropTypes.bool.def(true),
|
||||
activeKey: PropTypes.string,
|
||||
selectedKeys: PropTypes.arrayOf(PropTypes.string),
|
||||
defaultSelectedKeys: PropTypes.arrayOf(PropTypes.string),
|
||||
defaultOpenKeys: PropTypes.arrayOf(PropTypes.string),
|
||||
defaultSelectedKeys: PropTypes.arrayOf(PropTypes.string).def([]),
|
||||
defaultOpenKeys: PropTypes.arrayOf(PropTypes.string).def([]),
|
||||
openKeys: PropTypes.arrayOf(PropTypes.string),
|
||||
openAnimation: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
||||
mode: PropTypes.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
|
||||
triggerSubMenuAction: PropTypes.string.def('click'),
|
||||
triggerSubMenuAction: PropTypes.string.def('hover'),
|
||||
openTransitionName: PropTypes.string,
|
||||
subMenuOpenDelay: PropTypes.number.def(0),
|
||||
subMenuCloseDelay: PropTypes.number.def(0.1),
|
||||
level: PropTypes.number.def(1),
|
||||
inlineIndent: PropTypes.number.def(24),
|
||||
}
|
||||
|
@ -0,0 +1,2 @@
|
||||
import '../../style/index.less'
|
||||
import './index.less'
|
Loading…
Reference in new issue