You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
813 B
38 lines
813 B
const { extractComponentId } = require('../common/helper');
|
|
|
|
module.exports = {
|
|
_handleZanFieldChange(event) {
|
|
const componentId = extractComponentId(event);
|
|
event.componentId = componentId;
|
|
|
|
|
|
|
|
if (this.handleZanFieldChange) {
|
|
return this.handleZanFieldChange(event);
|
|
}
|
|
|
|
console.warn('页面缺少 handleZanFieldChange 回调函数');
|
|
},
|
|
|
|
_handleZanFieldFocus(event) {
|
|
const componentId = extractComponentId(event);
|
|
event.componentId = componentId;
|
|
|
|
|
|
|
|
if (this.handleZanFieldFocus) {
|
|
return this.handleZanFieldFocus(event);
|
|
}
|
|
},
|
|
|
|
_handleZanFieldBlur(event) {
|
|
const componentId = extractComponentId(event);
|
|
event.componentId = componentId;
|
|
|
|
|
|
|
|
if (this.handleZanFieldBlur) {
|
|
return this.handleZanFieldBlur(event);
|
|
}
|
|
}
|
|
};
|
|
|