From 44bc942bf7384db0be935a0f0639e5775503167c Mon Sep 17 00:00:00 2001 From: Amour1688 Date: Wed, 11 Nov 2020 21:33:17 +0800 Subject: [PATCH] fix: button props type --- components/button/buttonTypes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/button/buttonTypes.ts b/components/button/buttonTypes.ts index a7a359ba1..6715b5caa 100644 --- a/components/button/buttonTypes.ts +++ b/components/button/buttonTypes.ts @@ -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>>; +export type ButtonProps = Partial>>; export default buttonProps;