UNPKG

asia-weex-vue-render4light

Version:

Web renderer for weex project written in Vue DSL.

21 lines (17 loc) 397 B
import helper from '../main' export const spyMixin = { methods: { callSpy (spyName, ...args) { const id = this.$root.$el.id return helper.callSpy(id, spyName, ...args) }, getSpys () { const id = this.$root.$el.id return helper.getSpys(id) }, getSpy (spyName) { const id = this.$root.$el.id return helper.getSpy(id, spyName) } } }