fix: button props type
parent
50357712d4
commit
44bc942bf7
|
@ -1,4 +1,5 @@
|
||||||
import { ExtractPropTypes } from 'vue';
|
import { ExtractPropTypes } from 'vue';
|
||||||
|
|
||||||
import { tuple } from '../_util/type';
|
import { tuple } from '../_util/type';
|
||||||
import PropTypes, { withUndefined } from '../_util/vue-types';
|
import PropTypes, { withUndefined } from '../_util/vue-types';
|
||||||
|
|
||||||
|
@ -28,6 +29,6 @@ const buttonProps = () => ({
|
||||||
onClick: PropTypes.func,
|
onClick: PropTypes.func,
|
||||||
});
|
});
|
||||||
|
|
||||||
export type ButtonProps = ExtractPropTypes<ExtractPropTypes<ReturnType<typeof buttonProps>>>;
|
export type ButtonProps = Partial<ExtractPropTypes<ReturnType<typeof buttonProps>>>;
|
||||||
|
|
||||||
export default buttonProps;
|
export default buttonProps;
|
||||||
|
|
Loading…
Reference in New Issue