@@ -44,7 +44,7 @@ scrollbar/manual-scroll
4444### Attributes
4545
4646| Name | Description | Type | Default |
47- | ------------ | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- | --------- |
47+ | ---------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | ------- |
4848| height | height of scrollbar | ^[ string] / ^[ number] | — |
4949| max-height | max height of scrollbar | ^[ string] / ^[ number] | — |
5050| native | whether to use the native scrollbar style | ^[ boolean] | false |
@@ -60,21 +60,22 @@ scrollbar/manual-scroll
6060### Events
6161
6262| Name | Description | Type |
63- | -------- | ------------------------------------------------------- | ------------------------------------------------------------------ |
63+ | ------ | ----------------------------------------------------- | ---------------------------------------------------------------- |
6464| scroll | triggers when scrolling, return distance of scrolling | ^[ Function] ` ({ scrollLeft: number, scrollTop: number }) => void ` |
6565
6666### Slots
6767
6868| Name | Description |
69- | --------- | --------------------------- |
69+ | ------- | ------------------------- |
7070| default | customize default content |
7171
7272### Exposes
7373
7474| Name | Description | Type |
75- | --------------- | -------------------------------------------- | ---------------------------------------------------------------------------- |
75+ | ------------- | ------------------------------------------ | -------------------------------------------------------------------------- |
7676| handleScroll | handle scroll event | ^[ Function] ` () => void ` |
7777| scrollTo | scrolls to a particular set of coordinates | ^[ Function] ` (options: ScrollToOptions \| number, yCoord?: number) => void ` |
7878| setScrollTop | Set distance to scroll top | ^[ Function] ` (scrollTop: number) => void ` |
7979| setScrollLeft | Set distance to scroll left | ^[ Function] ` (scrollLeft: number) => void ` |
80- | update | update scrollbar state manually | ^[ Function] ` () => void ` |
80+ | update | update scrollbar state manually | ^[ Function] ` () => void ` |
81+ | wrapRef | scrollbar wrap ref | ^[ Object] ` Ref<HTMLDivElement> ` |
0 commit comments