With Options API #
Vue 3 also supports writing components using the Options API.
TIP
This demo is the same as With Composition API, except that the component use the Options 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 .