vant-weapp/dist/field/index.js
2018-04-30 23:50:08 +08:00

49 lines
749 B
JavaScript

Component({
properties: {
title: String,
name: String,
type: {
type: String,
value: 'input'
},
name: String,
value: String,
disabled: Boolean,
inputType: {
type: String,
value: 'text'
},
placeholder: String,
focus: Boolean,
mode: {
type: String,
value: 'normal'
},
right: Boolean,
error: Boolean,
maxlength: {
type: Number,
value: 140
}
},
methods: {
handleZanFieldChange(event) {
this.triggerEvent('change', event);
},
handleZanFieldFocus(event) {
this.triggerEvent('focus', event);
},
handleZanFieldBlur(event) {
this.triggerEvent('blur', event);
}
}
});