You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 10, 2025. It is now read-only.
| theme |`string`|`dark`|`dark`, `light`| See <ahref="#custom-theme">Custom theme</a>|
112
+
| language |`string`|`plaintext`|| See <ahref="#extend-languages">Extend languages</a>|
113
+
| prev |`string`|`''`|| Prev code|
114
+
| current |`string`|`''`|| Current Code|
115
+
| folding |`boolean`|`false`|| Folding not different|
116
+
| inputDelay |`number`|`0`|| Setting up rendering debounce for changes for performance benefit (mode, prev, curr)|
117
+
| virtualScroll |`boolean\|object`|`false`||_Default value when setting true :_<br>`{ height: 500, lineMinHeight: 24, delay: 100 }`<br>See <ahref="#virtual-scroll">virtual scroll</a> |
116
118
117
119
## Custom theme
118
120
119
121
`vue-diff` uses the following <ahref="https://github.com/highlightjs/highlight.js/tree/master/src/styles">highlight.js themes</a> and can be customized.
> <ahref="https://github.com/highlightjs/highlight.js/blob/master/SUPPORTED_LANGUAGES.md">Check supported languages of Highlight.js</a>
@@ -186,8 +188,8 @@ With virtualScroll props, virtualScroll applies. (Self-made for this plug-in.)
186
188
187
189
When using virtual scroll, the css of all code lines is changed to the absolute position, which requires detailed settings.
188
190
189
-
* height (`number`): Diff box height (Applies only to px values)
190
-
* lineMinHeight (`number`): minimum height of line
191
+
- height (`number`): Diff box height (Applies only to px values)
192
+
- lineMinHeight (`number`): minimum height of line
191
193
> Minimum height value of line is required for visible area calculation.<br>The default is 24, but you can set it yourself if you need to adjust it according to the page's front-size, line-height, etc.
192
-
* delay (`number`): re-rendering delay when scrolling or resizing
193
-
> Performance problems occur when too often a re-rendering function is invoked based on scrolling or resizing<br>This setting applies a delay using throttle.
194
+
- delay (`number`): re-rendering delay when scrolling or resizing
195
+
> Performance problems occur when too often a re-rendering function is invoked based on scrolling or resizing<br>This setting applies a delay using throttle.
0 commit comments