Yao b42d1e8e8f
[bugfix] 修复 gulp 插件引起的组件编译后代码异常的问题 (#209)
* add eslint

* eslint 校验

* reset gulp build config
2018-04-30 23:08:58 +08:00

49 lines
872 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) {
console.info('[zan:field:change]', event);
this.triggerEvent('change', event);
},
handleZanFieldFocus(event) {
console.info('[zan:field:focus]', event);
this.triggerEvent('focus', event);
},
handleZanFieldBlur(event) {
console.info('[zan:field:blur]', event);
this.triggerEvent('blur', event);
}
}
});