v-code-diff
v-code-diff copied to clipboard
A vue code diff display plugin, support Vue2 / Vue3
 上面字符串:"recordResponse": "{\"code\":\"200\",\"data\":{\"createTime\":\"2022-05-11 14:40:10\",\"createUserName\":\"赵铁军\",\"createUserNo\":\"80037\",\"employeeNo\":\"80037\",\"idCard\":\"211221198110152419\",\"modifiedTime\":\"2022-05-11 14:40:12\",\"modifiedUserNo\":\"80037\",\"status\":\"2\",\"submitTime\":\"2022-05-11 14:40:12\",\"submitUserName\":\"赵铁军\",\"submitUserNo\":\"80037\",\"weeklyId\":\"553007\",\"workDate\":\"2022-05-11 00:00:00\",\"workDay\":\"周三\",\"workDayId\":\"2182485\",\"workTotal\":8.0},\"msg\":\"提交成功\",\"success\":true}", 下面字符串:"recordResponse": "{\"code\":\"200\",\"data\":{\"createTime\":\"2022-05-11 14:40:10\",\"createUserName\":\"赵铁军\",\"createUserNo\":\"80037\",\"employeeNo\":\"80037\",\"idCard\":\"211221198110152419\",\"modifiedTime\":\"2022-05-11 14:40:12\",\"modifiedUserName\":null,\"modifiedUserNo\":\"80037\",\"status\":\"2\",\"submitTime\":\"2022-05-11 14:40:12\",\"submitUserName\":\"赵铁军\",\"submitUserNo\":\"80037\",\"\"80037\",\"status\":\"2\",\"submitTime\":\"2022-05-11 14:40:12\",\"submitUserName\":\"赵铁军\",\"submitUserNo\":\"80037\",\"weeklyDayDetail\":null,\"weeklyId\":\"553007\",\"workDate\":\"2022-05-11 00:00:00\",\"workDay\":\"周三\",\"workDayId\":\"2182485\",\"workTotal\":8.0},\"msg\":\"提交成功\",\"success\":true}",\"553007\",\"workDate\":\"2022-05-11 00:00:00\",\"workDay\":\"周三\",\"workDayId\":\"2182485\",\"workTotal\":8.0},\"msg\":\"提交成功\",\"success\":true}",
代码行数太多,每次左右滚动都要拖到最下面的区域,很不方便 请问怎么限制代码区域显示的最大高度?
Hey, I've been using the package with great success, but I ran into a slight concern. I isolated the component down to lazy loading it by doing something like :...
在properties类型文件内容进行对比时发现,如果第一行为注释,且对比内容没有差异的时候,第一行注释会不显示,希望可以修复一下。 原始数据:  展示出来的数据: 

vite + vue3 vue本地运行开发无问题,发布打包,由于vue使用CDN,https://unpkg.com/[email protected]/dist/vue.global.js 项目运行报错: v-code-diff是最新版本0.3.11 policy:1 Uncaught (in promise) TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
0.3.11版本syncScroll 不生效可以帮忙看下吗
  这种展示出来左右是错位的是什么原因 左侧数据: { "code": 0, "data": [ "2022-05-18 16:02:30", "2022-05-18 16:02:31", "2022-05-18 16:02:32", "2022-05-18 16:02:33", "2022-05-18 16:02:34", "2022-05-18 16:02:35", "2022-05-18 16:02:36", "2022-05-18 16:02:37", "2022-05-18 16:02:38", "2022-05-18 16:02:39" ],...
export default { name: 'App', components: { CodeDiff }