mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 07:30:53 +00:00
field component
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user