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