Skip to content

Commit

Permalink
example(react-component-tsx): update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 11, 2021
1 parent f0fbef8 commit fd65e8a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions example/react-component-tsx/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,20 @@ export interface ButtonProps {
htmlType?: React.ButtonHTMLAttributes<HTMLButtonElement>['type'];
}
export default function Button(props: ButtonProps = {}) {
const { prefixCls, type, size, active, disabled, block, basic, className, loading, children, htmlType, ...others } =
props;
const {
prefixCls = 'w-btn',
disabled = false,
active = false,
loading = false,
block = false,
basic = false,
htmlType = 'button',
type = 'light',
size = 'default',
className,
children,
...others
} = props;

const cls = [
className,
Expand Down

0 comments on commit fd65e8a

Please sign in to comment.