You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/vc-menu/commonPropsType.js

27 lines
1.3 KiB

7 years ago
import PropTypes from '../_util/vue-types'
7 years ago
export default {
7 years ago
prefixCls: PropTypes.string.def('ant-menu'),
7 years ago
focusable: PropTypes.bool.def(true),
multiple: PropTypes.bool,
defaultActiveFirst: PropTypes.bool,
visible: PropTypes.bool.def(true),
7 years ago
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])),
7 years ago
openAnimation: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
mode: PropTypes.oneOf(['horizontal', 'vertical', 'vertical-left', 'vertical-right', 'inline']).def('vertical'),
7 years ago
triggerSubMenuAction: PropTypes.string.def('hover'),
7 years ago
subMenuOpenDelay: PropTypes.number.def(0.1),
7 years ago
subMenuCloseDelay: PropTypes.number.def(0.1),
level: PropTypes.number.def(1),
inlineIndent: PropTypes.number.def(24),
7 years ago
theme: PropTypes.oneOf(['light', 'dark']).def('light'),
7 years ago
getPopupContainer: PropTypes.func,
openTransitionName: PropTypes.string,
forceSubMenuRender: PropTypes.bool,
selectable: PropTypes.bool,
7 years ago
isRootMenu: PropTypes.bool.def(true),
7 years ago
}