mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 15:40:52 +00:00
field component
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
class="o2-field"
|
class="o2-field"
|
||||||
:title="label"
|
:title="label"
|
||||||
:class="{
|
:class="{
|
||||||
|
'is-textarea': type === 'textarea',
|
||||||
'is-nolabel': !label
|
'is-nolabel': !label
|
||||||
}">
|
}">
|
||||||
<textarea
|
<textarea
|
||||||
|
@@ -7,6 +7,12 @@
|
|||||||
display: table;
|
display: table;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
|
@when textarea {
|
||||||
|
.o2-field-control {
|
||||||
|
min-height: 60px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@when nolabel {
|
@when nolabel {
|
||||||
.o2-cell-title {
|
.o2-cell-title {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -14,6 +20,7 @@
|
|||||||
|
|
||||||
.o2-cell-value {
|
.o2-cell-value {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user