Introduction
A simple demonstration to compare two image with a convenient draggable handle
Tips
-
This is only a vue file, using it in vue project envirement
-
Props
-
leftImg
the url of left image -
rightImg
the url of right image -
maxWidth
container's max width, default is 1000
-
Development requirement
- Install @vue/cli-service-global
npm install -g @vue/cli-service-global
- run
vue serve index.vue