::: demo Add `size` attribute to change the size of Input. In addition to the default size, there are three other options: `large`, `small` and `mini`.
::: demo Add `size` attribute to change the size of Input. In addition to the default size, there are three other options: `large`, `small` and `mini`.
```html
```html
<divclass="inline-input">
<div>
<el-input
<el-input
class="inline-input"
size="large"
size="large"
placeholder="Please input"
placeholder="Please input"
v-model="input6">
v-model="input6">
</el-input>
</el-input>
<el-input
<el-input
class="inline-input"
placeholder="Please input"
placeholder="Please input"
v-model="input7">
v-model="input7">
</el-input>
</el-input>
<el-input
<el-input
class="inline-input"
size="small"
size="small"
placeholder="Please input"
placeholder="Please input"
v-model="input8">
v-model="input8">
</el-input>
</el-input>
<el-input
<el-input
class="inline-input"
size="mini"
size="mini"
placeholder="Please input"
placeholder="Please input"
v-model="input9">
v-model="input9">
...
@@ -349,10 +350,11 @@ You can get some recommended tips based on the current input.
...
@@ -349,10 +350,11 @@ You can 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.
::: 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.
```html
```html
<el-rowclass="inline-input border-grid">
<el-rowclass="border-grid">
<el-col:span="12"class="tac">
<el-col:span="12"class="tac">
<divclass="text">list suggestions when activated</div>
<divclass="text">list suggestions when activated</div>
<el-autocomplete
<el-autocomplete
class="inline-input"
v-model="state1"
v-model="state1"
:fetch-suggestions="querySearch"
:fetch-suggestions="querySearch"
placeholder="Please input"
placeholder="Please input"
...
@@ -362,6 +364,7 @@ You can get some recommended tips based on the current input.
...
@@ -362,6 +364,7 @@ You can get some recommended tips based on the current input.