Skip to content

Commit

Permalink
fix(avatarcropper): 多语言支持 (#2666)
Browse files Browse the repository at this point in the history
* fix(avatarcropper): 多语言支持

* fix: fix test error
  • Loading branch information
xiaoyatong authored Oct 30, 2024
1 parent f313eb3 commit 40099b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`layout default slot 1`] = `
<div
class="nut-avatar-cropper-edit-text"
>
Edit
编辑
</div>
</div>
`;
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 @@ export const AvatarCropper: FunctionComponent<Partial<AvatarCropperProps>> = (
{locale.confirm}
</Button>,
]
defaultProps.editText = locale.edit

const {
children,
Expand Down

0 comments on commit 40099b0

Please sign in to comment.