diff --git a/api-generator/components/scrollpanel.js b/api-generator/components/scrollpanel.js index f87bfca0d..9ebb33e2e 100644 --- a/api-generator/components/scrollpanel.js +++ b/api-generator/components/scrollpanel.js @@ -1,6 +1,16 @@ +const ScrollPanelProps = [ + { + name: "step", + type: "number", + default: "5", + description: "Step factor to scroll the content while pressing the arrow keys." + } +]; + module.exports = { scrollpanel: { name: "ScrollPanel", - description: "ScrollPanel is a cross browser, lightweight and themable alternative to native browser scrollbar." + description: "ScrollPanel is a cross browser, lightweight and themable alternative to native browser scrollbar.", + props: ScrollPanelProps } }; diff --git a/src/components/scrollpanel/ScrollPanel.d.ts b/src/components/scrollpanel/ScrollPanel.d.ts index 8e532ca90..bb5c30752 100644 --- a/src/components/scrollpanel/ScrollPanel.d.ts +++ b/src/components/scrollpanel/ScrollPanel.d.ts @@ -2,6 +2,11 @@ import { VNode } from 'vue'; import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; export interface ScrollPanelProps { + /** + * Step factor to scroll the content while pressing the arrow keys. + * Default value is 5. + */ + step?: number | undefined; } export interface ScrollPanelSlots { diff --git a/src/components/scrollpanel/ScrollPanel.vue b/src/components/scrollpanel/ScrollPanel.vue index b59e0b14d..acb32e4e4 100644 --- a/src/components/scrollpanel/ScrollPanel.vue +++ b/src/components/scrollpanel/ScrollPanel.vue @@ -1,20 +1,26 @@