docs(components): [Autocomplete] add h1 to autocomplete docs and little tweaking (#10174)

This commit is contained in:
Jason Ren 2022-10-22 09:22:43 +08:00 committed by GitHub
parent 6890afc149
commit 6d624f1a76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,15 @@ title: Autocomplete
lang: en-US
---
## Autocomplete
# Autocomplete
You can get some recommended tips based on the current input.
Get some recommended tips based on the current input.
:::demo Autocomplete component provides input suggestions. The `fetch-suggestions` attribute is a method that returns suggested input. In this example, `querySearch(queryString, cb)` returns suggestions to Autocomplete via `cb(data)` when suggestions are ready.
## Basic Usage
Autocomplete component provides input suggestions.
:::demo The `fetch-suggestions` attribute is a method that returns suggested input. In this example, `querySearch(queryString, cb)` returns suggestions to Autocomplete via `cb(data)` when suggestions are ready.
autocomplete/autocomplete