diff --git a/src/packages/avatarcropper/__tests__/__snapshots__/avatarcropper.spec.tsx.snap b/src/packages/avatarcropper/__tests__/__snapshots__/avatarcropper.spec.tsx.snap index 7cb3753e03..6d5e204533 100644 --- a/src/packages/avatarcropper/__tests__/__snapshots__/avatarcropper.spec.tsx.snap +++ b/src/packages/avatarcropper/__tests__/__snapshots__/avatarcropper.spec.tsx.snap @@ -17,7 +17,7 @@ exports[`layout default slot 1`] = `
- Edit + 编辑
`; diff --git a/src/packages/avatarcropper/avatarcropper.scss b/src/packages/avatarcropper/avatarcropper.scss index 3984564ee5..31e5b460f4 100644 --- a/src/packages/avatarcropper/avatarcropper.scss +++ b/src/packages/avatarcropper/avatarcropper.scss @@ -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; diff --git a/src/packages/avatarcropper/avatarcropper.tsx b/src/packages/avatarcropper/avatarcropper.tsx index 6317a009c3..f582bfbd85 100644 --- a/src/packages/avatarcropper/avatarcropper.tsx +++ b/src/packages/avatarcropper/avatarcropper.tsx @@ -61,6 +61,7 @@ export const AvatarCropper: FunctionComponent> = ( {locale.confirm} , ] + defaultProps.editText = locale.edit const { children,