v-code-diff 1.14.1 → 1.16.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 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,12 +179,14 @@ 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
 
184
186
  | Name | Description |
185
187
  | ---- | ----------------------------------------------------------- |
186
188
  | stat | Custom statistics content. The slot prop is `{ stat }`. |
189
+ | header-actions | Custom actions displayed in the header. |
187
190
 
188
191
  ## Extend languages
189
192