Skip to content

Commit

Permalink
docs(avatar-cropper): 文档修正 (#2820)
Browse files Browse the repository at this point in the history
  • Loading branch information
iCheng authored Jan 4, 2024
1 parent cf4044a commit 9924764
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/packages/__VUE/avatarcropper/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ const app = createApp();
app.use(AvatarCropper);
```

### 基础用法
### Basic Usage

Use the avatar component directly in the middle, and the image content will be replaced with the new one after cropping.

:::demo

```vue
<template>
<nut-avatar-cropper>
<nut-avatar size="large" @confirm="cutImage">
<nut-avatar-cropper @confirm="cutImage">
<nut-avatar size="large">
<img :src="imageUrl" />
</nut-avatar>
</nut-avatar-cropper>
Expand Down
4 changes: 2 additions & 2 deletions src/packages/__VUE/avatarcropper/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ app.use(AvatarCropper);

```vue
<template>
<nut-avatar-cropper>
<nut-avatar size="large" @confirm="cutImage">
<nut-avatar-cropper @confirm="cutImage">
<nut-avatar size="large">
<img :src="imageUrl" />
</nut-avatar>
</nut-avatar-cropper>
Expand Down
4 changes: 2 additions & 2 deletions src/packages/__VUE/avatarcropper/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ app.use(AvatarCropper);

```vue
<template>
<nut-avatar-cropper>
<nut-avatar size="large" @confirm="cutImage">
<nut-avatar-cropper @confirm="cutImage">
<nut-avatar size="large">
<img :src="imageUrl" />
</nut-avatar>
</nut-avatar-cropper>
Expand Down

0 comments on commit 9924764

Please sign in to comment.