vue-diff-view a git diff component for Vue.js Usage <template> </template> import CodeDiffViewer from 'VueDiffView'; export default { name: 'app', components: { CodeDiffViewer }, data() { return { oldStr: '[\n {\n name: title\n displayName: "标题"\n datatype: "OBJECT...
vue-diff-view A vue diff view component. Build Setup # install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev# build for production with minificationnpm run build# build for production and view the bundle analyzer reportnpm run build --report ...
import"@git-diff-view/vue/styles/diff-view.css";import{DiffView,DiffModeEnum}from"@git-diff-view/vue";<DiffView:data="{oldFile?:{fileName?:string|null;fileLang?:string|null;content?:string|null};newFile?:{fileName?:string|null;fileLang?:string|null;content?:string|null};hunks:string[]...
vue.config.js fix: last line didn't show Jun 16, 2019 vue-diff-view a git diff component for Vue.js Usage <template> </template> importCodeDiffViewerfrom'VueDiffView';exportdefault{name:'app',components:{CodeDiffViewer},data() {return{oldStr:'[\n{\nname: title\ndisplayName: "...