fix: ts error
parent
e4c737e752
commit
e79a930e59
|
@ -3,7 +3,6 @@ import { provide, inject, defineComponent } from 'vue';
|
|||
import Button from '../button';
|
||||
import classNames from '../_util/classNames';
|
||||
import buttonTypes from '../button/buttonTypes';
|
||||
import { ButtonGroupProps } from '../button/button-group';
|
||||
import Dropdown from './dropdown';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import { hasProp, getComponent, getSlot } from '../_util/props-util';
|
||||
|
@ -16,7 +15,6 @@ const ButtonTypesProps = buttonTypes();
|
|||
const DropdownProps = getDropdownProps();
|
||||
const ButtonGroup = Button.Group;
|
||||
const dropdownButtonProps = {
|
||||
...ButtonGroupProps,
|
||||
...DropdownProps,
|
||||
type: PropTypes.oneOf(tuple('primary', 'ghost', 'dashed', 'danger', 'default')).def('default'),
|
||||
size: PropTypes.oneOf(tuple('small', 'large', 'default')).def('default'),
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { tuple } from '../_util/type';
|
||||
import type { PropType } from 'vue';
|
||||
import PropTypes from '../_util/vue-types';
|
||||
import type { SizeType } from '../config-provider';
|
||||
export default {
|
||||
prefixCls: PropTypes.string,
|
||||
inputPrefixCls: PropTypes.string,
|
||||
|
@ -11,7 +11,7 @@ export default {
|
|||
},
|
||||
type: PropTypes.string.def('text'),
|
||||
name: PropTypes.string,
|
||||
size: PropTypes.oneOf(tuple('small', 'large', 'default')),
|
||||
size: { type: String as PropType<SizeType> },
|
||||
disabled: PropTypes.looseBool,
|
||||
readonly: PropTypes.looseBool,
|
||||
addonBefore: PropTypes.VNodeChild,
|
||||
|
|
Loading…
Reference in New Issue