[Doc] update code style (#484)

This commit is contained in:
neverland
2017-12-26 12:39:52 +08:00
committed by GitHub
parent 508cdfc0c9
commit 6b563b2e5a
68 changed files with 431 additions and 431 deletions
+7 -9
View File
@@ -14,7 +14,7 @@ The value of filed is bound with v-model.
```html
<van-cell-group>
<van-field v-model="value" placeholder="Username"></van-field>
<van-field v-model="value" placeholder="Username" />
</van-cell-group>
```
@@ -30,16 +30,15 @@ Use `type` prop to custom diffrent type fileds.
placeholder="Username"
required
@click-icon="username = ''"
>
</van-field>
/>
<van-field
v-model="password"
type="password"
label="Password"
placeholder="Password"
required>
</van-field>
required
/>
</van-cell-group>
```
@@ -47,7 +46,7 @@ Use `type` prop to custom diffrent type fileds.
```html
<van-cell-group>
<van-field value="Disabled" label="Username" disabled></van-field>
<van-field value="Disabled" label="Username" disabled />
</van-cell-group>
```
@@ -55,7 +54,7 @@ Use `type` prop to custom diffrent type fileds.
```html
<van-cell-group>
<van-field label="Username" placeholder="Username" error></van-field>
<van-field label="Username" placeholder="Username" error />
</van-cell-group>
```
@@ -71,8 +70,7 @@ Textarea Filed can be auto resize when has `autosize` prop
placeholder="Message"
rows="1"
autosize
>
</van-field>
/>
</van-cell-group>
```