2021-01-12 18:04:14 +08:00

20 lines
451 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.basic = void 0;
var basic = Behavior({
methods: {
$emit: function $emit(name, detail, options) {
this.triggerEvent(name, detail, options);
},
set: function set(data, callback) {
this.setData(data, callback);
return new Promise(function (resolve) {
return wx.nextTick(resolve);
});
}
}
});
exports.basic = basic;