basic.js 274 Bytes
Newer Older
李嘉林 committed
1
export const basic = Behavior({
程默 committed
2 3 4 5 6 7 8 9 10
  methods: {
    $emit(name, detail, options) {
      this.triggerEvent(name, detail, options);
    },
    set(data, callback) {
      this.setData(data, callback);
      return new Promise((resolve) => wx.nextTick(resolve));
    },
  },
李嘉林 committed
11
});