Skip to content

Commit 44bc942

Browse files
committed
fix: button props type
1 parent 5035771 commit 44bc942

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/button/buttonTypes.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ExtractPropTypes } from 'vue';
2+
23
import { tuple } from '../_util/type';
34
import PropTypes, { withUndefined } from '../_util/vue-types';
45

@@ -28,6 +29,6 @@ const buttonProps = () => ({
2829
onClick: PropTypes.func,
2930
});
3031

31-
export type ButtonProps = ExtractPropTypes<ExtractPropTypes<ReturnType<typeof buttonProps>>>;
32+
export type ButtonProps = Partial<ExtractPropTypes<ReturnType<typeof buttonProps>>>;
3233

3334
export default buttonProps;

0 commit comments

Comments
 (0)