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.
@@ -107,7 +107,7 @@ Insert the diff component with props.
107
107
| prev |`string`|`''`|| Prev code |
108
108
| current |`string`|`''`|| Current Code |
109
109
| inputDelay |`number`|`0`|| Setting up rendering debounce for changes for performance benefit (mode, prev, curr) |
110
-
| virtualScroll |`boolean\|object`|`false`||*Default value when setting true :*<br>`{ height: 500, lineMinHeight: 24, scrollDelay: 250 }`<br>See <ahref="#virtual-scroll">virtual scroll</a> |
110
+
| virtualScroll |`boolean\|object`|`false`||*Default value when setting true :*<br>`{ height: 500, lineMinHeight: 24, delay: 100 }`<br>See <ahref="#virtual-scroll">virtual scroll</a> |
111
111
112
112
## Custom theme
113
113
@@ -184,5 +184,5 @@ When using virtual scroll, the css of all code lines is changed to the absolute
184
184
* height (`number`): Diff box height (Applies only to px values)
185
185
* lineMinHeight (`number`): minimum height of line
186
186
> 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.
187
-
*scrollDelay (`number`): re-rendering delay when scrolling
188
-
> Performance problems occur when too often a re-rendering function is invoked based on scrolling<br>This setting applies a delay using throttle.
187
+
*delay (`number`): re-rendering delay when scrolling or resizing
188
+
> 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