diff --git a/src/packages/__VUE/avatarcropper/__tests__/avatarcropper.spec.ts b/src/packages/__VUE/avatarcropper/__tests__/avatarcropper.spec.ts index a99cd612f8..b074cf42af 100644 --- a/src/packages/__VUE/avatarcropper/__tests__/avatarcropper.spec.ts +++ b/src/packages/__VUE/avatarcropper/__tests__/avatarcropper.spec.ts @@ -60,6 +60,9 @@ test('AvatarCropper: Select the image to open the crop window', async () => { expect(wrapper.vm.angle).toBe(90); setAngle.trigger('click'); expect(wrapper.vm.angle).toBe(180); + setAngle.trigger('click'); + setAngle.trigger('click'); + expect(wrapper.vm.angle).toBe(0); const confirm = btns[3]; confirm.trigger('click'); diff --git a/src/packages/__VUE/avatarcropper/demo.vue b/src/packages/__VUE/avatarcropper/demo.vue index 5b2ffbb89a..4d404a96ff 100644 --- a/src/packages/__VUE/avatarcropper/demo.vue +++ b/src/packages/__VUE/avatarcropper/demo.vue @@ -10,7 +10,7 @@

裁剪区域bottom插槽

- + diff --git a/src/packages/__VUE/avatarcropper/doc.en-US.md b/src/packages/__VUE/avatarcropper/doc.en-US.md index fccd2b4b45..5247dc5634 100644 --- a/src/packages/__VUE/avatarcropper/doc.en-US.md +++ b/src/packages/__VUE/avatarcropper/doc.en-US.md @@ -49,7 +49,7 @@ Customize the clipping area toolbar, and BNs-position controls the toolbar posit ```vue