You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2019/04/03 07:03:18 UTC

[GitHub] [incubator-weex] xuchao622 opened a new issue #2275: [Android][iOS][Dev-tool] Vue.mixin cannot work

xuchao622 opened a new issue #2275: [Android][iOS][Dev-tool] Vue.mixin cannot work
URL: https://github.com/apache/incubator-weex/issues/2275
 
 
   I create a index.js for mixins and import it in entry.js, It can work on Web, but it cannot work on IOS and Android (use Weex Playground).
   
   //index.js
   `export default {
     methods: {
       test () {
         return 'mixins'
       }
     }
   }`
   
   //entry.js
   `import Vue from 'vue'`
   `import mix from '@/mixins/index'`
   `import weex from 'weex-vue-render'`
   
   `Vue.mixin(mix)`
   `weex.init(Vue)`
   
   //HelloWorld.vue
   `<template>`
   `<text class="message">{{test()}}</text>`
   `</template>`
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services