1
0
mirror of https://gitee.com/vant-contrib/vant.git synced 2025-04-06 03:57:59 +08:00

field component

This commit is contained in:
cookfront 2017-02-14 17:17:10 +08:00
parent fb7089fd35
commit 00848c6ea4
2 changed files with 8 additions and 0 deletions
packages
field/src
zanui/src

@ -3,6 +3,7 @@
class="o2-field"
:title="label"
:class="{
'is-textarea': type === 'textarea',
'is-nolabel': !label
}">
<textarea

@ -7,6 +7,12 @@
display: table;
overflow: hidden;
@when textarea {
.o2-field-control {
min-height: 60px;
}
}
@when nolabel {
.o2-cell-title {
display: none;
@ -14,6 +20,7 @@
.o2-cell-value {
width: 100%;
padding-left: 0;
}
}