export const basic = Behavior({ methods: { $emit( name: string, detail?: Record, options?: WechatMiniprogram.Component.TriggerEventOption ) { this.triggerEvent(name, detail, options); }, set(data: Record) { this.setData(data); return new Promise((resolve) => wx.nextTick(resolve)); }, }, });