[Doc] new theme

This commit is contained in:
陈嘉涵
2019-05-15 20:53:04 +08:00
parent 3cae4288f2
commit d0f4169c86
130 changed files with 1460 additions and 1147 deletions
+16 -8
View File
@@ -1,15 +1,17 @@
## Field
# Field
### Install
``` javascript
import { Field } from 'vant';
Vue.use(Field);
```
### Usage
## Usage
### Basic Usage
#### Basic Usage
The value of field is bound with v-model.
```html
@@ -18,7 +20,8 @@ The value of field is bound with v-model.
</van-cell-group>
```
#### Custom type
### Custom type
Use `type` prop to custom diffrent type fields.
```html
@@ -43,7 +46,7 @@ Use `type` prop to custom diffrent type fields.
</van-cell-group>
```
#### Disabled
### Disabled
```html
<van-cell-group>
@@ -56,7 +59,8 @@ Use `type` prop to custom diffrent type fields.
</van-cell-group>
```
#### Error info
### Error info
Use `error` or `error-message` to show error info
```html
@@ -76,7 +80,8 @@ Use `error` or `error-message` to show error info
</van-cell-group>
```
#### Auto resize
### Auto resize
Textarea Field can be auto resize when has `autosize` prop
```html
@@ -92,7 +97,8 @@ Textarea Field can be auto resize when has `autosize` prop
</van-cell-group>
```
#### Insert button
### Insert button
Use button slot to insert button
```html
@@ -109,6 +115,8 @@ Use button slot to insert button
</van-cell-group>
```
## API
### Props
Field support all native properties of input tagsuch as `maxlength`、`placeholder`、`autofocus`