v-code-diff 1.14.1 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/v2/index.cjs +18 -18
- package/dist/v2/index.es.js +733 -684
- package/dist/v2/index.umd.js +20 -20
- package/dist/v2.7/index.cjs +12 -12
- package/dist/v2.7/index.es.js +219 -189
- package/dist/v2.7/index.umd.js +12 -12
- package/dist/v3/index.cjs +27 -27
- package/dist/v3/index.es.js +1508 -1477
- package/dist/v3/index.umd.js +27 -27
- package/package.json +1 -1
- package/src/CodeDiff.vue +8 -4
- package/src/split/SplitLine.vue +20 -2
- package/src/split/SplitViewer.vue +12 -2
- package/src/types.ts +7 -0
- package/src/unified/UnifiedLine.vue +21 -4
- package/src/unified/UnifiedViewer.vue +12 -2
- package/types/index.d.ts +10 -1
package/README.md
CHANGED
|
@@ -170,6 +170,7 @@ Vue.use(CodeDiff)
|
|
|
170
170
|
| newFilename | New filename | string | - | undefined |
|
|
171
171
|
| hideHeader | Hide header bar | boolean | - | false |
|
|
172
172
|
| hideStat | Hide statistical part in the header bar | boolean | - | false |
|
|
173
|
+
| hideNavigation | Hide the next/previous change buttons | boolean | - | false |
|
|
173
174
|
| theme | Add dark mode | ThemeType | light , dark | light |
|
|
174
175
|
| ignoreMatchingLines | Give a pattern to ignore matching lines eg: '(time\|token)' | string | - | undefined |
|
|
175
176
|
|
|
@@ -178,6 +179,7 @@ Vue.use(CodeDiff)
|
|
|
178
179
|
| Name | Description | Type |
|
|
179
180
|
| ---- | --------------------------- | ------------------------------------------------------------------------------- |
|
|
180
181
|
| diff | Emitted after the diff is calculated | (result: {stat: { isChanged: boolean, addNum: number, delNum: number}}) => void |
|
|
182
|
+
| change-click | Emitted when an added or removed line is clicked | (payload: {side: 'old' \| 'new', type: 'added' \| 'removed', lineNumber: number, event: MouseEvent}) => void |
|
|
181
183
|
|
|
182
184
|
## Slot
|
|
183
185
|
|