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.

11 lines
292 B

1 year ago
  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. });