feat(AddressEdit): add tel-maxlength prop (#6869)

This commit is contained in:
neverland
2020-07-25 10:36:45 +08:00
committed by GitHub
parent b7a7e48eea
commit 08a554c5a2
4 changed files with 21 additions and 3 deletions

View File

@@ -40,11 +40,12 @@ export default createComponent({
showDelete: Boolean,
showPostal: Boolean,
searchResult: Array,
telMaxlength: [Number, String],
showSetDefault: Boolean,
showSearchResult: Boolean,
saveButtonText: String,
deleteButtonText: String,
areaPlaceholder: String,
deleteButtonText: String,
showSearchResult: Boolean,
showArea: {
type: Boolean,
default: true,
@@ -283,6 +284,7 @@ export default createComponent({
clearable
type="tel"
label={t('tel')}
maxlength={this.telMaxlength}
placeholder={t('telPlaceholder')}
errorMessage={errorInfo.tel}
onFocus={onFocus('tel')}