basic.js 292 B

1234567891011
  1. export const basic = Behavior({
  2. methods: {
  3. $emit(name, detail, options) {
  4. this.triggerEvent(name, detail, options);
  5. },
  6. set(data) {
  7. this.setData(data);
  8. return new Promise((resolve) => wx.nextTick(resolve));
  9. },
  10. },
  11. });