{"repo":"Shimada666/v-code-diff","free":true,"listed":false,"github":"https://github.com/Shimada666/v-code-diff","clone":"git clone https://github.com/Shimada666/v-code-diff.git","description":"A vue code diff display plugin, support Vue2 / Vue3","language":"SCSS","stars":520,"topics":["vue","diff","code","vue3"],"license":"MIT","category":"ui-components","readme_excerpt":"v-code-diff A code diff display plugin, available for Vue2 / Vue3. English 简体中文 Old Version: 0.x version, latest version 0.3.12 (traditional version, improved based on vue-code-diff, is no longer maintained. We will try to align the functionality of 0.x version in 1.x version and minimize migration cost as much as possible). This project references the following projects, and I would like to express my gratitude to the original authors! - vue-diff - vue-code-diff - Github Code Diff Contents - Install - Getting started - Vue3 - Vue2 - Props - Events - Demo - Extend languages - Migrate from 0.x version Install install v-code-diff ⚠️ Important: If you are using pnpm 10.x, you need to add the following configuration to your package.json: This is because pnpm 10.x blocks postinstall scripts by default, while v-code-diff relies on postinstall scripts to select the appropriate build artifacts for Vue version compatibility. For more details, see pnpm/pnpm#8897. Vue2.6 developers need install composition-api Getting Started Vue3 Register locally Recommend using local registration for better tree-shaking support. Register globally then Vue2 Register locally Recommend using local registration for better tree-shaking support. Register globally Demo npm cdn ------ --- ------------------------------------------------------------------------------ vue2 vue2-cdn vue2.7 vue27-cdn vue3 vue3-cdn Props Prop Description Type Optional Values Default Value --------------------- --------------------","default_branch":null,"files":null,"tree":[],"storefront":"/r/Shimada666","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Shimada666/v-code-diff/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}