mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 03:58:05 +08:00
fix
This commit is contained in:
parent
5cf383987c
commit
9b2669ba99
@ -8,15 +8,17 @@ import { hasProp, getComponentFromProp } from '../_util/props-util'
|
||||
import getDropdownProps from './getDropdownProps'
|
||||
const DropdownProps = getDropdownProps()
|
||||
const ButtonGroup = Button.Group
|
||||
const DropdownButtonProps = {
|
||||
...ButtonGroupProps,
|
||||
...DropdownProps,
|
||||
type: PropTypes.oneOf(['primary', 'ghost', 'dashed', 'default']).def('default'),
|
||||
disabled: PropTypes.bool,
|
||||
prefixCls: PropTypes.string.def('ant-dropdown-button'),
|
||||
placement: DropdownProps.placement.def('bottomRight'),
|
||||
}
|
||||
export { DropdownButtonProps }
|
||||
export default {
|
||||
props: {
|
||||
...ButtonGroupProps,
|
||||
...DropdownProps,
|
||||
type: PropTypes.oneOf(['primary', 'ghost', 'dashed', 'default']).def('default'),
|
||||
disabled: PropTypes.bool,
|
||||
prefixCls: PropTypes.string.def('ant-dropdown-button'),
|
||||
placement: DropdownProps.placement.def('bottomRight'),
|
||||
},
|
||||
props: DropdownButtonProps,
|
||||
methods: {
|
||||
onClick (e) {
|
||||
this.$emit('click', e)
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script>
|
||||
import RcDropdown from './src/dropdown'
|
||||
import RcDropdown from './src/index'
|
||||
import DropdownButton from './dropdown-button'
|
||||
// import warning from '../_util/warning'
|
||||
import PropTypes from '../_util/vue-types'
|
||||
@ -73,5 +73,6 @@ const Dropdown = {
|
||||
|
||||
Dropdown.Button = DropdownButton
|
||||
export default Dropdown
|
||||
export { DropdownProps }
|
||||
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user