From 4cac61f27f6580556c3e24ea3517dfdba2e10bc0 Mon Sep 17 00:00:00 2001 From: Xc <124118265@qq.com> Date: Sun, 4 Dec 2022 14:57:08 +0800 Subject: [PATCH] docs(components): [button/input/scrollbar/autocomplete] object (#10891) --- docs/en-US/component/autocomplete.md | 12 ++++++------ docs/en-US/component/button.md | 10 +++++----- docs/en-US/component/input.md | 10 +++++----- docs/en-US/component/scrollbar.md | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/docs/en-US/component/autocomplete.md b/docs/en-US/component/autocomplete.md index afb4abf74f..94b93c3aec 100644 --- a/docs/en-US/component/autocomplete.md +++ b/docs/en-US/component/autocomplete.md @@ -83,15 +83,15 @@ autocomplete/remote-search | Name | Description | Type | | ---------------- | ------------------------------------------- | ----------------------------------------- | -| activated | if autocomplete activated | ^[Object]`Ref` | +| activated | if autocomplete activated | ^[object]`Ref` | | blur | blur the input element | ^[Function]`() => void` | | close | collapse suggestion list | ^[Function]`() => void` | | focus | focus the input element | ^[Function]`() => void` | | handleSelect | triggers when a suggestion is clicked | ^[Function]`(item: any) => promise` | | handleKeyEnter | handle keyboard enter event | ^[Function]`() => promise` | -| highlightedIndex | the index of the currently highlighted item | ^[Object]`Ref` | +| highlightedIndex | the index of the currently highlighted item | ^[object]`Ref` | | highlight | highlight an item in a suggestion | ^[Function]`(itemIndex: number) => void` | -| inputRef | el-input component instance | ^[Object]`Ref` | -| loading | remote search loading indicator | ^[Object]`Ref` | -| popperRef | el-tooltip component instance | ^[Object]`Ref` | -| suggestions | fetch suggestions result | ^[Object]`Ref>` | +| inputRef | el-input component instance | ^[object]`Ref` | +| loading | remote search loading indicator | ^[object]`Ref` | +| popperRef | el-tooltip component instance | ^[object]`Ref` | +| suggestions | fetch suggestions result | ^[object]`Ref>` | diff --git a/docs/en-US/component/button.md b/docs/en-US/component/button.md index b4d83ae26f..a9eb38df61 100644 --- a/docs/en-US/component/button.md +++ b/docs/en-US/component/button.md @@ -159,11 +159,11 @@ button/custom | Name | Description | Type | | -------------- | -------------------- | -------------------------------------------------------------------------------------------------------------- | -| ref | button html element | ^[Object]`Ref` | -| size | button size | ^[Object]`ComputedRef<'' \| 'small' \| 'default' \| 'large'>` | -| type | button type | ^[Object]`ComputedRef<'' \| 'default' \| 'primary' \| 'success' \| 'warning' \| 'info' \| 'danger' \| 'text'>` | -| disabled | button disabled | ^[Object]`ComputedRef` | -| shouldAddSpace | whether adding space | ^[Object]`ComputedRef` | +| ref | button html element | ^[object]`Ref` | +| size | button size | ^[object]`ComputedRef<'' \| 'small' \| 'default' \| 'large'>` | +| type | button type | ^[object]`ComputedRef<'' \| 'default' \| 'primary' \| 'success' \| 'warning' \| 'info' \| 'danger' \| 'text'>` | +| disabled | button disabled | ^[object]`ComputedRef` | +| shouldAddSpace | whether adding space | ^[object]`ComputedRef` | ## ButtonGroup API diff --git a/docs/en-US/component/input.md b/docs/en-US/component/input.md index f0fbcfb726..c17eaf4304 100644 --- a/docs/en-US/component/input.md +++ b/docs/en-US/component/input.md @@ -127,7 +127,7 @@ input/length-limiting | minlength | same as `minlength` in native input | ^[number] | — | | show-word-limit | whether show word count, only works when `type` is 'text' or 'textarea' | ^[boolean] | false | | placeholder | placeholder of Input | ^[string] | — | -| clearable | whether to show clear button, only works when `type` is not 'textarea' | ^[boolean] | false | +| clearable | whether to show clear button, only works when `type` is not 'textarea' | ^[boolean] | false | | formatter | specifies the format of the value presented input.(only works when `type` is 'text') | ^[Function]`(value: string \| number) => string` | — | | parser | specifies the value extracted from formatter input.(only works when `type` is 'text') | ^[Function]`(value: string) => string` | — | | show-password | whether to show toggleable password input | ^[boolean] | false | @@ -177,9 +177,9 @@ input/length-limiting | blur | blur the input element | ^[Function]`() => void` | | clear | clear input value | ^[Function]`() => void` | | focus | focus the input element | ^[Function]`() => void` | -| input | HTML input element | ^[Object]`Ref` | -| ref | HTML element, input or textarea | ^[Object]`Ref` | +| input | HTML input element | ^[object]`Ref` | +| ref | HTML element, input or textarea | ^[object]`Ref` | | resizeTextarea | resize textarea | ^[Function]`() => void` | | select | select the text in input element | ^[Function]`() => void` | -| textarea | HTML textarea element | ^[Object]`Ref` | -| textareaStyle | style of textarea | ^[Object]`Ref` | +| textarea | HTML textarea element | ^[object]`Ref` | +| textareaStyle | style of textarea | ^[object]`Ref` | diff --git a/docs/en-US/component/scrollbar.md b/docs/en-US/component/scrollbar.md index eb0a04c954..7ca56a963c 100644 --- a/docs/en-US/component/scrollbar.md +++ b/docs/en-US/component/scrollbar.md @@ -78,4 +78,4 @@ scrollbar/manual-scroll | 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` | +| wrapRef | scrollbar wrap ref | ^[object]`Ref` |