With Composition API
In Vue 3, it is preferred to write components using the composition API.
Live Demo
Click the button to select the picture first, and it will enter the cutting process.
Source Code
You can adjust it yourself by referring to the usage of the demo: View the source code of this demo .