From 6d30e402d79bbb65863f0ffb53284aca749998cb Mon Sep 17 00:00:00 2001 From: Xc <124118265@qq.com> Date: Mon, 14 Nov 2022 11:14:40 +0800 Subject: [PATCH] docs(components): [scrollbar] note warpRef (#10596) docs(components): [scorllbar] note warpRef --- docs/en-US/component/scrollbar.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/en-US/component/scrollbar.md b/docs/en-US/component/scrollbar.md index 5e76e81c2f..32e1e1e04c 100644 --- a/docs/en-US/component/scrollbar.md +++ b/docs/en-US/component/scrollbar.md @@ -44,7 +44,7 @@ scrollbar/manual-scroll ### Attributes | Name | Description | Type | Default | -| ---------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------- | ------- | +|------------|---------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------|---------| | height | height of scrollbar | ^[string] / ^[number] | — | | max-height | max height of scrollbar | ^[string] / ^[number] | — | | native | whether to use the native scrollbar style | ^[boolean] | false | @@ -60,22 +60,21 @@ scrollbar/manual-scroll ### Events | Name | Description | Type | -| ------ | ----------------------------------------------------- | ---------------------------------------------------------------- | +|--------|-------------------------------------------------------|------------------------------------------------------------------| | scroll | triggers when scrolling, return distance of scrolling | ^[Function]`({ scrollLeft: number, scrollTop: number }) => void` | ### Slots | Name | Description | -| ------- | ------------------------- | +|---------|---------------------------| | default | customize default content | ### Exposes | Method | Description | Type | -| ------------- | ------------------------------------------ | -------------------------------------------------------------------------- | +|---------------|--------------------------------------------|----------------------------------------------------------------------------| | handleScroll | handle scroll event | ^[Function]`() => void` | | scrollTo | scrolls to a particular set of coordinates | ^[Function]`(options: ScrollToOptions \| number, yCoord?: number) => void` | | setScrollTop | Set distance to scroll top | ^[Function]`(scrollTop: number) => void` | | setScrollLeft | Set distance to scroll left | ^[Function]`(scrollLeft: number) => void` | -| update | update scrollbar state manually | ^[Function]`() => void` | -| wrapRef | scrollbar wrap ref | ^[Object]`Ref` | +| update | update scrollbar state manually | ^[Function]`() => void` | \ No newline at end of file