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

fix(avatarcropper): 多语言支持 #2666

Merged
merged 2 commits into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/packages/avatarcropper/avatarcropper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@
width: 100%;
display: flex;
justify-content: space-between;
padding: 15px 15px;
}

&-item {
color: #fff;
padding: 15px;
cursor: pointer;
display: flex;
align-items: center;
Expand Down
1 change: 1 addition & 0 deletions src/packages/avatarcropper/avatarcropper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
{locale.confirm}
</Button>,
]
defaultProps.editText = locale.edit

const {
children,
Expand Down Expand Up @@ -123,7 +124,7 @@
height,
borderRadius: shape === 'round' ? '50%' : '',
}
}, [devicePixelRatio, drawImage.swidth])

Check warning on line 127 in src/packages/avatarcropper/avatarcropper.tsx

View workflow job for this annotation

GitHub Actions / lint

React Hook useMemo has a missing dependency: 'shape'. Either include it or remove the dependency array

// 是否是横向
const isAngle = useMemo(() => {
Expand Down
Loading