mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-05 05:29:01 +08:00
da6d243e9e
close #3231 #3188
43 lines
1.6 KiB
JavaScript
43 lines
1.6 KiB
JavaScript
import PropTypes from '../_util/vue-types';
|
|
export default {
|
|
prefixCls: PropTypes.string.def('rc-menu'),
|
|
focusable: PropTypes.looseBool.def(true),
|
|
multiple: PropTypes.looseBool,
|
|
visible: PropTypes.looseBool.def(true),
|
|
activeKey: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
selectedKeys: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),
|
|
defaultSelectedKeys: PropTypes.arrayOf(
|
|
PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
).def([]),
|
|
defaultOpenKeys: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])).def(
|
|
[],
|
|
),
|
|
openKeys: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])),
|
|
openAnimation: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
|
|
mode: PropTypes.oneOf([
|
|
'horizontal',
|
|
'vertical',
|
|
'vertical-left',
|
|
'vertical-right',
|
|
'inline',
|
|
]).def('vertical'),
|
|
triggerSubMenuAction: PropTypes.string.def('hover'),
|
|
subMenuOpenDelay: PropTypes.number.def(0.1),
|
|
subMenuCloseDelay: PropTypes.number.def(0.1),
|
|
level: PropTypes.number.def(1),
|
|
inlineIndent: PropTypes.number.def(24),
|
|
theme: PropTypes.oneOf(['light', 'dark']).def('light'),
|
|
getPopupContainer: PropTypes.func,
|
|
openTransitionName: PropTypes.string,
|
|
forceSubMenuRender: PropTypes.looseBool.def(false),
|
|
selectable: PropTypes.looseBool,
|
|
isRootMenu: PropTypes.looseBool.def(true),
|
|
builtinPlacements: PropTypes.object.def(() => ({})),
|
|
itemIcon: PropTypes.any,
|
|
expandIcon: PropTypes.any,
|
|
overflowedIndicator: PropTypes.any,
|
|
onClick: PropTypes.func,
|
|
onSelect: PropTypes.func,
|
|
onDeselect: PropTypes.func,
|
|
};
|