fix: button props type

pull/3164/head
Amour1688 2020-11-11 21:33:17 +08:00
parent 50357712d4
commit 44bc942bf7
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import { ExtractPropTypes } from 'vue';
import { tuple } from '../_util/type';
import PropTypes, { withUndefined } from '../_util/vue-types';
@ -28,6 +29,6 @@ const buttonProps = () => ({
onClick: PropTypes.func,
});
export type ButtonProps = ExtractPropTypes<ExtractPropTypes<ReturnType<typeof buttonProps>>>;
export type ButtonProps = Partial<ExtractPropTypes<ReturnType<typeof buttonProps>>>;
export default buttonProps;