vant-weapp/dist/field/index.js
Yao e4dfc9e48c
[new feature] Layout: 新增 layout 组件 (#43)
* change example dir

* Update README.md

更新预览教程

* 新增 layout 组件

* exclude example

* change .wxss -> .pcss

* 脚本目录更名为 scripts
2017-10-31 17:41:31 +08:00

15 lines
375 B
JavaScript

module.exports = {
_handleZanFieldChange(event) {
const { componentId } = event.currentTarget.dataset;
event.componentId = componentId;
console.info('[zan:field:change]', event);
if (this.handleZanFieldChange) {
return this.handleZanFieldChange(event);
} else {
console.warn('页面缺少 handleZanFieldChange 回调函数');
}
}
};