change path
parent
24440f2d81
commit
8770958ff3
|
@ -1,5 +1,5 @@
|
|||
<script>
|
||||
import { Item, itemProps } from './src/index'
|
||||
import { Item, itemProps } from '../vc-menu'
|
||||
import { getClass, getStyle, cloneVNodes } from '../_util/vnode'
|
||||
import Tooltip from '../tooltip'
|
||||
function noop () {}
|
||||
|
|
|
@ -8,7 +8,7 @@ import warning from '../_util/warning'
|
|||
import Item from './MenuItem'
|
||||
import { hasProp } from '../_util/props-util'
|
||||
import BaseMixin from '../_util/BaseMixin'
|
||||
import commonPropsType from './src/commonPropsType'
|
||||
import commonPropsType from '../vc-menu/commonPropsType'
|
||||
|
||||
export const MenuMode = PropTypes.oneOf(['vertical', 'vertical-left', 'vertical-right', 'horizontal', 'inline'])
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<script>
|
||||
import PropTypes from '../../_util/vue-types'
|
||||
import PropTypes from '../_util/vue-types'
|
||||
import MenuMixin from './MenuMixin'
|
||||
import BaseMixin from '../../_util/BaseMixin'
|
||||
import hasProp from '../../_util/props-util'
|
||||
import BaseMixin from '../_util/BaseMixin'
|
||||
import hasProp from '../_util/props-util'
|
||||
import commonPropsType from './commonPropsType'
|
||||
|
||||
const Menu = {
|
|
@ -1,8 +1,8 @@
|
|||
<script>
|
||||
import PropTypes from '../../_util/vue-types'
|
||||
import KeyCode from '../../_util/KeyCode'
|
||||
import PropTypes from '../_util/vue-types'
|
||||
import KeyCode from '../_util/KeyCode'
|
||||
// import { noop } from './util'
|
||||
import BaseMixin from '../../_util/BaseMixin'
|
||||
import BaseMixin from '../_util/BaseMixin'
|
||||
const props = {
|
||||
rootPrefixCls: PropTypes.string,
|
||||
eventKey: PropTypes.string,
|
|
@ -1,6 +1,6 @@
|
|||
<script>
|
||||
import PropTypes from '../../_util/vue-types'
|
||||
import { getComponentFromProp } from '../../_util/props-util'
|
||||
import PropTypes from '../_util/vue-types'
|
||||
import { getComponentFromProp } from '../_util/props-util'
|
||||
|
||||
const MenuItemGroup = {
|
||||
name: 'MenuItemGroup',
|
|
@ -1,10 +1,10 @@
|
|||
import hasProp from '../../_util/props-util'
|
||||
import KeyCode from '../../_util/KeyCode'
|
||||
import hasProp from '../_util/props-util'
|
||||
import KeyCode from '../_util/KeyCode'
|
||||
import scrollIntoView from 'dom-scroll-into-view'
|
||||
import { getKeyFromChildrenIndex, loopMenuItem } from './util'
|
||||
import { cloneElement, getComponentName } from '../../_util/vnode'
|
||||
import { cloneElement, getComponentName } from '../_util/vnode'
|
||||
import DOMWrap from './DOMWrap'
|
||||
import warning from '../../_util/warning'
|
||||
import warning from '../_util/warning'
|
||||
|
||||
function allDisabled (arr) {
|
||||
if (!arr.length) {
|
|
@ -1,12 +1,12 @@
|
|||
<script>
|
||||
import PropTypes from '../../_util/vue-types'
|
||||
import Trigger from '../../trigger'
|
||||
import KeyCode from '../../_util/KeyCode'
|
||||
import PropTypes from '../_util/vue-types'
|
||||
import Trigger from '../trigger'
|
||||
import KeyCode from '../_util/KeyCode'
|
||||
import SubPopupMenu from './SubPopupMenu'
|
||||
import placements from './placements'
|
||||
import { loopMenuItemRecusively, noop } from './util'
|
||||
import BaseMixin from '../../_util/BaseMixin'
|
||||
import { getComponentFromProp } from '../../_util/props-util'
|
||||
import BaseMixin from '../_util/BaseMixin'
|
||||
import { getComponentFromProp } from '../_util/props-util'
|
||||
|
||||
let guid = 0
|
||||
|
|
@ -1,13 +1,10 @@
|
|||
<script>
|
||||
// import PropTypes from '../../_util/vue-types'
|
||||
import MenuMixin from './MenuMixin'
|
||||
import BaseMixin from '../../_util/BaseMixin'
|
||||
import BaseMixin from '../_util/BaseMixin'
|
||||
import commonPropsType from './commonPropsType'
|
||||
// import { noop } from './util'
|
||||
export default {
|
||||
name: 'SubPopupMenu',
|
||||
props: { ...commonPropsType,
|
||||
// clearSubMenuTimers: PropTypes.func.def(noop),
|
||||
},
|
||||
|
||||
mixins: [MenuMixin, BaseMixin],
|
|
@ -1,4 +1,4 @@
|
|||
import PropTypes from '../../_util/vue-types'
|
||||
import PropTypes from '../_util/vue-types'
|
||||
export default {
|
||||
prefixCls: PropTypes.string.def('ant-menu'),
|
||||
focusable: PropTypes.bool.def(true),
|
|
@ -0,0 +1,8 @@
|
|||
import Select from './Select'
|
||||
import Option from './Option'
|
||||
import { SelectPropTypes } from './PropTypes'
|
||||
import OptGroup from './OptGroup'
|
||||
Select.Option = Option
|
||||
Select.OptGroup = OptGroup
|
||||
export { Option, OptGroup, SelectPropTypes }
|
||||
export default Select
|
|
@ -14,7 +14,7 @@ Menu | done
|
|||
Dropdown | done
|
||||
Divider | done
|
||||
notification | done
|
||||
message
|
||||
message | done
|
||||
Carousel
|
||||
Mention
|
||||
Input | done |select完成后补全demo
|
||||
|
|
Loading…
Reference in New Issue