You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "Adam Feng (JIRA)" <ji...@apache.org> on 2018/05/14 12:51:00 UTC
[jira] [Assigned] (WEEX-116) It seems vue doesn't support instance
property in weex.
[ https://issues.apache.org/jira/browse/WEEX-116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Feng reassigned WEEX-116:
------------------------------
Assignee: Hanks Zhang (was: Adam Feng)
> It seems vue doesn't support instance property in weex.
> -------------------------------------------------------
>
> Key: WEEX-116
> URL: https://issues.apache.org/jira/browse/WEEX-116
> Project: Weex
> Issue Type: Bug
> Reporter: Edward Zhang
> Assignee: Hanks Zhang
> Priority: Critical
> Attachments: error.png
>
>
> I want to transplant Onsen UI to weex environment. official site is below:
> https://onsen.io/
> BUT, I met some errors while i running code. It is ok to webpack my app. BUT when I serve it in browser, i suppose vue do not support instance property. some snippets below:
> in main.js
> {code:javascript}
> new Vue({
> el: '#root',
> render: h => h(AppNavigator),
> store: new Vuex.Store(storeLike),
> beforeCreate: function() {
> // Shortcut for Material Design
> Vue.prototype.$md = this.$ons.platform.isAndroid(); //look this line: Vue.prototype.$md can not assign value to it.
> }
> });
> {code}
> in AppSplitter.vue
> {code:html}
> <template>
> <v-ons-page>
> <v-ons-splitter>
> <v-ons-splitter-side swipeable side="right" collapse=""
> width="260px"
> :swipe-target-width="$md && 25" //$md is undefined here.
> :animation="$md ? 'overlay' : 'reveal'" //$md is undefined here.
> :open.sync="isOpen"
> >
> <menu-page></menu-page>
> </v-ons-splitter-side>
> <v-ons-splitter-content>
> <app-tabbar></app-tabbar>
> </v-ons-splitter-content>
> </v-ons-splitter>
> </v-ons-page>
> </template>
> {code}
> Error information is right below in the attachment. Does anyone tell me why? And anyone who would like to help me. You can clone my github project: https://github.com/Edward-Roshan/Weex-Onsen
> Does Anyone just help me to launch it?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)