Skip to content

MKFMIKU/vue-quick-diff

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo

A component that can quickly see the difference between two pictures

Installation

npm install --save vue-quick-diff

How to use

import  QuickDiff from './components/Component.vue'
export default {
  name: 'app',
  data(){
    return{
      origin: require("./assets/origin.jpg"),
      diff: require("./assets/diff.jpg"),
      origin_video: require("./assets/diff.mp4"),
      diff_video: require("./assets/origin.mp4")
    }
  },
  components: {
    QuickDiff
  }
}

Props

Name Type Default Description
width real null Allow users to define their own width
height real null Allow users to define their own height
posX real 200 Define the initial position of the sliding bar
pageX real null Relative to pages and considering scrollbars
isDragging boolean false Actions used to judge animation
allowNextFrame boolean true Used to judge whether the action is over or not
image_map array ['png', 'jpg', 'jpeg', 'gif'] Judging Picture Category
video_map array ['webm', 'mp4', 'ogg'] Judging Video Category

About

一个可以直观的看出两张图片区别的组件

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 90.8%
  • HTML 6.8%
  • JavaScript 2.4%