Browse Source

fix: type check failed for prop 'onClick' (#3038)

pull/3044/head
Li Kui 3 years ago
committed by GitHub
parent
commit
4aaddef06f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/Button/src/props.ts

2
src/components/Button/src/props.ts

@ -22,5 +22,5 @@ export const buttonProps = {
* @default: 14
*/
iconSize: { type: Number, default: 14 },
onClick: { type: Function as PropType<(...args) => any>, default: null },
onClick: { type: [Function, Array] as PropType<(() => any) | (() => any)[]>, default: null },
};

Loading…
Cancel
Save