mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(Field): add input-align example (#2519)
This commit is contained in:
parent
b89c2486af
commit
a5e56d43e8
@ -7,6 +7,7 @@ Page({
|
||||
password: '',
|
||||
username: '',
|
||||
username2: '',
|
||||
username3: '',
|
||||
message: '',
|
||||
phone: '1365577'
|
||||
},
|
||||
|
@ -57,6 +57,17 @@
|
||||
</van-cell-group>
|
||||
</demo-block>
|
||||
|
||||
<demo-block title="内容对齐方式">
|
||||
<van-cell-group>
|
||||
<van-field
|
||||
value="{{ username3 }}"
|
||||
label="用户名"
|
||||
placeholder="请输入用户名"
|
||||
input-align="right"
|
||||
/>
|
||||
</van-cell-group>
|
||||
</demo-block>
|
||||
|
||||
<demo-block title="高度自适应">
|
||||
<van-cell-group>
|
||||
<van-field
|
||||
|
@ -102,6 +102,19 @@ Page({
|
||||
/>
|
||||
</van-cell-group>
|
||||
```
|
||||
### 内容对齐方式
|
||||
可以通过`input-align`属性设置内容的对齐方式
|
||||
|
||||
```html
|
||||
<van-cell-group>
|
||||
<van-field
|
||||
value="{{ username3 }}"
|
||||
label="用户名"
|
||||
placeholder="请输入用户名"
|
||||
input-align="right"
|
||||
/>
|
||||
</van-cell-group>
|
||||
```
|
||||
|
||||
### 高度自适应
|
||||
对于 textarea,可以通过`autosize`属性设置高度自适应
|
||||
|
Loading…
x
Reference in New Issue
Block a user