Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: custom scaffold #802

Merged
merged 10 commits into from
Mar 4, 2021
Prev Previous commit
Next Next commit
fix: switch component default param
  • Loading branch information
luhc228 committed Mar 3, 2021
commit 454bfa05f574546a9b2a13c053680e103e716eda
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import { Switch } from '@alifd/next';

const SwitchComponent = ({ checked, onChange, size }) => (
<Switch checked={checked} onChange={onChange} size={size} />
<Switch checked={checked} onChange={onChange} size={size || 'medium'} />
);

export default SwitchComponent;