mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
field add required prop
This commit is contained in:
parent
a2cd7b62a7
commit
eb6a58cc4a
@ -2,6 +2,7 @@
|
||||
<zan-cell
|
||||
class="zan-field"
|
||||
:title="label"
|
||||
:required="required"
|
||||
:class="{
|
||||
'zan-field--hastextarea': type === 'textarea',
|
||||
'zan-field--nolabel': !label,
|
||||
@ -52,6 +53,7 @@ export default {
|
||||
disabled: Boolean,
|
||||
error: Boolean,
|
||||
readonly: Boolean,
|
||||
required: Boolean,
|
||||
maxlength: [String, Number],
|
||||
border: Boolean
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user